Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bengabay11/cfg-construction-exercise
Control Flow Graph Construction Exercise
https://github.com/bengabay11/cfg-construction-exercise
Last synced: 4 days ago
JSON representation
Control Flow Graph Construction Exercise
- Host: GitHub
- URL: https://github.com/bengabay11/cfg-construction-exercise
- Owner: bengabay11
- License: mit
- Created: 2022-08-26T11:42:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-09T09:06:52.000Z (almost 2 years ago)
- Last Synced: 2024-05-28T16:12:58.575Z (7 months ago)
- Language: Python
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Unit Tests](https://github.com/bengabay11/cfg-construction-exercise/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/bengabay11/cfg-construction-exercise/actions/workflows/unit-tests.yml)
# CFG Construction Exercise
This project reads from an invented assembly language and creates a Control Flow Graph From it![asdsad](assets/even_number_example.jpg)
## Examples
To demonstrate the cfg construction, There are a few examples using the invented assembly language.You can simply run each example inside [examples](examples) folder.
- Exponentiation
- Even Number
- Print if number is even or odd from zero to maximum number## Dependencies
This project is using [pipenv](https://pipenv.pypa.io/en/latest/) for package management.To create Python Virtual Environment and install all dependencies:
```
$ pipenv install
```
see [Pipfile](Pipfile) for more information## Testing
This project is using [pytest](https://docs.pytest.org/en/7.1.x/#id1) for testing.
The tests are running automatically on every push to the repo.To run the tests locally:
```
$ pipenv run unit-tests
```
For coverage report:
```
$ pipenv run unit-test-cov
```
## Lint
This project is using [pylint](https://pypi.org/project/pylint/) for linting.To run lint check:
```
$ pipenv run lint
```
to change the linting configuration, see [.pylintrc](.pylintrc)## License
This project is licensed under the terms of the MIT license.