Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AzureMarker/p4-analyzer
Static analysis tool which checks P4 code for bugs
https://github.com/AzureMarker/p4-analyzer
gcl p4 rust
Last synced: about 1 month ago
JSON representation
Static analysis tool which checks P4 code for bugs
- Host: GitHub
- URL: https://github.com/AzureMarker/p4-analyzer
- Owner: AzureMarker
- Created: 2020-11-29T23:28:28.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T01:44:56.000Z (over 3 years ago)
- Last Synced: 2024-05-22T20:32:22.047Z (7 months ago)
- Topics: gcl, p4, rust
- Language: Rust
- Homepage:
- Size: 347 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-rust-formalized-reasoning - p4-analyzer - static analysis tool which checks P4 code for bugs. (Projects / Verification)
README
# p4-analyzer
This tool aims to validate various safety properties of [P4] programs.
It does this by first converting P4 code to a [CFG] (Control Flow Graph)
inspired by [GCL], then generating logical predicates which are used to check
the reachability of bugs.## Build
This project is written in Rust, so first install Rust:
https://www.rust-lang.org/tools/installThere is also a dependency on the [Z3] theorem prover, so install the library
(including header files) either from source or your distribution's package
manager (`z3-devel` for Fedora, `libz3-dev` for Debian systems).Now that Rust and Z3 are installed, use `cargo` to build the project
(with optimizations):
```
cargo build --release
```The compiled binary is located at `target/release/p4-analyzer`.
[P4]: https://en.wikipedia.org/wiki/P4_(programming_language)
[CFG]: https://en.wikipedia.org/wiki/Control-flow_graph
[GCL]: https://en.wikipedia.org/wiki/Guarded_Command_Language
[Z3]: https://github.com/Z3Prover/z3