From 15cdecb26c21477f8c8da9e6cbde738f3b5dc8df Mon Sep 17 00:00:00 2001 From: Mingyu Ma Date: Mon, 30 Nov 2026 23:48:24 +0100 Subject: [PATCH] Add rank examples LAS and EDF, with SP-PIFO and AIFO next to the PIFO p4-pifo-las and p4-pifo-edf build their network four times in one simulation, with the same traffic, and serve the ranks of the P4 program in four ways: a FIFO, SP-PIFO on the eight priority queues, AIFO on one FIFO, and ns3::P4PifoScheduler. - las.p4: least attained service; the rank is the bytes that the packet's TCP flow sent through the switch before it (AIFO's drops do not count). Short TCP flows pass two long ones; the example prints their completion times. - edf.p4: earliest deadline first; the rank is the arrival time plus the deadline of the packet's class, and the egress counts the late packets per class. - pifo_approx/sp_pifo.p4 and aifo.p4: SP-PIFO (NSDI 2020) and AIFO (SIGCOMM 2021) as P4 controls that a program applies once it knows the rank and the egress port. - examples/pifo-example.h: the network, the Poisson source and the register access, also used by p4-pifo-stfq now (its output is unchanged). - Docs: examples.md (rows, results, references), switch.md, README, TODO.md; the test list runs both examples. Co-Authored-By: Claude Opus 5.5 --- README.md | 3 +- doc/TODO.md | 10 +- doc/examples.md | 43 + doc/switch.md | 19 +- examples/CMakeLists.txt | 16 + examples/p4-pifo-edf.cc | 151 + examples/p4-pifo-las.cc | 237 + examples/p4-pifo-stfq.cc | 149 +- examples/p4src/edf/edf.json | 10162 ++++++++++++++++++++++++ examples/p4src/edf/edf.p4 | 183 + examples/p4src/edf/flowtable_0.txt | 7 + examples/p4src/las/flowtable_0.txt | 5 + examples/p4src/las/las.json | 9513 ++++++++++++++++++++++ examples/p4src/las/las.p4 | 168 + examples/p4src/pifo_approx/aifo.p4 | 76 + examples/p4src/pifo_approx/sp_pifo.p4 | 81 + examples/pifo-example.h | 236 + test/examples-to-run.py | 2 + 18 files changed, 20924 insertions(+), 137 deletions(-) create mode 100644 examples/p4-pifo-edf.cc create mode 100644 examples/p4-pifo-las.cc create mode 100644 examples/p4src/edf/edf.json create mode 100644 examples/p4src/edf/edf.p4 create mode 100644 examples/p4src/edf/flowtable_0.txt create mode 100644 examples/p4src/las/flowtable_0.txt create mode 100644 examples/p4src/las/las.json create mode 100644 examples/p4src/las/las.p4 create mode 100644 examples/p4src/pifo_approx/aifo.p4 create mode 100644 examples/p4src/pifo_approx/sp_pifo.p4 create mode 100644 examples/pifo-example.h diff --git a/README.md b/README.md index f6e6af1..be1fa95 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ A switch has two kinds of port, which can be mixed. The port number is the order ## Examples -[doc/examples.md](doc/examples.md) describes all 36 examples, and [doc/tutorials.md](doc/tutorials.md) maps the exercises of [p4lang/tutorials](https://github.com/p4lang/tutorials) to them. A selection: +[doc/examples.md](doc/examples.md) describes all 38 examples, and [doc/tutorials.md](doc/tutorials.md) maps the exercises of [p4lang/tutorials](https://github.com/p4lang/tutorials) to them. A selection: | Example | Description | |---|---| @@ -181,6 +181,7 @@ A switch has two kinds of port, which can be mixed. The port number is the order | `p4-latency` | What makes up the one-way delay through a P4 switch | | `p4-codel`, `p4-red` | Active queue management in the egress, as programmable switches do it: CoDel, and RED with ECN | | `p4-pifo-stfq` | Programmable scheduling: the P4 program computes the ranks of weighted fair queueing (STFQ), and a PIFO per port serves them | +| `p4-pifo-las`, `p4-pifo-edf` | Ranks for short flows first (LAS) and for deadlines (EDF): a PIFO side by side with SP-PIFO and AIFO, which serve the same ranks on a switch without PIFOs | | `p4-voq-fabric-throughput` | Throughput of the VOQ + fabric traffic manager | The [paper](https://dl.acm.org/doi/10.1145/3747204.3747210) evaluates P4sim with tunnelling (a custom header) and load balancing over several paths. diff --git a/doc/TODO.md b/doc/TODO.md index 3b19bde..69e3174 100644 --- a/doc/TODO.md +++ b/doc/TODO.md @@ -82,9 +82,13 @@ line (bridge ports only, the old timing model) and gets no more changes. v1model only. PSA keeps its own copy of the strict-priority queues (`P4CorePsa::egress_buffer`); proposal: give it a `P4QueueScheduler` too. The VOQ + fabric traffic manager is a path of its own and stays apart. - - Next for PIFOs: more rank examples (LAS, EDF, and the approximations SP-PIFO - and AIFO on priority queues), then PIFO trees for hierarchical scheduling, - which need a rank per level (`P4QueueMetadata` holds one). + - Next for PIFOs: PIFO trees for hierarchical scheduling, which need a rank per + level (`P4QueueMetadata` holds one). The rank examples (STFQ, LAS, EDF) and + the approximations SP-PIFO and AIFO exist (`p4-pifo-*`). + - AIFO (`examples/p4src/pifo_approx/aifo.p4`) learns the queue length from the + egress, after a packet left; the ingress of real hardware may see it sooner. + With LAS, whose ranks only grow, it drops a long flow's retransmissions too + (`p4-pifo-las`); a sampled or per-flow window is not tried. - A `P4QueueDisc` (P4 in an ns-3 queue disc, for NICs and hosts) waits for a test with a P4 SmartNIC. - **The pipeline core** (`P4SwitchArch` 3) ignores `mcast_grp`, clones, diff --git a/doc/examples.md b/doc/examples.md index a88a8b5..63a60f0 100644 --- a/doc/examples.md +++ b/doc/examples.md @@ -52,6 +52,8 @@ port, set up by `SwitchedEthernetHelper`; and **bridge** ports, ordinary ns-3 de | `p4-codel` | CoDel in the egress, as a programmable switch runs it [12]: two TCP flows through a 100 Mbps port with a queue of 1000 packets; CoDel keeps the time in the queue below its 5 ms target instead of about 99 ms, at the same goodput. `--aqm=none` turns it off; `--model=ns3` runs an ns-3 router with `CoDelQueueDisc` instead, as a baseline | v1model | switched Ethernet | `codel` | | `p4-red` | RED with ECN in the egress: a moving average of the queue depth decides which packets to mark (ECN-capable TCP) or, with `--ecn=0`, to drop; the queue stays short and the link busy | v1model | switched Ethernet | `red` | | `p4-pifo-stfq` | Programmable scheduling (`QueueScheduler` `ns3::P4PifoScheduler`) [13]: the ingress computes the ranks of start-time fair queueing [14], weights 1:1:2 from the flow table, and three UDP flows of 60 Mbps share a 100 Mbps port 25:25:50 %. `--scheduler=strict` serves one FIFO instead: about a third each | v1model | switched Ethernet | `stfq` | +| `p4-pifo-las` | Least attained service [15]: the rank of a packet is the bytes its TCP flow sent before it, so short flows pass two long ones without the switch knowing flow sizes. Four switches side by side with the same flows: FIFO, SP-PIFO [16] and AIFO [17] (the same ranks on a switch without PIFOs) and the PIFO; it prints the flow completion times of the short flows | v1model | switched Ethernet | `las`, `pifo_approx` | +| `p4-pifo-edf` | Earliest deadline first: the rank is the arrival time plus the deadline of the packet's class (1, 2 and 4 ms, from the flow table); three UDP flows keep a 100 Mbps port 94 % busy. FIFO, SP-PIFO, AIFO and PIFO side by side; the egress counts the packets that waited longer than their deadline | v1model | switched Ethernet | `edf`, `pifo_approx` | | `p4-spine-leaf-topo` | A spine-leaf network with ECMP load balancing (tutorial `load_balance` [7]) | v1model | CSMA and P4 point-to-point | `load_balance` | | `p4-topo-fattree` | A k-ary fat tree with generated flow tables (`FattreeTopoHelper`, `BuildFlowtableHelper`); `--model=1` runs ns-3 bridges instead | v1model | CSMA and P4 point-to-point | `fat-tree` | | `topo-fattree` | The same fat tree from plain ns-3 nodes, without P4, as a baseline | – | CSMA | – | @@ -94,6 +96,42 @@ goodput of `p4-red` depends on its random marks (`--RngRun`): its thresholds lie the bandwidth-delay product of the flows, so the link idles when both slow down at once: 74 to 96 Mbps over eight seeds with ns-3.39. +`p4-pifo-las` and `p4-pifo-edf` build their network four times in one simulation and +give each the same traffic (`examples/pifo-example.h`); only the way the switch serves +the ranks differs. SP-PIFO and AIFO are P4 controls in `examples/p4src/pifo_approx/` +for a switch with the usual eight priority queues; the register `approximation` of the +program switches them on. With ns-3.39 and the default arguments: + +| `p4-pifo-las` | Short flows: mean FCT | median | max | Long flows: goodput | +|---|--:|--:|--:|--:| +| FIFO | 52.5 ms | 50.5 ms | 87 ms | 85.1 Mbps | +| SP-PIFO | 5.7 ms | 6.2 ms | 11 ms | 85.1 Mbps | +| AIFO | 21.9 ms | 6.9 ms | 214 ms | 51.9 Mbps | +| PIFO | 5.7 ms | 6.2 ms | 11 ms | 85.2 Mbps | + +SP-PIFO comes close to the PIFO. AIFO keeps the queue short but only drops: LAS ranks +grow over the life of a flow, so a long flow's own earlier packets have the smaller +ranks, and AIFO drops it, its retransmissions too, whenever the queue holds more than +an eighth of its capacity. Each lost retransmission costs TCP a timeout of 200 ms, +which shows in the long flows' goodput and in the slowest short flows. Over eight +seeds (`--seconds=1`), the PIFO's mean FCT is 7 to 17 times below the FIFO's, +SP-PIFO's at most 1.2 times the PIFO's, and AIFO's long flows get 19 to 74 Mbps. +ns-3.49's TCP loses more behind the FIFO (mean FCT 53 to 138 ms, against 46 to 84 ms) +and less with AIFO (long flows 52 to 86 Mbps); the PIFO and SP-PIFO give nearly the +same times as with ns-3.39. + +| `p4-pifo-edf`: missed deadlines | class 0 (1 ms) | class 1 (2 ms) | class 2 (4 ms) | +|---|--:|--:|--:| +| FIFO | 23.3 % | 7.7 % | 0 % | +| SP-PIFO | 0 % | 0 % | 7.5 % | +| AIFO | 12.6 % | 0 % | 1.2 % (dropped) | +| PIFO | 0.6 % | 1.0 % | 0.7 % | + +SP-PIFO's bounds settle into one class per priority, which is strict priority: the +class with the loosest deadline pays for it. EDF spreads its few misses over the +classes. Over twelve seeds, the class that missed most missed for 0 to 7.9 % of its +packets with the PIFO and 14 to 26 % with the FIFO; ns-3.49 gives the same numbers. + Results of the examples in the paper are in [p4sim-artifact-icns3](https://github.com/HapCommSys/p4sim-artifact-icns3). @@ -136,3 +174,8 @@ in `examples/CMakeLists.txt`, and a line in `test/examples-to-run.py`. 14. P. Goyal, H. M. Vin, H. Cheng: Start-Time Fair Queueing: A Scheduling Algorithm for Integrated Services Packet Switching Networks. IEEE/ACM Transactions on Networking, 1997 +15. I. A. Rai, G. Urvoy-Keller, E. W. Biersack: Analysis of LAS Scheduling for Job Size + Distributions with High Variance. ACM SIGMETRICS 2003 +16. R. Alcoz, A. Dietmüller, L. Vanbever: SP-PIFO: Approximating Push-In First-Out + Behaviors using Strict-Priority Queues. USENIX NSDI 2020 +17. Z. Yu et al.: Programmable Packet Scheduling with a Single Queue. ACM SIGCOMM 2021 diff --git a/doc/switch.md b/doc/switch.md index 25dc864..49c2718 100644 --- a/doc/switch.md +++ b/doc/switch.md @@ -166,10 +166,27 @@ p4.SetDeviceAttribute("QueueScheduler", - `TransferBufferSize` works as with the priority queues. [`p4-pifo-stfq`](examples.md) computes the ranks of start-time fair queueing in -the ingress and shares a port by weights. +the ingress and shares a port by weights. [`p4-pifo-las`](examples.md) (least +attained service: short TCP flows pass long ones) and +[`p4-pifo-edf`](examples.md) (earliest deadline first) compare the PIFO with two +ways to serve the same ranks on a switch without PIFOs, side by side: + +- SP-PIFO [2] (`examples/p4src/pifo_approx/sp_pifo.p4`) maps the ranks to the + eight priority queues of `ns3::P4StrictPriorityScheduler`, with a bound per + queue that follows the ranks. +- AIFO [3] (`examples/p4src/pifo_approx/aifo.p4`) keeps one FIFO and drops, in the + ingress, the packets whose rank is large among the last 16 while the queue fills; + the egress tells the ingress the queue's length. + +Both are P4 controls that a program applies after it has computed the rank and +the egress port; `las.p4` and `edf.p4` include them. [1] A. Sivaraman et al., "Programmable Packet Scheduling at Line Rate", ACM SIGCOMM 2016. +[2] R. Alcoz, A. Dietmüller, L. Vanbever, "SP-PIFO: Approximating Push-In +First-Out Behaviors using Strict-Priority Queues", USENIX NSDI 2020. +[3] Z. Yu et al., "Programmable Packet Scheduling with a Single Queue", ACM +SIGCOMM 2021. ## Time and random numbers in the P4 program diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 7cdd16a..e66fc5d 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -166,6 +166,22 @@ build_lib_example( LIBRARIES_TO_LINK ${P4SIM_BASE_LIBS} ) +# Least attained service: short TCP flows pass long ones; FIFO, SP-PIFO, AIFO and +# PIFO side by side +build_lib_example( + NAME p4-pifo-las + SOURCE_FILES p4-pifo-las.cc + LIBRARIES_TO_LINK ${P4SIM_BASE_LIBS} +) + +# Earliest deadline first: three traffic classes with deadlines; FIFO, SP-PIFO, +# AIFO and PIFO side by side +build_lib_example( + NAME p4-pifo-edf + SOURCE_FILES p4-pifo-edf.cc + LIBRARIES_TO_LINK ${P4SIM_BASE_LIBS} +) + # What makes up the one-way delay through a P4 switch build_lib_example( NAME p4-latency diff --git a/examples/p4-pifo-edf.cc b/examples/p4-pifo-edf.cc new file mode 100644 index 0000000..28fceb2 --- /dev/null +++ b/examples/p4-pifo-edf.cc @@ -0,0 +1,151 @@ +/* + * Copyright (c) 2026 TU Dresden + * + * SPDX-License-Identifier: Apache-2.0 + * + * Authors: Mingyu Ma + */ + +/** + * Earliest deadline first (EDF) with a PIFO, and on switches without PIFOs: + * SP-PIFO and AIFO. + * + * host0 (class 0, deadline 1 ms) ──1 Gbps──┐ + * host1 (class 1, deadline 2 ms) ──1 Gbps──┼── P4 switch ──100 Mbps──> host3 + * host2 (class 2, deadline 4 ms) ──1 Gbps──┘ + * + * Each of hosts 0 to 2 sends a UDP flow to host3 with random times between the + * packets (Poisson arrivals), 15, 30 and 45 Mbps: the port to host3 is busy + * about 94 % of the time, and its queue grows and shrinks at random. The P4 + * program (edf.p4) gives each packet the rank EDF asks for: its arrival time + * plus the deadline of its class, the time by which it must leave the queue. + * The egress counts per class the packets that waited longer (late). + * + * The example builds this network four times, side by side in one simulation, + * with the same packets, and serves the ranks in four ways: + * FIFO the priority queues, all packets in queue 0: the ranks do nothing + * SP-PIFO the ranks go to the 8 priority queues by SP-PIFO (sp_pifo.p4) + * AIFO one FIFO; the ranks decide which packets enter it (aifo.p4) + * PIFO ns3::P4PifoScheduler: the smallest rank leaves first + * A packet misses its deadline if it is late or lost; it prints, per class, the + * share of the packets that missed it, and their time in the queue. + * + * What to expect: the FIFO makes every class wait alike, so class 0 misses + * most. EDF meets every deadline that can be met at all; when a burst makes + * that impossible, it spreads the misses over the classes. SP-PIFO's bounds + * settle into one class per priority, which is strict priority: classes 0 and + * 1 never miss, class 2 misses more than with EDF. AIFO reorders nothing: it + * drops class 2 when the queue grows, which shortens the wait of all classes a + * little. + */ + +#include "pifo-example.h" + +#include +#include +#include +#include +#include + +using namespace ns3; +using namespace p4sim_example; + +NS_LOG_COMPONENT_DEFINE("P4PifoEdf"); + +namespace +{ + +const uint32_t BOTTLENECK = 3; ///< the port of the switch to host3 +const uint32_t CLASSES = 3; + +/// A class: its deadline is in the flow table (flowtable_0.txt) +struct TrafficClass +{ + double deadlineMs; ///< as in the flow table + const char* rate; ///< of its flow +}; + +const TrafficClass TRAFFIC_CLASSES[CLASSES] = {{1, "15Mbps"}, {2, "30Mbps"}, {4, "45Mbps"}}; + +} // namespace + +int +main(int argc, char* argv[]) +{ + double seconds = 2.0; + CommandLine cmd; + cmd.AddValue("seconds", "How long the flows send", seconds); + cmd.Parse(argc, argv); + NS_ABORT_MSG_IF(seconds <= 0, "--seconds must be above 0"); + + const Time start = Seconds(0.1); + std::vector nets; + std::vector> sent(std::size(RANK_SCHEDULERS), + std::vector(CLASSES)); + for (size_t n = 0; n < std::size(RANK_SCHEDULERS); n++) + { + nets.push_back(BuildPifoNetwork("edf", 4, RANK_SCHEDULERS[n], MicroSeconds(10))); + PifoNetwork& net = nets.back(); + for (uint32_t c = 0; c < CLASSES; c++) + { + uint16_t port = 5000 + c; // the class in the flow table + PacketSinkHelper sink("ns3::UdpSocketFactory", + InetSocketAddress(Ipv4Address::GetAny(), port)); + sink.Install(net.hosts.Get(3)); + // The same stream in every network: the same packets at the same times + Ptr source = + CreateObject(InetSocketAddress(net.interfaces.GetAddress(3), port), + DataRate(TRAFFIC_CLASSES[c].rate), + c, + &sent[n][c]); + net.hosts.Get(c)->AddApplication(source); + source->SetStartTime(start); + source->SetStopTime(start + Seconds(seconds)); + } + } + Simulator::Stop(start + Seconds(seconds + 0.5)); + Simulator::Run(); + + std::cout << "EDF: three UDP flows of 15, 30 and 45 Mbps into 100 Mbps, four switches " + "side by side\n\n" + << "scheduler class deadline sent missed: late lost share" + << " time in queue (ms): mean max\n"; + // missed[n][c]: the share of the packets of class c that missed the deadline + std::vector> missed(nets.size(), std::vector(CLASSES)); + for (size_t n = 0; n < nets.size(); n++) + { + for (uint32_t c = 0; c < CLASSES; c++) + { + Ptr sw = nets[n].sw; + uint64_t left = ReadP4Register(sw, "packets", c); + uint64_t late = ReadP4Register(sw, "late", c); + uint64_t lost = sent[n][c] - left; + missed[n][c] = sent[n][c] ? double(late + lost) / sent[n][c] : 0; + double mean = left ? ReadP4Register(sw, "queue_time", c) / 1e6 / left : 0; + std::cout << std::left << std::setw(11) << (c == 0 ? nets[n].scheduler.name : "") + << std::right << std::setw(5) << c << std::fixed << std::setprecision(0) + << std::setw(7) << TRAFFIC_CLASSES[c].deadlineMs << " ms" << std::setw(10) + << sent[n][c] << std::setw(15) << late << std::setw(7) << lost + << std::setprecision(1) << std::setw(7) << missed[n][c] * 100 << " %" + << std::setprecision(2) << std::setw(27) << mean << std::setw(8) + << ReadP4Register(sw, "max_queue_time", c) / 1e6 << "\n"; + } + } + Simulator::Destroy(); + + // The largest share of missed deadlines in a class + std::vector worst(nets.size()); + std::cout << "\nThe class that missed most:"; + for (size_t n = 0; n < nets.size(); n++) + { + worst[n] = *std::max_element(missed[n].begin(), missed[n].end()); + std::cout << (n ? ", " : " ") << nets[n].scheduler.name << " " << std::setprecision(1) + << worst[n] * 100 << " %"; + } + std::cout << "\n"; + + // FIFO 0, SP-PIFO 1, AIFO 2, PIFO 3 + return Check(worst[3] * 2 < worst[0] && worst[1] < worst[0] && worst[2] < worst[0], + "the class that missed most missed less than half as often with the PIFO as " + "with the FIFO, and less often with SP-PIFO and with AIFO"); +} diff --git a/examples/p4-pifo-las.cc b/examples/p4-pifo-las.cc new file mode 100644 index 0000000..14397dd --- /dev/null +++ b/examples/p4-pifo-las.cc @@ -0,0 +1,237 @@ +/* + * Copyright (c) 2026 TU Dresden + * + * SPDX-License-Identifier: Apache-2.0 + * + * Authors: Mingyu Ma + */ + +/** + * Least attained service (LAS) with a PIFO, and on switches without PIFOs: + * SP-PIFO and AIFO. + * + * host0 (long flow) ──1 Gbps──┐ + * host1 (long flow) ──1 Gbps──┤ + * host2 (short flows) ──1 Gbps──┼── P4 switch ──100 Mbps──> host4 (10.1.1.5) + * host3 (short flows) ──1 Gbps──┘ + * + * host0 and host1 each send a long TCP flow to host4, which keeps the queue of + * the bottleneck full. From 0.5 s on, host2 and host3 start short TCP flows of + * 10 to 100 KB to host4, at random times (Poisson arrivals). The P4 program + * (las.p4) gives each packet the rank LAS asks for: the bytes that its flow sent + * before it. Short flows thus pass the long ones, without the switch knowing how + * long a flow is. + * + * The example builds this network four times, side by side in one simulation, + * with the same flows, and serves the ranks in four ways: + * FIFO the priority queues, all packets in queue 0: the ranks do nothing + * SP-PIFO the ranks go to the 8 priority queues by SP-PIFO (sp_pifo.p4) + * AIFO one FIFO; the ranks decide which packets enter it (aifo.p4) + * PIFO ns3::P4PifoScheduler: the smallest rank leaves first + * It prints the flow completion time (FCT) of the short flows, from the start of + * the sender (the TCP handshake included) until the last byte reached host4, and + * the goodput of the long flows while short flows arrive. + * + * What to expect: behind the full FIFO, a short flow waits about 15 ms per round + * trip. SP-PIFO's priority queues come close to the PIFO. AIFO keeps the queue + * short for the short flows, but it reorders nothing: it drops. LAS ranks only + * grow, so a long flow's own earlier packets have the smaller ranks, and AIFO + * drops the long flow, its retransmissions too, whenever the queue holds more + * than an eighth of its capacity. Each lost retransmission costs TCP a timeout + * (200 ms): the long flows lose much of their goodput, and a short flow that + * loses one takes over 200 ms. + */ + +#include "pifo-example.h" + +#include +#include +#include +#include +#include + +using namespace ns3; +using namespace p4sim_example; + +NS_LOG_COMPONENT_DEFINE("P4PifoLas"); + +namespace +{ + +const uint32_t BOTTLENECK = 4; ///< the port of the switch to host4 + +/// A short flow +struct ShortFlow +{ + Time start; ///< when its sender starts + uint32_t sender; ///< host2 or host3 + uint32_t bytes; ///< its length + uint64_t received{0}; ///< bytes that reached host4 + Time done; ///< when the last byte reached host4 (zero until then) +}; + +void +ShortFlowRx(ShortFlow* flow, Ptr packet, const Address&) +{ + flow->received += packet->GetSize(); + if (flow->received >= flow->bytes && flow->done.IsZero()) + { + flow->done = Simulator::Now(); + } +} + +/// What a network measured +struct LasResult +{ + std::vector flows; ///< its short flows + Ptr longSinks[2]; ///< the receivers of the long flows + uint64_t longAtStart[2]{0, 0}; ///< their bytes when the short flows begin + double longMbps{0}; ///< goodput of the long flows while short flows arrive +}; + +/// The FCTs of the short flows that finished, in ms, sorted +std::vector +CompletionTimes(const std::vector& flows) +{ + std::vector fcts; + for (const ShortFlow& f : flows) + { + if (!f.done.IsZero()) + { + fcts.push_back((f.done - f.start).GetSeconds() * 1000); + } + } + std::sort(fcts.begin(), fcts.end()); + return fcts; +} + +} // namespace + +int +main(int argc, char* argv[]) +{ + // Linux's minimum retransmission timeout, and its first one for a SYN. Large + // buffers, as in p4-codel: with the default 128 KB, ns-3's TCP that lost many + // packets of one window has no new data to send, and repairs one loss per timeout + Config::SetDefault("ns3::TcpSocket::SegmentSize", UintegerValue(1448)); + Config::SetDefault("ns3::TcpSocket::SndBufSize", UintegerValue(4 << 20)); + Config::SetDefault("ns3::TcpSocket::RcvBufSize", UintegerValue(4 << 20)); + Config::SetDefault("ns3::TcpSocketBase::MinRto", TimeValue(MilliSeconds(200))); + Config::SetDefault("ns3::TcpSocket::ConnTimeout", TimeValue(Seconds(1))); + + double seconds = 2.0; + double arrivals = 25; + CommandLine cmd; + cmd.AddValue("seconds", "How long short flows arrive", seconds); + cmd.AddValue("arrivals", "Short flows per second, from host2 and host3 together", arrivals); + cmd.Parse(argc, argv); + NS_ABORT_MSG_IF(seconds <= 0 || arrivals <= 0, "--seconds and --arrivals must be above 0"); + + // The short flows: the same for every network + const Time firstShort = Seconds(0.5); // the long flows have filled the queue + const Time lastShort = firstShort + Seconds(seconds); + std::vector shortFlows; + Ptr gap = CreateObject(); + gap->SetStream(1); + Ptr pick = CreateObject(); + pick->SetStream(2); + for (Time t = firstShort + Seconds(gap->GetValue(1 / arrivals, 0)); t < lastShort; + t += Seconds(gap->GetValue(1 / arrivals, 0))) + { + uint32_t sender = 2 + pick->GetInteger(0, 1); + uint32_t bytes = pick->GetInteger(10, 100) * 1000; + shortFlows.push_back({t, sender, bytes}); + } + + std::vector nets; + std::vector results(std::size(RANK_SCHEDULERS)); + for (size_t n = 0; n < std::size(RANK_SCHEDULERS); n++) + { + nets.push_back(BuildPifoNetwork("las", 5, RANK_SCHEDULERS[n], MicroSeconds(10))); + const PifoNetwork& net = nets.back(); + LasResult& result = results[n]; + Ipv4Address to = net.interfaces.GetAddress(4); + + for (uint32_t f = 0; f < 2; f++) + { + uint16_t port = 5000 + f; + PacketSinkHelper sink("ns3::TcpSocketFactory", + InetSocketAddress(Ipv4Address::GetAny(), port)); + result.longSinks[f] = DynamicCast(sink.Install(net.hosts.Get(4)).Get(0)); + BulkSendHelper source("ns3::TcpSocketFactory", InetSocketAddress(to, port)); + ApplicationContainer app = source.Install(net.hosts.Get(f)); + app.Start(Seconds(0.05)); + app.Stop(lastShort); + } + + result.flows = shortFlows; + for (size_t i = 0; i < result.flows.size(); i++) + { + ShortFlow& flow = result.flows[i]; + uint16_t port = 6000 + i; + PacketSinkHelper sink("ns3::TcpSocketFactory", + InetSocketAddress(Ipv4Address::GetAny(), port)); + ApplicationContainer sinkApp = sink.Install(net.hosts.Get(4)); + sinkApp.Get(0)->TraceConnectWithoutContext("Rx", + MakeBoundCallback(&ShortFlowRx, &flow)); + BulkSendHelper source("ns3::TcpSocketFactory", InetSocketAddress(to, port)); + source.SetAttribute("MaxBytes", UintegerValue(flow.bytes)); + ApplicationContainer app = source.Install(net.hosts.Get(flow.sender)); + app.Start(flow.start); + } + + // The goodput of the long flows while short flows arrive + Simulator::Schedule(firstShort, [&result]() { + for (uint32_t f = 0; f < 2; f++) + { + result.longAtStart[f] = result.longSinks[f]->GetTotalRx(); + } + }); + Simulator::Schedule(lastShort, [&result, seconds]() { + uint64_t bytes = 0; + for (uint32_t f = 0; f < 2; f++) + { + bytes += result.longSinks[f]->GetTotalRx() - result.longAtStart[f]; + } + result.longMbps = bytes * 8.0 / seconds / 1e6; + }); + } + // The last short flows have a second to finish + Simulator::Stop(lastShort + Seconds(1)); + Simulator::Run(); + + std::cout << "LAS: 2 long TCP flows and " << shortFlows.size() + << " short ones (10-100 KB) into 100 Mbps, four switches side by side\n\n" + << "scheduler short flows done FCT (ms): mean median max" + << " long flows (Mbps) dropped: queue AIFO\n"; + std::vector meanFct(nets.size()); + bool allDone = true; + for (size_t n = 0; n < nets.size(); n++) + { + std::vector fcts = CompletionTimes(results[n].flows); + allDone &= fcts.size() == shortFlows.size(); + double sum = 0; + for (double f : fcts) + { + sum += f; + } + meanFct[n] = fcts.empty() ? 0 : sum / fcts.size(); + std::cout << std::left << std::setw(12) << nets[n].scheduler.name << std::right + << std::setw(8) << fcts.size() << " of " << std::setw(3) << shortFlows.size() + << std::fixed << std::setprecision(1) << std::setw(17) << meanFct[n] + << std::setw(9) << (fcts.empty() ? 0 : fcts[fcts.size() / 2]) << std::setw(9) + << (fcts.empty() ? 0 : fcts.back()) << std::setw(20) << results[n].longMbps + << std::setw(17) << QueueDrops(nets[n]) << std::setw(7) + << AifoDrops(nets[n], BOTTLENECK) << "\n"; + } + std::cout << "\nSP-PIFO pushed its bounds down " + << ReadP4Register(nets[1].sw, "sp_pifo_push_downs", BOTTLENECK) + << " times (a packet with a rank below all bounds)\n"; + Simulator::Destroy(); + + // FIFO 0, SP-PIFO 1, AIFO 2, PIFO 3 + return Check(allDone && meanFct[3] * 4 < meanFct[0] && meanFct[1] < meanFct[3] * 2 && + meanFct[2] < meanFct[0], + "all short flows finished; their mean FCT with the PIFO is below a quarter " + "of the FIFO's, with SP-PIFO below twice the PIFO's, with AIFO below the FIFO's"); +} diff --git a/examples/p4-pifo-stfq.cc b/examples/p4-pifo-stfq.cc index f51442c..a39139e 100644 --- a/examples/p4-pifo-stfq.cc +++ b/examples/p4-pifo-stfq.cc @@ -30,23 +30,13 @@ * a third each. */ -#include "example-check.h" - -#include "ns3/applications-module.h" -#include "ns3/core-module.h" -#include "ns3/format-utils.h" -#include "ns3/internet-module.h" -#include "ns3/network-module.h" -#include "ns3/p4-core-v1model.h" -#include "ns3/p4-helper.h" -#include "ns3/p4-switch-net-device.h" -#include "ns3/switched-ethernet-channel.h" -#include "ns3/switched-ethernet-helper.h" +#include "pifo-example.h" #include #include using namespace ns3; +using namespace p4sim_example; NS_LOG_COMPONENT_DEFINE("P4PifoStfq"); @@ -57,61 +47,11 @@ namespace struct Flow { uint32_t weight; ///< its weight in the flow table - uint32_t sent{0}; ///< packets sent + uint64_t sent{0}; ///< packets sent uint64_t rxBytes{0}; ///< bytes received in the measurement window uint32_t received{0}; ///< packets received, in all }; -/// Sends UDP packets of 1000 bytes with random times between them (Poisson arrivals) -class PoissonSource : public Application -{ - public: - PoissonSource(const Address& to, DataRate rate, int64_t stream, Flow* flow) - : m_to(to), - m_meanInterval(rate.CalculateBytesTxTime(PACKET_SIZE)), - m_flow(flow), - m_interval(CreateObject()) - { - m_interval->SetStream(stream); - } - - private: - static constexpr uint32_t PACKET_SIZE = 1000; ///< bytes, UDP payload - - void StartApplication() override - { - m_socket = Socket::CreateSocket(GetNode(), UdpSocketFactory::GetTypeId()); - m_socket->Connect(m_to); - ScheduleNext(); - } - - void StopApplication() override - { - m_next.Cancel(); - m_socket->Close(); - } - - void ScheduleNext() - { - Time wait = Seconds(m_interval->GetValue(m_meanInterval.GetSeconds(), 0)); - m_next = Simulator::Schedule(wait, &PoissonSource::Send, this); - } - - void Send() - { - m_socket->Send(Create(PACKET_SIZE)); - m_flow->sent++; - ScheduleNext(); - } - - Address m_to; ///< destination - Time m_meanInterval; ///< mean time between two packets - Flow* m_flow; ///< counts the packets - Ptr m_interval; ///< time between two packets - Ptr m_socket; ///< UDP socket - EventId m_next; ///< the next packet -}; - /// The measurement window: after the start, until the senders stop Time g_measureFrom; Time g_measureTo; @@ -126,38 +66,6 @@ Received(Flow* flow, Ptr packet, const Address&) } } -/// Fills the ARP caches of the hosts with each other's addresses: the P4 -/// program forwards IPv4 only, so ARP requests would go nowhere -void -FillArpCaches(const Ipv4InterfaceContainer& interfaces) -{ - for (uint32_t i = 0; i < interfaces.GetN(); i++) - { - auto [ipv4, ifIndex] = interfaces.Get(i); - Ptr cache = - DynamicCast(ipv4)->GetInterface(ifIndex)->GetArpCache(); - for (uint32_t j = 0; j < interfaces.GetN(); j++) - { - if (i != j) - { - ArpCache::Entry* entry = cache->Add(interfaces.GetAddress(j)); - entry->SetMacAddress( - interfaces.Get(j).first->GetNetDevice(interfaces.Get(j).second)->GetAddress()); - entry->MarkPermanent(); - } - } - } -} - -/// Entry \p index of register \p name of the switch -uint64_t -Register(Ptr sw, const std::string& name, size_t index) -{ - bm::Data value; - sw->GetCore()->register_read(0, name, index, &value); - return value.get(); -} - } // namespace int @@ -177,36 +85,13 @@ main(int argc, char* argv[]) "--scheduler must be pifo or strict"); bool pifo = scheduler == "pifo"; - std::string p4Dir = GetP4ExamplePath() + "/stfq"; - NodeContainer hosts; - hosts.Create(4); - Ptr switchNode = CreateObject(); - - P4Helper p4; - p4.SetDeviceAttribute("JsonPath", StringValue(p4Dir + "/stfq.json")); - p4.SetDeviceAttribute("FlowTablePath", StringValue(p4Dir + "/flowtable_0.txt")); - p4.SetDeviceAttribute("P4SwitchArch", UintegerValue(P4SWITCH_ARCH_V1MODEL)); - p4.SetDeviceAttribute( - "QueueScheduler", - StringValue(pifo ? "ns3::P4PifoScheduler" : "ns3::P4StrictPriorityScheduler")); - Ptr sw = DynamicCast(p4.Install(switchNode).Get(0)); - - SwitchedEthernetHelper eth; - eth.SetChannelAttribute("DataRate", StringValue("1Gbps")); - eth.SetChannelAttribute("Delay", StringValue("1us")); - NetDeviceContainer devices = eth.Install(sw, hosts); - // The link to host 3 is the bottleneck - sw->GetPortChannel(3)->SetAttribute("DataRate", DataRateValue(DataRate("100Mbps"))); - - InternetStackHelper internet; - internet.Install(hosts); - Ipv4AddressHelper ipv4; - ipv4.SetBase("10.1.1.0", "255.255.255.0"); - Ipv4InterfaceContainer interfaces = ipv4.Assign(devices); - FillArpCaches(interfaces); - // The switch loads its flow table now; without PIFOs, the ranks mean nothing - sw->Initialize(); + PifoNetwork net = BuildPifoNetwork( + "stfq", + 4, + {scheduler.c_str(), pifo ? "ns3::P4PifoScheduler" : "ns3::P4StrictPriorityScheduler", 0}, + MicroSeconds(1)); + Ptr sw = net.sw; if (!pifo) { sw->GetCore()->mt_clear_entries(0, "MyIngress.flow_weight", false); @@ -221,15 +106,15 @@ main(int argc, char* argv[]) uint16_t port = 5000 + f; PacketSinkHelper sink("ns3::UdpSocketFactory", InetSocketAddress(Ipv4Address::GetAny(), port)); - ApplicationContainer sinkApp = sink.Install(hosts.Get(3)); + ApplicationContainer sinkApp = sink.Install(net.hosts.Get(3)); sinkApp.Get(0)->TraceConnectWithoutContext("Rx", MakeBoundCallback(&Received, &flows[f])); Ptr source = - CreateObject(InetSocketAddress(interfaces.GetAddress(3), port), + CreateObject(InetSocketAddress(net.interfaces.GetAddress(3), port), DataRate(rate), f, - &flows[f]); - hosts.Get(f)->AddApplication(source); + &flows[f].sent); + net.hosts.Get(f)->AddApplication(source); source->SetStartTime(start); source->SetStopTime(start + Seconds(seconds)); } @@ -262,15 +147,15 @@ main(int argc, char* argv[]) << " %" << std::setw(8) << expected * 100 << " %"; if (pifo) { - std::cout << std::setw(18) << Register(sw, "ahead_drops", f); + std::cout << std::setw(18) << ReadP4Register(sw, "ahead_drops", f); failed |= std::abs(share - expected) > 0.05 * expected; } std::cout << "\n"; } if (pifo) { - std::cout << "\nThe PIFO dropped " << sw->GetV1ModelCore()->GetQueueScheduler()->GetDrops() - << " packets; virtual time at the end: " << Register(sw, "virtual_time", 0) + std::cout << "\nThe PIFO dropped " << QueueDrops(net) + << " packets; virtual time at the end: " << ReadP4Register(sw, "virtual_time", 0) << "\n"; } Simulator::Destroy(); @@ -278,5 +163,5 @@ main(int argc, char* argv[]) { return 0; // a FIFO: the shares follow the arrival rates } - return p4sim_example::Check(!failed, "the flows got the shares of their weights, within 5 %"); + return Check(!failed, "the flows got the shares of their weights, within 5 %"); } diff --git a/examples/p4src/edf/edf.json b/examples/p4src/edf/edf.json new file mode 100644 index 0000000..3736ce2 --- /dev/null +++ b/examples/p4src/edf/edf.json @@ -0,0 +1,10162 @@ +{ + "header_types" : [ + { + "name" : "scalars_0", + "id" : 0, + "fields" : [ + ["tmp_1", 32, false], + ["tmp_2", 32, false], + ["tmp_3", 32, false], + ["tmp_4", 32, false], + ["tmp_5", 32, false], + ["tmp_6", 32, false], + ["tmp_7", 32, false], + ["tmp_8", 32, false], + ["tmp_9", 32, false], + ["tmp_10", 32, false], + ["tmp_11", 64, false], + ["tmp_12", 32, false], + ["tmp_13", 64, false], + ["tmp_14", 32, false], + ["tmp_15", 64, false], + ["tmp_16", 32, false], + ["tmp_17", 64, false], + ["tmp_18", 32, false], + ["tmp_19", 64, false], + ["tmp_20", 32, false], + ["tmp_21", 64, false], + ["tmp_22", 32, false], + ["tmp_23", 64, false], + ["tmp_24", 32, false], + ["tmp_25", 32, false], + ["tmp_26", 32, false], + ["tmp_27", 32, false], + ["tmp_28", 32, false], + ["tmp_29", 32, false], + ["tmp_30", 32, false], + ["tmp_31", 32, false], + ["tmp_32", 32, false], + ["tmp_33", 32, false], + ["tmp_34", 32, false], + ["tmp_35", 32, false], + ["tmp_36", 32, false], + ["tmp_37", 32, false], + ["tmp_38", 32, false], + ["tmp_39", 32, false], + ["tmp_40", 32, false], + ["tmp_41", 32, false], + ["tmp_42", 32, false], + ["tmp_43", 32, false], + ["tmp_44", 32, false], + ["tmp_45", 32, false], + ["tmp_46", 32, false], + ["tmp_47", 32, false], + ["tmp_48", 32, false], + ["tmp_49", 32, false], + ["tmp_50", 32, false], + ["tmp_51", 32, false], + ["tmp_52", 32, false], + ["tmp_53", 32, false], + ["tmp_54", 32, false], + ["tmp_55", 32, false], + ["tmp_56", 32, false], + ["mode_0", 8, false], + ["tmp", 1, false], + ["tmp_0", 1, false], + ["sp_pifo_b0", 64, false], + ["sp_pifo_b1", 64, false], + ["sp_pifo_b2", 64, false], + ["sp_pifo_b3", 64, false], + ["sp_pifo_b4", 64, false], + ["sp_pifo_b5", 64, false], + ["sp_pifo_b6", 64, false], + ["sp_pifo_b7", 64, false], + ["sp_pifo_n", 32, false], + ["aifo_port", 32, false], + ["aifo_smaller", 32, false], + ["aifo_w", 64, false], + ["aifo_next_0", 32, false], + ["aifo_c", 32, false], + ["aifo_n", 32, false], + ["tmp_57", 32, false], + ["tmp_58", 32, false], + ["tmp_59", 64, false], + ["tmp_60", 64, false], + ["tmp_61", 64, false], + ["n_0", 64, false], + ["longest_0", 32, false], + ["metadata_t.rank", 64, false], + ["metadata_t.class", 32, false], + ["metadata_t.deadline", 32, false], + ["_padding_0", 6, false] + ] + }, + { + "name" : "standard_metadata", + "id" : 1, + "fields" : [ + ["ingress_port", 9, false], + ["egress_spec", 9, false], + ["egress_port", 9, false], + ["instance_type", 32, 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], + ["egress_global_timestamp", 48, false], + ["mcast_grp", 16, false], + ["egress_rid", 16, false], + ["checksum_error", 1, false], + ["parser_error", 32, false], + ["priority", 3, false], + ["lag_hash", 16, false], + ["_padding", 3, false] + ] + }, + { + "name" : "ethernet_t", + "id" : 2, + "fields" : [ + ["dstAddr", 48, false], + ["srcAddr", 48, false], + ["etherType", 16, false] + ] + }, + { + "name" : "ipv4_t", + "id" : 3, + "fields" : [ + ["version", 4, false], + ["ihl", 4, false], + ["diffserv", 8, false], + ["totalLen", 16, false], + ["identification", 16, false], + ["flags", 3, false], + ["fragOffset", 13, false], + ["ttl", 8, false], + ["protocol", 8, false], + ["hdrChecksum", 16, false], + ["srcAddr", 32, false], + ["dstAddr", 32, false] + ] + }, + { + "name" : "udp_t", + "id" : 4, + "fields" : [ + ["srcPort", 16, false], + ["dstPort", 16, false], + ["length", 16, false], + ["checksum", 16, 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" : "ethernet", + "id" : 2, + "header_type" : "ethernet_t", + "metadata" : false, + "pi_omit" : true + }, + { + "name" : "ipv4", + "id" : 3, + "header_type" : "ipv4_t", + "metadata" : false, + "pi_omit" : true + }, + { + "name" : "udp", + "id" : 4, + "header_type" : "udp_t", + "metadata" : false, + "pi_omit" : true + } + ], + "header_stacks" : [], + "header_union_types" : [], + "header_unions" : [], + "header_union_stacks" : [], + "field_lists" : [], + "errors" : [ + ["NoError", 0], + ["PacketTooShort", 1], + ["NoMatch", 2], + ["StackOutOfBounds", 3], + ["HeaderTooShort", 4], + ["ParserTimeout", 5], + ["ParserInvalidArgument", 6] + ], + "enums" : [], + "parsers" : [ + { + "name" : "parser", + "id" : 0, + "init_state" : "start", + "parse_states" : [ + { + "name" : "start", + "id" : 0, + "parser_ops" : [ + { + "parameters" : [ + { + "type" : "regular", + "value" : "ethernet" + } + ], + "op" : "extract" + } + ], + "transitions" : [ + { + "type" : "hexstr", + "value" : "0x0800", + "mask" : null, + "next_state" : "parse_ipv4" + }, + { + "type" : "default", + "value" : null, + "mask" : null, + "next_state" : null + } + ], + "transition_key" : [ + { + "type" : "field", + "value" : ["ethernet", "etherType"] + } + ] + }, + { + "name" : "parse_ipv4", + "id" : 1, + "parser_ops" : [ + { + "parameters" : [ + { + "type" : "regular", + "value" : "ipv4" + } + ], + "op" : "extract" + } + ], + "transitions" : [ + { + "type" : "hexstr", + "value" : "0x11", + "mask" : null, + "next_state" : "parse_udp" + }, + { + "type" : "default", + "value" : null, + "mask" : null, + "next_state" : null + } + ], + "transition_key" : [ + { + "type" : "field", + "value" : ["ipv4", "protocol"] + } + ] + }, + { + "name" : "parse_udp", + "id" : 2, + "parser_ops" : [ + { + "parameters" : [ + { + "type" : "regular", + "value" : "udp" + } + ], + "op" : "extract" + } + ], + "transitions" : [ + { + "type" : "default", + "value" : null, + "mask" : null, + "next_state" : null + } + ], + "transition_key" : [] + } + ] + } + ], + "parse_vsets" : [], + "deparsers" : [ + { + "name" : "deparser", + "id" : 0, + "source_info" : { + "filename" : "edf.p4", + "line" : 174, + "column" : 8, + "source_fragment" : "MyDeparser" + }, + "order" : ["ethernet", "ipv4", "udp"], + "primitives" : [] + } + ], + "meter_arrays" : [], + "counter_arrays" : [], + "register_arrays" : [ + { + "name" : "sp_pifo_bounds", + "id" : 0, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 26, + "column" : 37, + "source_fragment" : "sp_pifo_bounds" + }, + "size" : 128, + "bitwidth" : 64 + }, + { + "name" : "sp_pifo_push_downs", + "id" : 1, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 27, + "column" : 33, + "source_fragment" : "sp_pifo_push_downs" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "aifo_window", + "id" : 2, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 23, + "column" : 35, + "source_fragment" : "aifo_window" + }, + "size" : 256, + "bitwidth" : 64 + }, + { + "name" : "aifo_next", + "id" : 3, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 24, + "column" : 30, + "source_fragment" : "aifo_next" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "aifo_queue", + "id" : 4, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 25, + "column" : 30, + "source_fragment" : "aifo_queue" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "aifo_drops", + "id" : 5, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 26, + "column" : 30, + "source_fragment" : "aifo_drops" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "approximation", + "id" : 6, + "source_info" : { + "filename" : "edf.p4", + "line" : 64, + "column" : 20, + "source_fragment" : "approximation" + }, + "size" : 1, + "bitwidth" : 8 + }, + { + "name" : "packets", + "id" : 7, + "source_info" : { + "filename" : "edf.p4", + "line" : 65, + "column" : 27, + "source_fragment" : "packets" + }, + "size" : 4, + "bitwidth" : 64 + }, + { + "name" : "late", + "id" : 8, + "source_info" : { + "filename" : "edf.p4", + "line" : 66, + "column" : 27, + "source_fragment" : "late" + }, + "size" : 4, + "bitwidth" : 64 + }, + { + "name" : "queue_time", + "id" : 9, + "source_info" : { + "filename" : "edf.p4", + "line" : 67, + "column" : 27, + "source_fragment" : "queue_time" + }, + "size" : 4, + "bitwidth" : 64 + }, + { + "name" : "max_queue_time", + "id" : 10, + "source_info" : { + "filename" : "edf.p4", + "line" : 68, + "column" : 27, + "source_fragment" : "max_queue_time" + }, + "size" : 4, + "bitwidth" : 32 + } + ], + "calculations" : [], + "learn_lists" : [], + "actions" : [ + { + "name" : "NoAction", + "id" : 0, + "runtime_data" : [], + "primitives" : [] + }, + { + "name" : "MyIngress.drop", + "id" : 1, + "runtime_data" : [], + "primitives" : [ + { + "op" : "mark_to_drop", + "parameters" : [ + { + "type" : "header", + "value" : "standard_metadata" + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 102, + "column" : 8, + "source_fragment" : "mark_to_drop(std)" + } + } + ] + }, + { + "name" : "MyIngress.drop", + "id" : 2, + "runtime_data" : [], + "primitives" : [ + { + "op" : "mark_to_drop", + "parameters" : [ + { + "type" : "header", + "value" : "standard_metadata" + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 102, + "column" : 8, + "source_fragment" : "mark_to_drop(std)" + } + } + ] + }, + { + "name" : "MyIngress.forward", + "id" : 3, + "runtime_data" : [ + { + "name" : "port", + "bitwidth" : 9 + } + ], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + { + "type" : "runtime_data", + "value" : 0 + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 105, + "column" : 8, + "source_fragment" : "std.egress_spec = port" + } + } + ] + }, + { + "name" : "MyIngress.set_deadline", + "id" : 4, + "runtime_data" : [ + { + "name" : "c", + "bitwidth" : 32 + }, + { + "name" : "ns", + "bitwidth" : 32 + } + ], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + { + "type" : "runtime_data", + "value" : 0 + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 115, + "column" : 8, + "source_fragment" : "meta.class = c" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "metadata_t.deadline"] + }, + { + "type" : "runtime_data", + "value" : 1 + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 116, + "column" : 8, + "source_fragment" : "meta.deadline = ns" + } + } + ] + }, + { + "name" : "edf132", + "id" : 5, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_0"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "b2d", + "left" : null, + "right" : { + "type" : "bool", + "value" : true + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 33, + "source_fragment" : "deadline.apply().hit" + } + } + ] + }, + { + "name" : "edf132_0", + "id" : 6, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_0"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "b2d", + "left" : null, + "right" : { + "type" : "bool", + "value" : false + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 33, + "source_fragment" : "deadline.apply().hit" + } + } + ] + }, + { + "name" : "edf132_1", + "id" : 7, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "b2d", + "left" : null, + "right" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["scalars", "tmp_0"] + } + } + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 33, + "source_fragment" : "deadline.apply().hit" + } + } + ] + }, + { + "name" : "edf132_2", + "id" : 8, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "b2d", + "left" : null, + "right" : { + "type" : "bool", + "value" : false + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 12, + "source_fragment" : "hdr.udp.isValid() && deadline.apply().hit" + } + } + ] + }, + { + "name" : "edf131", + "id" : 9, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + { + "type" : "hexstr", + "value" : "0x00000004" + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 22, + "column" : 24, + "source_fragment" : "4; ..." + } + } + ] + }, + { + "name" : "edf133", + "id" : 10, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "ingress_global_timestamp"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.deadline"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 133, + "column" : 12, + "source_fragment" : "meta.rank = (bit<64>) std.ingress_global_timestamp + (bit<64>) meta.deadline" + } + } + ] + }, + { + "name" : "sp_pifo54", + "id" : 11, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x00" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 26, + "source_fragment" : "std.priority = 7 - 7" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_1"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 69, + "source_fragment" : "base + 7" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_1"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 48, + "source_fragment" : "sp_pifo_bounds.write(base + 7, rank)" + } + } + ] + }, + { + "name" : "sp_pifo55", + "id" : 12, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x01" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 31, + "source_fragment" : "std.priority = 7 - 6" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_2"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 74, + "source_fragment" : "base + 6" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_2"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 6, rank)" + } + } + ] + }, + { + "name" : "sp_pifo56", + "id" : 13, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x02" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 31, + "source_fragment" : "std.priority = 7 - 5" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_3"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 74, + "source_fragment" : "base + 5" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_3"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 5, rank)" + } + } + ] + }, + { + "name" : "sp_pifo57", + "id" : 14, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x03" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 31, + "source_fragment" : "std.priority = 7 - 4" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_4"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 74, + "source_fragment" : "base + 4" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_4"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 4, rank)" + } + } + ] + }, + { + "name" : "sp_pifo58", + "id" : 15, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x04" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 31, + "source_fragment" : "std.priority = 7 - 3" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_5"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 74, + "source_fragment" : "base + 3" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_5"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 3, rank)" + } + } + ] + }, + { + "name" : "sp_pifo59", + "id" : 16, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x05" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 31, + "source_fragment" : "std.priority = 7 - 2" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_6"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 74, + "source_fragment" : "base + 2" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_6"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 2, rank)" + } + } + ] + }, + { + "name" : "sp_pifo60", + "id" : 17, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x06" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 31, + "source_fragment" : "std.priority = 7 - 1" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_7"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 74, + "source_fragment" : "base + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_7"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 1, rank)" + } + } + ] + }, + { + "name" : "sp_pifo61", + "id" : 18, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x07" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 31, + "source_fragment" : "std.priority = 7 - 0" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_8"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 74, + "source_fragment" : "base" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_8"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 0, rank)" + } + } + ] + }, + { + "name" : "sp_pifo65", + "id" : 19, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x07" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 65, + "column" : 12, + "source_fragment" : "std.priority = 7" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_9"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 66, + "column" : 33, + "source_fragment" : "base" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_9"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 66, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base, rank)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_10"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 67, + "column" : 33, + "source_fragment" : "base + 1" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_11"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b1"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 67, + "column" : 43, + "source_fragment" : "b1 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_10"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_11"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 67, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 1, b1 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_12"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 68, + "column" : 33, + "source_fragment" : "base + 2" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_13"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b2"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 68, + "column" : 43, + "source_fragment" : "b2 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_12"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_13"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 68, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 2, b2 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_14"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 69, + "column" : 33, + "source_fragment" : "base + 3" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_15"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b3"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 69, + "column" : 43, + "source_fragment" : "b3 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_14"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_15"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 69, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 3, b3 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_16"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 70, + "column" : 33, + "source_fragment" : "base + 4" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_17"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b4"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 70, + "column" : 43, + "source_fragment" : "b4 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_16"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_17"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 70, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 4, b4 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_18"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 71, + "column" : 33, + "source_fragment" : "base + 5" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_19"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b5"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 71, + "column" : 43, + "source_fragment" : "b5 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_18"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_19"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 71, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 5, b5 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_20"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 72, + "column" : 33, + "source_fragment" : "base + 6" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_21"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b6"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 72, + "column" : 43, + "source_fragment" : "b6 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_20"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_21"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 72, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 6, b6 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_22"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 73, + "column" : 33, + "source_fragment" : "base + 7" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_23"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b7"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 73, + "column" : 43, + "source_fragment" : "b7 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_22"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_23"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 73, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 7, b7 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_24"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 75, + "column" : 39, + "source_fragment" : "port" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_n"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_push_downs" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_24"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 75, + "column" : 12, + "source_fragment" : "sp_pifo_push_downs.read(n, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_25"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 76, + "column" : 37, + "source_fragment" : "port" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_26"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_n"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 76, + "column" : 43, + "source_fragment" : "n + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_push_downs" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_25"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_26"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 76, + "column" : 12, + "source_fragment" : "sp_pifo_push_downs.write(port, n + 1)" + } + } + ] + }, + { + "name" : "sp_pifo45", + "id" : 20, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_27"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 45, + "column" : 32, + "source_fragment" : "base" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_27"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b0, base)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_28"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 46, + "column" : 32, + "source_fragment" : "base + 1" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b1"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_28"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 46, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b1, base + 1)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_29"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 47, + "column" : 32, + "source_fragment" : "base + 2" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b2"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_29"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 47, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b2, base + 2)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_30"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 48, + "column" : 32, + "source_fragment" : "base + 3" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b3"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_30"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 48, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b3, base + 3)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_31"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 49, + "column" : 32, + "source_fragment" : "base + 4" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b4"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_31"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 49, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b4, base + 4)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_32"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 50, + "column" : 32, + "source_fragment" : "base + 5" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b5"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_32"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 50, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b5, base + 5)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_33"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 51, + "column" : 32, + "source_fragment" : "base + 6" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b6"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_33"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 51, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b6, base + 6)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_34"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 52, + "column" : 32, + "source_fragment" : "base + 7" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b7"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_34"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 52, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b7, base + 7)" + } + } + ] + }, + { + "name" : "aifo44", + "id" : 21, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "hexstr", + "value" : "0x00000001" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 55, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo42", + "id" : 22, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "hexstr", + "value" : "0x00000000" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 42, + "column" : 16, + "source_fragment" : "smaller = 0" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_35"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 28, + "source_fragment" : "base" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_35"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 0)" + } + } + ] + }, + { + "name" : "aifo44_0", + "id" : 23, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 127, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo44_1", + "id" : 24, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_36"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 100, + "source_fragment" : "base + 1" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_36"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 1)" + } + } + ] + }, + { + "name" : "aifo44_2", + "id" : 25, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 199, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo44_3", + "id" : 26, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_37"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 172, + "source_fragment" : "base + 2" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_37"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 2)" + } + } + ] + }, + { + "name" : "aifo44_4", + "id" : 27, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 271, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo44_5", + "id" : 28, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_38"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 244, + "source_fragment" : "base + 3" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_38"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 3)" + } + } + ] + }, + { + "name" : "aifo45", + "id" : 29, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 55, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_0", + "id" : 30, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_39"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 28, + "source_fragment" : "base + 4" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_39"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 4)" + } + } + ] + }, + { + "name" : "aifo45_1", + "id" : 31, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 127, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_2", + "id" : 32, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_40"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 100, + "source_fragment" : "base + 5" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_40"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 5)" + } + } + ] + }, + { + "name" : "aifo45_3", + "id" : 33, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 199, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_4", + "id" : 34, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_41"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 172, + "source_fragment" : "base + 6" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_41"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 6)" + } + } + ] + }, + { + "name" : "aifo45_5", + "id" : 35, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 271, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_6", + "id" : 36, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_42"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 244, + "source_fragment" : "base + 7" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_42"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 7)" + } + } + ] + }, + { + "name" : "aifo46", + "id" : 37, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 55, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_0", + "id" : 38, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_43"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000008" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 28, + "source_fragment" : "base + 8" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_43"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 8)" + } + } + ] + }, + { + "name" : "aifo46_1", + "id" : 39, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 127, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_2", + "id" : 40, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_44"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000009" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 100, + "source_fragment" : "base + 9" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_44"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 9)" + } + } + ] + }, + { + "name" : "aifo46_3", + "id" : 41, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 200, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_4", + "id" : 42, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_45"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000a" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 172, + "source_fragment" : "base + 10" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_45"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 10)" + } + } + ] + }, + { + "name" : "aifo46_5", + "id" : 43, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 273, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_6", + "id" : 44, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_46"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000b" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 245, + "source_fragment" : "base + 11" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_46"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 225, + "source_fragment" : "aifo_window.read(w, base + 11)" + } + } + ] + }, + { + "name" : "aifo47", + "id" : 45, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 56, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_0", + "id" : 46, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_47"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000c" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 28, + "source_fragment" : "base + 12" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_47"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 12)" + } + } + ] + }, + { + "name" : "aifo47_1", + "id" : 47, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 129, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_2", + "id" : 48, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_48"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000d" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 101, + "source_fragment" : "base + 13" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_48"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 81, + "source_fragment" : "aifo_window.read(w, base + 13)" + } + } + ] + }, + { + "name" : "aifo47_3", + "id" : 49, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 202, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_4", + "id" : 50, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_49"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000e" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 174, + "source_fragment" : "base + 14" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_49"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 154, + "source_fragment" : "aifo_window.read(w, base + 14)" + } + } + ] + }, + { + "name" : "aifo47_5", + "id" : 51, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 275, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_6", + "id" : 52, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_50"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000f" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 247, + "source_fragment" : "base + 15" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_50"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 227, + "source_fragment" : "aifo_window.read(w, base + 15)" + } + } + ] + }, + { + "name" : "aifo60", + "id" : 53, + "runtime_data" : [], + "primitives" : [ + { + "op" : "mark_to_drop", + "parameters" : [ + { + "type" : "header", + "value" : "standard_metadata" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 60, + "column" : 12, + "source_fragment" : "mark_to_drop(std)" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_n"] + }, + { + "type" : "register_array", + "value" : "aifo_drops" + }, + { + "type" : "field", + "value" : ["scalars", "aifo_port"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 62, + "column" : 12, + "source_fragment" : "aifo_drops.read(n, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_51"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_n"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 63, + "column" : 35, + "source_fragment" : "n + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_drops" + }, + { + "type" : "field", + "value" : ["scalars", "aifo_port"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_51"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 63, + "column" : 12, + "source_fragment" : "aifo_drops.write(port, n + 1)" + } + } + ] + }, + { + "name" : "aifo49", + "id" : 54, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_52"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 49, + "column" : 29, + "source_fragment" : "port" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_next_0"] + }, + { + "type" : "register_array", + "value" : "aifo_next" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_52"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 49, + "column" : 8, + "source_fragment" : "aifo_next.read(next, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_53"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "field", + "value" : ["scalars", "aifo_next_0"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 50, + "column" : 26, + "source_fragment" : "base + next" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_53"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 50, + "column" : 8, + "source_fragment" : "aifo_window.write(base + next, rank)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_54"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 51, + "column" : 24, + "source_fragment" : "port" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_55"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_next_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000f" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 51, + "column" : 30, + "source_fragment" : "(next + 1) & 15" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_next" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_54"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_55"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 51, + "column" : 8, + "source_fragment" : "aifo_next.write(port, (next + 1) & 15)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_56"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 54, + "column" : 27, + "source_fragment" : "port" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_c"] + }, + { + "type" : "register_array", + "value" : "aifo_queue" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_56"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 54, + "column" : 8, + "source_fragment" : "aifo_queue.read(c, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x00" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 55, + "column" : 8, + "source_fragment" : "std.priority = 0" + } + } + ] + }, + { + "name" : "aifo37", + "id" : 55, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_port"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 37, + "column" : 16, + "source_fragment" : "port = (bit<32>) std.egress_spec" + } + } + ] + }, + { + "name" : "edf136", + "id" : 56, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "mode_0"] + }, + { + "type" : "register_array", + "value" : "approximation" + }, + { + "type" : "hexstr", + "value" : "0x00000000" + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 136, + "column" : 8, + "source_fragment" : "approximation.read(mode, 0)" + } + } + ] + }, + { + "name" : "aifo71", + "id" : 57, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_57"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_port"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 29, + "source_fragment" : "(bit<32>) std.egress_port" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_58"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "deq_qdepth"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 56, + "source_fragment" : "(bit<32>) std.deq_qdepth" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_queue" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_57"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_58"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 12, + "source_fragment" : "aifo_queue.write((bit<32>) std.egress_port, (bit<32>) std.deq_qdepth)" + } + } + ] + }, + { + "name" : "edf156", + "id" : 58, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "n_0"] + }, + { + "type" : "register_array", + "value" : "late" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 156, + "column" : 16, + "source_fragment" : "late.read(n, meta.class)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_59"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "n_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000000000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 157, + "column" : 39, + "source_fragment" : "n + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "late" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_59"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 157, + "column" : 16, + "source_fragment" : "late.write(meta.class, n + 1)" + } + } + ] + }, + { + "name" : "edf153", + "id" : 59, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "n_0"] + }, + { + "type" : "register_array", + "value" : "packets" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 153, + "column" : 12, + "source_fragment" : "packets.read(n, meta.class)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_60"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "n_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000000000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 154, + "column" : 38, + "source_fragment" : "n + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "packets" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_60"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 154, + "column" : 12, + "source_fragment" : "packets.write(meta.class, n + 1)" + } + } + ] + }, + { + "name" : "edf164", + "id" : 60, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "max_queue_time" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + { + "type" : "field", + "value" : ["standard_metadata", "deq_timedelta"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 164, + "column" : 16, + "source_fragment" : "max_queue_time.write(meta.class, std.deq_timedelta)" + } + } + ] + }, + { + "name" : "edf159", + "id" : 61, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "n_0"] + }, + { + "type" : "register_array", + "value" : "queue_time" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 159, + "column" : 12, + "source_fragment" : "queue_time.read(n, meta.class)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_61"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "n_0"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "deq_timedelta"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 160, + "column" : 41, + "source_fragment" : "n + (bit<64>) std.deq_timedelta" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "queue_time" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_61"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 160, + "column" : 12, + "source_fragment" : "queue_time.write(meta.class, n + (bit<64>) std.deq_timedelta)" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "longest_0"] + }, + { + "type" : "register_array", + "value" : "max_queue_time" + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + } + ], + "source_info" : { + "filename" : "edf.p4", + "line" : 162, + "column" : 12, + "source_fragment" : "max_queue_time.read(longest, meta.class)" + } + } + ] + } + ], + "pipelines" : [ + { + "name" : "ingress", + "id" : 0, + "source_info" : { + "filename" : "edf.p4", + "line" : 96, + "column" : 8, + "source_fragment" : "MyIngress" + }, + "init_table" : "node_2", + "tables" : [ + { + "name" : "MyIngress.ipv4_route", + "id" : 0, + "source_info" : { + "filename" : "edf.p4", + "line" : 107, + "column" : 10, + "source_fragment" : "ipv4_route" + }, + "key" : [ + { + "match_type" : "exact", + "name" : "hdr.ipv4.dstAddr", + "target" : ["ipv4", "dstAddr"], + "mask" : null + } + ], + "match_type" : "exact", + "type" : "simple", + "max_size" : 64, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [3, 1], + "actions" : ["MyIngress.forward", "MyIngress.drop"], + "base_default_next" : "tbl_edf131", + "next_tables" : { + "MyIngress.forward" : "tbl_edf131", + "MyIngress.drop" : "tbl_edf131" + }, + "default_entry" : { + "action_id" : 1, + "action_const" : false, + "action_data" : [], + "action_entry_const" : false + } + }, + { + "name" : "tbl_edf131", + "id" : 1, + "source_info" : { + "filename" : "edf.p4", + "line" : 131, + "column" : 19, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [9], + "actions" : ["edf131"], + "base_default_next" : "node_5", + "next_tables" : { + "edf131" : "node_5" + }, + "default_entry" : { + "action_id" : 9, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "MyIngress.deadline", + "id" : 2, + "source_info" : { + "filename" : "edf.p4", + "line" : 118, + "column" : 10, + "source_fragment" : "deadline" + }, + "key" : [ + { + "match_type" : "exact", + "name" : "hdr.udp.dstPort", + "target" : ["udp", "dstPort"], + "mask" : null + } + ], + "match_type" : "exact", + "type" : "simple", + "max_size" : 16, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [4, 0], + "actions" : ["MyIngress.set_deadline", "NoAction"], + "base_default_next" : null, + "next_tables" : { + "__HIT__" : "tbl_edf132", + "__MISS__" : "tbl_edf132_0" + }, + "default_entry" : { + "action_id" : 0, + "action_const" : false, + "action_data" : [], + "action_entry_const" : false + } + }, + { + "name" : "tbl_edf132", + "id" : 3, + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 33, + "source_fragment" : "deadline.apply().hit" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [5], + "actions" : ["edf132"], + "base_default_next" : "tbl_edf132_1", + "next_tables" : { + "edf132" : "tbl_edf132_1" + }, + "default_entry" : { + "action_id" : 5, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf132_0", + "id" : 4, + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 33, + "source_fragment" : "deadline.apply().hit" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [6], + "actions" : ["edf132_0"], + "base_default_next" : "tbl_edf132_1", + "next_tables" : { + "edf132_0" : "tbl_edf132_1" + }, + "default_entry" : { + "action_id" : 6, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf132_1", + "id" : 5, + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 33, + "source_fragment" : "deadline.apply().hit" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [7], + "actions" : ["edf132_1"], + "base_default_next" : "node_11", + "next_tables" : { + "edf132_1" : "node_11" + }, + "default_entry" : { + "action_id" : 7, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf132_2", + "id" : 6, + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 12, + "source_fragment" : "hdr.udp.isValid() && deadline.apply().hit" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [8], + "actions" : ["edf132_2"], + "base_default_next" : "node_11", + "next_tables" : { + "edf132_2" : "node_11" + }, + "default_entry" : { + "action_id" : 8, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf133", + "id" : 7, + "source_info" : { + "filename" : "edf.p4", + "line" : 133, + "column" : 22, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [10], + "actions" : ["edf133"], + "base_default_next" : "tbl_edf136", + "next_tables" : { + "edf133" : "tbl_edf136" + }, + "default_entry" : { + "action_id" : 10, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf136", + "id" : 8, + "source_info" : { + "filename" : "edf.p4", + "line" : 136, + "column" : 8, + "source_fragment" : "approximation.read(mode, 0)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [56], + "actions" : ["edf136"], + "base_default_next" : "node_14", + "next_tables" : { + "edf136" : "node_14" + }, + "default_entry" : { + "action_id" : 56, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo45", + "id" : 9, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b0, base); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [20], + "actions" : ["sp_pifo45"], + "base_default_next" : "node_17", + "next_tables" : { + "sp_pifo45" : "node_17" + }, + "default_entry" : { + "action_id" : 20, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo54", + "id" : 10, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 39, + "source_fragment" : "= 7 - 7; sp_pifo_bounds.write(base + 7, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [11], + "actions" : ["sp_pifo54"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo54" : null + }, + "default_entry" : { + "action_id" : 11, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo55", + "id" : 11, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 44, + "source_fragment" : "= 7 - 6; sp_pifo_bounds.write(base + 6, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [12], + "actions" : ["sp_pifo55"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo55" : null + }, + "default_entry" : { + "action_id" : 12, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo56", + "id" : 12, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 44, + "source_fragment" : "= 7 - 5; sp_pifo_bounds.write(base + 5, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [13], + "actions" : ["sp_pifo56"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo56" : null + }, + "default_entry" : { + "action_id" : 13, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo57", + "id" : 13, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 44, + "source_fragment" : "= 7 - 4; sp_pifo_bounds.write(base + 4, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [14], + "actions" : ["sp_pifo57"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo57" : null + }, + "default_entry" : { + "action_id" : 14, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo58", + "id" : 14, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 44, + "source_fragment" : "= 7 - 3; sp_pifo_bounds.write(base + 3, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [15], + "actions" : ["sp_pifo58"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo58" : null + }, + "default_entry" : { + "action_id" : 15, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo59", + "id" : 15, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 44, + "source_fragment" : "= 7 - 2; sp_pifo_bounds.write(base + 2, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [16], + "actions" : ["sp_pifo59"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo59" : null + }, + "default_entry" : { + "action_id" : 16, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo60", + "id" : 16, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 44, + "source_fragment" : "= 7 - 1; sp_pifo_bounds.write(base + 1, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [17], + "actions" : ["sp_pifo60"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo60" : null + }, + "default_entry" : { + "action_id" : 17, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo61", + "id" : 17, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 44, + "source_fragment" : "= 7 - 0; sp_pifo_bounds.write(base + 0, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [18], + "actions" : ["sp_pifo61"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo61" : null + }, + "default_entry" : { + "action_id" : 18, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo65", + "id" : 18, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 65, + "column" : 25, + "source_fragment" : "= 7; ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [19], + "actions" : ["sp_pifo65"], + "base_default_next" : null, + "next_tables" : { + "sp_pifo65" : null + }, + "default_entry" : { + "action_id" : 19, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo37", + "id" : 19, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 37, + "column" : 16, + "source_fragment" : "port" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [55], + "actions" : ["aifo37"], + "base_default_next" : "node_36", + "next_tables" : { + "aifo37" : "node_36" + }, + "default_entry" : { + "action_id" : 55, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo42", + "id" : 20, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 42, + "column" : 16, + "source_fragment" : "smaller = 0; ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [22], + "actions" : ["aifo42"], + "base_default_next" : "node_38", + "next_tables" : { + "aifo42" : "node_38" + }, + "default_entry" : { + "action_id" : 22, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44", + "id" : 21, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 63, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [21], + "actions" : ["aifo44"], + "base_default_next" : "tbl_aifo44_0", + "next_tables" : { + "aifo44" : "tbl_aifo44_0" + }, + "default_entry" : { + "action_id" : 21, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_0", + "id" : 22, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 1)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [24], + "actions" : ["aifo44_1"], + "base_default_next" : "node_41", + "next_tables" : { + "aifo44_1" : "node_41" + }, + "default_entry" : { + "action_id" : 24, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_1", + "id" : 23, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 135, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [23], + "actions" : ["aifo44_0"], + "base_default_next" : "tbl_aifo44_2", + "next_tables" : { + "aifo44_0" : "tbl_aifo44_2" + }, + "default_entry" : { + "action_id" : 23, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_2", + "id" : 24, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 2)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [26], + "actions" : ["aifo44_3"], + "base_default_next" : "node_44", + "next_tables" : { + "aifo44_3" : "node_44" + }, + "default_entry" : { + "action_id" : 26, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_3", + "id" : 25, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 207, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [25], + "actions" : ["aifo44_2"], + "base_default_next" : "tbl_aifo44_4", + "next_tables" : { + "aifo44_2" : "tbl_aifo44_4" + }, + "default_entry" : { + "action_id" : 25, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_4", + "id" : 26, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 3)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [28], + "actions" : ["aifo44_5"], + "base_default_next" : "node_47", + "next_tables" : { + "aifo44_5" : "node_47" + }, + "default_entry" : { + "action_id" : 28, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_5", + "id" : 27, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 279, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [27], + "actions" : ["aifo44_4"], + "base_default_next" : "tbl_aifo45", + "next_tables" : { + "aifo44_4" : "tbl_aifo45" + }, + "default_entry" : { + "action_id" : 27, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45", + "id" : 28, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 4)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [30], + "actions" : ["aifo45_0"], + "base_default_next" : "node_50", + "next_tables" : { + "aifo45_0" : "node_50" + }, + "default_entry" : { + "action_id" : 30, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_0", + "id" : 29, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 63, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [29], + "actions" : ["aifo45"], + "base_default_next" : "tbl_aifo45_1", + "next_tables" : { + "aifo45" : "tbl_aifo45_1" + }, + "default_entry" : { + "action_id" : 29, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_1", + "id" : 30, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 5)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [32], + "actions" : ["aifo45_2"], + "base_default_next" : "node_53", + "next_tables" : { + "aifo45_2" : "node_53" + }, + "default_entry" : { + "action_id" : 32, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_2", + "id" : 31, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 135, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [31], + "actions" : ["aifo45_1"], + "base_default_next" : "tbl_aifo45_3", + "next_tables" : { + "aifo45_1" : "tbl_aifo45_3" + }, + "default_entry" : { + "action_id" : 31, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_3", + "id" : 32, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 6)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [34], + "actions" : ["aifo45_4"], + "base_default_next" : "node_56", + "next_tables" : { + "aifo45_4" : "node_56" + }, + "default_entry" : { + "action_id" : 34, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_4", + "id" : 33, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 207, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [33], + "actions" : ["aifo45_3"], + "base_default_next" : "tbl_aifo45_5", + "next_tables" : { + "aifo45_3" : "tbl_aifo45_5" + }, + "default_entry" : { + "action_id" : 33, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_5", + "id" : 34, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 7)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [36], + "actions" : ["aifo45_6"], + "base_default_next" : "node_59", + "next_tables" : { + "aifo45_6" : "node_59" + }, + "default_entry" : { + "action_id" : 36, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_6", + "id" : 35, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 279, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [35], + "actions" : ["aifo45_5"], + "base_default_next" : "tbl_aifo46", + "next_tables" : { + "aifo45_5" : "tbl_aifo46" + }, + "default_entry" : { + "action_id" : 35, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46", + "id" : 36, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 8)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [38], + "actions" : ["aifo46_0"], + "base_default_next" : "node_62", + "next_tables" : { + "aifo46_0" : "node_62" + }, + "default_entry" : { + "action_id" : 38, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_0", + "id" : 37, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 63, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [37], + "actions" : ["aifo46"], + "base_default_next" : "tbl_aifo46_1", + "next_tables" : { + "aifo46" : "tbl_aifo46_1" + }, + "default_entry" : { + "action_id" : 37, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_1", + "id" : 38, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 9)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [40], + "actions" : ["aifo46_2"], + "base_default_next" : "node_65", + "next_tables" : { + "aifo46_2" : "node_65" + }, + "default_entry" : { + "action_id" : 40, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_2", + "id" : 39, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 135, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [39], + "actions" : ["aifo46_1"], + "base_default_next" : "tbl_aifo46_3", + "next_tables" : { + "aifo46_1" : "tbl_aifo46_3" + }, + "default_entry" : { + "action_id" : 39, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_3", + "id" : 40, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 10)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [42], + "actions" : ["aifo46_4"], + "base_default_next" : "node_68", + "next_tables" : { + "aifo46_4" : "node_68" + }, + "default_entry" : { + "action_id" : 42, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_4", + "id" : 41, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 208, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [41], + "actions" : ["aifo46_3"], + "base_default_next" : "tbl_aifo46_5", + "next_tables" : { + "aifo46_3" : "tbl_aifo46_5" + }, + "default_entry" : { + "action_id" : 41, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_5", + "id" : 42, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 225, + "source_fragment" : "aifo_window.read(w, base + 11)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [44], + "actions" : ["aifo46_6"], + "base_default_next" : "node_71", + "next_tables" : { + "aifo46_6" : "node_71" + }, + "default_entry" : { + "action_id" : 44, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_6", + "id" : 43, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 281, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [43], + "actions" : ["aifo46_5"], + "base_default_next" : "tbl_aifo47", + "next_tables" : { + "aifo46_5" : "tbl_aifo47" + }, + "default_entry" : { + "action_id" : 43, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47", + "id" : 44, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 12)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [46], + "actions" : ["aifo47_0"], + "base_default_next" : "node_74", + "next_tables" : { + "aifo47_0" : "node_74" + }, + "default_entry" : { + "action_id" : 46, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_0", + "id" : 45, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 64, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [45], + "actions" : ["aifo47"], + "base_default_next" : "tbl_aifo47_1", + "next_tables" : { + "aifo47" : "tbl_aifo47_1" + }, + "default_entry" : { + "action_id" : 45, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_1", + "id" : 46, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 81, + "source_fragment" : "aifo_window.read(w, base + 13)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [48], + "actions" : ["aifo47_2"], + "base_default_next" : "node_77", + "next_tables" : { + "aifo47_2" : "node_77" + }, + "default_entry" : { + "action_id" : 48, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_2", + "id" : 47, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 137, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [47], + "actions" : ["aifo47_1"], + "base_default_next" : "tbl_aifo47_3", + "next_tables" : { + "aifo47_1" : "tbl_aifo47_3" + }, + "default_entry" : { + "action_id" : 47, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_3", + "id" : 48, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 154, + "source_fragment" : "aifo_window.read(w, base + 14)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [50], + "actions" : ["aifo47_4"], + "base_default_next" : "node_80", + "next_tables" : { + "aifo47_4" : "node_80" + }, + "default_entry" : { + "action_id" : 50, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_4", + "id" : 49, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 210, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [49], + "actions" : ["aifo47_3"], + "base_default_next" : "tbl_aifo47_5", + "next_tables" : { + "aifo47_3" : "tbl_aifo47_5" + }, + "default_entry" : { + "action_id" : 49, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_5", + "id" : 50, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 227, + "source_fragment" : "aifo_window.read(w, base + 15)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [52], + "actions" : ["aifo47_6"], + "base_default_next" : "node_83", + "next_tables" : { + "aifo47_6" : "node_83" + }, + "default_entry" : { + "action_id" : 52, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_6", + "id" : 51, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 283, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [51], + "actions" : ["aifo47_5"], + "base_default_next" : "tbl_aifo49", + "next_tables" : { + "aifo47_5" : "tbl_aifo49" + }, + "default_entry" : { + "action_id" : 51, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo49", + "id" : 52, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 49, + "column" : 8, + "source_fragment" : "aifo_next.read(next, port); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [54], + "actions" : ["aifo49"], + "base_default_next" : "node_86", + "next_tables" : { + "aifo49" : "node_86" + }, + "default_entry" : { + "action_id" : 54, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo60", + "id" : 53, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 60, + "column" : 12, + "source_fragment" : "mark_to_drop(std); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [53], + "actions" : ["aifo60"], + "base_default_next" : null, + "next_tables" : { + "aifo60" : null + }, + "default_entry" : { + "action_id" : 53, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_drop", + "id" : 54, + "source_info" : { + "filename" : "edf.p4", + "line" : 127, + "column" : 12, + "source_fragment" : "drop()" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [2], + "actions" : ["MyIngress.drop"], + "base_default_next" : null, + "next_tables" : { + "MyIngress.drop" : null + }, + "default_entry" : { + "action_id" : 2, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + } + ], + "action_profiles" : [], + "conditionals" : [ + { + "name" : "node_2", + "id" : 0, + "source_info" : { + "filename" : "edf.p4", + "line" : 126, + "column" : 13, + "source_fragment" : "hdr.ipv4.isValid()" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["ipv4", "$valid$"] + } + } + }, + "true_next" : "MyIngress.ipv4_route", + "false_next" : "tbl_drop" + }, + { + "name" : "node_5", + "id" : 1, + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 12, + "source_fragment" : "hdr.udp.isValid()" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["udp", "$valid$"] + } + } + }, + "true_next" : "MyIngress.deadline", + "false_next" : "tbl_edf132_2" + }, + { + "name" : "node_11", + "id" : 2, + "source_info" : { + "filename" : "edf.p4", + "line" : 132, + "column" : 12, + "source_fragment" : "hdr.udp.isValid() && deadline.apply().hit" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["scalars", "tmp"] + } + } + }, + "true_next" : "tbl_edf133", + "false_next" : "tbl_edf136" + }, + { + "name" : "node_14", + "id" : 3, + "source_info" : { + "filename" : "edf.p4", + "line" : 137, + "column" : 12, + "source_fragment" : "mode == 1" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "==", + "left" : { + "type" : "field", + "value" : ["scalars", "mode_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x01" + } + } + }, + "true_next" : "node_15", + "false_next" : "node_34" + }, + { + "name" : "node_15", + "id" : 4, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 39, + "column" : 12, + "source_fragment" : "port >= SP_PIFO_PORTS" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "true_next" : null, + "false_next" : "tbl_sp_pifo45" + }, + { + "name" : "node_17", + "id" : 5, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 12, + "source_fragment" : "rank >= b7" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b7"] + } + } + }, + "true_next" : "tbl_sp_pifo54", + "false_next" : "node_19" + }, + { + "name" : "node_19", + "id" : 6, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 17, + "source_fragment" : "rank >= b6" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b6"] + } + } + }, + "true_next" : "tbl_sp_pifo55", + "false_next" : "node_21" + }, + { + "name" : "node_21", + "id" : 7, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 17, + "source_fragment" : "rank >= b5" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b5"] + } + } + }, + "true_next" : "tbl_sp_pifo56", + "false_next" : "node_23" + }, + { + "name" : "node_23", + "id" : 8, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 17, + "source_fragment" : "rank >= b4" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b4"] + } + } + }, + "true_next" : "tbl_sp_pifo57", + "false_next" : "node_25" + }, + { + "name" : "node_25", + "id" : 9, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 17, + "source_fragment" : "rank >= b3" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b3"] + } + } + }, + "true_next" : "tbl_sp_pifo58", + "false_next" : "node_27" + }, + { + "name" : "node_27", + "id" : 10, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 17, + "source_fragment" : "rank >= b2" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b2"] + } + } + }, + "true_next" : "tbl_sp_pifo59", + "false_next" : "node_29" + }, + { + "name" : "node_29", + "id" : 11, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 17, + "source_fragment" : "rank >= b1" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b1"] + } + } + }, + "true_next" : "tbl_sp_pifo60", + "false_next" : "node_31" + }, + { + "name" : "node_31", + "id" : 12, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 17, + "source_fragment" : "rank >= b0" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + } + } + }, + "true_next" : "tbl_sp_pifo61", + "false_next" : "tbl_sp_pifo65" + }, + { + "name" : "node_34", + "id" : 13, + "source_info" : { + "filename" : "edf.p4", + "line" : 139, + "column" : 19, + "source_fragment" : "mode == 2" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "==", + "left" : { + "type" : "field", + "value" : ["scalars", "mode_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x02" + } + } + }, + "false_next" : null, + "true_next" : "tbl_aifo37" + }, + { + "name" : "node_36", + "id" : 14, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 38, + "column" : 12, + "source_fragment" : "port >= AIFO_PORTS" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "true_next" : null, + "false_next" : "tbl_aifo42" + }, + { + "name" : "node_38", + "id" : 15, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 43, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44", + "false_next" : "tbl_aifo44_0" + }, + { + "name" : "node_41", + "id" : 16, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 115, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44_1", + "false_next" : "tbl_aifo44_2" + }, + { + "name" : "node_44", + "id" : 17, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 187, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44_3", + "false_next" : "tbl_aifo44_4" + }, + { + "name" : "node_47", + "id" : 18, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 259, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44_5", + "false_next" : "tbl_aifo45" + }, + { + "name" : "node_50", + "id" : 19, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 43, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_0", + "false_next" : "tbl_aifo45_1" + }, + { + "name" : "node_53", + "id" : 20, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 115, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_2", + "false_next" : "tbl_aifo45_3" + }, + { + "name" : "node_56", + "id" : 21, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 187, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_4", + "false_next" : "tbl_aifo45_5" + }, + { + "name" : "node_59", + "id" : 22, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 259, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_6", + "false_next" : "tbl_aifo46" + }, + { + "name" : "node_62", + "id" : 23, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 43, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_0", + "false_next" : "tbl_aifo46_1" + }, + { + "name" : "node_65", + "id" : 24, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 115, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_2", + "false_next" : "tbl_aifo46_3" + }, + { + "name" : "node_68", + "id" : 25, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 188, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_4", + "false_next" : "tbl_aifo46_5" + }, + { + "name" : "node_71", + "id" : 26, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 261, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_6", + "false_next" : "tbl_aifo47" + }, + { + "name" : "node_74", + "id" : 27, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 44, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_0", + "false_next" : "tbl_aifo47_1" + }, + { + "name" : "node_77", + "id" : 28, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 117, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_2", + "false_next" : "tbl_aifo47_3" + }, + { + "name" : "node_80", + "id" : 29, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 190, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_4", + "false_next" : "tbl_aifo47_5" + }, + { + "name" : "node_83", + "id" : 30, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 263, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_6", + "false_next" : "tbl_aifo49" + }, + { + "name" : "node_86", + "id" : 31, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 58, + "column" : 12, + "source_fragment" : "c > AIFO_CAPACITY / 8 && ..." + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "and", + "left" : { + "type" : "expression", + "value" : { + "op" : ">", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_c"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "or", + "left" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_c"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000080" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : ">", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "*", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x7" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "hexstr", + "value" : "0x00000080" + }, + "right" : { + "type" : "field", + "value" : ["scalars", "aifo_c"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x7" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + } + } + } + } + }, + "false_next" : null, + "true_next" : "tbl_aifo60" + } + ] + }, + { + "name" : "egress", + "id" : 1, + "source_info" : { + "filename" : "edf.p4", + "line" : 145, + "column" : 8, + "source_fragment" : "MyEgress" + }, + "init_table" : "node_91", + "tables" : [ + { + "name" : "tbl_aifo71", + "id" : 55, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 12, + "source_fragment" : "aifo_queue.write((bit<32>) std.egress_port, (bit<32>) std.deq_qdepth)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [57], + "actions" : ["aifo71"], + "base_default_next" : "node_93", + "next_tables" : { + "aifo71" : "node_93" + }, + "default_entry" : { + "action_id" : 57, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf153", + "id" : 56, + "source_info" : { + "filename" : "edf.p4", + "line" : 153, + "column" : 12, + "source_fragment" : "packets.read(n, meta.class); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [59], + "actions" : ["edf153"], + "base_default_next" : "node_95", + "next_tables" : { + "edf153" : "node_95" + }, + "default_entry" : { + "action_id" : 59, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf156", + "id" : 57, + "source_info" : { + "filename" : "edf.p4", + "line" : 156, + "column" : 16, + "source_fragment" : "late.read(n, meta.class); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [58], + "actions" : ["edf156"], + "base_default_next" : "tbl_edf159", + "next_tables" : { + "edf156" : "tbl_edf159" + }, + "default_entry" : { + "action_id" : 58, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf159", + "id" : 58, + "source_info" : { + "filename" : "edf.p4", + "line" : 159, + "column" : 12, + "source_fragment" : "queue_time.read(n, meta.class); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [61], + "actions" : ["edf159"], + "base_default_next" : "node_98", + "next_tables" : { + "edf159" : "node_98" + }, + "default_entry" : { + "action_id" : 61, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_edf164", + "id" : 59, + "source_info" : { + "filename" : "edf.p4", + "line" : 164, + "column" : 16, + "source_fragment" : "max_queue_time.write(meta.class, std.deq_timedelta)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [60], + "actions" : ["edf164"], + "base_default_next" : null, + "next_tables" : { + "edf164" : null + }, + "default_entry" : { + "action_id" : 60, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + } + ], + "action_profiles" : [], + "conditionals" : [ + { + "name" : "node_91", + "id" : 32, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 70, + "column" : 12, + "source_fragment" : "(bit<32>) std.egress_port < AIFO_PORTS" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_port"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "true_next" : "tbl_aifo71", + "false_next" : "node_93" + }, + { + "name" : "node_93", + "id" : 33, + "source_info" : { + "filename" : "edf.p4", + "line" : 151, + "column" : 12, + "source_fragment" : "meta.class < CLASSES" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.class"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "false_next" : null, + "true_next" : "tbl_edf153" + }, + { + "name" : "node_95", + "id" : 34, + "source_info" : { + "filename" : "edf.p4", + "line" : 155, + "column" : 16, + "source_fragment" : "std.deq_timedelta > meta.deadline" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "deq_timedelta"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.deadline"] + } + } + }, + "true_next" : "tbl_edf156", + "false_next" : "tbl_edf159" + }, + { + "name" : "node_98", + "id" : 35, + "source_info" : { + "filename" : "edf.p4", + "line" : 163, + "column" : 16, + "source_fragment" : "std.deq_timedelta > longest" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "deq_timedelta"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "longest_0"] + } + } + }, + "false_next" : null, + "true_next" : "tbl_edf164" + } + ] + } + ], + "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.egress_global_timestamp", + ["standard_metadata", "egress_global_timestamp"] + ], + [ + "intrinsic_metadata.mcast_grp", + ["standard_metadata", "mcast_grp"] + ], + [ + "intrinsic_metadata.egress_rid", + ["standard_metadata", "egress_rid"] + ], + [ + "intrinsic_metadata.priority", + ["standard_metadata", "priority"] + ], + [ + "intrinsic_metadata.lag_hash", + ["standard_metadata", "lag_hash"] + ] + ], + "program" : "edf.p4", + "__meta__" : { + "version" : [2, 23], + "compiler" : "https://github.com/p4lang/p4c" + } +} \ No newline at end of file diff --git a/examples/p4src/edf/edf.p4 b/examples/p4src/edf/edf.p4 new file mode 100644 index 0000000..5985a43 --- /dev/null +++ b/examples/p4src/edf/edf.p4 @@ -0,0 +1,183 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2026 TU Dresden. Author: Mingyu Ma + +// Earliest deadline first (EDF) (example p4-pifo-edf). The rank of a packet is +// the time by which it must leave the queue: its arrival time plus the deadline +// of its traffic class, so the packet that is due first goes first. +// - deadline maps the UDP destination port to a class and its deadline, in ns +// (P4sim's timestamps are in nanoseconds). Other packets get rank 0. +// - The egress counts per class the packets, those that waited longer than +// their deadline (late), and their time in the queue. +// - meta.rank goes to ns3::P4PifoScheduler (RankField "rank"). The register +// approximation chooses how a switch without PIFOs uses the rank: +// 0: not at all (FIFO, or a PIFO), 1: SP-PIFO on the 8 priority queues, +// 2: AIFO on one FIFO (sp_pifo.p4, aifo.p4). + +#include +#include + +#include "../pifo_approx/sp_pifo.p4" +#include "../pifo_approx/aifo.p4" + +const bit<32> CLASSES = 4; + +header ethernet_t { + bit<48> dstAddr; + bit<48> srcAddr; + bit<16> etherType; +} + +header ipv4_t { + bit<4> version; + bit<4> ihl; + bit<8> diffserv; + bit<16> totalLen; + bit<16> identification; + bit<3> flags; + bit<13> fragOffset; + bit<8> ttl; + bit<8> protocol; + bit<16> hdrChecksum; + bit<32> srcAddr; + bit<32> dstAddr; +} + +header udp_t { + bit<16> srcPort; + bit<16> dstPort; + bit<16> length; + bit<16> checksum; +} + +struct headers_t { + ethernet_t ethernet; + ipv4_t ipv4; + udp_t udp; +} + +struct metadata_t { + bit<64> rank; // the switch reads it by its name (RankField "rank") + bit<32> class; // traffic class, CLASSES if none + bit<32> deadline; // ns +} + +register>(1) approximation; // 0: none, 1: SP-PIFO, 2: AIFO +register>(CLASSES) packets; // per class: packets that left the queue +register>(CLASSES) late; // per class: those that waited too long +register>(CLASSES) queue_time; // per class: their time in the queue, ns +register>(CLASSES) max_queue_time; // per class: the longest, ns + +parser MyParser(packet_in pkt, out headers_t hdr, inout metadata_t meta, + inout standard_metadata_t std) { + state start { + pkt.extract(hdr.ethernet); + transition select(hdr.ethernet.etherType) { + 0x0800: parse_ipv4; + default: accept; + } + } + state parse_ipv4 { + pkt.extract(hdr.ipv4); + transition select(hdr.ipv4.protocol) { + 17: parse_udp; + default: accept; + } + } + state parse_udp { + pkt.extract(hdr.udp); + transition accept; + } +} + +control MyVerifyChecksum(inout headers_t hdr, inout metadata_t meta) { + apply { } +} + +control MyIngress(inout headers_t hdr, inout metadata_t meta, + inout standard_metadata_t std) { + SpPifo() sp_pifo; + Aifo() aifo; + + action drop() { + mark_to_drop(std); + } + action forward(bit<9> port) { + std.egress_spec = port; + } + table ipv4_route { + key = { hdr.ipv4.dstAddr: exact; } + actions = { forward; drop; } + default_action = drop(); + size = 64; + } + + action set_deadline(bit<32> c, bit<32> ns) { + meta.class = c; + meta.deadline = ns; + } + table deadline { + key = { hdr.udp.dstPort: exact; } + actions = { set_deadline; NoAction; } + default_action = NoAction(); + size = 16; + } + + apply { + if (!hdr.ipv4.isValid()) { + drop(); + return; + } + ipv4_route.apply(); + meta.class = CLASSES; + if (hdr.udp.isValid() && deadline.apply().hit) { + meta.rank = (bit<64>) std.ingress_global_timestamp + (bit<64>) meta.deadline; + } + bit<8> mode; + approximation.read(mode, 0); + if (mode == 1) { + sp_pifo.apply(meta.rank, std); + } else if (mode == 2) { + aifo.apply(meta.rank, std); + } + } +} + +control MyEgress(inout headers_t hdr, inout metadata_t meta, + inout standard_metadata_t std) { + AifoEgress() aifo_egress; + + apply { + aifo_egress.apply(std); + if (meta.class < CLASSES) { + bit<64> n; + packets.read(n, meta.class); + packets.write(meta.class, n + 1); + if (std.deq_timedelta > meta.deadline) { + late.read(n, meta.class); + late.write(meta.class, n + 1); + } + queue_time.read(n, meta.class); + queue_time.write(meta.class, n + (bit<64>) std.deq_timedelta); + bit<32> longest; + max_queue_time.read(longest, meta.class); + if (std.deq_timedelta > longest) { + max_queue_time.write(meta.class, std.deq_timedelta); + } + } + } +} + +control MyComputeChecksum(inout headers_t hdr, inout metadata_t meta) { + apply { } +} + +control MyDeparser(packet_out pkt, in headers_t hdr) { + apply { + pkt.emit(hdr.ethernet); + pkt.emit(hdr.ipv4); + pkt.emit(hdr.udp); + } +} + +V1Switch(MyParser(), MyVerifyChecksum(), MyIngress(), MyEgress(), MyComputeChecksum(), + MyDeparser()) main; diff --git a/examples/p4src/edf/flowtable_0.txt b/examples/p4src/edf/flowtable_0.txt new file mode 100644 index 0000000..e13c0bb --- /dev/null +++ b/examples/p4src/edf/flowtable_0.txt @@ -0,0 +1,7 @@ +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.1 => 0 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.2 => 1 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.3 => 2 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.4 => 3 +table_add MyIngress.deadline MyIngress.set_deadline 5000 => 0 1000000 +table_add MyIngress.deadline MyIngress.set_deadline 5001 => 1 2000000 +table_add MyIngress.deadline MyIngress.set_deadline 5002 => 2 4000000 diff --git a/examples/p4src/las/flowtable_0.txt b/examples/p4src/las/flowtable_0.txt new file mode 100644 index 0000000..8a0fffe --- /dev/null +++ b/examples/p4src/las/flowtable_0.txt @@ -0,0 +1,5 @@ +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.1 => 0 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.2 => 1 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.3 => 2 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.4 => 3 +table_add MyIngress.ipv4_route MyIngress.forward 10.1.1.5 => 4 diff --git a/examples/p4src/las/las.json b/examples/p4src/las/las.json new file mode 100644 index 0000000..88bb073 --- /dev/null +++ b/examples/p4src/las/las.json @@ -0,0 +1,9513 @@ +{ + "header_types" : [ + { + "name" : "scalars_0", + "id" : 0, + "fields" : [ + ["tmp", 32, false], + ["tmp_0", 32, false], + ["tmp_1", 16, false], + ["tmp_2", 16, false], + ["tmp_3", 32, false], + ["tmp_4", 32, false], + ["tmp_5", 32, false], + ["tmp_6", 32, false], + ["tmp_7", 32, false], + ["tmp_8", 32, false], + ["tmp_9", 32, false], + ["tmp_10", 32, false], + ["tmp_11", 32, false], + ["tmp_12", 32, false], + ["tmp_13", 64, false], + ["tmp_14", 32, false], + ["tmp_15", 64, false], + ["tmp_16", 32, false], + ["tmp_17", 64, false], + ["tmp_18", 32, false], + ["tmp_19", 64, false], + ["tmp_20", 32, false], + ["tmp_21", 64, false], + ["tmp_22", 32, false], + ["tmp_23", 64, false], + ["tmp_24", 32, false], + ["tmp_25", 64, false], + ["tmp_26", 32, false], + ["tmp_27", 32, false], + ["tmp_28", 32, false], + ["tmp_29", 32, false], + ["tmp_30", 32, false], + ["tmp_31", 32, false], + ["tmp_32", 32, false], + ["tmp_33", 32, false], + ["tmp_34", 32, false], + ["tmp_35", 32, false], + ["tmp_36", 32, false], + ["tmp_37", 32, false], + ["tmp_38", 32, false], + ["tmp_39", 32, false], + ["tmp_40", 32, false], + ["tmp_41", 32, false], + ["tmp_42", 32, false], + ["tmp_43", 32, false], + ["tmp_44", 32, false], + ["tmp_45", 32, false], + ["tmp_46", 32, false], + ["tmp_47", 32, false], + ["tmp_48", 32, false], + ["tmp_49", 32, false], + ["tmp_50", 32, false], + ["tmp_51", 32, false], + ["tmp_52", 32, false], + ["tmp_53", 32, false], + ["tmp_54", 32, false], + ["tmp_55", 32, false], + ["tmp_56", 32, false], + ["tmp_57", 32, false], + ["tmp_58", 32, false], + ["tmp_59", 64, false], + ["flow_0", 32, false], + ["mode_0", 8, false], + ["sp_pifo_b0", 64, false], + ["sp_pifo_b1", 64, false], + ["sp_pifo_b2", 64, false], + ["sp_pifo_b3", 64, false], + ["sp_pifo_b4", 64, false], + ["sp_pifo_b5", 64, false], + ["sp_pifo_b6", 64, false], + ["sp_pifo_b7", 64, false], + ["sp_pifo_n", 32, false], + ["aifo_port", 32, false], + ["aifo_smaller", 32, false], + ["aifo_w", 64, false], + ["aifo_next_0", 32, false], + ["aifo_c", 32, false], + ["aifo_n", 32, false], + ["tmp_60", 32, false], + ["tmp_61", 32, false], + ["metadata_t.rank", 64, false] + ] + }, + { + "name" : "standard_metadata", + "id" : 1, + "fields" : [ + ["ingress_port", 9, false], + ["egress_spec", 9, false], + ["egress_port", 9, false], + ["instance_type", 32, 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], + ["egress_global_timestamp", 48, false], + ["mcast_grp", 16, false], + ["egress_rid", 16, false], + ["checksum_error", 1, false], + ["parser_error", 32, false], + ["priority", 3, false], + ["lag_hash", 16, false], + ["_padding", 3, false] + ] + }, + { + "name" : "ethernet_t", + "id" : 2, + "fields" : [ + ["dstAddr", 48, false], + ["srcAddr", 48, false], + ["etherType", 16, false] + ] + }, + { + "name" : "ipv4_t", + "id" : 3, + "fields" : [ + ["version", 4, false], + ["ihl", 4, false], + ["diffserv", 8, false], + ["totalLen", 16, false], + ["identification", 16, false], + ["flags", 3, false], + ["fragOffset", 13, false], + ["ttl", 8, false], + ["protocol", 8, false], + ["hdrChecksum", 16, false], + ["srcAddr", 32, false], + ["dstAddr", 32, false] + ] + }, + { + "name" : "tcp_t", + "id" : 4, + "fields" : [ + ["srcPort", 16, false], + ["dstPort", 16, false], + ["seqNo", 32, false], + ["ackNo", 32, false], + ["dataOffset", 4, false], + ["res", 4, false], + ["flags", 8, false], + ["window", 16, false], + ["checksum", 16, false], + ["urgentPtr", 16, 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" : "ethernet", + "id" : 2, + "header_type" : "ethernet_t", + "metadata" : false, + "pi_omit" : true + }, + { + "name" : "ipv4", + "id" : 3, + "header_type" : "ipv4_t", + "metadata" : false, + "pi_omit" : true + }, + { + "name" : "tcp", + "id" : 4, + "header_type" : "tcp_t", + "metadata" : false, + "pi_omit" : true + } + ], + "header_stacks" : [], + "header_union_types" : [], + "header_unions" : [], + "header_union_stacks" : [], + "field_lists" : [], + "errors" : [ + ["NoError", 0], + ["PacketTooShort", 1], + ["NoMatch", 2], + ["StackOutOfBounds", 3], + ["HeaderTooShort", 4], + ["ParserTimeout", 5], + ["ParserInvalidArgument", 6] + ], + "enums" : [], + "parsers" : [ + { + "name" : "parser", + "id" : 0, + "init_state" : "start", + "parse_states" : [ + { + "name" : "start", + "id" : 0, + "parser_ops" : [ + { + "parameters" : [ + { + "type" : "regular", + "value" : "ethernet" + } + ], + "op" : "extract" + } + ], + "transitions" : [ + { + "type" : "hexstr", + "value" : "0x0800", + "mask" : null, + "next_state" : "parse_ipv4" + }, + { + "type" : "default", + "value" : null, + "mask" : null, + "next_state" : null + } + ], + "transition_key" : [ + { + "type" : "field", + "value" : ["ethernet", "etherType"] + } + ] + }, + { + "name" : "parse_ipv4", + "id" : 1, + "parser_ops" : [ + { + "parameters" : [ + { + "type" : "regular", + "value" : "ipv4" + } + ], + "op" : "extract" + } + ], + "transitions" : [ + { + "type" : "hexstr", + "value" : "0x06", + "mask" : null, + "next_state" : "parse_tcp" + }, + { + "type" : "default", + "value" : null, + "mask" : null, + "next_state" : null + } + ], + "transition_key" : [ + { + "type" : "field", + "value" : ["ipv4", "protocol"] + } + ] + }, + { + "name" : "parse_tcp", + "id" : 2, + "parser_ops" : [ + { + "parameters" : [ + { + "type" : "regular", + "value" : "tcp" + } + ], + "op" : "extract" + } + ], + "transitions" : [ + { + "type" : "default", + "value" : null, + "mask" : null, + "next_state" : null + } + ], + "transition_key" : [] + } + ] + } + ], + "parse_vsets" : [], + "deparsers" : [ + { + "name" : "deparser", + "id" : 0, + "source_info" : { + "filename" : "las.p4", + "line" : 159, + "column" : 8, + "source_fragment" : "MyDeparser" + }, + "order" : ["ethernet", "ipv4", "tcp"], + "primitives" : [] + } + ], + "meter_arrays" : [], + "counter_arrays" : [], + "register_arrays" : [ + { + "name" : "sp_pifo_bounds", + "id" : 0, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 26, + "column" : 37, + "source_fragment" : "sp_pifo_bounds" + }, + "size" : 128, + "bitwidth" : 64 + }, + { + "name" : "sp_pifo_push_downs", + "id" : 1, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 27, + "column" : 33, + "source_fragment" : "sp_pifo_push_downs" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "aifo_window", + "id" : 2, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 23, + "column" : 35, + "source_fragment" : "aifo_window" + }, + "size" : 256, + "bitwidth" : 64 + }, + { + "name" : "aifo_next", + "id" : 3, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 24, + "column" : 30, + "source_fragment" : "aifo_next" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "aifo_queue", + "id" : 4, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 25, + "column" : 30, + "source_fragment" : "aifo_queue" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "aifo_drops", + "id" : 5, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 26, + "column" : 30, + "source_fragment" : "aifo_drops" + }, + "size" : 16, + "bitwidth" : 32 + }, + { + "name" : "attained", + "id" : 6, + "source_info" : { + "filename" : "las.p4", + "line" : 69, + "column" : 25, + "source_fragment" : "attained" + }, + "size" : 4096, + "bitwidth" : 64 + }, + { + "name" : "approximation", + "id" : 7, + "source_info" : { + "filename" : "las.p4", + "line" : 70, + "column" : 20, + "source_fragment" : "approximation" + }, + "size" : 1, + "bitwidth" : 8 + } + ], + "calculations" : [ + { + "name" : "calc", + "id" : 0, + "algo" : "crc32", + "input" : [ + { + "type" : "field", + "value" : ["scalars", "tmp"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_0"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_1"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_2"] + } + ] + } + ], + "learn_lists" : [], + "actions" : [ + { + "name" : "MyIngress.drop", + "id" : 0, + "runtime_data" : [], + "primitives" : [ + { + "op" : "mark_to_drop", + "parameters" : [ + { + "type" : "header", + "value" : "standard_metadata" + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 104, + "column" : 8, + "source_fragment" : "mark_to_drop(std)" + } + } + ] + }, + { + "name" : "MyIngress.drop", + "id" : 1, + "runtime_data" : [], + "primitives" : [ + { + "op" : "mark_to_drop", + "parameters" : [ + { + "type" : "header", + "value" : "standard_metadata" + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 104, + "column" : 8, + "source_fragment" : "mark_to_drop(std)" + } + } + ] + }, + { + "name" : "MyIngress.forward", + "id" : 2, + "runtime_data" : [ + { + "name" : "port", + "bitwidth" : 9 + } + ], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + { + "type" : "runtime_data", + "value" : 0 + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 107, + "column" : 8, + "source_fragment" : "std.egress_spec = port" + } + } + ] + }, + { + "name" : "las128", + "id" : 3, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + { + "type" : "register_array", + "value" : "attained" + }, + { + "type" : "field", + "value" : ["scalars", "flow_0"] + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 128, + "column" : 16, + "source_fragment" : "attained.read(meta.rank, flow)" + } + } + ] + }, + { + "name" : "las124", + "id" : 4, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp"] + }, + { + "type" : "field", + "value" : ["ipv4", "srcAddr"] + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 125, + "column" : 19, + "source_fragment" : "hdr.ipv4.srcAddr" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_0"] + }, + { + "type" : "field", + "value" : ["ipv4", "dstAddr"] + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 125, + "column" : 37, + "source_fragment" : "hdr.ipv4.dstAddr" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_1"] + }, + { + "type" : "field", + "value" : ["tcp", "srcPort"] + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 125, + "column" : 55, + "source_fragment" : "hdr.tcp.srcPort" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_2"] + }, + { + "type" : "field", + "value" : ["tcp", "dstPort"] + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 125, + "column" : 72, + "source_fragment" : "hdr.tcp.dstPort" + } + }, + { + "op" : "modify_field_with_hash_based_offset", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "flow_0"] + }, + { + "type" : "hexstr", + "value" : "0x00000000" + }, + { + "type" : "calculation", + "value" : "calc" + }, + { + "type" : "hexstr", + "value" : "0x00001000" + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 124, + "column" : 12, + "source_fragment" : "hash(flow, HashAlgorithm.crc32, (bit<32>) 0, ..." + } + } + ] + }, + { + "name" : "las122", + "id" : 5, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "flow_0"] + }, + { + "type" : "hexstr", + "value" : "0x00000000" + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 122, + "column" : 16, + "source_fragment" : "flow = 0" + } + } + ] + }, + { + "name" : "sp_pifo54", + "id" : 6, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x00" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 26, + "source_fragment" : "std.priority = 7 - 7" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_3"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 69, + "source_fragment" : "base + 7" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_3"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 48, + "source_fragment" : "sp_pifo_bounds.write(base + 7, rank)" + } + } + ] + }, + { + "name" : "sp_pifo55", + "id" : 7, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x01" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 31, + "source_fragment" : "std.priority = 7 - 6" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_4"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 74, + "source_fragment" : "base + 6" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_4"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 6, rank)" + } + } + ] + }, + { + "name" : "sp_pifo56", + "id" : 8, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x02" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 31, + "source_fragment" : "std.priority = 7 - 5" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_5"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 74, + "source_fragment" : "base + 5" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_5"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 5, rank)" + } + } + ] + }, + { + "name" : "sp_pifo57", + "id" : 9, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x03" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 31, + "source_fragment" : "std.priority = 7 - 4" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_6"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 74, + "source_fragment" : "base + 4" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_6"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 4, rank)" + } + } + ] + }, + { + "name" : "sp_pifo58", + "id" : 10, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x04" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 31, + "source_fragment" : "std.priority = 7 - 3" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_7"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 74, + "source_fragment" : "base + 3" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_7"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 3, rank)" + } + } + ] + }, + { + "name" : "sp_pifo59", + "id" : 11, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x05" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 31, + "source_fragment" : "std.priority = 7 - 2" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_8"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 74, + "source_fragment" : "base + 2" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_8"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 2, rank)" + } + } + ] + }, + { + "name" : "sp_pifo60", + "id" : 12, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x06" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 31, + "source_fragment" : "std.priority = 7 - 1" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_9"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 74, + "source_fragment" : "base + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_9"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 1, rank)" + } + } + ] + }, + { + "name" : "sp_pifo61", + "id" : 13, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x07" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 31, + "source_fragment" : "std.priority = 7 - 0" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_10"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 74, + "source_fragment" : "base" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_10"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 53, + "source_fragment" : "sp_pifo_bounds.write(base + 0, rank)" + } + } + ] + }, + { + "name" : "sp_pifo65", + "id" : 14, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x07" + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 65, + "column" : 12, + "source_fragment" : "std.priority = 7" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_11"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 66, + "column" : 33, + "source_fragment" : "base" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_11"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 66, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base, rank)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_12"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 67, + "column" : 33, + "source_fragment" : "base + 1" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_13"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b1"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 67, + "column" : 43, + "source_fragment" : "b1 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_12"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_13"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 67, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 1, b1 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_14"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 68, + "column" : 33, + "source_fragment" : "base + 2" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_15"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b2"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 68, + "column" : 43, + "source_fragment" : "b2 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_14"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_15"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 68, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 2, b2 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_16"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 69, + "column" : 33, + "source_fragment" : "base + 3" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_17"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b3"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 69, + "column" : 43, + "source_fragment" : "b3 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_16"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_17"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 69, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 3, b3 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_18"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 70, + "column" : 33, + "source_fragment" : "base + 4" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_19"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b4"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 70, + "column" : 43, + "source_fragment" : "b4 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_18"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_19"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 70, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 4, b4 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_20"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 71, + "column" : 33, + "source_fragment" : "base + 5" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_21"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b5"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 71, + "column" : 43, + "source_fragment" : "b5 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_20"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_21"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 71, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 5, b5 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_22"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 72, + "column" : 33, + "source_fragment" : "base + 6" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_23"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b6"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 72, + "column" : 43, + "source_fragment" : "b6 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_22"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_23"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 72, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 6, b6 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_24"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 73, + "column" : 33, + "source_fragment" : "base + 7" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_25"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b7"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 73, + "column" : 43, + "source_fragment" : "b7 - cost" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_24"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_25"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 73, + "column" : 12, + "source_fragment" : "sp_pifo_bounds.write(base + 7, b7 - cost)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_26"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 75, + "column" : 39, + "source_fragment" : "port" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_n"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_push_downs" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_26"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 75, + "column" : 12, + "source_fragment" : "sp_pifo_push_downs.read(n, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_27"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 76, + "column" : 37, + "source_fragment" : "port" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_28"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_n"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 76, + "column" : 43, + "source_fragment" : "n + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "sp_pifo_push_downs" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_27"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_28"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 76, + "column" : 12, + "source_fragment" : "sp_pifo_push_downs.write(port, n + 1)" + } + } + ] + }, + { + "name" : "sp_pifo45", + "id" : 15, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_29"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 45, + "column" : 32, + "source_fragment" : "base" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_29"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b0, base)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_30"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 46, + "column" : 32, + "source_fragment" : "base + 1" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b1"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_30"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 46, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b1, base + 1)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_31"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 47, + "column" : 32, + "source_fragment" : "base + 2" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b2"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_31"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 47, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b2, base + 2)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_32"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 48, + "column" : 32, + "source_fragment" : "base + 3" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b3"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_32"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 48, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b3, base + 3)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_33"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 49, + "column" : 32, + "source_fragment" : "base + 4" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b4"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_33"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 49, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b4, base + 4)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_34"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 50, + "column" : 32, + "source_fragment" : "base + 5" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b5"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_34"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 50, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b5, base + 5)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_35"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 51, + "column" : 32, + "source_fragment" : "base + 6" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b6"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_35"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 51, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b6, base + 6)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_36"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x3" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 52, + "column" : 32, + "source_fragment" : "base + 7" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "sp_pifo_b7"] + }, + { + "type" : "register_array", + "value" : "sp_pifo_bounds" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_36"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 52, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b7, base + 7)" + } + } + ] + }, + { + "name" : "aifo44", + "id" : 16, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "hexstr", + "value" : "0x00000001" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 55, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo42", + "id" : 17, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "hexstr", + "value" : "0x00000000" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 42, + "column" : 16, + "source_fragment" : "smaller = 0" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_37"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 28, + "source_fragment" : "base" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_37"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 0)" + } + } + ] + }, + { + "name" : "aifo44_0", + "id" : 18, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 127, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo44_1", + "id" : 19, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_38"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 100, + "source_fragment" : "base + 1" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_38"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 1)" + } + } + ] + }, + { + "name" : "aifo44_2", + "id" : 20, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 199, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo44_3", + "id" : 21, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_39"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000002" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 172, + "source_fragment" : "base + 2" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_39"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 2)" + } + } + ] + }, + { + "name" : "aifo44_4", + "id" : 22, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 271, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo44_5", + "id" : 23, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_40"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000003" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 244, + "source_fragment" : "base + 3" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_40"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 3)" + } + } + ] + }, + { + "name" : "aifo45", + "id" : 24, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 55, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_0", + "id" : 25, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_41"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000004" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 28, + "source_fragment" : "base + 4" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_41"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 4)" + } + } + ] + }, + { + "name" : "aifo45_1", + "id" : 26, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 127, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_2", + "id" : 27, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_42"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000005" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 100, + "source_fragment" : "base + 5" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_42"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 5)" + } + } + ] + }, + { + "name" : "aifo45_3", + "id" : 28, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 199, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_4", + "id" : 29, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_43"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000006" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 172, + "source_fragment" : "base + 6" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_43"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 6)" + } + } + ] + }, + { + "name" : "aifo45_5", + "id" : 30, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 271, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo45_6", + "id" : 31, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_44"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 244, + "source_fragment" : "base + 7" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_44"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 7)" + } + } + ] + }, + { + "name" : "aifo46", + "id" : 32, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 55, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_0", + "id" : 33, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_45"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000008" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 28, + "source_fragment" : "base + 8" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_45"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 8)" + } + } + ] + }, + { + "name" : "aifo46_1", + "id" : 34, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 127, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_2", + "id" : 35, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_46"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000009" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 100, + "source_fragment" : "base + 9" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_46"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 9)" + } + } + ] + }, + { + "name" : "aifo46_3", + "id" : 36, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 200, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_4", + "id" : 37, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_47"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000a" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 172, + "source_fragment" : "base + 10" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_47"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 10)" + } + } + ] + }, + { + "name" : "aifo46_5", + "id" : 38, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 273, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo46_6", + "id" : 39, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_48"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000b" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 245, + "source_fragment" : "base + 11" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_48"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 225, + "source_fragment" : "aifo_window.read(w, base + 11)" + } + } + ] + }, + { + "name" : "aifo47", + "id" : 40, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 56, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_0", + "id" : 41, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_49"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000c" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 28, + "source_fragment" : "base + 12" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_49"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 12)" + } + } + ] + }, + { + "name" : "aifo47_1", + "id" : 42, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 129, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_2", + "id" : 43, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_50"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000d" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 101, + "source_fragment" : "base + 13" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_50"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 81, + "source_fragment" : "aifo_window.read(w, base + 13)" + } + } + ] + }, + { + "name" : "aifo47_3", + "id" : 44, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 202, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_4", + "id" : 45, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_51"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000e" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 174, + "source_fragment" : "base + 14" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_51"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 154, + "source_fragment" : "aifo_window.read(w, base + 14)" + } + } + ] + }, + { + "name" : "aifo47_5", + "id" : 46, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 275, + "source_fragment" : "smaller = smaller + 1" + } + } + ] + }, + { + "name" : "aifo47_6", + "id" : 47, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_52"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000f" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 247, + "source_fragment" : "base + 15" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_52"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 227, + "source_fragment" : "aifo_window.read(w, base + 15)" + } + } + ] + }, + { + "name" : "aifo60", + "id" : 48, + "runtime_data" : [], + "primitives" : [ + { + "op" : "mark_to_drop", + "parameters" : [ + { + "type" : "header", + "value" : "standard_metadata" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 60, + "column" : 12, + "source_fragment" : "mark_to_drop(std)" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_n"] + }, + { + "type" : "register_array", + "value" : "aifo_drops" + }, + { + "type" : "field", + "value" : ["scalars", "aifo_port"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 62, + "column" : 12, + "source_fragment" : "aifo_drops.read(n, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_53"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_n"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 63, + "column" : 35, + "source_fragment" : "n + 1" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_drops" + }, + { + "type" : "field", + "value" : ["scalars", "aifo_port"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_53"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 63, + "column" : 12, + "source_fragment" : "aifo_drops.write(port, n + 1)" + } + } + ] + }, + { + "name" : "aifo49", + "id" : 49, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_54"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 49, + "column" : 29, + "source_fragment" : "port" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_next_0"] + }, + { + "type" : "register_array", + "value" : "aifo_next" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_54"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 49, + "column" : 8, + "source_fragment" : "aifo_next.read(next, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_55"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x4" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "field", + "value" : ["scalars", "aifo_next_0"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 50, + "column" : 26, + "source_fragment" : "base + next" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_window" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_55"] + }, + { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 50, + "column" : 8, + "source_fragment" : "aifo_window.write(base + next, rank)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_56"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 51, + "column" : 24, + "source_fragment" : "port" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_57"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_next_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000001" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x0000000f" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 51, + "column" : 30, + "source_fragment" : "(next + 1) & 15" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_next" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_56"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_57"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 51, + "column" : 8, + "source_fragment" : "aifo_next.write(port, (next + 1) & 15)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_58"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 54, + "column" : 27, + "source_fragment" : "port" + } + }, + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_c"] + }, + { + "type" : "register_array", + "value" : "aifo_queue" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_58"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 54, + "column" : 8, + "source_fragment" : "aifo_queue.read(c, port)" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["standard_metadata", "priority"] + }, + { + "type" : "hexstr", + "value" : "0x00" + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 55, + "column" : 8, + "source_fragment" : "std.priority = 0" + } + } + ] + }, + { + "name" : "aifo37", + "id" : 50, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "aifo_port"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 37, + "column" : 16, + "source_fragment" : "port = (bit<32>) std.egress_spec" + } + } + ] + }, + { + "name" : "las132", + "id" : 51, + "runtime_data" : [], + "primitives" : [ + { + "op" : "register_read", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "mode_0"] + }, + { + "type" : "register_array", + "value" : "approximation" + }, + { + "type" : "hexstr", + "value" : "0x00000000" + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 132, + "column" : 8, + "source_fragment" : "approximation.read(mode, 0)" + } + } + ] + }, + { + "name" : "las141", + "id" : 52, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_59"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "+", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "packet_length"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffffffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 141, + "column" : 33, + "source_fragment" : "meta.rank + (bit<64>) std.packet_length" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "attained" + }, + { + "type" : "field", + "value" : ["scalars", "flow_0"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_59"] + } + ], + "source_info" : { + "filename" : "las.p4", + "line" : 141, + "column" : 12, + "source_fragment" : "attained.write(flow, meta.rank + (bit<64>) std.packet_length)" + } + } + ] + }, + { + "name" : "aifo71", + "id" : 53, + "runtime_data" : [], + "primitives" : [ + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_60"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_port"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 29, + "source_fragment" : "(bit<32>) std.egress_port" + } + }, + { + "op" : "assign", + "parameters" : [ + { + "type" : "field", + "value" : ["scalars", "tmp_61"] + }, + { + "type" : "expression", + "value" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "deq_qdepth"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 56, + "source_fragment" : "(bit<32>) std.deq_qdepth" + } + }, + { + "op" : "register_write", + "parameters" : [ + { + "type" : "register_array", + "value" : "aifo_queue" + }, + { + "type" : "field", + "value" : ["scalars", "tmp_60"] + }, + { + "type" : "field", + "value" : ["scalars", "tmp_61"] + } + ], + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 12, + "source_fragment" : "aifo_queue.write((bit<32>) std.egress_port, (bit<32>) std.deq_qdepth)" + } + } + ] + } + ], + "pipelines" : [ + { + "name" : "ingress", + "id" : 0, + "source_info" : { + "filename" : "las.p4", + "line" : 98, + "column" : 8, + "source_fragment" : "MyIngress" + }, + "init_table" : "node_2", + "tables" : [ + { + "name" : "MyIngress.ipv4_route", + "id" : 0, + "source_info" : { + "filename" : "las.p4", + "line" : 109, + "column" : 10, + "source_fragment" : "ipv4_route" + }, + "key" : [ + { + "match_type" : "exact", + "name" : "hdr.ipv4.dstAddr", + "target" : ["ipv4", "dstAddr"], + "mask" : null + } + ], + "match_type" : "exact", + "type" : "simple", + "max_size" : 64, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [2, 0], + "actions" : ["MyIngress.forward", "MyIngress.drop"], + "base_default_next" : "tbl_las122", + "next_tables" : { + "MyIngress.forward" : "tbl_las122", + "MyIngress.drop" : "tbl_las122" + }, + "default_entry" : { + "action_id" : 0, + "action_const" : false, + "action_data" : [], + "action_entry_const" : false + } + }, + { + "name" : "tbl_las122", + "id" : 1, + "source_info" : { + "filename" : "las.p4", + "line" : 122, + "column" : 16, + "source_fragment" : "flow" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [5], + "actions" : ["las122"], + "base_default_next" : "node_5", + "next_tables" : { + "las122" : "node_5" + }, + "default_entry" : { + "action_id" : 5, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_las124", + "id" : 2, + "source_info" : { + "filename" : "las.p4", + "line" : 124, + "column" : 12, + "source_fragment" : "hash(flow, HashAlgorithm.crc32, (bit<32>) 0, ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [4], + "actions" : ["las124"], + "base_default_next" : "node_7", + "next_tables" : { + "las124" : "node_7" + }, + "default_entry" : { + "action_id" : 4, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_las128", + "id" : 3, + "source_info" : { + "filename" : "las.p4", + "line" : 128, + "column" : 16, + "source_fragment" : "attained.read(meta.rank, flow)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [3], + "actions" : ["las128"], + "base_default_next" : "tbl_las132", + "next_tables" : { + "las128" : "tbl_las132" + }, + "default_entry" : { + "action_id" : 3, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_las132", + "id" : 4, + "source_info" : { + "filename" : "las.p4", + "line" : 132, + "column" : 8, + "source_fragment" : "approximation.read(mode, 0)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [51], + "actions" : ["las132"], + "base_default_next" : "node_10", + "next_tables" : { + "las132" : "node_10" + }, + "default_entry" : { + "action_id" : 51, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo45", + "id" : 5, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "sp_pifo_bounds.read(b0, base); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [15], + "actions" : ["sp_pifo45"], + "base_default_next" : "node_13", + "next_tables" : { + "sp_pifo45" : "node_13" + }, + "default_entry" : { + "action_id" : 15, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo54", + "id" : 6, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 39, + "source_fragment" : "= 7 - 7; sp_pifo_bounds.write(base + 7, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [6], + "actions" : ["sp_pifo54"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo54" : "node_84" + }, + "default_entry" : { + "action_id" : 6, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo55", + "id" : 7, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 44, + "source_fragment" : "= 7 - 6; sp_pifo_bounds.write(base + 6, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [7], + "actions" : ["sp_pifo55"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo55" : "node_84" + }, + "default_entry" : { + "action_id" : 7, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo56", + "id" : 8, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 44, + "source_fragment" : "= 7 - 5; sp_pifo_bounds.write(base + 5, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [8], + "actions" : ["sp_pifo56"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo56" : "node_84" + }, + "default_entry" : { + "action_id" : 8, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo57", + "id" : 9, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 44, + "source_fragment" : "= 7 - 4; sp_pifo_bounds.write(base + 4, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [9], + "actions" : ["sp_pifo57"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo57" : "node_84" + }, + "default_entry" : { + "action_id" : 9, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo58", + "id" : 10, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 44, + "source_fragment" : "= 7 - 3; sp_pifo_bounds.write(base + 3, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [10], + "actions" : ["sp_pifo58"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo58" : "node_84" + }, + "default_entry" : { + "action_id" : 10, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo59", + "id" : 11, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 44, + "source_fragment" : "= 7 - 2; sp_pifo_bounds.write(base + 2, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [11], + "actions" : ["sp_pifo59"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo59" : "node_84" + }, + "default_entry" : { + "action_id" : 11, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo60", + "id" : 12, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 44, + "source_fragment" : "= 7 - 1; sp_pifo_bounds.write(base + 1, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [12], + "actions" : ["sp_pifo60"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo60" : "node_84" + }, + "default_entry" : { + "action_id" : 12, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo61", + "id" : 13, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 44, + "source_fragment" : "= 7 - 0; sp_pifo_bounds.write(base + 0, rank)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [13], + "actions" : ["sp_pifo61"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo61" : "node_84" + }, + "default_entry" : { + "action_id" : 13, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_sp_pifo65", + "id" : 14, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 65, + "column" : 25, + "source_fragment" : "= 7; ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [14], + "actions" : ["sp_pifo65"], + "base_default_next" : "node_84", + "next_tables" : { + "sp_pifo65" : "node_84" + }, + "default_entry" : { + "action_id" : 14, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo37", + "id" : 15, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 37, + "column" : 16, + "source_fragment" : "port" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [50], + "actions" : ["aifo37"], + "base_default_next" : "node_32", + "next_tables" : { + "aifo37" : "node_32" + }, + "default_entry" : { + "action_id" : 50, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo42", + "id" : 16, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 42, + "column" : 16, + "source_fragment" : "smaller = 0; ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [17], + "actions" : ["aifo42"], + "base_default_next" : "node_34", + "next_tables" : { + "aifo42" : "node_34" + }, + "default_entry" : { + "action_id" : 17, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44", + "id" : 17, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 63, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [16], + "actions" : ["aifo44"], + "base_default_next" : "tbl_aifo44_0", + "next_tables" : { + "aifo44" : "tbl_aifo44_0" + }, + "default_entry" : { + "action_id" : 16, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_0", + "id" : 18, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 1)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [19], + "actions" : ["aifo44_1"], + "base_default_next" : "node_37", + "next_tables" : { + "aifo44_1" : "node_37" + }, + "default_entry" : { + "action_id" : 19, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_1", + "id" : 19, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 135, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [18], + "actions" : ["aifo44_0"], + "base_default_next" : "tbl_aifo44_2", + "next_tables" : { + "aifo44_0" : "tbl_aifo44_2" + }, + "default_entry" : { + "action_id" : 18, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_2", + "id" : 20, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 2)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [21], + "actions" : ["aifo44_3"], + "base_default_next" : "node_40", + "next_tables" : { + "aifo44_3" : "node_40" + }, + "default_entry" : { + "action_id" : 21, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_3", + "id" : 21, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 207, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [20], + "actions" : ["aifo44_2"], + "base_default_next" : "tbl_aifo44_4", + "next_tables" : { + "aifo44_2" : "tbl_aifo44_4" + }, + "default_entry" : { + "action_id" : 20, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_4", + "id" : 22, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 3)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [23], + "actions" : ["aifo44_5"], + "base_default_next" : "node_43", + "next_tables" : { + "aifo44_5" : "node_43" + }, + "default_entry" : { + "action_id" : 23, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo44_5", + "id" : 23, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 279, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [22], + "actions" : ["aifo44_4"], + "base_default_next" : "tbl_aifo45", + "next_tables" : { + "aifo44_4" : "tbl_aifo45" + }, + "default_entry" : { + "action_id" : 22, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45", + "id" : 24, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 4)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [25], + "actions" : ["aifo45_0"], + "base_default_next" : "node_46", + "next_tables" : { + "aifo45_0" : "node_46" + }, + "default_entry" : { + "action_id" : 25, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_0", + "id" : 25, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 63, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [24], + "actions" : ["aifo45"], + "base_default_next" : "tbl_aifo45_1", + "next_tables" : { + "aifo45" : "tbl_aifo45_1" + }, + "default_entry" : { + "action_id" : 24, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_1", + "id" : 26, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 5)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [27], + "actions" : ["aifo45_2"], + "base_default_next" : "node_49", + "next_tables" : { + "aifo45_2" : "node_49" + }, + "default_entry" : { + "action_id" : 27, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_2", + "id" : 27, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 135, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [26], + "actions" : ["aifo45_1"], + "base_default_next" : "tbl_aifo45_3", + "next_tables" : { + "aifo45_1" : "tbl_aifo45_3" + }, + "default_entry" : { + "action_id" : 26, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_3", + "id" : 28, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 6)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [29], + "actions" : ["aifo45_4"], + "base_default_next" : "node_52", + "next_tables" : { + "aifo45_4" : "node_52" + }, + "default_entry" : { + "action_id" : 29, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_4", + "id" : 29, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 207, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [28], + "actions" : ["aifo45_3"], + "base_default_next" : "tbl_aifo45_5", + "next_tables" : { + "aifo45_3" : "tbl_aifo45_5" + }, + "default_entry" : { + "action_id" : 28, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_5", + "id" : 30, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 224, + "source_fragment" : "aifo_window.read(w, base + 7)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [31], + "actions" : ["aifo45_6"], + "base_default_next" : "node_55", + "next_tables" : { + "aifo45_6" : "node_55" + }, + "default_entry" : { + "action_id" : 31, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo45_6", + "id" : 31, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 279, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [30], + "actions" : ["aifo45_5"], + "base_default_next" : "tbl_aifo46", + "next_tables" : { + "aifo45_5" : "tbl_aifo46" + }, + "default_entry" : { + "action_id" : 30, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46", + "id" : 32, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 8)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [33], + "actions" : ["aifo46_0"], + "base_default_next" : "node_58", + "next_tables" : { + "aifo46_0" : "node_58" + }, + "default_entry" : { + "action_id" : 33, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_0", + "id" : 33, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 63, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [32], + "actions" : ["aifo46"], + "base_default_next" : "tbl_aifo46_1", + "next_tables" : { + "aifo46" : "tbl_aifo46_1" + }, + "default_entry" : { + "action_id" : 32, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_1", + "id" : 34, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 80, + "source_fragment" : "aifo_window.read(w, base + 9)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [35], + "actions" : ["aifo46_2"], + "base_default_next" : "node_61", + "next_tables" : { + "aifo46_2" : "node_61" + }, + "default_entry" : { + "action_id" : 35, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_2", + "id" : 35, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 135, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [34], + "actions" : ["aifo46_1"], + "base_default_next" : "tbl_aifo46_3", + "next_tables" : { + "aifo46_1" : "tbl_aifo46_3" + }, + "default_entry" : { + "action_id" : 34, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_3", + "id" : 36, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 152, + "source_fragment" : "aifo_window.read(w, base + 10)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [37], + "actions" : ["aifo46_4"], + "base_default_next" : "node_64", + "next_tables" : { + "aifo46_4" : "node_64" + }, + "default_entry" : { + "action_id" : 37, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_4", + "id" : 37, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 208, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [36], + "actions" : ["aifo46_3"], + "base_default_next" : "tbl_aifo46_5", + "next_tables" : { + "aifo46_3" : "tbl_aifo46_5" + }, + "default_entry" : { + "action_id" : 36, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_5", + "id" : 38, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 225, + "source_fragment" : "aifo_window.read(w, base + 11)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [39], + "actions" : ["aifo46_6"], + "base_default_next" : "node_67", + "next_tables" : { + "aifo46_6" : "node_67" + }, + "default_entry" : { + "action_id" : 39, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo46_6", + "id" : 39, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 281, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [38], + "actions" : ["aifo46_5"], + "base_default_next" : "tbl_aifo47", + "next_tables" : { + "aifo46_5" : "tbl_aifo47" + }, + "default_entry" : { + "action_id" : 38, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47", + "id" : 40, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 8, + "source_fragment" : "aifo_window.read(w, base + 12)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [41], + "actions" : ["aifo47_0"], + "base_default_next" : "node_70", + "next_tables" : { + "aifo47_0" : "node_70" + }, + "default_entry" : { + "action_id" : 41, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_0", + "id" : 41, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 64, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [40], + "actions" : ["aifo47"], + "base_default_next" : "tbl_aifo47_1", + "next_tables" : { + "aifo47" : "tbl_aifo47_1" + }, + "default_entry" : { + "action_id" : 40, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_1", + "id" : 42, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 81, + "source_fragment" : "aifo_window.read(w, base + 13)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [43], + "actions" : ["aifo47_2"], + "base_default_next" : "node_73", + "next_tables" : { + "aifo47_2" : "node_73" + }, + "default_entry" : { + "action_id" : 43, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_2", + "id" : 43, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 137, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [42], + "actions" : ["aifo47_1"], + "base_default_next" : "tbl_aifo47_3", + "next_tables" : { + "aifo47_1" : "tbl_aifo47_3" + }, + "default_entry" : { + "action_id" : 42, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_3", + "id" : 44, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 154, + "source_fragment" : "aifo_window.read(w, base + 14)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [45], + "actions" : ["aifo47_4"], + "base_default_next" : "node_76", + "next_tables" : { + "aifo47_4" : "node_76" + }, + "default_entry" : { + "action_id" : 45, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_4", + "id" : 45, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 210, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [44], + "actions" : ["aifo47_3"], + "base_default_next" : "tbl_aifo47_5", + "next_tables" : { + "aifo47_3" : "tbl_aifo47_5" + }, + "default_entry" : { + "action_id" : 44, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_5", + "id" : 46, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 227, + "source_fragment" : "aifo_window.read(w, base + 15)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [47], + "actions" : ["aifo47_6"], + "base_default_next" : "node_79", + "next_tables" : { + "aifo47_6" : "node_79" + }, + "default_entry" : { + "action_id" : 47, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo47_6", + "id" : 47, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 283, + "source_fragment" : "=" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [46], + "actions" : ["aifo47_5"], + "base_default_next" : "tbl_aifo49", + "next_tables" : { + "aifo47_5" : "tbl_aifo49" + }, + "default_entry" : { + "action_id" : 46, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo49", + "id" : 48, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 49, + "column" : 8, + "source_fragment" : "aifo_next.read(next, port); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [49], + "actions" : ["aifo49"], + "base_default_next" : "node_82", + "next_tables" : { + "aifo49" : "node_82" + }, + "default_entry" : { + "action_id" : 49, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_aifo60", + "id" : 49, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 60, + "column" : 12, + "source_fragment" : "mark_to_drop(std); ..." + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [48], + "actions" : ["aifo60"], + "base_default_next" : "node_84", + "next_tables" : { + "aifo60" : "node_84" + }, + "default_entry" : { + "action_id" : 48, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_las141", + "id" : 50, + "source_info" : { + "filename" : "las.p4", + "line" : 141, + "column" : 12, + "source_fragment" : "attained.write(flow, meta.rank + (bit<64>) std.packet_length)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [52], + "actions" : ["las141"], + "base_default_next" : null, + "next_tables" : { + "las141" : null + }, + "default_entry" : { + "action_id" : 52, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + }, + { + "name" : "tbl_drop", + "id" : 51, + "source_info" : { + "filename" : "las.p4", + "line" : 118, + "column" : 12, + "source_fragment" : "drop()" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [1], + "actions" : ["MyIngress.drop"], + "base_default_next" : null, + "next_tables" : { + "MyIngress.drop" : null + }, + "default_entry" : { + "action_id" : 1, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + } + ], + "action_profiles" : [], + "conditionals" : [ + { + "name" : "node_2", + "id" : 0, + "source_info" : { + "filename" : "las.p4", + "line" : 117, + "column" : 13, + "source_fragment" : "hdr.ipv4.isValid()" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["ipv4", "$valid$"] + } + } + }, + "true_next" : "MyIngress.ipv4_route", + "false_next" : "tbl_drop" + }, + { + "name" : "node_5", + "id" : 1, + "source_info" : { + "filename" : "las.p4", + "line" : 123, + "column" : 12, + "source_fragment" : "hdr.tcp.isValid()" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["tcp", "$valid$"] + } + } + }, + "true_next" : "tbl_las124", + "false_next" : "tbl_las132" + }, + { + "name" : "node_7", + "id" : 2, + "source_info" : { + "filename" : "las.p4", + "line" : 127, + "column" : 16, + "source_fragment" : "(hdr.tcp.flags & TCP_SYN) == 0" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "==", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["tcp", "flags"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x02" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00" + } + } + }, + "true_next" : "tbl_las128", + "false_next" : "tbl_las132" + }, + { + "name" : "node_10", + "id" : 3, + "source_info" : { + "filename" : "las.p4", + "line" : 133, + "column" : 12, + "source_fragment" : "mode == 1" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "==", + "left" : { + "type" : "field", + "value" : ["scalars", "mode_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x01" + } + } + }, + "true_next" : "node_11", + "false_next" : "node_30" + }, + { + "name" : "node_11", + "id" : 4, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 39, + "column" : 12, + "source_fragment" : "port >= SP_PIFO_PORTS" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "false_next" : "tbl_sp_pifo45", + "true_next" : "node_84" + }, + { + "name" : "node_13", + "id" : 5, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 54, + "column" : 12, + "source_fragment" : "rank >= b7" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b7"] + } + } + }, + "true_next" : "tbl_sp_pifo54", + "false_next" : "node_15" + }, + { + "name" : "node_15", + "id" : 6, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 55, + "column" : 17, + "source_fragment" : "rank >= b6" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b6"] + } + } + }, + "true_next" : "tbl_sp_pifo55", + "false_next" : "node_17" + }, + { + "name" : "node_17", + "id" : 7, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 56, + "column" : 17, + "source_fragment" : "rank >= b5" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b5"] + } + } + }, + "true_next" : "tbl_sp_pifo56", + "false_next" : "node_19" + }, + { + "name" : "node_19", + "id" : 8, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 57, + "column" : 17, + "source_fragment" : "rank >= b4" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b4"] + } + } + }, + "true_next" : "tbl_sp_pifo57", + "false_next" : "node_21" + }, + { + "name" : "node_21", + "id" : 9, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 58, + "column" : 17, + "source_fragment" : "rank >= b3" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b3"] + } + } + }, + "true_next" : "tbl_sp_pifo58", + "false_next" : "node_23" + }, + { + "name" : "node_23", + "id" : 10, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 59, + "column" : 17, + "source_fragment" : "rank >= b2" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b2"] + } + } + }, + "true_next" : "tbl_sp_pifo59", + "false_next" : "node_25" + }, + { + "name" : "node_25", + "id" : 11, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 60, + "column" : 17, + "source_fragment" : "rank >= b1" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b1"] + } + } + }, + "true_next" : "tbl_sp_pifo60", + "false_next" : "node_27" + }, + { + "name" : "node_27", + "id" : 12, + "source_info" : { + "filename" : "../pifo_approx/sp_pifo.p4", + "line" : 61, + "column" : 17, + "source_fragment" : "rank >= b0" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "sp_pifo_b0"] + } + } + }, + "true_next" : "tbl_sp_pifo61", + "false_next" : "tbl_sp_pifo65" + }, + { + "name" : "node_30", + "id" : 13, + "source_info" : { + "filename" : "las.p4", + "line" : 135, + "column" : 19, + "source_fragment" : "mode == 2" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "==", + "left" : { + "type" : "field", + "value" : ["scalars", "mode_0"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x02" + } + } + }, + "true_next" : "tbl_aifo37", + "false_next" : "node_84" + }, + { + "name" : "node_32", + "id" : 14, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 38, + "column" : 12, + "source_fragment" : "port >= AIFO_PORTS" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "false_next" : "tbl_aifo42", + "true_next" : "node_84" + }, + { + "name" : "node_34", + "id" : 15, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 43, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44", + "false_next" : "tbl_aifo44_0" + }, + { + "name" : "node_37", + "id" : 16, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 115, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44_1", + "false_next" : "tbl_aifo44_2" + }, + { + "name" : "node_40", + "id" : 17, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 187, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44_3", + "false_next" : "tbl_aifo44_4" + }, + { + "name" : "node_43", + "id" : 18, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 44, + "column" : 259, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo44_5", + "false_next" : "tbl_aifo45" + }, + { + "name" : "node_46", + "id" : 19, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 43, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_0", + "false_next" : "tbl_aifo45_1" + }, + { + "name" : "node_49", + "id" : 20, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 115, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_2", + "false_next" : "tbl_aifo45_3" + }, + { + "name" : "node_52", + "id" : 21, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 187, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_4", + "false_next" : "tbl_aifo45_5" + }, + { + "name" : "node_55", + "id" : 22, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 45, + "column" : 259, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo45_6", + "false_next" : "tbl_aifo46" + }, + { + "name" : "node_58", + "id" : 23, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 43, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_0", + "false_next" : "tbl_aifo46_1" + }, + { + "name" : "node_61", + "id" : 24, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 115, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_2", + "false_next" : "tbl_aifo46_3" + }, + { + "name" : "node_64", + "id" : 25, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 188, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_4", + "false_next" : "tbl_aifo46_5" + }, + { + "name" : "node_67", + "id" : 26, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 46, + "column" : 261, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo46_6", + "false_next" : "tbl_aifo47" + }, + { + "name" : "node_70", + "id" : 27, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 44, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_0", + "false_next" : "tbl_aifo47_1" + }, + { + "name" : "node_73", + "id" : 28, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 117, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_2", + "false_next" : "tbl_aifo47_3" + }, + { + "name" : "node_76", + "id" : 29, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 190, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_4", + "false_next" : "tbl_aifo47_5" + }, + { + "name" : "node_79", + "id" : 30, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 47, + "column" : 263, + "source_fragment" : "w < rank" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_w"] + }, + "right" : { + "type" : "field", + "value" : ["scalars", "metadata_t.rank"] + } + } + }, + "true_next" : "tbl_aifo47_6", + "false_next" : "tbl_aifo49" + }, + { + "name" : "node_82", + "id" : 31, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 58, + "column" : 12, + "source_fragment" : "c > AIFO_CAPACITY / 8 && ..." + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "and", + "left" : { + "type" : "expression", + "value" : { + "op" : ">", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_c"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "or", + "left" : { + "type" : "expression", + "value" : { + "op" : ">=", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_c"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000080" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : ">", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "*", + "left" : { + "type" : "field", + "value" : ["scalars", "aifo_smaller"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000007" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x7" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "<<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "expression", + "value" : { + "op" : "-", + "left" : { + "type" : "hexstr", + "value" : "0x00000080" + }, + "right" : { + "type" : "field", + "value" : ["scalars", "aifo_c"] + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x7" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + } + } + } + } + } + } + }, + "true_next" : "tbl_aifo60", + "false_next" : "node_84" + }, + { + "name" : "node_84", + "id" : 32, + "source_info" : { + "filename" : "las.p4", + "line" : 140, + "column" : 12, + "source_fragment" : "hdr.tcp.isValid() && std.egress_spec != DROP_PORT" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "and", + "left" : { + "type" : "expression", + "value" : { + "op" : "d2b", + "left" : null, + "right" : { + "type" : "field", + "value" : ["tcp", "$valid$"] + } + } + }, + "right" : { + "type" : "expression", + "value" : { + "op" : "!=", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_spec"] + }, + "right" : { + "type" : "hexstr", + "value" : "0x01ff" + } + } + } + } + }, + "false_next" : null, + "true_next" : "tbl_las141" + } + ] + }, + { + "name" : "egress", + "id" : 1, + "source_info" : { + "filename" : "las.p4", + "line" : 146, + "column" : 8, + "source_fragment" : "MyEgress" + }, + "init_table" : "node_89", + "tables" : [ + { + "name" : "tbl_aifo71", + "id" : 52, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 71, + "column" : 12, + "source_fragment" : "aifo_queue.write((bit<32>) std.egress_port, (bit<32>) std.deq_qdepth)" + }, + "key" : [], + "match_type" : "exact", + "type" : "simple", + "max_size" : 1024, + "with_counters" : false, + "support_timeout" : false, + "direct_meters" : null, + "action_ids" : [53], + "actions" : ["aifo71"], + "base_default_next" : null, + "next_tables" : { + "aifo71" : null + }, + "default_entry" : { + "action_id" : 53, + "action_const" : true, + "action_data" : [], + "action_entry_const" : true + } + } + ], + "action_profiles" : [], + "conditionals" : [ + { + "name" : "node_89", + "id" : 33, + "source_info" : { + "filename" : "../pifo_approx/aifo.p4", + "line" : 70, + "column" : 12, + "source_fragment" : "(bit<32>) std.egress_port < AIFO_PORTS" + }, + "expression" : { + "type" : "expression", + "value" : { + "op" : "<", + "left" : { + "type" : "expression", + "value" : { + "op" : "&", + "left" : { + "type" : "field", + "value" : ["standard_metadata", "egress_port"] + }, + "right" : { + "type" : "hexstr", + "value" : "0xffffffff" + } + } + }, + "right" : { + "type" : "hexstr", + "value" : "0x00000010" + } + } + }, + "false_next" : null, + "true_next" : "tbl_aifo71" + } + ] + } + ], + "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.egress_global_timestamp", + ["standard_metadata", "egress_global_timestamp"] + ], + [ + "intrinsic_metadata.mcast_grp", + ["standard_metadata", "mcast_grp"] + ], + [ + "intrinsic_metadata.egress_rid", + ["standard_metadata", "egress_rid"] + ], + [ + "intrinsic_metadata.priority", + ["standard_metadata", "priority"] + ], + [ + "intrinsic_metadata.lag_hash", + ["standard_metadata", "lag_hash"] + ] + ], + "program" : "las.p4", + "__meta__" : { + "version" : [2, 23], + "compiler" : "https://github.com/p4lang/p4c" + } +} \ No newline at end of file diff --git a/examples/p4src/las/las.p4 b/examples/p4src/las/las.p4 new file mode 100644 index 0000000..d6b77b2 --- /dev/null +++ b/examples/p4src/las/las.p4 @@ -0,0 +1,168 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2026 TU Dresden. Author: Mingyu Ma + +// Least attained service (LAS) (example p4-pifo-las). The rank of a packet is +// the number of bytes that its TCP flow sent through the switch before it, so a +// new flow goes first and a long flow waits: short flows finish early without +// the switch knowing how long a flow is. +// - A flow is a hash of the addresses and ports into FLOWS slots of attained; a +// SYN starts it at 0. +// - meta.rank goes to ns3::P4PifoScheduler (RankField "rank"). The register +// approximation chooses how a switch without PIFOs uses the rank: +// 0: not at all (FIFO, or a PIFO), 1: SP-PIFO on the 8 priority queues, +// 2: AIFO on one FIFO (sp_pifo.p4, aifo.p4). + +#include +#include + +#include "../pifo_approx/sp_pifo.p4" +#include "../pifo_approx/aifo.p4" + +const bit<32> FLOWS = 4096; +const bit<8> TCP_SYN = 0x02; +const bit<9> DROP_PORT = 511; // mark_to_drop() sends a packet there + +header ethernet_t { + bit<48> dstAddr; + bit<48> srcAddr; + bit<16> etherType; +} + +header ipv4_t { + bit<4> version; + bit<4> ihl; + bit<8> diffserv; + bit<16> totalLen; + bit<16> identification; + bit<3> flags; + bit<13> fragOffset; + bit<8> ttl; + bit<8> protocol; + bit<16> hdrChecksum; + bit<32> srcAddr; + bit<32> dstAddr; +} + +header tcp_t { + bit<16> srcPort; + bit<16> dstPort; + bit<32> seqNo; + bit<32> ackNo; + bit<4> dataOffset; + bit<4> res; + bit<8> flags; + bit<16> window; + bit<16> checksum; + bit<16> urgentPtr; +} + +struct headers_t { + ethernet_t ethernet; + ipv4_t ipv4; + tcp_t tcp; +} + +struct metadata_t { + bit<64> rank; // the switch reads it by its name (RankField "rank") +} + +register>(FLOWS) attained; // per flow: bytes sent through the switch +register>(1) approximation; // 0: none, 1: SP-PIFO, 2: AIFO + +parser MyParser(packet_in pkt, out headers_t hdr, inout metadata_t meta, + inout standard_metadata_t std) { + state start { + pkt.extract(hdr.ethernet); + transition select(hdr.ethernet.etherType) { + 0x0800: parse_ipv4; + default: accept; + } + } + state parse_ipv4 { + pkt.extract(hdr.ipv4); + transition select(hdr.ipv4.protocol) { + 6: parse_tcp; + default: accept; + } + } + state parse_tcp { + pkt.extract(hdr.tcp); + transition accept; + } +} + +control MyVerifyChecksum(inout headers_t hdr, inout metadata_t meta) { + apply { } +} + +control MyIngress(inout headers_t hdr, inout metadata_t meta, + inout standard_metadata_t std) { + SpPifo() sp_pifo; + Aifo() aifo; + + action drop() { + mark_to_drop(std); + } + action forward(bit<9> port) { + std.egress_spec = port; + } + table ipv4_route { + key = { hdr.ipv4.dstAddr: exact; } + actions = { forward; drop; } + default_action = drop(); + size = 64; + } + + apply { + if (!hdr.ipv4.isValid()) { + drop(); + return; + } + ipv4_route.apply(); + bit<32> flow = 0; + if (hdr.tcp.isValid()) { + hash(flow, HashAlgorithm.crc32, (bit<32>) 0, + { hdr.ipv4.srcAddr, hdr.ipv4.dstAddr, hdr.tcp.srcPort, hdr.tcp.dstPort }, + FLOWS); + if ((hdr.tcp.flags & TCP_SYN) == 0) { + attained.read(meta.rank, flow); + } + } + bit<8> mode; + approximation.read(mode, 0); + if (mode == 1) { + sp_pifo.apply(meta.rank, std); + } else if (mode == 2) { + aifo.apply(meta.rank, std); + } + // Only bytes that go on count: AIFO's drops do not, or a flow's + // retransmissions would get ever larger ranks + if (hdr.tcp.isValid() && std.egress_spec != DROP_PORT) { + attained.write(flow, meta.rank + (bit<64>) std.packet_length); + } + } +} + +control MyEgress(inout headers_t hdr, inout metadata_t meta, + inout standard_metadata_t std) { + AifoEgress() aifo_egress; + + apply { + aifo_egress.apply(std); + } +} + +control MyComputeChecksum(inout headers_t hdr, inout metadata_t meta) { + apply { } +} + +control MyDeparser(packet_out pkt, in headers_t hdr) { + apply { + pkt.emit(hdr.ethernet); + pkt.emit(hdr.ipv4); + pkt.emit(hdr.tcp); + } +} + +V1Switch(MyParser(), MyVerifyChecksum(), MyIngress(), MyEgress(), MyComputeChecksum(), + MyDeparser()) main; diff --git a/examples/p4src/pifo_approx/aifo.p4 b/examples/p4src/pifo_approx/aifo.p4 new file mode 100644 index 0000000..1d8cac2 --- /dev/null +++ b/examples/p4src/pifo_approx/aifo.p4 @@ -0,0 +1,76 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2026 TU Dresden. Author: Mingyu Ma + +// AIFO (Yu et al., SIGCOMM 2021): a PIFO approximated with one FIFO per output +// port, by admission control in the ingress. A PIFO that fills up keeps the +// smallest ranks; AIFO decides at arrival which ranks the FIFO still takes. +// - The window holds the ranks of the last 16 packets to the port; the quantile +// q of a packet is the share of them smaller than its rank. +// - c is the length of the port's queue after the last packet left it, which the +// egress writes (AifoEgress); C is the queue's capacity (AIFO_CAPACITY, the +// switch's QueueBufferSize), and k = 1/8 of it takes any packet (bursts). +// - A packet enters if c <= k C, or if q <= (C - c) / ((1 - k) C): the fuller the +// queue, the smaller the ranks it still takes. Otherwise the ingress drops it. +// All packets go into the queue of priority 0. Used by las.p4 and edf.p4: apply +// Aifo once the rank and the egress port are known, and AifoEgress in the egress. + +#ifndef AIFO_P4 +#define AIFO_P4 + +const bit<32> AIFO_PORTS = 16; +const bit<32> AIFO_CAPACITY = 128; // packets + +register>(AIFO_PORTS * 16) aifo_window; // per port: 16 ranks +register>(AIFO_PORTS) aifo_next; // per port: the slot of the next rank +register>(AIFO_PORTS) aifo_queue; // per port: c +register>(AIFO_PORTS) aifo_drops; // per port: packets AIFO dropped + +// Count slot i of the window if it holds a smaller rank +#define AIFO_COUNT(i) \ + aifo_window.read(w, base + i); \ + if (w < rank) { \ + smaller = smaller + 1; \ + } + +control Aifo(in bit<64> rank, inout standard_metadata_t std) { + apply { + bit<32> port = (bit<32>) std.egress_spec; + if (port >= AIFO_PORTS) { + return; // a dropped packet (port 511), or a port without a window + } + bit<32> base = port * 16; + bit<32> smaller = 0; + bit<64> w; + AIFO_COUNT(0) AIFO_COUNT(1) AIFO_COUNT(2) AIFO_COUNT(3) + AIFO_COUNT(4) AIFO_COUNT(5) AIFO_COUNT(6) AIFO_COUNT(7) + AIFO_COUNT(8) AIFO_COUNT(9) AIFO_COUNT(10) AIFO_COUNT(11) + AIFO_COUNT(12) AIFO_COUNT(13) AIFO_COUNT(14) AIFO_COUNT(15) + bit<32> next; + aifo_next.read(next, port); + aifo_window.write(base + next, rank); + aifo_next.write(port, (next + 1) & 15); + + bit<32> c; + aifo_queue.read(c, port); + std.priority = 0; + // q <= (C - c) / ((1 - k) C) with q = smaller / 16 and k = 1/8: + // smaller * 7 * C <= 128 * (C - c) + if (c > AIFO_CAPACITY / 8 && + (c >= AIFO_CAPACITY || smaller * 7 * AIFO_CAPACITY > 128 * (AIFO_CAPACITY - c))) { + mark_to_drop(std); + bit<32> n; + aifo_drops.read(n, port); + aifo_drops.write(port, n + 1); + } + } +} + +control AifoEgress(in standard_metadata_t std) { + apply { + if ((bit<32>) std.egress_port < AIFO_PORTS) { + aifo_queue.write((bit<32>) std.egress_port, (bit<32>) std.deq_qdepth); + } + } +} + +#endif diff --git a/examples/p4src/pifo_approx/sp_pifo.p4 b/examples/p4src/pifo_approx/sp_pifo.p4 new file mode 100644 index 0000000..31edbd7 --- /dev/null +++ b/examples/p4src/pifo_approx/sp_pifo.p4 @@ -0,0 +1,81 @@ +// SPDX-License-Identifier: Apache-2.0 +// Copyright (c) 2026 TU Dresden. Author: Mingyu Ma + +// SP-PIFO (Alcoz et al., NSDI 2020): a PIFO approximated with the 8 strict-priority +// queues that an output port already has (ns3::P4StrictPriorityScheduler, the +// default), in the ingress. Each queue has a bound, the rank of the last packet it +// took. +// - Push-up: a packet goes into the lowest-priority queue whose bound is at most +// its rank, and that bound becomes the packet's rank. +// - Push-down: a packet with a rank below every bound goes into the highest- +// priority queue, and all bounds drop by the difference. +// The bounds grow from priority 7 (served first) to priority 0 and follow the +// ranks that arrive. A packet that leaves while a smaller rank waits in a lower- +// priority queue is an inversion that a PIFO would not make; a push-down is the +// sign of one. Used by las.p4 and edf.p4: apply SpPifo once the rank and the +// egress port are known. + +#ifndef SP_PIFO_P4 +#define SP_PIFO_P4 + +const bit<32> SP_PIFO_PORTS = 16; + +// Per port: the bounds of priority 7, 6, ..., 0, at index port * 8 + 0 ... 7. +// They never decrease from priority 7 to 0 (push-up keeps that order, push-down +// moves all of them alike), so a push-down cannot take a bound below 0. +register>(SP_PIFO_PORTS * 8) sp_pifo_bounds; +register>(SP_PIFO_PORTS) sp_pifo_push_downs; // per port + +// Push-up into the queue of priority 7 - i, if the rank is at least its bound +#define SP_PIFO_PUSH_UP(i, b) \ + if (rank >= b) { \ + std.priority = 7 - i; \ + sp_pifo_bounds.write(base + i, rank); \ + } + +control SpPifo(in bit<64> rank, inout standard_metadata_t std) { + apply { + bit<32> port = (bit<32>) std.egress_spec; + if (port >= SP_PIFO_PORTS) { + return; // a dropped packet (port 511), or a port without bounds + } + bit<32> base = port * 8; + bit<64> b0; bit<64> b1; bit<64> b2; bit<64> b3; + bit<64> b4; bit<64> b5; bit<64> b6; bit<64> b7; + sp_pifo_bounds.read(b0, base); + sp_pifo_bounds.read(b1, base + 1); + sp_pifo_bounds.read(b2, base + 2); + sp_pifo_bounds.read(b3, base + 3); + sp_pifo_bounds.read(b4, base + 4); + sp_pifo_bounds.read(b5, base + 5); + sp_pifo_bounds.read(b6, base + 6); + sp_pifo_bounds.read(b7, base + 7); + // From the lowest priority up + SP_PIFO_PUSH_UP(7, b7) + else SP_PIFO_PUSH_UP(6, b6) + else SP_PIFO_PUSH_UP(5, b5) + else SP_PIFO_PUSH_UP(4, b4) + else SP_PIFO_PUSH_UP(3, b3) + else SP_PIFO_PUSH_UP(2, b2) + else SP_PIFO_PUSH_UP(1, b1) + else SP_PIFO_PUSH_UP(0, b0) + else { + // Push-down: below every bound + bit<64> cost = b0 - rank; + std.priority = 7; + sp_pifo_bounds.write(base, rank); + sp_pifo_bounds.write(base + 1, b1 - cost); + sp_pifo_bounds.write(base + 2, b2 - cost); + sp_pifo_bounds.write(base + 3, b3 - cost); + sp_pifo_bounds.write(base + 4, b4 - cost); + sp_pifo_bounds.write(base + 5, b5 - cost); + sp_pifo_bounds.write(base + 6, b6 - cost); + sp_pifo_bounds.write(base + 7, b7 - cost); + bit<32> n; + sp_pifo_push_downs.read(n, port); + sp_pifo_push_downs.write(port, n + 1); + } + } +} + +#endif diff --git a/examples/pifo-example.h b/examples/pifo-example.h new file mode 100644 index 0000000..4f46f4c --- /dev/null +++ b/examples/pifo-example.h @@ -0,0 +1,236 @@ +/* + * Copyright (c) 2026 TU Dresden + * + * SPDX-License-Identifier: Apache-2.0 + * + * Authors: Mingyu Ma + */ + +/** + * \file + * The network of the PIFO examples (p4-pifo-stfq, p4-pifo-las, p4-pifo-edf): + * hosts on one P4 switch, all links 1 Gbps except the one to the last host, the + * bottleneck, of 100 Mbps. + * + * host0 ──1 Gbps──┐ + * ... ├── P4 switch ──100 Mbps──> last host + * host(n-2) ──────┘ + * + * A network can serve the ranks that its P4 program computes in four ways + * (RankScheduler); p4-pifo-las and p4-pifo-edf build one network for each, side + * by side in one simulation, and give them the same traffic. + */ + +#ifndef P4SIM_PIFO_EXAMPLE_H +#define P4SIM_PIFO_EXAMPLE_H + +#include "example-check.h" + +#include "ns3/applications-module.h" +#include "ns3/core-module.h" +#include "ns3/format-utils.h" +#include "ns3/internet-module.h" +#include "ns3/network-module.h" +#include "ns3/p4-core-v1model.h" +#include "ns3/p4-helper.h" +#include "ns3/p4-switch-core.h" +#include "ns3/p4-switch-net-device.h" +#include "ns3/switched-ethernet-channel.h" +#include "ns3/switched-ethernet-helper.h" + +#include + +namespace p4sim_example +{ + +/// How a switch serves the ranks of the P4 program +struct RankScheduler +{ + const char* name; ///< as printed + const char* queueScheduler; ///< the device attribute QueueScheduler + /// The program's register approximation: 0 none, 1 SP-PIFO on the 8 priority + /// queues, 2 AIFO on one FIFO (examples/p4src/pifo_approx) + uint8_t approximation; +}; + +/// The four ways of p4-pifo-las and p4-pifo-edf +const RankScheduler RANK_SCHEDULERS[] = { + {"FIFO", "ns3::P4StrictPriorityScheduler", 0}, // all packets in queue 0 + {"SP-PIFO", "ns3::P4StrictPriorityScheduler", 1}, // ranks to 8 priority queues + {"AIFO", "ns3::P4StrictPriorityScheduler", 2}, // ranks decide what enters queue 0 + {"PIFO", "ns3::P4PifoScheduler", 0}, // one PIFO per port +}; + +/// The hosts and the switch +struct PifoNetwork +{ + RankScheduler scheduler; ///< how the switch serves the ranks + ns3::NodeContainer hosts; ///< the last one is behind the bottleneck + ns3::Ipv4InterfaceContainer interfaces; ///< their addresses, 10.1.1.1 on + ns3::Ptr sw; ///< the switch +}; + +/// Write \p value into entry \p index of register \p name, declared outside the +/// controls of the program +inline void +WriteP4Register(ns3::Ptr sw, + const std::string& name, + size_t index, + uint64_t value) +{ + auto rc = sw->GetCore()->register_write(0, name, index, bm::Data(value)); + NS_ABORT_MSG_IF(rc != bm::Register::RegisterErrorCode::SUCCESS, + "cannot write register " << name << "[" << index << "]"); +} + +/// Entry \p index of register \p name, declared outside the controls of the +/// program; a register that the program does not have ends the run, so that a +/// renamed register cannot pass as zero +inline uint64_t +ReadP4Register(ns3::Ptr sw, const std::string& name, size_t index) +{ + bm::Data value; + auto rc = sw->GetCore()->register_read(0, name, index, &value); + NS_ABORT_MSG_IF(rc != bm::Register::RegisterErrorCode::SUCCESS, + "cannot read register " << name << "[" << index << "]"); + return value.get(); +} + +/// Build \p nHosts hosts on a switch with the P4 program +/// examples/p4src/<\p name>/<\p name>.json and its flowtable_0.txt, links with +/// \p delay; the switch loads the program now and, for SP-PIFO or AIFO, the +/// example writes the program's register approximation +inline PifoNetwork +BuildPifoNetwork(const std::string& name, + uint32_t nHosts, + const RankScheduler& scheduler, + ns3::Time delay) +{ + using namespace ns3; + PifoNetwork net; + net.scheduler = scheduler; + std::string dir = GetP4ExamplePath() + "/" + name; + net.hosts.Create(nHosts); + Ptr switchNode = CreateObject(); + + P4Helper p4; + p4.SetDeviceAttribute("JsonPath", StringValue(dir + "/" + name + ".json")); + p4.SetDeviceAttribute("FlowTablePath", StringValue(dir + "/flowtable_0.txt")); + p4.SetDeviceAttribute("P4SwitchArch", UintegerValue(P4SWITCH_ARCH_V1MODEL)); + p4.SetDeviceAttribute("QueueScheduler", StringValue(scheduler.queueScheduler)); + net.sw = DynamicCast(p4.Install(switchNode).Get(0)); + + SwitchedEthernetHelper eth; + eth.SetChannelAttribute("DataRate", StringValue("1Gbps")); + eth.SetChannelAttribute("Delay", TimeValue(delay)); + NetDeviceContainer devices = eth.Install(net.sw, net.hosts); + net.sw->GetPortChannel(nHosts - 1) + ->SetAttribute("DataRate", DataRateValue(DataRate("100Mbps"))); + + InternetStackHelper internet; + internet.Install(net.hosts); + // Every network has the same addresses, and the same flow table: they are + // separate, so ns-3 may give out the addresses again + Ipv4AddressGenerator::Reset(); + Ipv4AddressHelper ipv4; + ipv4.SetBase("10.1.1.0", "255.255.255.0"); + net.interfaces = ipv4.Assign(devices); + + // The P4 programs forward IPv4 only, so ARP requests would go nowhere: fill + // the ARP caches of the hosts with each other's addresses + const Ipv4InterfaceContainer& ifs = net.interfaces; + for (uint32_t i = 0; i < ifs.GetN(); i++) + { + auto [ipv4i, ifIndex] = ifs.Get(i); + Ptr cache = + DynamicCast(ipv4i)->GetInterface(ifIndex)->GetArpCache(); + for (uint32_t j = 0; j < ifs.GetN(); j++) + { + if (i != j) + { + ArpCache::Entry* entry = cache->Add(ifs.GetAddress(j)); + entry->SetMacAddress( + ifs.Get(j).first->GetNetDevice(ifs.Get(j).second)->GetAddress()); + entry->MarkPermanent(); + } + } + } + net.sw->Initialize(); + if (scheduler.approximation != 0) + { + WriteP4Register(net.sw, "approximation", 0, scheduler.approximation); + } + return net; +} + +/// Packets that the queues of the switch dropped because they were full +inline uint64_t +QueueDrops(const PifoNetwork& net) +{ + return net.sw->GetV1ModelCore()->GetQueueScheduler()->GetDrops(); +} + +/// Packets that AIFO's ingress dropped at port \p port (0 without AIFO) +inline uint64_t +AifoDrops(const PifoNetwork& net, uint32_t port) +{ + return net.scheduler.approximation == 2 ? ReadP4Register(net.sw, "aifo_drops", port) : 0; +} + +/// Sends UDP packets of 1000 bytes with random times between them (Poisson +/// arrivals) and counts them in \p sent +class PoissonSource : public ns3::Application +{ + public: + static constexpr uint32_t PACKET_SIZE = 1000; ///< bytes, UDP payload + + /// \p stream: the random stream of the times between the packets + PoissonSource(const ns3::Address& to, ns3::DataRate rate, int64_t stream, uint64_t* sent) + : m_to(to), + m_meanInterval(rate.CalculateBytesTxTime(PACKET_SIZE)), + m_sent(sent), + m_interval(ns3::CreateObject()) + { + m_interval->SetStream(stream); + } + + private: + void StartApplication() override + { + using namespace ns3; + m_socket = Socket::CreateSocket(GetNode(), UdpSocketFactory::GetTypeId()); + m_socket->Connect(m_to); + ScheduleNext(); + } + + void StopApplication() override + { + m_next.Cancel(); + m_socket->Close(); + } + + void ScheduleNext() + { + using namespace ns3; + Time wait = Seconds(m_interval->GetValue(m_meanInterval.GetSeconds(), 0)); + m_next = Simulator::Schedule(wait, &PoissonSource::Send, this); + } + + void Send() + { + m_socket->Send(ns3::Create(PACKET_SIZE)); + (*m_sent)++; + ScheduleNext(); + } + + ns3::Address m_to; ///< destination + ns3::Time m_meanInterval; ///< mean time between two packets + uint64_t* m_sent; ///< counts the packets + ns3::Ptr m_interval; ///< time between two packets + ns3::Ptr m_socket; ///< UDP socket + ns3::EventId m_next; ///< the next packet +}; + +} // namespace p4sim_example + +#endif // P4SIM_PIFO_EXAMPLE_H diff --git a/test/examples-to-run.py b/test/examples-to-run.py index 4e8ffb8..e96f5e0 100644 --- a/test/examples-to-run.py +++ b/test/examples-to-run.py @@ -44,6 +44,8 @@ ("p4-red --ecn=0 --seconds=4", "True", "False"), ("p4-pifo-stfq", "True", "False"), ("p4-pifo-stfq --scheduler=strict", "True", "False"), + ("p4-pifo-las --seconds=1", "True", "False"), + ("p4-pifo-edf", "True", "False"), ("p4-latency", "True", "False"), ("p4-ipv4-animation", "True", "False"), ("p4-custom-header-test", "True", "False"),