verified-network-toolchain / petr4

Petr4: Formal Semantics for P4
Apache License 2.0
74 stars 20 forks source link

Casting `bit<w> -> int` and `int<w> -> int` #353

Closed QinshiWang closed 1 year ago

QinshiWang commented 2 years ago

This is allowed in P4 Spec but not petr4 or poulet4. https://p4.org/p4-spec/docs/P4-16-v1.2.2.html#sec-explicit-casts