chipmunk-project / chipmunk-tofino

12 stars 2 forks source link

Simplify P4 file before passing it to the Tofino compiler. #24

Open anirudhSK opened 4 years ago

anirudhSK commented 4 years ago

Because our P4 file is autogenerated, it contains spurious expressions such as 0 + x + y instead of just x + y. These trip up the Tofino compiler. Right now, we simplify these manually by removing the unnecessary 0s. We should automate this.