We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p4c-ss-bmv2
The following program should be rejected as it contains a loop, however p4c-ss-bmv2 accepts it and generates a JSON output in which t occurs twice.
t
#include <v1model.p4> header p_t { bit<8> fst; bit<8> snd; } struct h { p_t p; } struct m { } parser MyParser(packet_in b, out h hdr, inout m meta, inout standard_metadata_t std) { state start { transition accept; } } control MyVerifyChecksum(in h hdr, inout m meta) { apply {} } control MyIngress(inout h hdr, inout m meta, inout standard_metadata_t std) { action Nop() { } table t(inout bit<8> b) { key = { b : exact; } actions = { Nop; } default_action = Nop; } apply { t.apply(hdr.pfst.); t.apply(hdr.p.snd); } } control MyEgress(inout h hdr, inout m meta, inout standard_metadata_t std) { apply { } } control MyComputeChecksum(inout h hdr, inout m meta) { apply {} } control MyDeparser(packet_out b, in h hdr) { apply { } } V1Switch(MyParser(), MyVerifyChecksum(), MyIngress(), MyEgress(), MyComputeChecksum(), MyDeparser()) main;
-N
The text was updated successfully, but these errors were encountered:
Looks good.
Sorry, something went wrong.
jnfoster
No branches or pull requests
The following program should be rejected as it contains a loop, however
p4c-ss-bmv2
accepts it and generates a JSON output in whicht
occurs twice.-N
The text was updated successfully, but these errors were encountered: