https://github.com/math2001/ubc
https://github.com/math2001/ubc
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/math2001/ubc
- Owner: math2001
- Created: 2022-11-22T06:03:43.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T05:16:11.000Z (almost 3 years ago)
- Last Synced: 2025-01-06T20:52:19.845Z (over 1 year ago)
- Language: Python
- Size: 815 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
Undefined behavior C
====================
Setup
-----
Install the pre commit hook.
ln -s "$PWD/pre-commit" .git/hooks/pre-commit
Install pytest and dot (for visualizing the CFG)
Run the tests:
pytest
Type verification:
mypy --strict .
Code formatting:
find -name '*.py' | xargs autopep8 -i
Usage
-----
To convert C to graph lang
env TV_ROOT=... L4V_ARCH=RISCV64 bash make-graph-from-c.sh
To use ubc:
usage: python3 main.py [options] function-names...
--show-graph: Show the graph lang
--show-dsa: Show the graph after having applied dynamic single assignment
--show-ap: Show the assume prove prog
--show-smt: Show the SMT given to the solvers
--show-sats: Show the raw results from the smt solvers (sat/unsat)