| { |
| "program" : "empty.p4", |
| "__meta__" : { |
| "version" : [2, 7], |
| "compiler" : "https://github.com/p4lang/p4c" |
| }, |
| "header_types" : [ |
| { |
| "name" : "scalars_0", |
| "id" : 0, |
| "fields" : [] |
| }, |
| { |
| "name" : "dummy_t", |
| "id" : 1, |
| "fields" : [ |
| ["dummyField", 8, false] |
| ] |
| }, |
| { |
| "name" : "standard_metadata", |
| "id" : 2, |
| "fields" : [ |
| ["ingress_port", 9, false], |
| ["egress_spec", 9, false], |
| ["egress_port", 9, false], |
| ["clone_spec", 32, false], |
| ["instance_type", 32, false], |
| ["drop", 1, false], |
| ["recirculate_port", 16, false], |
| ["packet_length", 32, false], |
| ["enq_timestamp", 32, false], |
| ["enq_qdepth", 19, false], |
| ["deq_timedelta", 32, false], |
| ["deq_qdepth", 19, false], |
| ["ingress_global_timestamp", 48, false], |
| ["lf_field_list", 32, false], |
| ["mcast_grp", 16, false], |
| ["resubmit_flag", 1, false], |
| ["egress_rid", 16, false], |
| ["_padding", 5, false] |
| ] |
| } |
| ], |
| "headers" : [ |
| { |
| "name" : "scalars", |
| "id" : 0, |
| "header_type" : "scalars_0", |
| "metadata" : true, |
| "pi_omit" : true |
| }, |
| { |
| "name" : "standard_metadata", |
| "id" : 1, |
| "header_type" : "standard_metadata", |
| "metadata" : true, |
| "pi_omit" : true |
| }, |
| { |
| "name" : "dummy_metadata", |
| "id" : 2, |
| "header_type" : "dummy_t", |
| "metadata" : true, |
| "pi_omit" : true |
| } |
| ], |
| "header_stacks" : [], |
| "header_union_types" : [], |
| "header_unions" : [], |
| "header_union_stacks" : [], |
| "field_lists" : [], |
| "errors" : [ |
| ["NoError", 1], |
| ["PacketTooShort", 2], |
| ["NoMatch", 3], |
| ["StackOutOfBounds", 4], |
| ["HeaderTooShort", 5], |
| ["ParserTimeout", 6] |
| ], |
| "enums" : [], |
| "parsers" : [ |
| { |
| "name" : "parser", |
| "id" : 0, |
| "init_state" : "start", |
| "parse_states" : [ |
| { |
| "name" : "start", |
| "id" : 0, |
| "parser_ops" : [], |
| "transitions" : [ |
| { |
| "value" : "default", |
| "mask" : null, |
| "next_state" : null |
| } |
| ], |
| "transition_key" : [] |
| } |
| ] |
| } |
| ], |
| "deparsers" : [ |
| { |
| "name" : "deparser", |
| "id" : 0, |
| "source_info" : { |
| "filename" : "empty.p4", |
| "line" : 60, |
| "column" : 8, |
| "source_fragment" : "DeparserImpl" |
| }, |
| "order" : [] |
| } |
| ], |
| "meter_arrays" : [], |
| "counter_arrays" : [], |
| "register_arrays" : [], |
| "calculations" : [], |
| "learn_lists" : [], |
| "actions" : [ |
| { |
| "name" : "NoAction", |
| "id" : 0, |
| "runtime_data" : [], |
| "primitives" : [] |
| }, |
| { |
| "name" : "dummy_action", |
| "id" : 1, |
| "runtime_data" : [], |
| "primitives" : [ |
| { |
| "op" : "assign", |
| "parameters" : [ |
| { |
| "type" : "field", |
| "value" : ["dummy_metadata", "dummyField"] |
| }, |
| { |
| "type" : "hexstr", |
| "value" : "0x01" |
| } |
| ], |
| "source_info" : { |
| "filename" : "empty.p4", |
| "line" : 39, |
| "column" : 8, |
| "source_fragment" : "meta.dummy_metadata.dummyField = 8w1" |
| } |
| } |
| ] |
| } |
| ], |
| "pipelines" : [ |
| { |
| "name" : "ingress", |
| "id" : 0, |
| "source_info" : { |
| "filename" : "empty.p4", |
| "line" : 37, |
| "column" : 8, |
| "source_fragment" : "ingress" |
| }, |
| "init_table" : "table0", |
| "tables" : [ |
| { |
| "name" : "table0", |
| "id" : 0, |
| "source_info" : { |
| "filename" : "empty.p4", |
| "line" : 41, |
| "column" : 10, |
| "source_fragment" : "table0" |
| }, |
| "key" : [ |
| { |
| "match_type" : "exact", |
| "target" : ["dummy_metadata", "dummyField"], |
| "mask" : null |
| } |
| ], |
| "match_type" : "exact", |
| "type" : "simple", |
| "max_size" : 1024, |
| "with_counters" : false, |
| "support_timeout" : false, |
| "direct_meters" : null, |
| "action_ids" : [1, 0], |
| "actions" : ["dummy_action", "NoAction"], |
| "base_default_next" : null, |
| "next_tables" : { |
| "dummy_action" : null, |
| "NoAction" : null |
| }, |
| "default_entry" : { |
| "action_id" : 0, |
| "action_const" : false, |
| "action_data" : [], |
| "action_entry_const" : false |
| } |
| } |
| ], |
| "action_profiles" : [], |
| "conditionals" : [] |
| }, |
| { |
| "name" : "egress", |
| "id" : 1, |
| "source_info" : { |
| "filename" : "empty.p4", |
| "line" : 54, |
| "column" : 8, |
| "source_fragment" : "egress" |
| }, |
| "init_table" : null, |
| "tables" : [], |
| "action_profiles" : [], |
| "conditionals" : [] |
| } |
| ], |
| "checksums" : [], |
| "force_arith" : [], |
| "extern_instances" : [], |
| "field_aliases" : [ |
| [ |
| "queueing_metadata.enq_timestamp", |
| ["standard_metadata", "enq_timestamp"] |
| ], |
| [ |
| "queueing_metadata.enq_qdepth", |
| ["standard_metadata", "enq_qdepth"] |
| ], |
| [ |
| "queueing_metadata.deq_timedelta", |
| ["standard_metadata", "deq_timedelta"] |
| ], |
| [ |
| "queueing_metadata.deq_qdepth", |
| ["standard_metadata", "deq_qdepth"] |
| ], |
| [ |
| "intrinsic_metadata.ingress_global_timestamp", |
| ["standard_metadata", "ingress_global_timestamp"] |
| ], |
| [ |
| "intrinsic_metadata.lf_field_list", |
| ["standard_metadata", "lf_field_list"] |
| ], |
| [ |
| "intrinsic_metadata.mcast_grp", |
| ["standard_metadata", "mcast_grp"] |
| ], |
| [ |
| "intrinsic_metadata.resubmit_flag", |
| ["standard_metadata", "resubmit_flag"] |
| ], |
| [ |
| "intrinsic_metadata.egress_rid", |
| ["standard_metadata", "egress_rid"] |
| ] |
| ] |
| } |