{"id":13485807,"url":"https://github.com/ksen007/janala2","last_synced_at":"2025-03-27T19:31:51.632Z","repository":{"id":3647700,"uuid":"4715311","full_name":"ksen007/janala2","owner":"ksen007","description":"a concolic testing engine for Java","archived":false,"fork":false,"pushed_at":"2018-02-20T02:51:10.000Z","size":11892,"stargazers_count":102,"open_issues_count":5,"forks_count":34,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-10-30T20:45:49.055Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"niklasvh/html2canvas","license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ksen007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-06-19T15:15:58.000Z","updated_at":"2024-09-02T09:52:19.000Z","dependencies_parsed_at":"2022-08-20T16:30:32.596Z","dependency_job_id":null,"html_url":"https://github.com/ksen007/janala2","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksen007%2Fjanala2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksen007%2Fjanala2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksen007%2Fjanala2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ksen007%2Fjanala2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ksen007","download_url":"https://codeload.github.com/ksen007/janala2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245910927,"owners_count":20692517,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T18:00:31.998Z","updated_at":"2025-03-27T19:31:48.857Z","avatar_url":"https://github.com/ksen007.png","language":"Java","funding_links":[],"categories":["Projects","Tools","项目","IV. Testing","Formal Verification"],"sub_categories":["Formal Verification","Java","形式验证","4. Formal Verification"],"readme":"CATG\n========\n\nCATG is a concolic unit testing engine for Java programs.  The implementation uses ASM for instrumentation.\nASM instrumentation instruments (see janala.instrument.*) class files at runtime and dumps (see janala.logger.*)\nto a file a log of all instructions executed by the program and all values loaded from local stacks and heaps.\nA concolic execution engine (see janala.interpreters.*) then takes the log and performs both symbolic and\nconcrete interpretation of the logged instructions.\n\nYou must have java, gradle, cvc4 (http://cvc4.cs.nyu.edu/downloads/), and python 2.7 in your PATH. Two extra jar files are needed to run the tool. Create a `lib` directory in the root directory and download the following jar files   \n\n * asm-all-5.0.4.jar: http://mvnrepository.com/artifact/org.ow2.asm/asm-all/5.0.4 (Direct link: http://central.maven.org/maven2/org/ow2/asm/asm-all/5.0.4/asm-all-5.0.4.jar)\n * automaton-1.11-8.jar: http://mvnrepository.com/artifact/dk.brics.automaton/automaton/1.11-8 (Direct link: http://central.maven.org/maven2/dk/brics/automaton/automaton/1.11-8/automaton-1.11-8.jar)\n * emma.jar: https://mvnrepository.com/artifact/emma/emma/2.1.5320 (Direct link: http://central.maven.org/maven2/emma/emma/2.1.5320/emma-2.1.5320.jar)\n\nplace them in the `lib` directory. Then invoke\n\n    gradle build\n    \nand\n\n    gradle integrationTest\n    \nTo run the the full integration tests, use\n\n    ./setup.sh  # This builds CATG and copy it to lib/\n    python testall.py\n\nTo run tests and see coverage report, use\n\n    gradle build\n    gradle jacocoTestReport\n\nThis runs the tests using online concolic execution.  To run tests with offline concolic execution, use\n\n    python --offline testall.py\n\n\nIf you want to generate tests on a Java class file having a main method, you need to use the concolic.py script.  For example, the following command generates test inputs for the class tests.Testme (the java source of this class can be found in [src/integration/java/tests/Testme.java](src/integration/java/tests/Testme.java).\n\n    python concolic.py --coverage 100 tests.Testme\n    \n\n\n### Usage\n\npython janala/concolic.py -h\nusage: concolic.py [-h] [--offline] [-v] [-c] [-D D]\n                   maxIterations className [arguments [arguments ...]]\n\npositional arguments:\n    \n    maxIterations   Maximum number of times the program under test can be\n                  executed.\n    className       Java class to be tested.\n    arguments       Arguments passed to the program under test.\n\noptional arguments:\n\n    -h, --help      show this help message and exit\n    --offline       Perform concolic testing offline. An intermediate trace file\n                  is generated during the execution of the program. offilne\n                  mode results in 2X slowdown that non-offline mode\n    -v, --verbose   Print commands that are executed.\n    -c, --coverage  Compute detailed coverage by rerunning tests.\n    -D D            JVM options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksen007%2Fjanala2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fksen007%2Fjanala2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fksen007%2Fjanala2/lists"}