Skip to content

ufrgs-networks-group/assert-p4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

assert-p4

To translate a P4 program to SEFL from its json file:

python src/P4_to_SEFL.py <filename>.json

To translate a P4 program to a C model to be executed by klee from its json file:

python src/P4_to_C.py <filename>.json

The json representations are obtained from the bmv2 backend of the p4c compiler. To generate a json file, you need to build p4c and run:

p4c/build/p4c-bm2-ss <input-filename>.p4 --toJSON <output-filename>.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • P4 35.3%
  • Scala 28.1%
  • C 23.7%
  • LLVM 10.1%
  • Python 2.5%
  • Shell 0.2%
  • Gnuplot 0.1%