Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.

Latest commit

 

History

History
14 lines (12 loc) · 764 Bytes

README.md

File metadata and controls

14 lines (12 loc) · 764 Bytes

ToZ3: The P4-to-Z3Py Interpreter

ToZ3 produces intermediate Python code that can be used to generate Z3 expressions from P4 programs. The code does not work without the parent repository Gauntlet. Please see more details there.

Requirements

ToZ3 is written as an extension to P4C. It has no other dependencies. First P4C must be installed. Instructions can be found here.

Flags

Option Description
--ouput File name of the output Python Z3 formula
--emit_p4 If set, will generate a --output.p4 P4 program
--prune If set, will randomly prune the input P4 program and output to --output Z3 formula