Skip to content

Commit

Permalink
add loop tracking datastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
MingweiSamuel committed Jan 14, 2025
1 parent 43aacd2 commit 1763b7a
Show file tree
Hide file tree
Showing 34 changed files with 102 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_1v3_send, hoff_9v3_send, hoff_23v1_send),
false,
None,
move |
context,
var_args!(),
Expand Down Expand Up @@ -371,6 +372,7 @@ fn main() {
var_expr!(hoff_9v3_recv, hoff_25v1_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_9v3_recv, hoff_25v1_recv), var_args!()| {
let mut hoff_9v3_recv = hoff_9v3_recv.borrow_mut_swap();
let hoff_9v3_recv = hoff_9v3_recv.drain(..);
Expand Down Expand Up @@ -688,6 +690,7 @@ fn main() {
var_expr!(hoff_23v1_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_23v1_recv), var_args!()| {
let mut hoff_23v1_recv = hoff_23v1_recv.borrow_mut_swap();
let hoff_23v1_recv = hoff_23v1_recv.drain(..);
Expand Down Expand Up @@ -905,6 +908,7 @@ fn main() {
var_expr!(hoff_1v3_recv),
var_expr!(hoff_7v3_send),
false,
None,
move |context, var_args!(hoff_1v3_recv), var_args!(hoff_7v3_send)| {
let mut hoff_1v3_recv = hoff_1v3_recv.borrow_mut_swap();
let hoff_1v3_recv = hoff_1v3_recv.drain(..);
Expand Down Expand Up @@ -1008,6 +1012,7 @@ fn main() {
var_expr!(hoff_7v3_recv),
var_expr!(hoff_6v3_send),
false,
None,
move |context, var_args!(hoff_7v3_recv), var_args!(hoff_6v3_send)| {
let mut hoff_7v3_recv = hoff_7v3_recv.borrow_mut_swap();
let hoff_7v3_recv = hoff_7v3_recv.drain(..);
Expand Down Expand Up @@ -1071,6 +1076,7 @@ fn main() {
var_expr!(hoff_6v3_recv),
var_expr!(hoff_25v1_send),
false,
None,
move |context, var_args!(hoff_6v3_recv), var_args!(hoff_25v1_send)| {
let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap();
let hoff_6v3_recv = hoff_6v3_recv.drain(..);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_6v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_6v3_send)| {
let hoff_6v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -212,6 +213,7 @@ fn main() {
var_expr!(hoff_6v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_6v3_recv), var_args!()| {
let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap();
let hoff_6v3_recv = hoff_6v3_recv.drain(..);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_12v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_12v3_send)| {
let hoff_12v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -302,6 +303,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_9v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_9v3_send)| {
let hoff_9v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -366,6 +368,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_6v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_6v3_send)| {
let hoff_6v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -430,6 +433,7 @@ fn main() {
var_expr!(hoff_6v3_recv, hoff_9v3_recv, hoff_12v3_recv),
var_expr!(),
false,
None,
move |
context,
var_args!(hoff_6v3_recv, hoff_9v3_recv, hoff_12v3_recv),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_9v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_9v3_send)| {
let hoff_9v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -536,6 +537,7 @@ fn main() {
var_expr!(hoff_9v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_9v3_recv), var_args!()| {
let mut hoff_9v3_recv = hoff_9v3_recv.borrow_mut_swap();
let hoff_9v3_recv = hoff_9v3_recv.drain(..);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ fn main() {
hoff_23v1_send, hoff_24v1_send
),
false,
None,
move |
context,
var_args!(),
Expand Down Expand Up @@ -278,6 +279,7 @@ fn main() {
),
var_expr!(),
false,
None,
move |
context,
var_args!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_1v3_send, hoff_6v3_send, hoff_21v1_send, hoff_22v1_send),
false,
None,
move |
context,
var_args!(),
Expand Down Expand Up @@ -378,6 +379,7 @@ fn main() {
var_expr!(hoff_1v3_recv, hoff_6v3_recv, hoff_21v1_recv, hoff_22v1_recv),
var_expr!(),
false,
None,
move |
context,
var_args!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_16v3_send, hoff_21v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_16v3_send, hoff_21v3_send)| {
let hoff_16v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -619,6 +620,7 @@ fn main() {
var_expr!(hoff_12v3_recv),
var_expr!(hoff_15v3_send),
false,
None,
move |context, var_args!(hoff_12v3_recv), var_args!(hoff_15v3_send)| {
let mut hoff_12v3_recv = hoff_12v3_recv.borrow_mut_swap();
let hoff_12v3_recv = hoff_12v3_recv.drain(..);
Expand Down Expand Up @@ -684,6 +686,7 @@ fn main() {
var_expr!(hoff_6v3_recv),
var_expr!(hoff_9v3_send),
false,
None,
move |context, var_args!(hoff_6v3_recv), var_args!(hoff_9v3_send)| {
let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap();
let hoff_6v3_recv = hoff_6v3_recv.drain(..);
Expand Down Expand Up @@ -749,6 +752,7 @@ fn main() {
var_expr!(hoff_21v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_21v3_recv), var_args!()| {
let mut hoff_21v3_recv = hoff_21v3_recv.borrow_mut_swap();
let hoff_21v3_recv = hoff_21v3_recv.drain(..);
Expand Down Expand Up @@ -1026,6 +1030,7 @@ fn main() {
var_expr!(hoff_9v3_recv, hoff_16v3_recv),
var_expr!(hoff_6v3_send, hoff_10v3_send, hoff_13v3_send),
false,
None,
move |
context,
var_args!(hoff_9v3_recv, hoff_16v3_recv),
Expand Down Expand Up @@ -1589,6 +1594,7 @@ fn main() {
var_expr!(hoff_13v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_13v3_recv), var_args!()| {
let mut hoff_13v3_recv = hoff_13v3_recv.borrow_mut_swap();
let hoff_13v3_recv = hoff_13v3_recv.drain(..);
Expand Down Expand Up @@ -1882,6 +1888,7 @@ fn main() {
var_expr!(hoff_10v3_recv, hoff_15v3_recv),
var_expr!(hoff_12v3_send),
false,
None,
move |
context,
var_args!(hoff_10v3_recv, hoff_15v3_recv),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_10v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_4v3_send, hoff_6v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_4v3_send, hoff_6v3_send)| {
let hoff_4v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -233,6 +234,7 @@ fn main() {
var_expr!(hoff_4v3_recv, hoff_6v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_4v3_recv, hoff_6v3_recv), var_args!()| {
let mut hoff_4v3_recv = hoff_4v3_recv.borrow_mut_swap();
let hoff_4v3_recv = hoff_4v3_recv.drain(..);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_6v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_6v3_send)| {
let hoff_6v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -212,6 +213,7 @@ fn main() {
var_expr!(hoff_6v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_6v3_recv), var_args!()| {
let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap();
let hoff_6v3_recv = hoff_6v3_recv.drain(..);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ fn main() {
var_expr!(),
var_expr!(hoff_6v3_send),
false,
None,
move |context, var_args!(), var_args!(hoff_6v3_send)| {
let hoff_6v3_send = hydroflow::pusherator::for_each::ForEach::new(|
v|
Expand Down Expand Up @@ -215,6 +216,7 @@ fn main() {
var_expr!(hoff_6v3_recv),
var_expr!(),
false,
None,
move |context, var_args!(hoff_6v3_recv), var_args!()| {
let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap();
let hoff_6v3_recv = hoff_6v3_recv.drain(..);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_10v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ fn main() {
var_expr!(),
var_expr!(),
false,
None,
move |context, var_args!(), var_args!()| {
let op_7v1 = std::iter::from_fn(|| {
match hydroflow::futures::stream::Stream::poll_next(
Expand Down
Loading

0 comments on commit 1763b7a

Please sign in to comment.