#include #include header ethernet_t { bit<48> dst_addr; bit<48> src_addr; bit<16> eth_type; } header H { bit<8> a; bit<8> b; bit<8> c; bit<8> d; bit<8> e; bit<8> f; } struct Headers { ethernet_t eth_hdr; H h; } struct Meta { } bit<16> function_with_side_effect(inout bit<8> val) { val = 1; return 16w2; } parser p(packet_in pkt, out Headers hdr, inout Meta m, inout standard_metadata_t sm) { state start { pkt.extract(hdr.eth_hdr); pkt.extract(hdr.h); transition accept; } } control ingress(inout Headers h, inout Meta m, inout standard_metadata_t sm) { apply { bit<16> dummy_var; dummy_var = 16w0 & function_with_side_effect(h.h.a); dummy_var = 16w0 * function_with_side_effect(h.h.b); dummy_var = 16w0 / function_with_side_effect(h.h.c); dummy_var = 16w0 >> function_with_side_effect(h.h.d); dummy_var = 16w0 << function_with_side_effect(h.h.e); dummy_var = 16w0 % function_with_side_effect(h.h.f); } } control vrfy(inout Headers h, inout Meta m) { apply {} } control update(inout Headers h, inout Meta m) { apply {} } control egress(inout Headers h, inout Meta m, inout standard_metadata_t sm) { apply {} } control deparser(packet_out b, in Headers h) { apply {b.emit(h);} } V1Switch(p(), vrfy(), ingress(), egress(), update(), deparser()) main;