https://github.com/kengotoda/learn-cfg
Learn Control Flow Graph on ObjectWeb ASM
https://github.com/kengotoda/learn-cfg
control-flow-graph objectweb-asm static-analysis
Last synced: 3 months ago
JSON representation
Learn Control Flow Graph on ObjectWeb ASM
- Host: GitHub
- URL: https://github.com/kengotoda/learn-cfg
- Owner: KengoTODA
- License: apache-2.0
- Created: 2019-01-04T07:38:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-03T00:37:04.000Z (almost 3 years ago)
- Last Synced: 2025-10-31T03:51:56.753Z (7 months ago)
- Topics: control-flow-graph, objectweb-asm, static-analysis
- Language: Java
- Size: 136 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Small project to learn about CFG
================================
This is a small project to learn about [CFG (Control Flow Graph) based on ObjectWeb ASM](https://asm.ow2.io/developer-guide.html#controlflow).
## Requirements
- Java 17 or later
- Gradle 9.2.0 or later (via included wrapper)
## Building
To build the project:
```bash
./gradlew build
```
## Usage
To visualize result, use [`dot` command](https://www.graphviz.org/doc/info/command.html) to generate PNG file. For instance, the following example will generate a PNG file from `result.dot` in current working directory:
```bash
$ ./gradlew run --args /path/to/target.class
$ dot result.dot -T png -o out.png
```
## Code Formatting
To format Kotlin codes, run `./gradlew spotlessApply` that is supported by [spotless plugin](https://github.com/diffplug/spotless).
## Technology Stack
- **Language**: Kotlin 2.1.0
- **Build Tool**: Gradle 9.2.0 with Kotlin DSL
- **Analysis Library**: ObjectWeb ASM 9.5
- **JVM Target**: Java 17
Copyright
---------
Copyright 2019-2021 Kengo TODA
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.