From accb13cad718c99d350e4bafe82e0ca38bf94c62 Mon Sep 17 00:00:00 2001 From: Mingwei Samuel Date: Sat, 21 Dec 2024 17:28:59 -0800 Subject: [PATCH] chore: cleanup snapshots (#1623) #1617 #1620 --- ...egations_and_comments@datalog_program.snap | 1136 ------- ...gregations_and_comments@surface_graph.snap | 42 - ...tions_fold_keyed_expr@datalog_program.snap | 429 --- ...gations_fold_keyed_expr@surface_graph.snap | 19 - ...ore__tests__anti_join@datalog_program.snap | 1049 ------ ..._core__tests__anti_join@surface_graph.snap | 41 - ...e__tests__collect_vec@datalog_program.snap | 766 ----- ...ore__tests__collect_vec@surface_graph.snap | 31 - ..._core__tests__detuple@datalog_program.snap | 353 -- ...og_core__tests__detuple@surface_graph.snap | 18 - ...ts__detuple_then_flat@datalog_program.snap | 437 --- ...ests__detuple_then_flat@surface_graph.snap | 22 - ...core__tests__expr_lhs@datalog_program.snap | 896 ----- ...g_core__tests__expr_lhs@surface_graph.snap | 46 - ...tests__expr_predicate@datalog_program.snap | 835 ----- ...__tests__expr_predicate@surface_graph.snap | 44 - ...ts__flat_then_detuple@datalog_program.snap | 392 --- ...ests__flat_then_detuple@surface_graph.snap | 20 - ..._core__tests__flatten@datalog_program.snap | 357 -- ...og_core__tests__flatten@surface_graph.snap | 18 - ...og_core__tests__index@datalog_program.snap | 2250 ------------- ...alog_core__tests__index@surface_graph.snap | 89 - ...ests__join_with_other@datalog_program.snap | 638 ---- ..._tests__join_with_other@surface_graph.snap | 29 - ...tests__join_with_self@datalog_program.snap | 600 ---- ...__tests__join_with_self@surface_graph.snap | 28 - ...__local_constraints@datalog_program-2.snap | 354 -- ...ts__local_constraints@datalog_program.snap | 348 -- ...ts__local_constraints@surface_graph-2.snap | 19 - ...ests__local_constraints@surface_graph.snap | 19 - ...alog_core__tests__max@datalog_program.snap | 429 --- ...atalog_core__tests__max@surface_graph.snap | 19 - ..._core__tests__max_all@datalog_program.snap | 438 --- ...og_core__tests__max_all@surface_graph.snap | 19 - ...ests__minimal_program@datalog_program.snap | 315 -- ..._tests__minimal_program@surface_graph.snap | 17 - ..._tests__multi_detuple@datalog_program.snap | 402 --- ...e__tests__multi_detuple@surface_graph.snap | 20 - ...multiple_contributors@datalog_program.snap | 547 --- ...__multiple_contributors@surface_graph.snap | 27 - ...s__non_copy_but_clone@datalog_program.snap | 315 -- ...sts__non_copy_but_clone@surface_graph.snap | 17 - ..._core__tests__persist@datalog_program.snap | 2996 ----------------- ...og_core__tests__persist@surface_graph.snap | 115 - ...s__persist_uniqueness@datalog_program.snap | 824 ----- ...sts__persist_uniqueness@surface_graph.snap | 32 - ...__tests__send_to_node@datalog_program.snap | 517 --- ...re__tests__send_to_node@surface_graph.snap | 24 - ..._tests__simple_filter@datalog_program.snap | 349 -- ...e__tests__simple_filter@surface_graph.snap | 19 - ...single_column_program@datalog_program.snap | 638 ---- ...__single_column_program@surface_graph.snap | 29 - ...s__transitive_closure@datalog_program.snap | 803 ----- ...sts__transitive_closure@surface_graph.snap | 38 - ..._triple_relation_join@datalog_program.snap | 970 ------ ...s__triple_relation_join@surface_graph.snap | 41 - ...ests__wildcard_fields@datalog_program.snap | 601 ---- ..._tests__wildcard_fields@surface_graph.snap | 28 - ...__wildcard_join_count@datalog_program.snap | 1434 -------- ...ts__wildcard_join_count@surface_graph.snap | 54 - .../surface_async__echo@graphvis_dot.snap | 5 +- .../surface_async__echo@graphvis_mermaid.snap | 5 +- .../surface_batch__basic_2@graphvis_dot.snap | 5 +- ...rface_batch__basic_2@graphvis_mermaid.snap | 5 +- ...ce_book__surface_flows_1@graphvis_dot.snap | 5 +- ...ook__surface_flows_1@graphvis_mermaid.snap | 5 +- ...surface_codegen__basic_2@graphvis_dot.snap | 5 +- ...ace_codegen__basic_2@graphvis_mermaid.snap | 5 +- ...surface_codegen__basic_3@graphvis_dot.snap | 5 +- ...ace_codegen__basic_3@graphvis_mermaid.snap | 5 +- ...ace_codegen__basic_union@graphvis_dot.snap | 5 +- ...codegen__basic_union@graphvis_mermaid.snap | 5 +- ...e_codegen__covid_tracing@graphvis_dot.snap | 5 +- ...degen__covid_tracing@graphvis_mermaid.snap | 5 +- ...rface_codegen__recv_expr@graphvis_dot.snap | 5 +- ...e_codegen__recv_expr@graphvis_mermaid.snap | 5 +- .../surface_codegen__sort@graphvis_dot.snap | 5 +- ...urface_codegen__sort@graphvis_mermaid.snap | 5 +- ...ace_codegen__sort_by_key@graphvis_dot.snap | 5 +- ...codegen__sort_by_key@graphvis_mermaid.snap | 5 +- ...x_reachability_generated@graphvis_dot.snap | 5 +- ...achability_generated@graphvis_mermaid.snap | 5 +- ...egen__transitive_closure@graphvis_dot.snap | 5 +- ...__transitive_closure@graphvis_mermaid.snap | 5 +- ...ntext_current_tick_start@graphvis_dot.snap | 45 - ...t_current_tick_start@graphvis_mermaid.snap | 38 - ...time_between_ticks_async@graphvis_dot.snap | 5 +- ..._between_ticks_async@graphvis_mermaid.snap | 5 +- ...ace_context__context_mut@graphvis_dot.snap | 5 +- ...context__context_mut@graphvis_mermaid.snap | 5 +- ...ace_context__context_ref@graphvis_dot.snap | 5 +- ...context__context_ref@graphvis_mermaid.snap | 5 +- ...e_cross_singleton__basic@graphvis_dot.snap | 3 +- ...oss_singleton__basic@graphvis_mermaid.snap | 3 +- ...gleton__union_defer_tick@graphvis_dot.snap | 2 +- ...on__union_defer_tick@graphvis_mermaid.snap | 2 +- ...ce__diff_multiset_static@graphvis_dot.snap | 5 +- ...diff_multiset_static@graphvis_mermaid.snap | 5 +- ...iff_multiset_static_tick@graphvis_dot.snap | 5 +- ...multiset_static_tick@graphvis_mermaid.snap | 5 +- ...iff_multiset_tick_static@graphvis_dot.snap | 5 +- ...multiset_tick_static@graphvis_mermaid.snap | 5 +- ...ce__diff_multiset_timing@graphvis_dot.snap | 5 +- ...diff_multiset_timing@graphvis_mermaid.snap | 5 +- ..._difference__diff_static@graphvis_dot.snap | 5 +- ...ference__diff_static@graphvis_mermaid.snap | 5 +- ..._difference__diff_timing@graphvis_dot.snap | 5 +- ...ference__diff_timing@graphvis_mermaid.snap | 5 +- .../surface_examples__example_1_simplest.snap | 2 +- .../surface_examples__example_2_simple_1.snap | 2 +- .../surface_examples__example_2_simple_2.snap | 2 +- .../surface_examples__example_3_stream.snap | 2 +- ...surface_examples__example_4_neighbors.snap | 2 +- ...face_examples__example_5_reachability.snap | 2 +- ...ce_examples__example_6_unreachability.snap | 2 +- .../surface_examples__example_naturals.snap | 2 +- ...amples__example_surface_flows_1_basic.snap | 2 +- ...ples__example_surface_flows_2_varname.snap | 2 +- ...amples__example_surface_flows_3_ports.snap | 2 +- ...ples__example_surface_flows_4_context.snap | 2 +- ...urface_examples__example_syntax_empty.snap | 2 +- ..._examples__example_syntax_hello_world.snap | 2 +- ...urface_examples__example_syntax_input.snap | 2 +- ...rface_examples__example_syntax_output.snap | 2 +- ...urface_flow_props__basic@graphvis_dot.snap | 56 - ...ce_flow_props__basic@graphvis_mermaid.snap | 51 - ...low_props__union_warning@graphvis_dot.snap | 30 - ...props__union_warning@graphvis_mermaid.snap | 28 - .../surface_fold__fold_sort@graphvis_dot.snap | 5 +- ...face_fold__fold_sort@graphvis_mermaid.snap | 5 +- ...urface_fold__fold_static@graphvis_dot.snap | 5 +- ...ce_fold__fold_static@graphvis_mermaid.snap | 5 +- ...e_fold__fold_static_join@graphvis_dot.snap | 2 +- ...ld__fold_static_join@graphvis_mermaid.snap | 2 +- .../surface_fold__fold_tick@graphvis_dot.snap | 5 +- ...face_fold__fold_tick@graphvis_mermaid.snap | 5 +- ...__fold_keyed_infer_basic@graphvis_dot.snap | 5 +- ...ld_keyed_infer_basic@graphvis_mermaid.snap | 5 +- ...keyed__fold_keyed_static@graphvis_dot.snap | 5 +- ...d__fold_keyed_static@graphvis_mermaid.snap | 5 +- ...d_keyed__fold_keyed_tick@graphvis_dot.snap | 5 +- ...yed__fold_keyed_tick@graphvis_mermaid.snap | 5 +- ...orwardref_basic_backward@graphvis_dot.snap | 5 +- ...rdref_basic_backward@graphvis_mermaid.snap | 5 +- ...forwardref_basic_forward@graphvis_dot.snap | 5 +- ...ardref_basic_forward@graphvis_mermaid.snap | 5 +- ..._forwardref_basic_middle@graphvis_dot.snap | 5 +- ...wardref_basic_middle@graphvis_mermaid.snap | 5 +- ...face_join__static_static@graphvis_dot.snap | 5 +- ..._join__static_static@graphvis_mermaid.snap | 5 +- ...urface_join__static_tick@graphvis_dot.snap | 5 +- ...ce_join__static_tick@graphvis_mermaid.snap | 5 +- ...urface_join__tick_static@graphvis_dot.snap | 5 +- ...ce_join__tick_static@graphvis_mermaid.snap | 5 +- .../surface_join__tick_tick@graphvis_dot.snap | 5 +- ...face_join__tick_tick@graphvis_mermaid.snap | 5 +- ...s_blocking_rhs_streaming@graphvis_dot.snap | 5 +- ...ocking_rhs_streaming@graphvis_mermaid.snap | 5 +- ...s_streaming_rhs_blocking@graphvis_dot.snap | 5 +- ...reaming_rhs_blocking@graphvis_mermaid.snap | 5 +- ...s_blocking_rhs_streaming@graphvis_dot.snap | 5 +- ...ocking_rhs_streaming@graphvis_mermaid.snap | 5 +- ...s_streaming_rhs_blocking@graphvis_dot.snap | 5 +- ...reaming_rhs_blocking@graphvis_mermaid.snap | 5 +- ...s_blocking_rhs_streaming@graphvis_dot.snap | 5 +- ...ocking_rhs_streaming@graphvis_mermaid.snap | 5 +- ...tick_lhs_fold_rhs_reduce@graphvis_dot.snap | 5 +- ..._lhs_fold_rhs_reduce@graphvis_mermaid.snap | 5 +- ...s_streaming_rhs_blocking@graphvis_dot.snap | 5 +- ...reaming_rhs_blocking@graphvis_mermaid.snap | 5 +- ...phism__cartesian_product@graphvis_dot.snap | 2 +- ...m__cartesian_product@graphvis_mermaid.snap | 2 +- ...__cartesian_product_1401@graphvis_dot.snap | 2 +- ...rtesian_product_1401@graphvis_mermaid.snap | 2 +- ...esian_product_tick_state@graphvis_dot.snap | 2 +- ...n_product_tick_state@graphvis_mermaid.snap | 2 +- ...lattice_bimorphism__join@graphvis_dot.snap | 2 +- ...ice_bimorphism__join@graphvis_mermaid.snap | 2 +- ...esian_product_multi_tick@graphvis_dot.snap | 3 +- ...n_product_multi_tick@graphvis_mermaid.snap | 3 +- ...duct_multi_tick_identity@graphvis_dot.snap | 3 +- ..._multi_tick_identity@graphvis_mermaid.snap | 3 +- ...n_product_multi_tick_tee@graphvis_dot.snap | 3 +- ...oduct_multi_tick_tee@graphvis_mermaid.snap | 3 +- ...surface_loop__flo_nested@graphvis_dot.snap | 2 +- ...ace_loop__flo_nested@graphvis_mermaid.snap | 2 +- ...surface_loop__flo_syntax@graphvis_dot.snap | 2 +- ...ace_loop__flo_syntax@graphvis_mermaid.snap | 2 +- ...et_delta__multiset_delta@graphvis_dot.snap | 5 +- ...elta__multiset_delta@graphvis_mermaid.snap | 5 +- ...surface_persist__persist@graphvis_dot.snap | 5 +- ...ace_persist__persist@graphvis_mermaid.snap | 5 +- ...e_persist__persist_basic@graphvis_dot.snap | 5 +- ...rsist__persist_basic@graphvis_mermaid.snap | 5 +- ...ace_persist__persist_mut@graphvis_dot.snap | 5 +- ...persist__persist_mut@graphvis_mermaid.snap | 5 +- ...rsist__persist_mut_keyed@graphvis_dot.snap | 5 +- ...t__persist_mut_keyed@graphvis_mermaid.snap | 5 +- ...ce_persist__persist_pull@graphvis_dot.snap | 5 +- ...ersist__persist_pull@graphvis_mermaid.snap | 5 +- ...ce_persist__persist_push@graphvis_dot.snap | 5 +- ...ersist__persist_push@graphvis_mermaid.snap | 5 +- ...ist__persist_replay_join@graphvis_dot.snap | 5 +- ..._persist_replay_join@graphvis_mermaid.snap | 5 +- ...ace_python__python_basic@graphvis_dot.snap | 5 +- ...python__python_basic@graphvis_mermaid.snap | 5 +- ...on__python_too_many_args@graphvis_dot.snap | 5 +- ...python_too_many_args@graphvis_mermaid.snap | 5 +- ..._python__python_two_args@graphvis_dot.snap | 5 +- ...hon__python_two_args@graphvis_mermaid.snap | 5 +- .../surface_reduce__reduce@graphvis_dot.snap | 5 +- ...rface_reduce__reduce@graphvis_mermaid.snap | 5 +- ...ce_reduce__reduce_static@graphvis_dot.snap | 5 +- ...educe__reduce_static@graphvis_mermaid.snap | 5 +- ...rface_reduce__reduce_sum@graphvis_dot.snap | 5 +- ...e_reduce__reduce_sum@graphvis_mermaid.snap | 5 +- ...face_reduce__reduce_tick@graphvis_dot.snap | 5 +- ..._reduce__reduce_tick@graphvis_mermaid.snap | 5 +- ...ssue_800_1050_fold_keyed@graphvis_dot.snap | 5 +- ..._800_1050_fold_keyed@graphvis_mermaid.snap | 5 +- ...__issue_800_1050_persist@graphvis_dot.snap | 5 +- ...sue_800_1050_persist@graphvis_mermaid.snap | 5 +- ...ue_800_1050_reduce_keyed@graphvis_dot.snap | 5 +- ...00_1050_reduce_keyed@graphvis_mermaid.snap | 5 +- ...duling__nospin_issue_961@graphvis_dot.snap | 5 +- ...ng__nospin_issue_961@graphvis_mermaid.snap | 5 +- ...in_issue_961_complicated@graphvis_dot.snap | 5 +- ...ssue_961_complicated@graphvis_mermaid.snap | 5 +- ...ersist_stratum_run_async@graphvis_dot.snap | 5 +- ...st_stratum_run_async@graphvis_mermaid.snap | 5 +- ...st_stratum_run_available@graphvis_dot.snap | 5 +- ...tratum_run_available@graphvis_mermaid.snap | 5 +- ...scheduling__stratum_loop@graphvis_dot.snap | 2 +- ...duling__stratum_loop@graphvis_mermaid.snap | 2 +- ...ce_scheduling__tick_loop@graphvis_dot.snap | 5 +- ...cheduling__tick_loop@graphvis_mermaid.snap | 5 +- ...ce_singleton__fold_cross@graphvis_dot.snap | 3 +- ...ingleton__fold_cross@graphvis_mermaid.snap | 3 +- ...ingleton__fold_singleton@graphvis_dot.snap | 3 +- ...eton__fold_singleton@graphvis_mermaid.snap | 2 +- ...ton__fold_singleton_push@graphvis_dot.snap | 5 +- ..._fold_singleton_push@graphvis_mermaid.snap | 5 +- ...ce_singleton__multi_tick@graphvis_dot.snap | 2 +- ...ingleton__multi_tick@graphvis_mermaid.snap | 2 +- ...gleton__reduce_singleton@graphvis_dot.snap | 5 +- ...on__reduce_singleton@graphvis_mermaid.snap | 5 +- ...n__reduce_singleton_push@graphvis_dot.snap | 5 +- ...educe_singleton_push@graphvis_mermaid.snap | 5 +- ...surface_singleton__state@graphvis_dot.snap | 3 +- ...ace_singleton__state@graphvis_mermaid.snap | 3 +- ..._singleton__state_unused@graphvis_dot.snap | 3 +- ...gleton__state_unused@graphvis_mermaid.snap | 3 +- ...face_stratum__defer_lazy@graphvis_dot.snap | 5 +- ..._stratum__defer_lazy@graphvis_mermaid.snap | 5 +- ...ce_stratum__difference_a@graphvis_dot.snap | 5 +- ...tratum__difference_a@graphvis_mermaid.snap | 5 +- ...ce_stratum__difference_b@graphvis_dot.snap | 5 +- ...tratum__difference_b@graphvis_mermaid.snap | 5 +- ...ph_stratum_consolidation@graphvis_dot.snap | 5 +- ...tratum_consolidation@graphvis_mermaid.snap | 5 +- ...tax_graph_unreachability@graphvis_dot.snap | 5 +- ...graph_unreachability@graphvis_mermaid.snap | 5 +- ...ace_stratum__tick_loop_1@graphvis_dot.snap | 5 +- ...stratum__tick_loop_1@graphvis_mermaid.snap | 5 +- ...ace_stratum__tick_loop_2@graphvis_dot.snap | 5 +- ...stratum__tick_loop_2@graphvis_mermaid.snap | 5 +- ...ace_stratum__tick_loop_3@graphvis_dot.snap | 5 +- ...stratum__tick_loop_3@graphvis_mermaid.snap | 5 +- .../surface_unique__unique@graphvis_dot.snap | 5 +- ...rface_unique__unique@graphvis_mermaid.snap | 5 +- ...ique__unique_static_pull@graphvis_dot.snap | 5 +- ...__unique_static_pull@graphvis_mermaid.snap | 5 +- ...ique__unique_static_push@graphvis_dot.snap | 5 +- ...__unique_static_push@graphvis_mermaid.snap | 5 +- ...unique__unique_tick_pull@graphvis_dot.snap | 5 +- ...ue__unique_tick_pull@graphvis_mermaid.snap | 5 +- ...unique__unique_tick_push@graphvis_dot.snap | 5 +- ...ue__unique_tick_push@graphvis_mermaid.snap | 5 +- ...p__tests__persist_pullup_behind_tee-2.snap | 42 - ...lup__tests__persist_pullup_behind_tee.snap | 58 - ...ist_pullup_behind_tee@surface_graph_0.snap | 20 - ...__tests__persist_pullup_through_map-2.snap | 20 - ...up__tests__persist_pullup_through_map.snap | 24 - ...st_pullup_through_map@surface_graph_0.snap | 10 - ...ts__profiler_wrapping_all_operators-2.snap | 26 - ...ests__profiler_wrapping_all_operators.snap | 24 - ...properties__tests__property_optimized.snap | 24 - ...ter__compute_pi__tests__compute_pi_ir.snap | 72 - ..._tests__compute_pi_ir@surface_graph_0.snap | 20 - ..._tests__compute_pi_ir@surface_graph_1.snap | 22 - ...er__many_to_many__tests__many_to_many.snap | 37 - ...ter__map_reduce__tests__map_reduce_ir.snap | 78 - ..._tests__map_reduce_ir@surface_graph_0.snap | 25 - ..._tests__map_reduce_ir@surface_graph_1.snap | 18 - ...cluster__paxos_bench__tests__paxos_ir.snap | 1588 --------- ...simple_cluster__tests__simple_cluster.snap | 76 - ...rst_ten__tests__first_ten_distributed.snap | 63 - ...ests__chat_app_no_replay@graphvis_dot.snap | 43 - ...__chat_app_no_replay@graphvis_mermaid.snap | 38 - ...__tests__chat_app_replay@graphvis_dot.snap | 50 - ...sts__chat_app_replay@graphvis_mermaid.snap | 44 - ...ount_elems__tests__count@graphvis_dot.snap | 43 - ..._elems__tests__count@graphvis_mermaid.snap | 36 - ...ity__tests__reachability@graphvis_dot.snap | 136 - ..._tests__reachability@graphvis_mermaid.snap | 111 - ..._anti_join_static_static@graphvis_dot.snap | 57 - ...i_join_static_static@graphvis_mermaid.snap | 48 - ...s__anti_join_static_tick@graphvis_dot.snap | 57 - ...nti_join_static_tick@graphvis_mermaid.snap | 48 - ...s__anti_join_tick_static@graphvis_dot.snap | 50 - ...nti_join_tick_static@graphvis_mermaid.snap | 42 - ...sts__anti_join_tick_tick@graphvis_dot.snap | 50 - ..._anti_join_tick_tick@graphvis_mermaid.snap | 42 - ...difference_static_static@graphvis_dot.snap | 50 - ...erence_static_static@graphvis_mermaid.snap | 42 - ...__difference_static_tick@graphvis_dot.snap | 50 - ...fference_static_tick@graphvis_mermaid.snap | 42 - ...__difference_tick_static@graphvis_dot.snap | 43 - ...fference_tick_static@graphvis_mermaid.snap | 36 - ...ts__difference_tick_tick@graphvis_dot.snap | 43 - ...difference_tick_tick@graphvis_mermaid.snap | 36 - ...d_join__tests__teed_join@graphvis_dot.snap | 67 - ...in__tests__teed_join@graphvis_mermaid.snap | 57 - ...ts__teed_join_multi_node@graphvis_dot.snap | 22 - ...teed_join_multi_node@graphvis_mermaid.snap | 20 - ...__tests__teed_join_twice@graphvis_dot.snap | 77 - ...sts__teed_join_twice@graphvis_mermaid.snap | 66 - .../lattices_macro__test__derive_example.snap | 3 +- .../lattices_macro__test__derive_pair.snap | 3 +- ...es_macro__test__derive_similar_fields.snap | 3 +- 330 files changed, 375 insertions(+), 27996 deletions(-) delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program-2.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph-2.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@surface_graph.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@datalog_program.snap delete mode 100644 dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@surface_graph.snap delete mode 100644 dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_dot.snap delete mode 100644 dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_mermaid.snap delete mode 100644 dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_dot.snap delete mode 100644 dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_mermaid.snap delete mode 100644 dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_dot.snap delete mode 100644 dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_mermaid.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee-2.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee@surface_graph_0.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map-2.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map@surface_graph_0.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators-2.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators.snap delete mode 100644 hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__properties__tests__property_optimized.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_0.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_1.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__many_to_many__tests__many_to_many.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_0.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_1.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__paxos_bench__tests__paxos_ir.snap delete mode 100644 hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__simple_cluster__tests__simple_cluster.snap delete mode 100644 hydro_test/src/distributed/snapshots/hydroflow_plus_test__distributed__first_ten__tests__first_ten_distributed.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_mermaid.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_dot.snap delete mode 100644 hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_mermaid.snap diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@datalog_program.snap deleted file mode 100644 index 2b3c9204830a..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@datalog_program.snap +++ /dev/null @@ -1,1136 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"union ()\"},\"version\":1},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result2 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 ,) , ((row . 0) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () . 1 , g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 ,) , (row . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev + val . 0) } else { Some (val . 0) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () , g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 ,) , (row . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev) } else { Some (val . 0) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () , g . 0 ,))\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1},{\"value\":{\"Operator\":\"identity ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":24,\"version\":1}],\"version\":5},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":3},{\"idx\":14,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":1,\"version\":3},{\"idx\":17,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":9,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":7,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":1,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":3},{\"idx\":18,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":22,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":23,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":23,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":25,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":25,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"2\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":6,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":4,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":22,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1},{\"value\":2,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":\"ints\",\"version\":1},{\"value\":\"result_insert\",\"version\":1},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result2_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":false,\"version\":1}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_1v3_send, hoff_1v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(1v3)"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_7v3_send, hoff_7v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(7v3)"); - let (hoff_9v3_send, hoff_9v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(9v3)"); - let (hoff_23v1_send, hoff_23v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(23v1)"); - let (hoff_25v1_send, hoff_25v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(25v1)"); - let mut sg_5v1_node_10v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_5v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_14v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_2v1_node_21v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - let sg_2v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_17v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(5v1)", - 0, - var_expr!(), - var_expr!(hoff_1v3_send, hoff_9v3_send, hoff_23v1_send), - false, - move | - context, - var_args!(), - var_args!(hoff_1v3_send, hoff_9v3_send, hoff_23v1_send)| - { - let hoff_1v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_1v3_send.give(Some(v)); - }); - let hoff_9v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_9v3_send.give(Some(v)); - }); - let hoff_23v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_23v1_send.give(Some(v)); - }); - let op_10v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_5v1_node_10v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__source_stream__loc_nopath_3_25_3_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__source_stream__loc_nopath_3_25_3_44(op_10v1) - }; - let op_2v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_5v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_3_19_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_3_19_3_23(op_2v1) - }; - let op_20v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.1,), (row.0,)), - hoff_23v1_send, - ); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_20v1__map__loc_nopath_1_0_1_0(op_20v1) - }; - let op_16v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.1,), (row.0,)), - hoff_1v3_send, - ); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_16v1__map__loc_nopath_1_0_1_0(op_16v1) - }; - let op_13v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.1,), ((row.0),)), - hoff_9v3_send, - ); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - op_13v1, - dfir_rs::pusherator::tee::Tee::new(op_16v1, op_20v1), - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_3_19_3_23< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_3_19_3_23(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_5v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_5v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 1, - var_expr!(hoff_9v3_recv, hoff_25v1_recv), - var_expr!(), - false, - 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(..); - let mut hoff_25v1_recv = hoff_25v1_recv.borrow_mut_swap(); - let hoff_25v1_recv = hoff_25v1_recv.drain(..); - let mut sg_1v1_node_14v1_hashtable = context - .state_ref(sg_1v1_node_14v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_9v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_1v1_node_14v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some({ - let prev: (dfir_rs::rustc_hash::FxHashSet<_>, _) = prev; - let mut set: dfir_rs::rustc_hash::FxHashSet<_> = prev.0; - if set.insert(val.0) { - (set, prev.1 + 1) - } else { - (set, prev.1) - } - }) - } else { - Some({ - let mut set = dfir_rs::rustc_hash::FxHashSet::< - _, - >::default(); - set.insert(val.0); - (set, 1) - }) - }; - }, - ); - } - } - let op_14v1 = sg_1v1_node_14v1_hashtable.drain(); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__fold_keyed__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_14v1.map(|(g, a): ((_,), _)| (a.0.unwrap().1, g.0)); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_1_0_1_0(op_15v1) - }; - let op_19v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_25v1_recv) - }; - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__defer_tick__loc_nopath_8_30_8_32< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__defer_tick__loc_nopath_8_30_8_32(op_19v1) - }; - let op_4v1 = { - #[allow(unused)] - #[inline(always)] - fn check_inputs< - A: ::std::iter::Iterator, - B: ::std::iter::Iterator, - Item, - >(a: A, b: B) -> impl ::std::iter::Iterator { - a.chain(b) - } - check_inputs(op_15v1, op_19v1) - }; - let op_4v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_4v1__union__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_4v1__union__loc_nopath_4_20_4_26(op_4v1) - }; - let op_5v1 = op_4v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_11v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_11v1__for_each__loc_nopath_4_28_4_65(op_11v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_11v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 1, - var_expr!(hoff_23v1_recv), - var_expr!(), - false, - 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(..); - let mut sg_2v1_node_21v1_hashtable = context - .state_ref(sg_2v1_node_21v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_23v1_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_2v1_node_21v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some(prev) - } else { - Some(val.0) - }; - }, - ); - } - } - let op_21v1 = sg_2v1_node_21v1_hashtable.drain(); - let op_21v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_21v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_21v1__fold_keyed__loc_nopath_1_0_1_0(op_21v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_22v1 = op_21v1.map(|(g, a): ((_,), _)| (a.0.unwrap(), g.0)); - let op_22v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_22v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_22v1__map__loc_nopath_1_0_1_0(op_22v1) - }; - let op_8v1 = op_22v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_5_20_5_27< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_5_20_5_27(op_8v1) - }; - let op_12v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result2.send(v).unwrap() - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__for_each__loc_nopath_5_29_5_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__for_each__loc_nopath_5_29_5_67(op_12v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_8v1, op_12v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(3v1)", - 1, - var_expr!(hoff_1v3_recv), - var_expr!(hoff_7v3_send), - false, - 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(..); - let hoff_7v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_7v3_send.give(Some(v)); - }); - let mut sg_3v1_node_17v1_hashtable = context - .state_ref(sg_3v1_node_17v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_1v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_3v1_node_17v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some(prev + val.0) - } else { - Some(val.0) - }; - }, - ); - } - } - let op_17v1 = sg_3v1_node_17v1_hashtable.drain(); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__fold_keyed__loc_nopath_1_0_1_0(op_17v1) - }; - #[inline(always)] - fn pivot_run_sg_3v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_3v1(op_17v1, hoff_7v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(4v1)", - 1, - var_expr!(hoff_7v3_recv), - var_expr!(hoff_6v3_send), - false, - 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(..); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = hoff_7v3_recv - .map(|(g, a): ((_,), _)| (a.0.unwrap(), g.0)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_1_0_1_0(op_18v1) - }; - #[inline(always)] - fn pivot_run_sg_4v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_4v1(op_18v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(6v1)", - 2, - var_expr!(hoff_6v3_recv), - var_expr!(hoff_25v1_send), - false, - 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(..); - let hoff_25v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_25v1_send.give(Some(v)); - }); - let op_24v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_6v3_recv) - }; - let op_24v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_24v1__identity__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_24v1__identity__loc_nopath_1_0_1_0(op_24v1) - }; - #[inline(always)] - fn pivot_run_sg_6v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_6v1(op_24v1, hoff_25v1_send); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@surface_graph.snap deleted file mode 100644 index 552fa38015a1..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_and_comments@surface_graph.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -4v1 = union (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -10v1 = source_stream (ints); -11v1 = for_each (| v | result . send (v) . unwrap ()); -12v1 = for_each (| v | result2 . send (v) . unwrap ()); -13v1 = map (| row : (_ , _ ,) | ((row . 1 ,) , ((row . 0) ,))); -14v1 = fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; }); -15v1 = map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () . 1 , g . 0 ,)); -16v1 = map (| row : (_ , _ ,) | ((row . 1 ,) , (row . 0 ,))); -17v1 = fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev + val . 0) } else { Some (val . 0) } ; }); -18v1 = map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () , g . 0 ,)); -19v1 = defer_tick (); -20v1 = map (| row : (_ , _ ,) | ((row . 1 ,) , (row . 0 ,))); -21v1 = fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev) } else { Some (val . 0) } ; }); -22v1 = map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () , g . 0 ,)); - -10v1 -> 2v1; -2v1 -> 3v1; -4v1 -> 5v1; -22v1 -> 8v1; -5v1 -> 11v1; -8v1 -> 12v1; -15v1 -> 4v1; -14v1 -> 15v1; -13v1 -> 14v1; -3v1 -> 13v1; -19v1 -> 4v1; -18v1 -> 19v1; -17v1 -> 18v1; -16v1 -> 17v1; -3v1 -> 16v1; -21v1 -> 22v1; -20v1 -> 21v1; -3v1 -> 20v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@datalog_program.snap deleted file mode 100644 index c02c6004342c..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@datalog_program.snap +++ /dev/null @@ -1,429 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 % 2 ,) , (row . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev + val . 0) } else { Some (val . 0) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 , a . 0 . unwrap () ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let mut sg_2v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_2v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_10v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_6v3_send)| { - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_25_2_44(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1.map(|row: (_, _)| ((row.0 % 2,), (row.1,))); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_1_0_1_0(op_9v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_9v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 1, - var_expr!(hoff_6v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_1v1_node_10v1_hashtable = context - .state_ref(sg_1v1_node_10v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_6v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_1v1_node_10v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some(prev + val.0) - } else { - Some(val.0) - }; - }, - ); - } - } - let op_10v1 = sg_1v1_node_10v1_hashtable.drain(); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__fold_keyed__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_,), _)| (g.0, a.0.unwrap())); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@surface_graph.snap deleted file mode 100644 index b98a7c2a52ed..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__aggregations_fold_keyed_expr@surface_graph.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row : (_ , _ ,) | ((row . 0 % 2 ,) , (row . 1 ,))); -10v1 = fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev + val . 0) } else { Some (val . 0) } ; }); -11v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 , a . 0 . unwrap () ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -10v1 -> 11v1; -9v1 -> 10v1; -2v1 -> 9v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@datalog_program.snap deleted file mode 100644 index 54f115e94c25..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@datalog_program.snap +++ /dev/null @@ -1,1049 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints_1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints_2)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints_3)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ((_ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 1 ,) , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"anti_join ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , (_ , _ ,)) | (kv . 0 . 0 , kv . 1 . 0 , kv . 1 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ , _ ,) | ((_v . 0 ,) , (_v . 1 , _v . 2 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (_v . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ , _ ,) | ((row . 1 , row . 2 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":9,\"version\":3}],\"version\":5},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":5},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":3},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":26,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":3},{\"idx\":21,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":22,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":23,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":23,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":12,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":25,\"version\":1},{\"idx\":26,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":25,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":23,\"version\":1},{\"idx\":21,\"version\":1},{\"idx\":22,\"version\":1},{\"idx\":25,\"version\":1},{\"idx\":26,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_3_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_4\",\"version\":1},{\"value\":\"join_4\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_9v3_send, hoff_9v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(9v3)"); - let (hoff_12v3_send, hoff_12v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(12v3)"); - let mut sg_2v1_node_15v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints_3) - }; - let sg_2v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_3v1_node_13v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints_1) - }; - let mut sg_4v1_node_14v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints_2) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_17v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_17v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_17v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_17v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_21v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_21v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_11v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_12v3_send), - false, - move |context, var_args!(), var_args!(hoff_12v3_send)| { - let hoff_12v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_12v3_send.give(Some(v)); - }); - let op_15v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_15v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__source_stream__loc_nopath_4_27_4_48< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__source_stream__loc_nopath_4_27_4_48(op_15v1) - }; - let op_8v1 = op_15v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_4_19_4_25< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_4_19_4_25(op_8v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_24v1 = op_8v1.map(|_v: (_,)| (_v.0,)); - let op_24v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_24v1__map__loc_nopath_7_57_7_66< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_24v1__map__loc_nopath_7_57_7_66(op_24v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_24v1, hoff_12v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(3v1)", - 0, - var_expr!(), - var_expr!(hoff_9v3_send), - false, - move |context, var_args!(), var_args!(hoff_9v3_send)| { - let hoff_9v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_9v3_send.give(Some(v)); - }); - let op_13v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_3v1_node_13v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__source_stream__loc_nopath_2_27_2_48< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__source_stream__loc_nopath_2_27_2_48(op_13v1) - }; - #[inline(always)] - fn pivot_run_sg_3v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_3v1(op_13v1, hoff_9v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(4v1)", - 0, - var_expr!(), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_6v3_send)| { - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_14v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_4v1_node_14v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__source_stream__loc_nopath_3_27_3_48< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__source_stream__loc_nopath_3_27_3_48(op_14v1) - }; - #[inline(always)] - fn pivot_run_sg_4v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_4v1(op_14v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 1, - var_expr!(hoff_6v3_recv, hoff_9v3_recv, hoff_12v3_recv), - var_expr!(), - false, - move | - context, - var_args!(hoff_6v3_recv, hoff_9v3_recv, hoff_12v3_recv), - var_args!()| - { - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - let mut hoff_9v3_recv = hoff_9v3_recv.borrow_mut_swap(); - let hoff_9v3_recv = hoff_9v3_recv.drain(..); - let mut hoff_12v3_recv = hoff_12v3_recv.borrow_mut_swap(); - let hoff_12v3_recv = hoff_12v3_recv.drain(..); - let op_2v1 = hoff_9v3_recv - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_25< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_25(op_2v1) - }; - let op_5v1 = hoff_6v3_recv - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_25< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_25(op_5v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = op_2v1.map(|_v: (_, _)| ((_v.1,), (_v.0,))); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_7_28_7_40< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_7_28_7_40(op_19v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_20v1 = op_5v1.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_7_42_7_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__map__loc_nopath_7_42_7_54(op_20v1) - }; - let mut sg_1v1_node_17v1_joindata_lhs_borrow = context - .state_ref(sg_1v1_node_17v1_joindata_lhs) - .borrow_mut(); - let mut sg_1v1_node_17v1_joindata_rhs_borrow = context - .state_ref(sg_1v1_node_17v1_joindata_rhs) - .borrow_mut(); - let op_17v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_19v1, - op_20v1, - &mut *sg_1v1_node_17v1_joindata_lhs_borrow, - &mut *sg_1v1_node_17v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__join__loc_nopath_7_12_7_66< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__join__loc_nopath_7_12_7_66(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1 - .map(|kv: ((_,), ((_,), (_,)))| (kv.0.0, kv.1.0.0, kv.1.1.0)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_7_12_7_66< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_7_12_7_66(op_18v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_23v1 = op_18v1.map(|_v: (_, _, _)| ((_v.0,), (_v.1, _v.2))); - let op_23v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_23v1__map__loc_nopath_7_28_7_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_23v1__map__loc_nopath_7_28_7_54(op_23v1) - }; - let mut sg_1v1_node_21v1_antijoindata_neg_borrow = context - .state_ref(sg_1v1_node_21v1_antijoindata_neg) - .borrow_mut(); - let mut sg_1v1_node_21v1_antijoindata_pos_borrow = context - .state_ref(sg_1v1_node_21v1_antijoindata_pos) - .borrow_mut(); - let op_21v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_12v3_recv, - op_23v1, - &mut *sg_1v1_node_21v1_antijoindata_neg_borrow - .get_mut_clear(context.current_tick()), - &mut *sg_1v1_node_21v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_21v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_21v1__anti_join__loc_nopath_7_12_7_66< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_21v1__anti_join__loc_nopath_7_12_7_66(op_21v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_22v1 = op_21v1 - .map(|kv: ((_,), (_, _))| (kv.0.0, kv.1.0, kv.1.1)); - let op_22v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_22v1__map__loc_nopath_7_12_7_66< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_22v1__map__loc_nopath_7_12_7_66(op_22v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_25v1 = op_22v1.map(|row: (_, _, _)| ((row.1, row.2), ())); - let op_25v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_25v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_25v1__map__loc_nopath_1_0_1_0(op_25v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_26v1 = op_25v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_26v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_26v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_26v1__map__loc_nopath_1_0_1_0(op_26v1) - }; - let op_11v1 = op_26v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_11v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__unique__loc_nopath_5_20_5_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__unique__loc_nopath_5_20_5_26(op_11v1) - }; - let op_16v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__for_each__loc_nopath_5_28_5_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_16v1__for_each__loc_nopath_5_28_5_65(op_16v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_11v1, op_16v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@surface_graph.snap deleted file mode 100644 index e689194d8f9b..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__anti_join@surface_graph.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -11v1 = unique :: < 'tick > (); -13v1 = source_stream (ints_1); -14v1 = source_stream (ints_2); -15v1 = source_stream (ints_3); -16v1 = for_each (| v | result . send (v) . unwrap ()); -17v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -18v1 = map (| kv : ((_ ,) , ((_ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,)); -19v1 = map (| _v : (_ , _ ,) | ((_v . 1 ,) , (_v . 0 ,))); -20v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -21v1 = anti_join (); -22v1 = map (| kv : ((_ ,) , (_ , _ ,)) | (kv . 0 . 0 , kv . 1 . 0 , kv . 1 . 1 ,)); -23v1 = map (| _v : (_ , _ , _ ,) | ((_v . 0 ,) , (_v . 1 , _v . 2 ,))); -24v1 = map (| _v : (_ ,) | (_v . 0 ,)); -25v1 = map (| row : (_ , _ , _ ,) | ((row . 1 , row . 2 ,) , ())); -26v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -13v1 -> 2v1; -14v1 -> 5v1; -15v1 -> 8v1; -26v1 -> 11v1; -11v1 -> 16v1; -17v1 -> 18v1; -19v1 -> 17v1; -2v1 -> 19v1; -20v1 -> 17v1; -5v1 -> 20v1; -21v1 -> 22v1; -23v1 -> 21v1; -18v1 -> 23v1; -24v1 -> 21v1; -8v1 -> 24v1; -25v1 -> 26v1; -22v1 -> 25v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@datalog_program.snap deleted file mode 100644 index fac2d144ef30..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@datalog_program.snap +++ /dev/null @@ -1,766 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints2)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : (() , ((_ ,) , (_ ,))) | (kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (() , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (() , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | (() , ((row . 0 , row . 1) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev ; set . insert (val . 0) ; set }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; set }) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : (() , _) | (a . 0 . unwrap () . into_iter () . collect :: < Vec < _ > > () ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":3},{\"idx\":18,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":9,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_9v3_send, hoff_9v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(9v3)"); - let mut sg_2v1_node_10v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_2v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_2v1_node_11v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints2) - }; - let sg_2v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_2v1_node_13v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_2v1_node_13v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_2v1_node_13v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_2v1_node_13v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_18v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(), (Option<_>,)>::default(), - ), - ); - let sg_1v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_9v3_send), - false, - move |context, var_args!(), var_args!(hoff_9v3_send)| { - let hoff_9v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_9v3_send.give(Some(v)); - }); - let op_10v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_10v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__source_stream__loc_nopath_2_26_2_46(op_10v1) - }; - let op_2v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_11v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_11v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__source_stream__loc_nopath_3_26_3_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__source_stream__loc_nopath_3_26_3_46(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_24(op_5v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_2v1.map(|_v: (_,)| ((), (_v.0,))); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_7_41_7_49< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_7_41_7_49(op_15v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = op_5v1.map(|_v: (_,)| ((), (_v.0,))); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_7_51_7_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_7_51_7_59(op_16v1) - }; - let mut sg_2v1_node_13v1_joindata_lhs_borrow = context - .state_ref(sg_2v1_node_13v1_joindata_lhs) - .borrow_mut(); - let mut sg_2v1_node_13v1_joindata_rhs_borrow = context - .state_ref(sg_2v1_node_13v1_joindata_rhs) - .borrow_mut(); - let op_13v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_15v1, - op_16v1, - &mut *sg_2v1_node_13v1_joindata_lhs_borrow, - &mut *sg_2v1_node_13v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__join__loc_nopath_7_12_7_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__join__loc_nopath_7_12_7_59(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1 - .map(|kv: ((), ((_,), (_,)))| (kv.1.0.0, kv.1.1.0)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_7_12_7_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_7_12_7_59(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_17v1 = op_14v1.map(|row: (_, _)| ((), ((row.0, row.1),))); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__map__loc_nopath_1_0_1_0(op_17v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_17v1, hoff_9v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 1, - var_expr!(hoff_9v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_1v1_node_18v1_hashtable = context - .state_ref(sg_1v1_node_18v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_9v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_1v1_node_18v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some({ - let mut set: dfir_rs::rustc_hash::FxHashSet<_> = prev; - set.insert(val.0); - set - }) - } else { - Some({ - let mut set = dfir_rs::rustc_hash::FxHashSet::< - _, - >::default(); - set.insert(val.0); - set - }) - }; - }, - ); - } - } - let op_18v1 = sg_1v1_node_18v1_hashtable.drain(); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__fold_keyed__loc_nopath_1_0_1_0(op_18v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = op_18v1 - .map(|(g, a): ((), _)| ( - a.0.unwrap().into_iter().collect::>(), - )); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_1_0_1_0(op_19v1) - }; - let op_8v1 = op_19v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_5_20_5_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_5_20_5_26(op_8v1) - }; - let op_12v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__for_each__loc_nopath_5_28_5_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__for_each__loc_nopath_5_28_5_65(op_12v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_8v1, op_12v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@surface_graph.snap deleted file mode 100644 index 2d97f21c1369..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__collect_vec@surface_graph.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -10v1 = source_stream (ints1); -11v1 = source_stream (ints2); -12v1 = for_each (| v | result . send (v) . unwrap ()); -13v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -14v1 = map (| kv : (() , ((_ ,) , (_ ,))) | (kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,)); -15v1 = map (| _v : (_ ,) | (() , (_v . 0 ,))); -16v1 = map (| _v : (_ ,) | (() , (_v . 0 ,))); -17v1 = map (| row : (_ , _ ,) | (() , ((row . 0 , row . 1) ,))); -18v1 = fold_keyed :: < 'tick , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev ; set . insert (val . 0) ; set }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; set }) } ; }); -19v1 = map (| (g , a) : (() , _) | (a . 0 . unwrap () . into_iter () . collect :: < Vec < _ > > () ,)); - -10v1 -> 2v1; -11v1 -> 5v1; -19v1 -> 8v1; -8v1 -> 12v1; -13v1 -> 14v1; -15v1 -> 13v1; -2v1 -> 15v1; -16v1 -> 13v1; -5v1 -> 16v1; -18v1 -> 19v1; -17v1 -> 18v1; -14v1 -> 17v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@datalog_program.snap deleted file mode 100644 index 3d6a1f5c7d1d..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@datalog_program.snap +++ /dev/null @@ -1,353 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row_untuple : (_ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1 - .map(|row_untuple: (_,)| (row_untuple.0.0, row_untuple.0.1)); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_6_12_6_41< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_6_12_6_41(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_4_28_4_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@surface_graph.snap deleted file mode 100644 index 63f7aeef3bfb..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple@surface_graph.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints1); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row_untuple : (_ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 ,)); -10v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -11v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -2v1 -> 9v1; -10v1 -> 11v1; -9v1 -> 10v1; diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@datalog_program.snap deleted file mode 100644 index 7b60943d3223..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@datalog_program.snap +++ /dev/null @@ -1,437 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row_untuple : (_ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"flat_map (| row : (_ , _ ,) | row . 0 . into_iter () . map (move | __flattened_element | (__flattened_element , :: std :: clone :: Clone :: clone (& row . 1) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"flat_map (| row : (_ , _ ,) | row . 1 . into_iter () . map (move | __flattened_element | (:: std :: clone :: Clone :: clone (& row . 0) , __flattened_element ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1},{\"value\":\"source_reader_0\",\"version\":1},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1 - .map(|row_untuple: (_,)| (row_untuple.0.0, row_untuple.0.1)); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_6_12_6_43< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_6_12_6_43(op_9v1) - }; - let op_10v1 = op_9v1 - .flat_map(|row: (_, _)| { - row - .0 - .into_iter() - .map(move |__flattened_element| ( - __flattened_element, - ::std::clone::Clone::clone(&row.1), - )) - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__flat_map__loc_nopath_6_12_6_43< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__flat_map__loc_nopath_6_12_6_43(op_10v1) - }; - let op_11v1 = op_10v1 - .flat_map(|row: (_, _)| { - row - .1 - .into_iter() - .map(move |__flattened_element| ( - ::std::clone::Clone::clone(&row.0), - __flattened_element, - )) - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__flat_map__loc_nopath_6_12_6_43< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__flat_map__loc_nopath_6_12_6_43(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_12v1 = op_11v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__map__loc_nopath_1_0_1_0(op_12v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = op_12v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - let op_5v1 = op_13v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_4_28_4_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@surface_graph.snap deleted file mode 100644 index 46d445f2f28a..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__detuple_then_flat@surface_graph.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints1); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row_untuple : (_ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 ,)); -10v1 = flat_map (| row : (_ , _ ,) | row . 0 . into_iter () . map (move | __flattened_element | (__flattened_element , :: std :: clone :: Clone :: clone (& row . 1) ,))); -11v1 = flat_map (| row : (_ , _ ,) | row . 1 . into_iter () . map (move | __flattened_element | (:: std :: clone :: Clone :: clone (& row . 0) , __flattened_element ,))); -12v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -13v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -13v1 -> 5v1; -5v1 -> 8v1; -10v1 -> 11v1; -9v1 -> 10v1; -2v1 -> 9v1; -12v1 -> 13v1; -11v1 -> 12v1; diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@datalog_program.snap deleted file mode 100644 index 4936922037d5..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@datalog_program.snap +++ /dev/null @@ -1,896 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"union ()\"},\"version\":1},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((123 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 + 123 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 . clone () + row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((123 - row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((123 % (row . 0 + 5) ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 * 5 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":1,\"version\":3},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":1,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":22,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":23,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":23,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"2\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"2\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"3\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"3\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"4\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"4\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"5\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"5\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1},{\"idx\":4,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":\"ints\",\"version\":1},{\"value\":\"result_insert\",\"version\":1},{\"value\":\"result_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_1v3_send, hoff_1v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(1v3)"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_21v1_send, hoff_21v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(21v1)"); - let (hoff_22v1_send, hoff_22v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(22v1)"); - let (hoff_23v1_send, hoff_23v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(23v1)"); - let (hoff_24v1_send, hoff_24v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(24v1)"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_2v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!( - hoff_1v3_send, hoff_6v3_send, hoff_21v1_send, hoff_22v1_send, - hoff_23v1_send, hoff_24v1_send - ), - false, - move | - context, - var_args!(), - var_args!( - hoff_1v3_send, hoff_6v3_send, hoff_21v1_send, hoff_22v1_send, - hoff_23v1_send, hoff_24v1_send - )| - { - let hoff_1v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_1v3_send.give(Some(v)); - }); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let hoff_21v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_21v1_send.give(Some(v)); - }); - let hoff_22v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_22v1_send.give(Some(v)); - }); - let hoff_23v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_23v1_send.give(Some(v)); - }); - let hoff_24v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_24v1_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_25_2_44(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_6v3_send, - dfir_rs::pusherator::tee::Tee::new( - hoff_1v3_send, - dfir_rs::pusherator::tee::Tee::new( - hoff_21v1_send, - dfir_rs::pusherator::tee::Tee::new( - hoff_22v1_send, - dfir_rs::pusherator::tee::Tee::new( - hoff_23v1_send, - hoff_24v1_send, - ), - ), - ), - ), - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_2_19_2_23< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_2_19_2_23(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!( - hoff_1v3_recv, hoff_6v3_recv, hoff_21v1_recv, hoff_22v1_recv, - hoff_23v1_recv, hoff_24v1_recv - ), - var_expr!(), - false, - move | - context, - var_args!( - hoff_1v3_recv, hoff_6v3_recv, hoff_21v1_recv, hoff_22v1_recv, - hoff_23v1_recv, hoff_24v1_recv - ), - var_args!()| - { - let mut hoff_1v3_recv = hoff_1v3_recv.borrow_mut_swap(); - let hoff_1v3_recv = hoff_1v3_recv.drain(..); - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - let mut hoff_21v1_recv = hoff_21v1_recv.borrow_mut_swap(); - let hoff_21v1_recv = hoff_21v1_recv.drain(..); - let mut hoff_22v1_recv = hoff_22v1_recv.borrow_mut_swap(); - let hoff_22v1_recv = hoff_22v1_recv.drain(..); - let mut hoff_23v1_recv = hoff_23v1_recv.borrow_mut_swap(); - let hoff_23v1_recv = hoff_23v1_recv.drain(..); - let mut hoff_24v1_recv = hoff_24v1_recv.borrow_mut_swap(); - let hoff_24v1_recv = hoff_24v1_recv.drain(..); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = hoff_6v3_recv.map(|row: (_,)| ((123,), ())); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_1_0_1_0(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = hoff_1v3_recv.map(|row: (_,)| ((row.0 + 123,), ())); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_12v1 = op_11v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__map__loc_nopath_1_0_1_0(op_12v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = hoff_21v1_recv - .map(|row: (_,)| ((row.0.clone() + row.0,), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = hoff_22v1_recv.map(|row: (_,)| ((123 - row.0,), ())); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_1_0_1_0(op_15v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = op_15v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_1_0_1_0(op_16v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_17v1 = hoff_23v1_recv - .map(|row: (_,)| ((123 % (row.0 + 5),), ())); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__map__loc_nopath_1_0_1_0(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_1_0_1_0(op_18v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = hoff_24v1_recv.map(|row: (_,)| ((row.0 * 5,), ())); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_1_0_1_0(op_19v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_20v1 = op_19v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__map__loc_nopath_1_0_1_0(op_20v1) - }; - let op_4v1 = { - #[allow(unused)] - #[inline(always)] - fn check_inputs< - A: ::std::iter::Iterator, - B: ::std::iter::Iterator, - Item, - >(a: A, b: B) -> impl ::std::iter::Iterator { - a.chain(b) - } - check_inputs( - check_inputs( - check_inputs( - check_inputs(check_inputs(op_10v1, op_12v1), op_14v1), - op_16v1, - ), - op_18v1, - ), - op_20v1, - ) - }; - let op_4v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_4v1__union__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_4v1__union__loc_nopath_3_20_3_26(op_4v1) - }; - let op_5v1 = op_4v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@surface_graph.snap deleted file mode 100644 index 11a87767309c..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_lhs@surface_graph.snap +++ /dev/null @@ -1,46 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -4v1 = union (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row : (_ ,) | ((123 ,) , ())); -10v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -11v1 = map (| row : (_ ,) | ((row . 0 + 123 ,) , ())); -12v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -13v1 = map (| row : (_ ,) | ((row . 0 . clone () + row . 0 ,) , ())); -14v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -15v1 = map (| row : (_ ,) | ((123 - row . 0 ,) , ())); -16v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -17v1 = map (| row : (_ ,) | ((123 % (row . 0 + 5) ,) , ())); -18v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -19v1 = map (| row : (_ ,) | ((row . 0 * 5 ,) , ())); -20v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); - -7v1 -> 2v1; -2v1 -> 3v1; -4v1 -> 5v1; -5v1 -> 8v1; -10v1 -> 4v1; -9v1 -> 10v1; -3v1 -> 9v1; -12v1 -> 4v1; -11v1 -> 12v1; -3v1 -> 11v1; -14v1 -> 4v1; -13v1 -> 14v1; -3v1 -> 13v1; -16v1 -> 4v1; -15v1 -> 16v1; -3v1 -> 15v1; -18v1 -> 4v1; -17v1 -> 18v1; -3v1 -> 17v1; -20v1 -> 4v1; -19v1 -> 20v1; -3v1 -> 19v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@datalog_program.snap deleted file mode 100644 index 309ce7303e3d..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@datalog_program.snap +++ /dev/null @@ -1,835 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"union ()\"},\"version\":1},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ ,) | row . 0 == 0)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ ,) | row . 0 != 0)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((2 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ ,) | row . 0 - 1 == 0)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((3 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ ,) | row . 0 - 1 == 1 - 1)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((4 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":1,\"version\":3},{\"idx\":13,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":1,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":22,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"2\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"2\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"3\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"3\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1},{\"idx\":4,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":\"ints\",\"version\":1},{\"value\":\"result_insert\",\"version\":1},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"predicate_1_filter\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"predicate_3_filter\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"predicate_5_filter\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"predicate_7_filter\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_1v3_send, hoff_1v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(1v3)"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_21v1_send, hoff_21v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(21v1)"); - let (hoff_22v1_send, hoff_22v1_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(22v1)"); - let mut sg_2v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_2v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_1v3_send, hoff_6v3_send, hoff_21v1_send, hoff_22v1_send), - false, - move | - context, - var_args!(), - var_args!( - hoff_1v3_send, hoff_6v3_send, hoff_21v1_send, hoff_22v1_send - )| - { - let hoff_1v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_1v3_send.give(Some(v)); - }); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let hoff_21v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_21v1_send.give(Some(v)); - }); - let hoff_22v1_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_22v1_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_25_2_44(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - let op_18v1 = dfir_rs::pusherator::filter::Filter::new( - |row: &(_,)| row.0 - 1 == 1 - 1, - hoff_22v1_send, - ); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__filter__loc_nopath_8_12_8_50< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_18v1__filter__loc_nopath_8_12_8_50(op_18v1) - }; - let op_15v1 = dfir_rs::pusherator::filter::Filter::new( - |row: &(_,)| row.0 - 1 == 0, - hoff_21v1_send, - ); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__filter__loc_nopath_7_12_7_46< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_15v1__filter__loc_nopath_7_12_7_46(op_15v1) - }; - let op_12v1 = dfir_rs::pusherator::filter::Filter::new( - |row: &(_,)| row.0 != 0, - hoff_1v3_send, - ); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__filter__loc_nopath_6_12_6_42< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__filter__loc_nopath_6_12_6_42(op_12v1) - }; - let op_9v1 = dfir_rs::pusherator::filter::Filter::new( - |row: &(_,)| row.0 == 0, - hoff_6v3_send, - ); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__filter__loc_nopath_5_12_5_42< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_9v1__filter__loc_nopath_5_12_5_42(op_9v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - op_9v1, - dfir_rs::pusherator::tee::Tee::new( - op_12v1, - dfir_rs::pusherator::tee::Tee::new(op_15v1, op_18v1), - ), - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_2_19_2_23< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_2_19_2_23(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(hoff_1v3_recv, hoff_6v3_recv, hoff_21v1_recv, hoff_22v1_recv), - var_expr!(), - false, - move | - context, - var_args!( - hoff_1v3_recv, hoff_6v3_recv, hoff_21v1_recv, hoff_22v1_recv - ), - var_args!()| - { - let mut hoff_1v3_recv = hoff_1v3_recv.borrow_mut_swap(); - let hoff_1v3_recv = hoff_1v3_recv.drain(..); - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - let mut hoff_21v1_recv = hoff_21v1_recv.borrow_mut_swap(); - let hoff_21v1_recv = hoff_21v1_recv.drain(..); - let mut hoff_22v1_recv = hoff_22v1_recv.borrow_mut_swap(); - let hoff_22v1_recv = hoff_22v1_recv.drain(..); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = hoff_6v3_recv.map(|row: (_,)| ((1,), ())); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = hoff_1v3_recv.map(|row: (_,)| ((2,), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = hoff_21v1_recv.map(|row: (_,)| ((3,), ())); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_1_0_1_0(op_16v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_17v1 = op_16v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__map__loc_nopath_1_0_1_0(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = hoff_22v1_recv.map(|row: (_,)| ((4,), ())); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_1_0_1_0(op_19v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_20v1 = op_19v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__map__loc_nopath_1_0_1_0(op_20v1) - }; - let op_4v1 = { - #[allow(unused)] - #[inline(always)] - fn check_inputs< - A: ::std::iter::Iterator, - B: ::std::iter::Iterator, - Item, - >(a: A, b: B) -> impl ::std::iter::Iterator { - a.chain(b) - } - check_inputs( - check_inputs(check_inputs(op_11v1, op_14v1), op_17v1), - op_20v1, - ) - }; - let op_4v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_4v1__union__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_4v1__union__loc_nopath_3_20_3_26(op_4v1) - }; - let op_5v1 = op_4v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@surface_graph.snap deleted file mode 100644 index 2c1dea237399..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__expr_predicate@surface_graph.snap +++ /dev/null @@ -1,44 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -4v1 = union (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = filter (| row : & (_ ,) | row . 0 == 0); -10v1 = map (| row : (_ ,) | ((1 ,) , ())); -11v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -12v1 = filter (| row : & (_ ,) | row . 0 != 0); -13v1 = map (| row : (_ ,) | ((2 ,) , ())); -14v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -15v1 = filter (| row : & (_ ,) | row . 0 - 1 == 0); -16v1 = map (| row : (_ ,) | ((3 ,) , ())); -17v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -18v1 = filter (| row : & (_ ,) | row . 0 - 1 == 1 - 1); -19v1 = map (| row : (_ ,) | ((4 ,) , ())); -20v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); - -7v1 -> 2v1; -2v1 -> 3v1; -4v1 -> 5v1; -5v1 -> 8v1; -3v1 -> 9v1; -11v1 -> 4v1; -10v1 -> 11v1; -9v1 -> 10v1; -3v1 -> 12v1; -14v1 -> 4v1; -13v1 -> 14v1; -12v1 -> 13v1; -3v1 -> 15v1; -17v1 -> 4v1; -16v1 -> 17v1; -15v1 -> 16v1; -3v1 -> 18v1; -20v1 -> 4v1; -19v1 -> 20v1; -18v1 -> 19v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@datalog_program.snap deleted file mode 100644 index f5c17ffb8073..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@datalog_program.snap +++ /dev/null @@ -1,392 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"flat_map (| row : (_ ,) | row . 0 . into_iter () . map (move | __flattened_element | (__flattened_element ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row_untuple : (_ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_9v1 = op_2v1 - .flat_map(|row: (_,)| { - row - .0 - .into_iter() - .map(move |__flattened_element| (__flattened_element,)) - }); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__flat_map__loc_nopath_6_12_6_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__flat_map__loc_nopath_6_12_6_42(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1 - .map(|row_untuple: (_,)| (row_untuple.0.0, row_untuple.0.1)); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_6_12_6_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_6_12_6_42(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_12v1 = op_11v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__map__loc_nopath_1_0_1_0(op_12v1) - }; - let op_5v1 = op_12v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_4_28_4_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@surface_graph.snap deleted file mode 100644 index 3d0b425bc2d2..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flat_then_detuple@surface_graph.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints1); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = flat_map (| row : (_ ,) | row . 0 . into_iter () . map (move | __flattened_element | (__flattened_element ,))); -10v1 = map (| row_untuple : (_ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 ,)); -11v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -12v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -12v1 -> 5v1; -5v1 -> 8v1; -9v1 -> 10v1; -2v1 -> 9v1; -11v1 -> 12v1; -10v1 -> 11v1; diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@datalog_program.snap deleted file mode 100644 index 1db76684e8dd..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@datalog_program.snap +++ /dev/null @@ -1,357 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"flat_map (| row : (_ , _ ,) | row . 1 . into_iter () . map (move | __flattened_element | (:: std :: clone :: Clone :: clone (& row . 0) , __flattened_element ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_9v1 = op_2v1 - .flat_map(|row: (_, _)| { - row - .1 - .into_iter() - .map(move |__flattened_element| ( - ::std::clone::Clone::clone(&row.0), - __flattened_element, - )) - }); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__flat_map__loc_nopath_6_12_6_40< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__flat_map__loc_nopath_6_12_6_40(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_4_28_4_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@surface_graph.snap deleted file mode 100644 index 9bf39aabba06..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__flatten@surface_graph.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints1); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = flat_map (| row : (_ , _ ,) | row . 1 . into_iter () . map (move | __flattened_element | (:: std :: clone :: Clone :: clone (& row . 0) , __flattened_element ,))); -10v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -11v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -2v1 -> 9v1; -10v1 -> 11v1; -9v1 -> 10v1; diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@datalog_program.snap deleted file mode 100644 index ca64cd58b257..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@datalog_program.snap +++ /dev/null @@ -1,2250 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"difference :: < 'tick , 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"difference :: < 'tick , 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result2 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result3 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result4 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"persist :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result5 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"enumerate :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (__enumerate_index , (g , a)) : (_ , ((_ , _ ,) , _)) | (g . 0 , g . 1 , __enumerate_index ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 ,) , ((row . 1) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"enumerate :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (__enumerate_index , (g , a)) : (_ , ((_ ,) , _)) | (g . 0 , a . 0 . unwrap () . 1 , __enumerate_index ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"enumerate :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (__enumerate_index , (g , a)) : (_ , ((_ , _ ,) , _)) | (g . 0 , g . 1 , __enumerate_index ,))\"},\"version\":1},{\"value\":{\"Operator\":\"persist :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 ,) , ((row . 1) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'static , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"enumerate :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (__enumerate_index , (g , a)) : (_ , ((_ ,) , _)) | (g . 0 , a . 0 . unwrap () . 1 , __enumerate_index ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"enumerate :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (__enumerate_index , (g , a)) : (_ , ((_ , _ ,) , _)) | (g . 0 , g . 1 , __enumerate_index ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":26,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":35,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":25,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":39,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":3},{\"idx\":23,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":45,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":3},{\"idx\":20,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":49,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":15,\"version\":3},{\"idx\":18,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":52,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":15,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":12,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":41,\"version\":1},{\"idx\":22,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":23,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":23,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":25,\"version\":1},{\"idx\":9,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":27,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":28,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":29,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":30,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":31,\"version\":1},{\"idx\":32,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":31,\"version\":1}],\"version\":1},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":34,\"version\":1},{\"idx\":35,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":33,\"version\":1},{\"idx\":34,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":33,\"version\":1}],\"version\":1},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":38,\"version\":1},{\"idx\":39,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":37,\"version\":1},{\"idx\":38,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":36,\"version\":1},{\"idx\":21,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":36,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":21,\"version\":3},{\"idx\":37,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":40,\"version\":1},{\"idx\":16,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":40,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":3},{\"idx\":51,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":44,\"version\":1},{\"idx\":45,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":43,\"version\":1},{\"idx\":44,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":42,\"version\":1},{\"idx\":43,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":42,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":3},{\"idx\":47,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":48,\"version\":1},{\"idx\":49,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":47,\"version\":1},{\"idx\":48,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":46,\"version\":1},{\"idx\":13,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":46,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":16,\"version\":3},{\"idx\":41,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":51,\"version\":1},{\"idx\":52,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":50,\"version\":1},{\"idx\":10,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":50,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"2\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"2\"},\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":20,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":25,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":26,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1},{\"idx\":33,\"version\":1},{\"idx\":34,\"version\":1},{\"idx\":35,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":27,\"version\":1},{\"idx\":36,\"version\":1},{\"idx\":40,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":37,\"version\":1},{\"idx\":38,\"version\":1},{\"idx\":39,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":28,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":41,\"version\":1},{\"idx\":22,\"version\":1},{\"idx\":23,\"version\":1},{\"idx\":24,\"version\":1},{\"idx\":42,\"version\":1},{\"idx\":43,\"version\":1},{\"idx\":44,\"version\":1},{\"idx\":45,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":29,\"version\":1},{\"idx\":46,\"version\":1},{\"idx\":50,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":47,\"version\":1},{\"idx\":48,\"version\":1},{\"idx\":49,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":30,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":51,\"version\":1},{\"idx\":52,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":31,\"version\":1},{\"idx\":32,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":2,\"version\":1},{\"value\":1,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":\"ints\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result3_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result4_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result5_insert\",\"version\":1},{\"value\":\"result5\",\"version\":1},{\"value\":\"result5\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_persisted_insert\",\"version\":1},{\"value\":\"ints_persisted\",\"version\":1},{\"value\":\"ints_persisted\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_9v3_send, hoff_9v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(9v3)"); - let (hoff_10v3_send, hoff_10v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(10v3)"); - let (hoff_12v3_send, hoff_12v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(12v3)"); - let (hoff_13v3_send, hoff_13v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(13v3)"); - let (hoff_15v3_send, hoff_15v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(15v3)"); - let (hoff_16v3_send, hoff_16v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(16v3)"); - let (hoff_21v3_send, hoff_21v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(21v3)"); - let mut sg_3v1_node_26v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_3v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_34v1_counterdata = df - .add_state(::std::cell::RefCell::new(0..)); - df.set_state_tick_hook( - sg_3v1_node_34v1_counterdata, - |rcell| { - rcell.replace(0..); - }, - ); - let sg_4v1_node_37v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - let sg_4v1_node_38v1_counterdata = df - .add_state(::std::cell::RefCell::new(0..)); - df.set_state_tick_hook( - sg_4v1_node_38v1_counterdata, - |rcell| { - rcell.replace(0..); - }, - ); - let sg_4v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_5v1_node_22v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_5v1_node_23v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new(dfir_rs::rustc_hash::FxHashSet::default()), - ); - let sg_5v1_node_23v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_5v1_node_11v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let singleton_op_45v1 = df - .add_state(::std::cell::RefCell::new(::std::vec::Vec::new())); - let sg_5v1_node_43v1_counterdata = df - .add_state(::std::cell::RefCell::new(0..)); - let sg_6v1_node_47v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - let sg_6v1_node_48v1_counterdata = df - .add_state(::std::cell::RefCell::new(0..)); - df.set_state_tick_hook( - sg_6v1_node_48v1_counterdata, - |rcell| { - rcell.replace(0..); - }, - ); - let sg_6v1_node_14v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_7v1_node_51v1_counterdata = df - .add_state(::std::cell::RefCell::new(0..)); - let sg_7v1_node_17v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_7v1_node_18v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new(dfir_rs::rustc_hash::FxHashSet::default()), - ); - let sg_7v1_node_18v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let singleton_op_31v1 = df - .add_state(::std::cell::RefCell::new(::std::vec::Vec::new())); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(3v1)", - 0, - var_expr!(), - var_expr!(hoff_16v3_send, hoff_21v3_send), - false, - move |context, var_args!(), var_args!(hoff_16v3_send, hoff_21v3_send)| { - let hoff_16v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_16v3_send.give(Some(v)); - }); - let hoff_21v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_21v3_send.give(Some(v)); - }); - let op_26v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_3v1_node_26v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_26v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_26v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_26v1__source_stream__loc_nopath_2_25_2_44(op_26v1) - }; - let op_2v1 = op_26v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_3v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - let op_40v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.0, row.1), ()), - hoff_16v3_send, - ); - let op_40v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_40v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_40v1__map__loc_nopath_1_0_1_0(op_40v1) - }; - let op_36v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.0,), ((row.1),)), - hoff_21v3_send, - ); - let op_36v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_36v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_36v1__map__loc_nopath_1_0_1_0(op_36v1) - }; - let op_27v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_27v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_27v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_27v1__for_each__loc_nopath_4_28_4_65(op_27v1) - }; - let op_5v1 = dfir_rs::pusherator::filter::Filter::new( - |item| { - let mut borrow = context - .state_ref(sg_3v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }, - op_27v1, - ); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_35v1 = dfir_rs::pusherator::map::Map::new( - |(__enumerate_index, (g, a)): (_, ((_, _), _))| ( - g.0, - g.1, - __enumerate_index, - ), - op_5v1, - ); - let op_35v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_35v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_35v1__map__loc_nopath_1_0_1_0(op_35v1) - }; - let op_34v1 = dfir_rs::pusherator::map::Map::new( - |item| { - let mut counter = context - .state_ref(sg_3v1_node_34v1_counterdata) - .borrow_mut(); - (counter.next().unwrap(), item) - }, - op_35v1, - ); - let op_34v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_34v1__enumerate__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_34v1__enumerate__loc_nopath_1_0_1_0(op_34v1) - }; - let op_33v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.0, row.1), ()), - op_34v1, - ); - let op_33v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_33v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_33v1__map__loc_nopath_1_0_1_0(op_33v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - op_33v1, - dfir_rs::pusherator::tee::Tee::new(op_36v1, op_40v1), - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_2_19_2_23< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_2_19_2_23(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_3v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_3v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(hoff_12v3_recv), - var_expr!(hoff_15v3_send), - false, - 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(..); - let hoff_15v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_15v3_send.give(Some(v)); - }); - let op_20v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_12v3_recv) - }; - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__defer_tick__loc_nopath_9_21_9_28< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__defer_tick__loc_nopath_9_21_9_28(op_20v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_20v1, hoff_15v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(hoff_6v3_recv), - var_expr!(hoff_9v3_send), - false, - 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(..); - let hoff_9v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_9v3_send.give(Some(v)); - }); - let op_25v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_6v3_recv) - }; - let op_25v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_25v1__defer_tick__loc_nopath_15_21_15_35< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_25v1__defer_tick__loc_nopath_15_21_15_35(op_25v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_25v1, hoff_9v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(4v1)", - 1, - var_expr!(hoff_21v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_4v1_node_37v1_hashtable = context - .state_ref(sg_4v1_node_37v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_21v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_4v1_node_37v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some({ - let prev: (dfir_rs::rustc_hash::FxHashSet<_>, _) = prev; - let mut set: dfir_rs::rustc_hash::FxHashSet<_> = prev.0; - if set.insert(val.0) { - (set, prev.1 + 1) - } else { - (set, prev.1) - } - }) - } else { - Some({ - let mut set = dfir_rs::rustc_hash::FxHashSet::< - _, - >::default(); - set.insert(val.0); - (set, 1) - }) - }; - }, - ); - } - } - let op_37v1 = sg_4v1_node_37v1_hashtable.drain(); - let op_37v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_37v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_37v1__fold_keyed__loc_nopath_1_0_1_0(op_37v1) - }; - let op_38v1 = ::std::iter::Iterator::map( - op_37v1, - |item| { - let mut counter = context - .state_ref(sg_4v1_node_38v1_counterdata) - .borrow_mut(); - (counter.next().unwrap(), item) - }, - ); - let op_38v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_38v1__enumerate__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_38v1__enumerate__loc_nopath_1_0_1_0(op_38v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_39v1 = op_38v1 - .map(|(__enumerate_index, (g, a)): (_, ((_,), _))| ( - g.0, - a.0.unwrap().1, - __enumerate_index, - )); - let op_39v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_39v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_39v1__map__loc_nopath_1_0_1_0(op_39v1) - }; - let op_8v1 = op_39v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_4v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_5_20_5_27< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_5_20_5_27(op_8v1) - }; - let op_28v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result2.send(v).unwrap() - }); - let op_28v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_28v1__for_each__loc_nopath_5_29_5_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_28v1__for_each__loc_nopath_5_29_5_67(op_28v1) - }; - #[inline(always)] - fn pivot_run_sg_4v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_4v1(op_8v1, op_28v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(5v1)", - 1, - var_expr!(hoff_9v3_recv, hoff_16v3_recv), - var_expr!(hoff_6v3_send, hoff_10v3_send, hoff_13v3_send), - false, - move | - context, - var_args!(hoff_9v3_recv, hoff_16v3_recv), - var_args!(hoff_6v3_send, hoff_10v3_send, hoff_13v3_send)| - { - let mut hoff_9v3_recv = hoff_9v3_recv.borrow_mut_swap(); - let hoff_9v3_recv = hoff_9v3_recv.drain(..); - let mut hoff_16v3_recv = hoff_16v3_recv.borrow_mut_swap(); - let hoff_16v3_recv = hoff_16v3_recv.drain(..); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let hoff_10v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_10v3_send.give(Some(v)); - }); - let hoff_13v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_13v3_send.give(Some(v)); - }); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_41v1 = hoff_16v3_recv.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_41v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_41v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_41v1__map__loc_nopath_1_0_1_0(op_41v1) - }; - let op_22v1 = op_41v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_5v1_node_22v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_22v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_22v1__unique__loc_nopath_15_21_15_35< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_22v1__unique__loc_nopath_15_21_15_35(op_22v1) - }; - let op_22v1 = op_22v1.map(|k| (k, ())); - let mut sg_5v1_node_23v1_antijoindata_neg_borrow = context - .state_ref(sg_5v1_node_23v1_antijoindata_neg) - .borrow_mut(); - let mut sg_5v1_node_23v1_antijoindata_pos_borrow = context - .state_ref(sg_5v1_node_23v1_antijoindata_pos) - .borrow_mut(); - let op_23v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_9v3_recv, - op_22v1, - &mut *sg_5v1_node_23v1_antijoindata_neg_borrow, - &mut *sg_5v1_node_23v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_23v1 = op_23v1.map(|(k, ())| k); - let op_23v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_23v1__difference__loc_nopath_15_21_15_35< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_23v1__difference__loc_nopath_15_21_15_35(op_23v1) - }; - let op_50v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.0, row.1), ()), - hoff_10v3_send, - ); - let op_50v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_50v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_50v1__map__loc_nopath_1_0_1_0(op_50v1) - }; - let op_46v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.0,), ((row.1),)), - hoff_13v3_send, - ); - let op_46v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_46v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_46v1__map__loc_nopath_1_0_1_0(op_46v1) - }; - let op_29v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result3.send(v).unwrap() - }); - let op_29v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_29v1__for_each__loc_nopath_6_29_6_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_29v1__for_each__loc_nopath_6_29_6_67(op_29v1) - }; - let op_11v1 = dfir_rs::pusherator::filter::Filter::new( - |item| { - let mut borrow = context - .state_ref(sg_5v1_node_11v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }, - op_29v1, - ); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__unique__loc_nopath_6_20_6_27< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_11v1__unique__loc_nopath_6_20_6_27(op_11v1) - }; - let mut sg_5v1_node_45v1_persistvec = context - .state_ref(singleton_op_45v1) - .borrow_mut(); - let op_45v1 = { - fn constrain_types<'ctx, Push, Item>( - vec: &'ctx mut Vec, - mut output: Push, - is_new_tick: bool, - ) -> impl 'ctx + dfir_rs::pusherator::Pusherator - where - Push: 'ctx + dfir_rs::pusherator::Pusherator, - Item: ::std::clone::Clone, - { - if is_new_tick { - vec.iter() - .cloned() - .for_each(|item| { - dfir_rs::pusherator::Pusherator::give(&mut output, item); - }); - } - dfir_rs::pusherator::map::Map::new( - |item| { - vec.push(item); - vec.last().unwrap().clone() - }, - output, - ) - } - constrain_types( - &mut *sg_5v1_node_45v1_persistvec, - op_11v1, - context.is_first_run_this_tick(), - ) - }; - let op_45v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_45v1__persist__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_45v1__persist__loc_nopath_1_0_1_0(op_45v1) - }; - let op_44v1 = dfir_rs::pusherator::map::Map::new( - |(__enumerate_index, (g, a)): (_, ((_, _), _))| ( - g.0, - g.1, - __enumerate_index, - ), - op_45v1, - ); - let op_44v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_44v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_44v1__map__loc_nopath_1_0_1_0(op_44v1) - }; - let op_43v1 = dfir_rs::pusherator::map::Map::new( - |item| { - let mut counter = context - .state_ref(sg_5v1_node_43v1_counterdata) - .borrow_mut(); - (counter.next().unwrap(), item) - }, - op_44v1, - ); - let op_43v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_43v1__enumerate__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_43v1__enumerate__loc_nopath_1_0_1_0(op_43v1) - }; - let op_42v1 = dfir_rs::pusherator::map::Map::new( - |row: (_, _)| ((row.0, row.1), ()), - op_43v1, - ); - let op_42v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_42v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_42v1__map__loc_nopath_1_0_1_0(op_42v1) - }; - let op_24v1 = dfir_rs::pusherator::tee::Tee::new( - op_42v1, - dfir_rs::pusherator::tee::Tee::new( - op_46v1, - dfir_rs::pusherator::tee::Tee::new(op_50v1, hoff_6v3_send), - ), - ); - let op_24v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_24v1__tee__loc_nopath_15_21_15_35< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_24v1__tee__loc_nopath_15_21_15_35(op_24v1) - }; - #[inline(always)] - fn pivot_run_sg_5v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_5v1(op_23v1, op_24v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(6v1)", - 2, - var_expr!(hoff_13v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_6v1_node_47v1_hashtable = context - .state_ref(sg_6v1_node_47v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_13v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_6v1_node_47v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some({ - let prev: (dfir_rs::rustc_hash::FxHashSet<_>, _) = prev; - let mut set: dfir_rs::rustc_hash::FxHashSet<_> = prev.0; - if set.insert(val.0) { - (set, prev.1 + 1) - } else { - (set, prev.1) - } - }) - } else { - Some({ - let mut set = dfir_rs::rustc_hash::FxHashSet::< - _, - >::default(); - set.insert(val.0); - (set, 1) - }) - }; - }, - ); - } - } - let op_47v1 = context - .is_first_run_this_tick() - .then_some(sg_6v1_node_47v1_hashtable.iter()) - .into_iter() - .flatten() - .map( - #[allow( - unknown_lints, - suspicious_double_ref_op, - clippy::clone_on_copy - )] - |(k, v)| ( - ::std::clone::Clone::clone(k), - ::std::clone::Clone::clone(v), - ), - ); - let op_47v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_47v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_47v1__fold_keyed__loc_nopath_1_0_1_0(op_47v1) - }; - let op_48v1 = ::std::iter::Iterator::map( - op_47v1, - |item| { - let mut counter = context - .state_ref(sg_6v1_node_48v1_counterdata) - .borrow_mut(); - (counter.next().unwrap(), item) - }, - ); - let op_48v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_48v1__enumerate__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_48v1__enumerate__loc_nopath_1_0_1_0(op_48v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_49v1 = op_48v1 - .map(|(__enumerate_index, (g, a)): (_, ((_,), _))| ( - g.0, - a.0.unwrap().1, - __enumerate_index, - )); - let op_49v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_49v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_49v1__map__loc_nopath_1_0_1_0(op_49v1) - }; - let op_14v1 = op_49v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_6v1_node_14v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__unique__loc_nopath_7_20_7_27< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__unique__loc_nopath_7_20_7_27(op_14v1) - }; - let op_30v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result4.send(v).unwrap() - }); - let op_30v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_30v1__for_each__loc_nopath_7_29_7_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_30v1__for_each__loc_nopath_7_29_7_67(op_30v1) - }; - #[inline(always)] - fn pivot_run_sg_6v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_6v1(op_14v1, op_30v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(7v1)", - 1, - var_expr!(hoff_10v3_recv, hoff_15v3_recv), - var_expr!(hoff_12v3_send), - false, - move | - context, - var_args!(hoff_10v3_recv, hoff_15v3_recv), - var_args!(hoff_12v3_send)| - { - let mut hoff_10v3_recv = hoff_10v3_recv.borrow_mut_swap(); - let hoff_10v3_recv = hoff_10v3_recv.drain(..); - let mut hoff_15v3_recv = hoff_15v3_recv.borrow_mut_swap(); - let hoff_15v3_recv = hoff_15v3_recv.drain(..); - let hoff_12v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_12v3_send.give(Some(v)); - }); - let op_51v1 = ::std::iter::Iterator::map( - hoff_10v3_recv, - |item| { - let mut counter = context - .state_ref(sg_7v1_node_51v1_counterdata) - .borrow_mut(); - (counter.next().unwrap(), item) - }, - ); - let op_51v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_51v1__enumerate__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_51v1__enumerate__loc_nopath_1_0_1_0(op_51v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_52v1 = op_51v1 - .map(|(__enumerate_index, (g, a)): (_, ((_, _), _))| ( - g.0, - g.1, - __enumerate_index, - )); - let op_52v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_52v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_52v1__map__loc_nopath_1_0_1_0(op_52v1) - }; - let op_17v1 = op_52v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_7v1_node_17v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__unique__loc_nopath_9_21_9_28< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__unique__loc_nopath_9_21_9_28(op_17v1) - }; - let op_17v1 = op_17v1.map(|k| (k, ())); - let mut sg_7v1_node_18v1_antijoindata_neg_borrow = context - .state_ref(sg_7v1_node_18v1_antijoindata_neg) - .borrow_mut(); - let mut sg_7v1_node_18v1_antijoindata_pos_borrow = context - .state_ref(sg_7v1_node_18v1_antijoindata_pos) - .borrow_mut(); - let op_18v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_15v3_recv, - op_17v1, - &mut *sg_7v1_node_18v1_antijoindata_neg_borrow, - &mut *sg_7v1_node_18v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_18v1 = op_18v1.map(|(k, ())| k); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__difference__loc_nopath_9_21_9_28< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__difference__loc_nopath_9_21_9_28(op_18v1) - }; - let op_32v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result5.send(v).unwrap() - }); - let op_32v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_32v1__for_each__loc_nopath_10_29_10_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_32v1__for_each__loc_nopath_10_29_10_67(op_32v1) - }; - let mut sg_7v1_node_31v1_persistvec = context - .state_ref(singleton_op_31v1) - .borrow_mut(); - let op_31v1 = { - fn constrain_types<'ctx, Push, Item>( - vec: &'ctx mut Vec, - mut output: Push, - is_new_tick: bool, - ) -> impl 'ctx + dfir_rs::pusherator::Pusherator - where - Push: 'ctx + dfir_rs::pusherator::Pusherator, - Item: ::std::clone::Clone, - { - if is_new_tick { - vec.iter() - .cloned() - .for_each(|item| { - dfir_rs::pusherator::Pusherator::give(&mut output, item); - }); - } - dfir_rs::pusherator::map::Map::new( - |item| { - vec.push(item); - vec.last().unwrap().clone() - }, - output, - ) - } - constrain_types( - &mut *sg_7v1_node_31v1_persistvec, - op_32v1, - context.is_first_run_this_tick(), - ) - }; - let op_31v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_31v1__persist__loc_nopath_10_20_10_27< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_31v1__persist__loc_nopath_10_20_10_27(op_31v1) - }; - let op_19v1 = dfir_rs::pusherator::tee::Tee::new( - op_31v1, - hoff_12v3_send, - ); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__tee__loc_nopath_9_21_9_28< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_19v1__tee__loc_nopath_9_21_9_28(op_19v1) - }; - #[inline(always)] - fn pivot_run_sg_7v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_7v1(op_18v1, op_19v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@surface_graph.snap deleted file mode 100644 index dac17fb2677c..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__index@surface_graph.snap +++ /dev/null @@ -1,89 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -11v1 = unique :: < 'tick > (); -14v1 = unique :: < 'tick > (); -17v1 = unique :: < 'tick > (); -18v1 = difference :: < 'tick , 'static > (); -19v1 = tee (); -20v1 = defer_tick (); -22v1 = unique :: < 'tick > (); -23v1 = difference :: < 'tick , 'static > (); -24v1 = tee (); -25v1 = defer_tick (); -26v1 = source_stream (ints); -27v1 = for_each (| v | result . send (v) . unwrap ()); -28v1 = for_each (| v | result2 . send (v) . unwrap ()); -29v1 = for_each (| v | result3 . send (v) . unwrap ()); -30v1 = for_each (| v | result4 . send (v) . unwrap ()); -31v1 = persist :: < 'static > (); -32v1 = for_each (| v | result5 . send (v) . unwrap ()); -33v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -34v1 = enumerate :: < 'tick > (); -35v1 = map (| (__enumerate_index , (g , a)) : (_ , ((_ , _ ,) , _)) | (g . 0 , g . 1 , __enumerate_index ,)); -36v1 = map (| row : (_ , _ ,) | ((row . 0 ,) , ((row . 1) ,))); -37v1 = fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; }); -38v1 = enumerate :: < 'tick > (); -39v1 = map (| (__enumerate_index , (g , a)) : (_ , ((_ ,) , _)) | (g . 0 , a . 0 . unwrap () . 1 , __enumerate_index ,)); -40v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -41v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); -42v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -43v1 = enumerate :: < 'static > (); -44v1 = map (| (__enumerate_index , (g , a)) : (_ , ((_ , _ ,) , _)) | (g . 0 , g . 1 , __enumerate_index ,)); -45v1 = persist :: < 'static > (); -46v1 = map (| row : (_ , _ ,) | ((row . 0 ,) , ((row . 1) ,))); -47v1 = fold_keyed :: < 'static , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; }); -48v1 = enumerate :: < 'tick > (); -49v1 = map (| (__enumerate_index , (g , a)) : (_ , ((_ ,) , _)) | (g . 0 , a . 0 . unwrap () . 1 , __enumerate_index ,)); -50v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -51v1 = enumerate :: < 'static > (); -52v1 = map (| (__enumerate_index , (g , a)) : (_ , ((_ , _ ,) , _)) | (g . 0 , g . 1 , __enumerate_index ,)); - -26v1 -> 2v1; -2v1 -> 3v1; -35v1 -> 5v1; -39v1 -> 8v1; -45v1 -> 11v1; -49v1 -> 14v1; -52v1 -> 17v1; -18v1 -> 19v1; -17v1 -> 18v1; -20v1 -> 18v1; -19v1 -> 20v1; -41v1 -> 22v1; -23v1 -> 24v1; -22v1 -> 23v1; -25v1 -> 23v1; -24v1 -> 25v1; -5v1 -> 27v1; -8v1 -> 28v1; -11v1 -> 29v1; -14v1 -> 30v1; -31v1 -> 32v1; -19v1 -> 31v1; -34v1 -> 35v1; -33v1 -> 34v1; -3v1 -> 33v1; -38v1 -> 39v1; -37v1 -> 38v1; -36v1 -> 37v1; -3v1 -> 36v1; -40v1 -> 41v1; -3v1 -> 40v1; -44v1 -> 45v1; -43v1 -> 44v1; -42v1 -> 43v1; -24v1 -> 42v1; -48v1 -> 49v1; -47v1 -> 48v1; -46v1 -> 47v1; -24v1 -> 46v1; -51v1 -> 52v1; -50v1 -> 51v1; -24v1 -> 50v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@datalog_program.snap deleted file mode 100644 index 18f2b04e3108..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@datalog_program.snap +++ /dev/null @@ -1,638 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (in1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (in2)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ , _ ,) , (() , ())) | (kv . 0 . 0 , kv . 0 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 , _v . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 1 , _v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_10v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_1v1_node_11v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in2) - }; - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_13v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_13v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_13v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_13v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_10v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_10v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__source_stream__loc_nopath_2_24_2_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__source_stream__loc_nopath_2_24_2_42(op_10v1) - }; - let op_2v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_22(op_2v1) - }; - let op_11v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_11v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__source_stream__loc_nopath_3_24_3_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__source_stream__loc_nopath_3_24_3_42(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_22(op_5v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_2v1.map(|_v: (_, _)| ((_v.0, _v.1), ())); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_6_25_6_34< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_6_25_6_34(op_15v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = op_5v1.map(|_v: (_, _)| ((_v.1, _v.0), ())); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_6_36_6_45< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_6_36_6_45(op_16v1) - }; - let mut sg_1v1_node_13v1_joindata_lhs_borrow = context - .state_ref(sg_1v1_node_13v1_joindata_lhs) - .borrow_mut(); - let mut sg_1v1_node_13v1_joindata_rhs_borrow = context - .state_ref(sg_1v1_node_13v1_joindata_rhs) - .borrow_mut(); - let op_13v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_15v1, - op_16v1, - &mut *sg_1v1_node_13v1_joindata_lhs_borrow, - &mut *sg_1v1_node_13v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__join__loc_nopath_6_12_6_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__join__loc_nopath_6_12_6_46(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|kv: ((_, _), ((), ()))| (kv.0.0, kv.0.1)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_6_12_6_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_6_12_6_46(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_17v1 = op_14v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__map__loc_nopath_1_0_1_0(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_1_0_1_0(op_18v1) - }; - let op_8v1 = op_18v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_4_20_4_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_4_20_4_23(op_8v1) - }; - let op_12v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__for_each__loc_nopath_4_25_4_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__for_each__loc_nopath_4_25_4_59(op_12v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_8v1, op_12v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@surface_graph.snap deleted file mode 100644 index 8c1af6c72029..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_other@surface_graph.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -10v1 = source_stream (in1); -11v1 = source_stream (in2); -12v1 = for_each (| v | out . send (v) . unwrap ()); -13v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -14v1 = map (| kv : ((_ , _ ,) , (() , ())) | (kv . 0 . 0 , kv . 0 . 1 ,)); -15v1 = map (| _v : (_ , _ ,) | ((_v . 0 , _v . 1 ,) , ())); -16v1 = map (| _v : (_ , _ ,) | ((_v . 1 , _v . 0 ,) , ())); -17v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -18v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -10v1 -> 2v1; -11v1 -> 5v1; -18v1 -> 8v1; -8v1 -> 12v1; -13v1 -> 14v1; -15v1 -> 13v1; -2v1 -> 15v1; -16v1 -> 13v1; -5v1 -> 16v1; -17v1 -> 18v1; -14v1 -> 17v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@datalog_program.snap deleted file mode 100644 index bdcefc91d593..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@datalog_program.snap +++ /dev/null @@ -1,600 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (input)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ , _ ,) , (() , ())) | (kv . 0 . 0 , kv . 0 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 , _v . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 1 , _v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":4,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":3},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"input_insert\",\"version\":1},{\"value\":\"input\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_4v3_send, hoff_4v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(4v3)"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(input) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_2v1_node_9v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_2v1_node_9v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_2v1_node_9v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_2v1_node_9v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_2v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(hoff_4v3_send, hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_4v3_send, hoff_6v3_send)| { - let hoff_4v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_4v3_send.give(Some(v)); - }); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_6v3_send, - hoff_4v3_send, - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_2_19_2_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_2_19_2_24(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(hoff_4v3_recv, hoff_6v3_recv), - var_expr!(), - false, - 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(..); - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = hoff_6v3_recv.map(|_v: (_, _)| ((_v.0, _v.1), ())); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_5_25_5_36< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_5_25_5_36(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_12v1 = hoff_4v3_recv.map(|_v: (_, _)| ((_v.1, _v.0), ())); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__map__loc_nopath_5_38_5_49< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__map__loc_nopath_5_38_5_49(op_12v1) - }; - let mut sg_2v1_node_9v1_joindata_lhs_borrow = context - .state_ref(sg_2v1_node_9v1_joindata_lhs) - .borrow_mut(); - let mut sg_2v1_node_9v1_joindata_rhs_borrow = context - .state_ref(sg_2v1_node_9v1_joindata_rhs) - .borrow_mut(); - let op_9v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_11v1, - op_12v1, - &mut *sg_2v1_node_9v1_joindata_lhs_borrow, - &mut *sg_2v1_node_9v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__join__loc_nopath_5_12_5_50< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__join__loc_nopath_5_12_5_50(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|kv: ((_, _), ((), ()))| (kv.0.0, kv.0.1)); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_5_12_5_50< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_5_12_5_50(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = op_10v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - let op_5v1 = op_14v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_23(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_25_3_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_25_3_59(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@surface_graph.snap deleted file mode 100644 index 3f161afffefc..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__join_with_self@surface_graph.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (input); -8v1 = for_each (| v | out . send (v) . unwrap ()); -9v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -10v1 = map (| kv : ((_ , _ ,) , (() , ())) | (kv . 0 . 0 , kv . 0 . 1 ,)); -11v1 = map (| _v : (_ , _ ,) | ((_v . 0 , _v . 1 ,) , ())); -12v1 = map (| _v : (_ , _ ,) | ((_v . 1 , _v . 0 ,) , ())); -13v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -14v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -2v1 -> 3v1; -14v1 -> 5v1; -5v1 -> 8v1; -9v1 -> 10v1; -11v1 -> 9v1; -3v1 -> 11v1; -12v1 -> 9v1; -3v1 -> 12v1; -13v1 -> 14v1; -10v1 -> 13v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program-2.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program-2.snap deleted file mode 100644 index 4e16f36c88a5..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program-2.snap +++ /dev/null @@ -1,354 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (input)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ , _ , _ , _ ,) | row . 0 == row . 1 && row . 2 == row . 3)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ , _ , _ ,) | ((row . 0 . clone () , row . 0 , row . 2 . clone () , row . 2 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 , g . 3 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"input_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(input) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_9v1 = op_2v1 - .filter(|row: &(_, _, _, _)| row.0 == row.1 && row.2 == row.3); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__filter__loc_nopath_5_12_5_49< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__filter__loc_nopath_5_12_5_49(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1 - .map(|row: (_, _, _, _)| ( - (row.0.clone(), row.0, row.2.clone(), row.2), - (), - )); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1 - .map(|(g, a): ((_, _, _, _), _)| (g.0, g.1, g.2, g.3)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_23(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_25_3_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_25_3_59(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program.snap deleted file mode 100644 index abf4f7ebfba9..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@datalog_program.snap +++ /dev/null @@ -1,348 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (input)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ , _ ,) | row . 0 == row . 1)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 . clone () , row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"input_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(input) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_9v1 = op_2v1.filter(|row: &(_, _)| row.0 == row.1); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__filter__loc_nopath_5_12_5_37< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__filter__loc_nopath_5_12_5_37(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|row: (_, _)| ((row.0.clone(), row.0), ())); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_23(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_25_3_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_25_3_59(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph-2.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph-2.snap deleted file mode 100644 index 4384ceaf7355..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph-2.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (input); -8v1 = for_each (| v | out . send (v) . unwrap ()); -9v1 = filter (| row : & (_ , _ , _ , _ ,) | row . 0 == row . 1 && row . 2 == row . 3); -10v1 = map (| row : (_ , _ , _ , _ ,) | ((row . 0 . clone () , row . 0 , row . 2 . clone () , row . 2 ,) , ())); -11v1 = map (| (g , a) : ((_ , _ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 , g . 3 ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -2v1 -> 9v1; -10v1 -> 11v1; -9v1 -> 10v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph.snap deleted file mode 100644 index 20b02c1ed8ce..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__local_constraints@surface_graph.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (input); -8v1 = for_each (| v | out . send (v) . unwrap ()); -9v1 = filter (| row : & (_ , _ ,) | row . 0 == row . 1); -10v1 = map (| row : (_ , _ ,) | ((row . 0 . clone () , row . 0 ,) , ())); -11v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -2v1 -> 9v1; -10v1 -> 11v1; -9v1 -> 10v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@datalog_program.snap deleted file mode 100644 index 572e747c8eb8..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@datalog_program.snap +++ /dev/null @@ -1,429 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 ,) , (row . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (std :: cmp :: max (prev , val . 0)) } else { Some (val . 0) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () , g . 0 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let mut sg_2v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_2v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_10v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(_,), (Option<_>,)>::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_6v3_send)| { - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_25_2_44(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1.map(|row: (_, _)| ((row.1,), (row.0,))); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_1_0_1_0(op_9v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_9v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 1, - var_expr!(hoff_6v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_1v1_node_10v1_hashtable = context - .state_ref(sg_1v1_node_10v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_6v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_1v1_node_10v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some(std::cmp::max(prev, val.0)) - } else { - Some(val.0) - }; - }, - ); - } - } - let op_10v1 = sg_1v1_node_10v1_hashtable.drain(); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__fold_keyed__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_,), _)| (a.0.unwrap(), g.0)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@surface_graph.snap deleted file mode 100644 index c6d94c9e2ac5..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max@surface_graph.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row : (_ , _ ,) | ((row . 1 ,) , (row . 0 ,))); -10v1 = fold_keyed :: < 'tick , (_ ,) , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (std :: cmp :: max (prev , val . 0)) } else { Some (val . 0) } ; }); -11v1 = map (| (g , a) : ((_ ,) , _) | (a . 0 . unwrap () , g . 0 ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -10v1 -> 11v1; -9v1 -> 10v1; -2v1 -> 9v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@datalog_program.snap deleted file mode 100644 index 9a8198f3bba7..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@datalog_program.snap +++ /dev/null @@ -1,438 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | (() , (row . 0 , row . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , () , (Option < _ > , Option < _ > ,) > (| | (None , None ,) , | old : & mut (Option < _ > , Option < _ > ,) , val : (_ , _ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (std :: cmp :: max (prev , val . 0)) } else { Some (val . 0) } ; old . 1 = if let Some (prev) = old . 1 . take () { Some (std :: cmp :: max (prev , val . 1)) } else { Some (val . 1) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : (() , _) | (a . 0 . unwrap () , a . 1 . unwrap () ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let mut sg_2v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_2v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_10v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::< - (), - (Option<_>, Option<_>), - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_6v3_send)| { - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_25_2_44(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1.map(|row: (_, _)| ((), (row.0, row.1))); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_1_0_1_0(op_9v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_9v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 1, - var_expr!(hoff_6v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_1v1_node_10v1_hashtable = context - .state_ref(sg_1v1_node_10v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_6v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_1v1_node_10v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None, None)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>, Option<_>), val: (_, _)| { - old.0 = if let Some(prev) = old.0.take() { - Some(std::cmp::max(prev, val.0)) - } else { - Some(val.0) - }; - old.1 = if let Some(prev) = old.1.take() { - Some(std::cmp::max(prev, val.1)) - } else { - Some(val.1) - }; - }, - ); - } - } - let op_10v1 = sg_1v1_node_10v1_hashtable.drain(); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__fold_keyed__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1 - .map(|(g, a): ((), _)| (a.0.unwrap(), a.1.unwrap())); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@surface_graph.snap deleted file mode 100644 index 8ef1e2e7c6eb..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__max_all@surface_graph.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row : (_ , _ ,) | (() , (row . 0 , row . 1 ,))); -10v1 = fold_keyed :: < 'tick , () , (Option < _ > , Option < _ > ,) > (| | (None , None ,) , | old : & mut (Option < _ > , Option < _ > ,) , val : (_ , _ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (std :: cmp :: max (prev , val . 0)) } else { Some (val . 0) } ; old . 1 = if let Some (prev) = old . 1 . take () { Some (std :: cmp :: max (prev , val . 1)) } else { Some (val . 1) } ; }); -11v1 = map (| (g , a) : (() , _) | (a . 0 . unwrap () , a . 1 . unwrap () ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -10v1 -> 11v1; -9v1 -> 10v1; -2v1 -> 9v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@datalog_program.snap deleted file mode 100644 index d639be85c0ec..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@datalog_program.snap +++ /dev/null @@ -1,315 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (input)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 , row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"input_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(input) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1.map(|row: (_, _)| ((row.1, row.0), ())); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_1_0_1_0(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - let op_5v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_23(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_25_3_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_25_3_59(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@surface_graph.snap deleted file mode 100644 index 63f2736efaab..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__minimal_program@surface_graph.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (input); -8v1 = for_each (| v | out . send (v) . unwrap ()); -9v1 = map (| row : (_ , _ ,) | ((row . 1 , row . 0 ,) , ())); -10v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -10v1 -> 5v1; -5v1 -> 8v1; -9v1 -> 10v1; -2v1 -> 9v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@datalog_program.snap deleted file mode 100644 index aa314c9d99f3..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@datalog_program.snap +++ /dev/null @@ -1,402 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row_untuple : (_ , _ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 , row_untuple . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row_untuple : (_ , _ , _ ,) | (row_untuple . 0 , row_untuple . 1 , row_untuple . 2 . 0 , row_untuple . 2 . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ , _ , _ ,) | ((row . 0 , row . 1 , row . 2 , row . 3 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 , g . 3 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"source_reader_0\",\"version\":1},{\"value\":\"source_reader_0\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1 - .map(|row_untuple: (_, _)| ( - row_untuple.0.0, - row_untuple.0.1, - row_untuple.1, - )); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_6_12_6_55< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_6_12_6_55(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1 - .map(|row_untuple: (_, _, _)| ( - row_untuple.0, - row_untuple.1, - row_untuple.2.0, - row_untuple.2.1, - )); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_6_12_6_55< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_6_12_6_55(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1 - .map(|row: (_, _, _, _)| ((row.0, row.1, row.2, row.3), ())); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_12v1 = op_11v1 - .map(|(g, a): ((_, _, _, _), _)| (g.0, g.1, g.2, g.3)); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__map__loc_nopath_1_0_1_0(op_12v1) - }; - let op_5v1 = op_12v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_4_20_4_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_4_20_4_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_4_28_4_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_4_28_4_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@surface_graph.snap deleted file mode 100644 index d19d8f1dd48e..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multi_detuple@surface_graph.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints1); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row_untuple : (_ , _ ,) | (row_untuple . 0 . 0 , row_untuple . 0 . 1 , row_untuple . 1 ,)); -10v1 = map (| row_untuple : (_ , _ , _ ,) | (row_untuple . 0 , row_untuple . 1 , row_untuple . 2 . 0 , row_untuple . 2 . 1 ,)); -11v1 = map (| row : (_ , _ , _ , _ ,) | ((row . 0 , row . 1 , row . 2 , row . 3 ,) , ())); -12v1 = map (| (g , a) : ((_ , _ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 , g . 3 ,)); - -7v1 -> 2v1; -12v1 -> 5v1; -5v1 -> 8v1; -9v1 -> 10v1; -2v1 -> 9v1; -11v1 -> 12v1; -10v1 -> 11v1; diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@datalog_program.snap deleted file mode 100644 index 9d4b717ba183..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@datalog_program.snap +++ /dev/null @@ -1,547 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"union ()\"},\"version\":1},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (in1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (in2)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 , row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":7,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":7,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":7,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":\"out_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_10v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_1v1_node_11v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in2) - }; - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_10v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_10v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__source_stream__loc_nopath_2_24_2_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__source_stream__loc_nopath_2_24_2_42(op_10v1) - }; - let op_2v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_22(op_2v1) - }; - let op_11v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_11v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__source_stream__loc_nopath_3_24_3_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__source_stream__loc_nopath_3_24_3_42(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_22(op_5v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = op_2v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_5v1.map(|row: (_, _)| ((row.1, row.0), ())); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_1_0_1_0(op_15v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = op_15v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_1_0_1_0(op_16v1) - }; - let op_7v1 = { - #[allow(unused)] - #[inline(always)] - fn check_inputs< - A: ::std::iter::Iterator, - B: ::std::iter::Iterator, - Item, - >(a: A, b: B) -> impl ::std::iter::Iterator { - a.chain(b) - } - check_inputs(op_14v1, op_16v1) - }; - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__union__loc_nopath_4_20_4_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__union__loc_nopath_4_20_4_23(op_7v1) - }; - let op_8v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_4_20_4_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_4_20_4_23(op_8v1) - }; - let op_12v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__for_each__loc_nopath_4_25_4_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__for_each__loc_nopath_4_25_4_59(op_12v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_8v1, op_12v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@surface_graph.snap deleted file mode 100644 index a342d31d186a..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__multiple_contributors@surface_graph.snap +++ /dev/null @@ -1,27 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = union (); -8v1 = unique :: < 'tick > (); -10v1 = source_stream (in1); -11v1 = source_stream (in2); -12v1 = for_each (| v | out . send (v) . unwrap ()); -13v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -14v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); -15v1 = map (| row : (_ , _ ,) | ((row . 1 , row . 0 ,) , ())); -16v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -10v1 -> 2v1; -11v1 -> 5v1; -7v1 -> 8v1; -8v1 -> 12v1; -14v1 -> 7v1; -13v1 -> 14v1; -2v1 -> 13v1; -16v1 -> 7v1; -15v1 -> 16v1; -5v1 -> 15v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@datalog_program.snap deleted file mode 100644 index a43723cfe12a..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@datalog_program.snap +++ /dev/null @@ -1,315 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (strings)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 . clone () , row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"strings_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(strings) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_28_2_50< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_28_2_50(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_26(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_9v1 = op_2v1.map(|row: (_,)| ((row.0.clone(), row.0), ())); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__map__loc_nopath_1_0_1_0(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - let op_5v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@surface_graph.snap deleted file mode 100644 index 466a1c39edd9..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__non_copy_but_clone@surface_graph.snap +++ /dev/null @@ -1,17 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (strings); -8v1 = for_each (| v | result . send (v) . unwrap ()); -9v1 = map (| row : (_ ,) | ((row . 0 . clone () , row . 0 ,) , ())); -10v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -10v1 -> 5v1; -5v1 -> 8v1; -9v1 -> 10v1; -2v1 -> 9v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@datalog_program.snap deleted file mode 100644 index d7ae8237c1ef..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@datalog_program.snap +++ /dev/null @@ -1,2996 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"difference :: < 'tick , 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"difference :: < 'tick , 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"difference :: < 'tick , 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints2)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints3)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result2 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result3 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result4 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'static , 'static , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : (() , ((_ ,) , (_ ,))) | (kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (() , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (() , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'static , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : (() , ((_ , _ ,) , (_ ,))) | (kv . 1 . 0 . 0 , kv . 1 . 0 . 1 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | (() , (_v . 0 , _v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (() , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ , _ ,) | ((row . 0 , row . 1 , row . 2 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"anti_join ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ()) | (kv . 0 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"persist :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | ((_v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"persist :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | (_v . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"persist :: < 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"persist :: < 'static > ()\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":34,\"version\":1},{\"idx\":14,\"version\":3}],\"version\":5},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":28,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":25,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":35,\"version\":1},{\"idx\":11,\"version\":3}],\"version\":5},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":22,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":19,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":36,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":5},{\"value\":[{\"idx\":13,\"version\":3},{\"idx\":33,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":50,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":3},{\"idx\":31,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":58,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":19,\"version\":3},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":63,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":22,\"version\":3},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":68,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":25,\"version\":3},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":61,\"version\":1},{\"idx\":27,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":28,\"version\":3},{\"idx\":3,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":65,\"version\":1},{\"idx\":30,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":31,\"version\":1},{\"idx\":32,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":30,\"version\":1},{\"idx\":31,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":33,\"version\":1},{\"idx\":16,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":32,\"version\":1},{\"idx\":13,\"version\":3}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":11,\"version\":3},{\"idx\":7,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":37,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":38,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":39,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":40,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":41,\"version\":1},{\"idx\":42,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":43,\"version\":1},{\"idx\":41,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":29,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":44,\"version\":1},{\"idx\":41,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":26,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":45,\"version\":1},{\"idx\":46,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":47,\"version\":1},{\"idx\":45,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":42,\"version\":1},{\"idx\":47,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":48,\"version\":1},{\"idx\":45,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":48,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":14,\"version\":3},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":49,\"version\":1},{\"idx\":50,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":46,\"version\":1},{\"idx\":49,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":51,\"version\":1},{\"idx\":52,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":54,\"version\":1},{\"idx\":51,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":53,\"version\":1},{\"idx\":54,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":23,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":56,\"version\":1},{\"idx\":20,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":55,\"version\":1},{\"idx\":56,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":55,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":3},{\"idx\":65,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":57,\"version\":1},{\"idx\":58,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":52,\"version\":1},{\"idx\":57,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":26,\"version\":3},{\"idx\":44,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":60,\"version\":1},{\"idx\":61,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":59,\"version\":1},{\"idx\":60,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":59,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":20,\"version\":3},{\"idx\":51,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":62,\"version\":1},{\"idx\":63,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":27,\"version\":1},{\"idx\":62,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":29,\"version\":3},{\"idx\":43,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":64,\"version\":1},{\"idx\":17,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":64,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":23,\"version\":3},{\"idx\":53,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":67,\"version\":1},{\"idx\":68,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":66,\"version\":1},{\"idx\":67,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":32,\"version\":1},{\"idx\":66,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"2\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"3\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":8,\"version\":1},\"version\":1},{\"value\":{\"idx\":8,\"version\":1},\"version\":1},{\"value\":{\"idx\":8,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":9,\"version\":1},\"version\":1},{\"value\":{\"idx\":10,\"version\":1},\"version\":1},{\"value\":{\"idx\":11,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":8,\"version\":1},\"version\":1},{\"value\":{\"idx\":8,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1},{\"value\":{\"idx\":7,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":5,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":33,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":43,\"version\":1},{\"idx\":44,\"version\":1},{\"idx\":41,\"version\":1},{\"idx\":42,\"version\":1},{\"idx\":47,\"version\":1},{\"idx\":48,\"version\":1},{\"idx\":45,\"version\":1},{\"idx\":46,\"version\":1},{\"idx\":49,\"version\":1},{\"idx\":50,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":37,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":53,\"version\":1},{\"idx\":54,\"version\":1},{\"idx\":51,\"version\":1},{\"idx\":52,\"version\":1},{\"idx\":57,\"version\":1},{\"idx\":58,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":38,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1},{\"idx\":4,\"version\":1},{\"idx\":59,\"version\":1},{\"idx\":60,\"version\":1},{\"idx\":61,\"version\":1},{\"idx\":27,\"version\":1},{\"idx\":62,\"version\":1},{\"idx\":63,\"version\":1},{\"idx\":21,\"version\":1},{\"idx\":39,\"version\":1},{\"idx\":64,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":65,\"version\":1},{\"idx\":30,\"version\":1},{\"idx\":31,\"version\":1},{\"idx\":32,\"version\":1},{\"idx\":66,\"version\":1},{\"idx\":67,\"version\":1},{\"idx\":68,\"version\":1},{\"idx\":24,\"version\":1},{\"idx\":40,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":55,\"version\":1},{\"idx\":56,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":34,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":35,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":36,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":1,\"version\":1},{\"value\":2,\"version\":1},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":\"ints1\",\"version\":1},{\"value\":\"ints1\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints2_insert\",\"version\":1},{\"value\":\"ints2\",\"version\":1},{\"value\":\"ints2\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints3_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result3_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result4_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"intermediate_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"intermediate_persist_insert\",\"version\":1},{\"value\":\"intermediate_persist\",\"version\":1},{\"value\":\"intermediate_persist\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_4\",\"version\":1},{\"value\":\"join_4\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_7\",\"version\":1},{\"value\":\"join_7\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_11v3_send, hoff_11v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(11v3)"); - let (hoff_13v3_send, hoff_13v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(13v3)"); - let (hoff_14v3_send, hoff_14v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(14v3)"); - let (hoff_16v3_send, hoff_16v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(16v3)"); - let (hoff_17v3_send, hoff_17v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(17v3)"); - let (hoff_19v3_send, hoff_19v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(19v3)"); - let (hoff_20v3_send, hoff_20v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(20v3)"); - let (hoff_22v3_send, hoff_22v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(22v3)"); - let (hoff_23v3_send, hoff_23v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(23v3)"); - let (hoff_25v3_send, hoff_25v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(25v3)"); - let (hoff_26v3_send, hoff_26v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(26v3)"); - let (hoff_28v3_send, hoff_28v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(28v3)"); - let (hoff_29v3_send, hoff_29v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(29v3)"); - let mut sg_9v1_node_34v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let mut sg_10v1_node_35v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints2) - }; - let mut sg_11v1_node_36v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints3) - }; - let sg_4v1_node_12v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_4v1_node_41v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - let sg_4v1_node_41v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - let sg_4v1_node_45v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - let sg_4v1_node_45v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_4v1_node_45v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_4v1_node_15v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let singleton_op_53v1 = df - .add_state(::std::cell::RefCell::new(::std::vec::Vec::new())); - let sg_5v1_node_51v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_5v1_node_51v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_5v1_node_18v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_6v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_6v1_node_3v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new(dfir_rs::rustc_hash::FxHashSet::default()), - ); - let sg_6v1_node_3v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_6v1_node_21v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_6v1_node_27v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let singleton_op_61v1 = df - .add_state(::std::cell::RefCell::new(::std::vec::Vec::new())); - let sg_7v1_node_30v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_7v1_node_31v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new(dfir_rs::rustc_hash::FxHashSet::default()), - ); - let sg_7v1_node_31v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_7v1_node_24v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let singleton_op_68v1 = df - .add_state(::std::cell::RefCell::new(::std::vec::Vec::new())); - let sg_8v1_node_7v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_8v1_node_8v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new(dfir_rs::rustc_hash::FxHashSet::default()), - ); - let sg_8v1_node_8v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let singleton_op_55v1 = df - .add_state(::std::cell::RefCell::new(::std::vec::Vec::new())); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(9v1)", - 0, - var_expr!(), - var_expr!(hoff_14v3_send), - false, - move |context, var_args!(), var_args!(hoff_14v3_send)| { - let hoff_14v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_14v3_send.give(Some(v)); - }); - let op_34v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_9v1_node_34v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_34v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_34v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_34v1__source_stream__loc_nopath_2_26_2_46(op_34v1) - }; - #[inline(always)] - fn pivot_run_sg_9v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_9v1(op_34v1, hoff_14v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(10v1)", - 0, - var_expr!(), - var_expr!(hoff_11v3_send), - false, - move |context, var_args!(), var_args!(hoff_11v3_send)| { - let hoff_11v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_11v3_send.give(Some(v)); - }); - let op_35v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_10v1_node_35v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_35v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_35v1__source_stream__loc_nopath_5_26_5_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_35v1__source_stream__loc_nopath_5_26_5_46(op_35v1) - }; - #[inline(always)] - fn pivot_run_sg_10v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_10v1(op_35v1, hoff_11v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(11v1)", - 0, - var_expr!(), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_6v3_send)| { - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_36v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_11v1_node_36v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_36v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_36v1__source_stream__loc_nopath_8_26_8_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_36v1__source_stream__loc_nopath_8_26_8_46(op_36v1) - }; - #[inline(always)] - fn pivot_run_sg_11v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_11v1(op_36v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(hoff_25v3_recv), - var_expr!(hoff_28v3_send), - false, - move |context, var_args!(hoff_25v3_recv), var_args!(hoff_28v3_send)| { - let mut hoff_25v3_recv = hoff_25v3_recv.borrow_mut_swap(); - let hoff_25v3_recv = hoff_25v3_recv.drain(..); - let hoff_28v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_28v3_send.give(Some(v)); - }); - let op_5v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_25v3_recv) - }; - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__defer_tick__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__defer_tick__loc_nopath_2_19_2_24(op_5v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, hoff_28v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(hoff_19v3_recv), - var_expr!(hoff_22v3_send), - false, - move |context, var_args!(hoff_19v3_recv), var_args!(hoff_22v3_send)| { - let mut hoff_19v3_recv = hoff_19v3_recv.borrow_mut_swap(); - let hoff_19v3_recv = hoff_19v3_recv.drain(..); - let hoff_22v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_22v3_send.give(Some(v)); - }); - let op_10v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_19v3_recv) - }; - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__defer_tick__loc_nopath_5_19_5_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__defer_tick__loc_nopath_5_19_5_24(op_10v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_10v1, hoff_22v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(3v1)", - 0, - var_expr!(hoff_13v3_recv), - var_expr!(hoff_16v3_send), - false, - move |context, var_args!(hoff_13v3_recv), var_args!(hoff_16v3_send)| { - let mut hoff_13v3_recv = hoff_13v3_recv.borrow_mut_swap(); - let hoff_13v3_recv = hoff_13v3_recv.drain(..); - let hoff_16v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_16v3_send.give(Some(v)); - }); - let op_33v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_13v3_recv) - }; - let op_33v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_33v1__defer_tick__loc_nopath_21_21_21_41< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_33v1__defer_tick__loc_nopath_21_21_21_41(op_33v1) - }; - #[inline(always)] - fn pivot_run_sg_3v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_3v1(op_33v1, hoff_16v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(4v1)", - 1, - var_expr!(hoff_6v3_recv, hoff_26v3_recv, hoff_29v3_recv), - var_expr!(), - false, - move | - context, - var_args!(hoff_6v3_recv, hoff_26v3_recv, hoff_29v3_recv), - var_args!()| - { - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - let mut hoff_26v3_recv = hoff_26v3_recv.borrow_mut_swap(); - let hoff_26v3_recv = hoff_26v3_recv.drain(..); - let mut hoff_29v3_recv = hoff_29v3_recv.borrow_mut_swap(); - let hoff_29v3_recv = hoff_29v3_recv.drain(..); - let op_12v1 = hoff_6v3_recv - .filter(|item| { - let mut borrow = context - .state_ref(sg_4v1_node_12v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__unique__loc_nopath_8_19_8_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__unique__loc_nopath_8_19_8_24(op_12v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_43v1 = hoff_29v3_recv.map(|_v: (_,)| ((), (_v.0,))); - let op_43v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_43v1__map__loc_nopath_15_31_15_39< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_43v1__map__loc_nopath_15_31_15_39(op_43v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_44v1 = hoff_26v3_recv.map(|_v: (_,)| ((), (_v.0,))); - let op_44v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_44v1__map__loc_nopath_15_41_15_49< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_44v1__map__loc_nopath_15_41_15_49(op_44v1) - }; - let mut sg_4v1_node_41v1_joindata_lhs_borrow = context - .state_ref(sg_4v1_node_41v1_joindata_lhs) - .borrow_mut(); - let mut sg_4v1_node_41v1_joindata_rhs_borrow = context - .state_ref(sg_4v1_node_41v1_joindata_rhs) - .borrow_mut(); - let op_41v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_43v1, - op_44v1, - &mut *sg_4v1_node_41v1_joindata_lhs_borrow, - &mut *sg_4v1_node_41v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_41v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_41v1__join__loc_nopath_15_12_15_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_41v1__join__loc_nopath_15_12_15_59(op_41v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_42v1 = op_41v1 - .map(|kv: ((), ((_,), (_,)))| (kv.1.0.0, kv.1.1.0)); - let op_42v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_42v1__map__loc_nopath_15_12_15_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_42v1__map__loc_nopath_15_12_15_59(op_42v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_47v1 = op_42v1.map(|_v: (_, _)| ((), (_v.0, _v.1))); - let op_47v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_47v1__map__loc_nopath_15_31_15_49< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_47v1__map__loc_nopath_15_31_15_49(op_47v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_48v1 = op_12v1.map(|_v: (_,)| ((), (_v.0,))); - let op_48v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_48v1__map__loc_nopath_15_51_15_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_48v1__map__loc_nopath_15_51_15_59(op_48v1) - }; - let mut sg_4v1_node_45v1_joindata_lhs_borrow = context - .state_ref(sg_4v1_node_45v1_joindata_lhs) - .borrow_mut(); - let mut sg_4v1_node_45v1_joindata_rhs_borrow = context - .state_ref(sg_4v1_node_45v1_joindata_rhs) - .borrow_mut(); - let op_45v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_47v1, - op_48v1, - &mut *sg_4v1_node_45v1_joindata_lhs_borrow, - &mut *sg_4v1_node_45v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_45v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_45v1__join__loc_nopath_15_12_15_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_45v1__join__loc_nopath_15_12_15_59(op_45v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_46v1 = op_45v1 - .map(|kv: ((), ((_, _), (_,)))| (kv.1.0.0, kv.1.0.1, kv.1.1.0)); - let op_46v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_46v1__map__loc_nopath_15_12_15_59< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_46v1__map__loc_nopath_15_12_15_59(op_46v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_49v1 = op_46v1 - .map(|row: (_, _, _)| ((row.0, row.1, row.2), ())); - let op_49v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_49v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_49v1__map__loc_nopath_1_0_1_0(op_49v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_50v1 = op_49v1.map(|(g, a): ((_, _, _), _)| (g.0, g.1, g.2)); - let op_50v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_50v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_50v1__map__loc_nopath_1_0_1_0(op_50v1) - }; - let op_15v1 = op_50v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_4v1_node_15v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__unique__loc_nopath_10_20_10_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__unique__loc_nopath_10_20_10_26(op_15v1) - }; - let op_37v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_37v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_37v1__for_each__loc_nopath_10_28_10_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_37v1__for_each__loc_nopath_10_28_10_65(op_37v1) - }; - #[inline(always)] - fn pivot_run_sg_4v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_4v1(op_15v1, op_37v1); - context.schedule_subgraph(context.current_subgraph(), false); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(5v1)", - 2, - var_expr!(hoff_20v3_recv, hoff_23v3_recv), - var_expr!(), - false, - move |context, var_args!(hoff_20v3_recv, hoff_23v3_recv), var_args!()| { - let mut hoff_20v3_recv = hoff_20v3_recv.borrow_mut_swap(); - let hoff_20v3_recv = hoff_20v3_recv.drain(..); - let mut hoff_23v3_recv = hoff_23v3_recv.borrow_mut_swap(); - let hoff_23v3_recv = hoff_23v3_recv.drain(..); - let mut sg_5v1_node_53v1_persistvec = context - .state_ref(singleton_op_53v1) - .borrow_mut(); - let op_53v1 = { - if context.is_first_run_this_tick() { - sg_5v1_node_53v1_persistvec.extend(hoff_23v3_recv); - sg_5v1_node_53v1_persistvec.iter().cloned() - } else { - let len = sg_5v1_node_53v1_persistvec.len(); - sg_5v1_node_53v1_persistvec.extend(hoff_23v3_recv); - sg_5v1_node_53v1_persistvec[len..].iter().cloned() - } - }; - let op_53v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_53v1__persist__loc_nopath_16_26_16_34< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_53v1__persist__loc_nopath_16_26_16_34(op_53v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_54v1 = op_53v1.map(|_v: (_,)| ((_v.0,), ())); - let op_54v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_54v1__map__loc_nopath_16_26_16_34< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_54v1__map__loc_nopath_16_26_16_34(op_54v1) - }; - let mut sg_5v1_node_51v1_antijoindata_neg_borrow = context - .state_ref(sg_5v1_node_51v1_antijoindata_neg) - .borrow_mut(); - let mut sg_5v1_node_51v1_antijoindata_pos_borrow = context - .state_ref(sg_5v1_node_51v1_antijoindata_pos) - .borrow_mut(); - let op_51v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_20v3_recv, - op_54v1, - &mut *sg_5v1_node_51v1_antijoindata_neg_borrow - .get_mut_clear(context.current_tick()), - &mut *sg_5v1_node_51v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_51v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_51v1__anti_join__loc_nopath_16_12_16_45< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_51v1__anti_join__loc_nopath_16_12_16_45(op_51v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_52v1 = op_51v1.map(|kv: ((_,), ())| (kv.0.0,)); - let op_52v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_52v1__map__loc_nopath_16_12_16_45< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_52v1__map__loc_nopath_16_12_16_45(op_52v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_57v1 = op_52v1.map(|row: (_,)| ((row.0,), ())); - let op_57v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_57v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_57v1__map__loc_nopath_1_0_1_0(op_57v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_58v1 = op_57v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_58v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_58v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_58v1__map__loc_nopath_1_0_1_0(op_58v1) - }; - let op_18v1 = op_58v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_5v1_node_18v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__unique__loc_nopath_11_20_11_27< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__unique__loc_nopath_11_20_11_27(op_18v1) - }; - let op_38v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result2.send(v).unwrap() - }); - let op_38v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_38v1__for_each__loc_nopath_11_29_11_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_38v1__for_each__loc_nopath_11_29_11_67(op_38v1) - }; - #[inline(always)] - fn pivot_run_sg_5v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_5v1(op_18v1, op_38v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(6v1)", - 1, - var_expr!(hoff_14v3_recv, hoff_28v3_recv), - var_expr!( - hoff_17v3_send, hoff_23v3_send, hoff_25v3_send, hoff_29v3_send - ), - false, - move | - context, - var_args!(hoff_14v3_recv, hoff_28v3_recv), - var_args!( - hoff_17v3_send, hoff_23v3_send, hoff_25v3_send, hoff_29v3_send - )| - { - let mut hoff_14v3_recv = hoff_14v3_recv.borrow_mut_swap(); - let hoff_14v3_recv = hoff_14v3_recv.drain(..); - let mut hoff_28v3_recv = hoff_28v3_recv.borrow_mut_swap(); - let hoff_28v3_recv = hoff_28v3_recv.drain(..); - let hoff_17v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_17v3_send.give(Some(v)); - }); - let hoff_23v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_23v3_send.give(Some(v)); - }); - let hoff_25v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_25v3_send.give(Some(v)); - }); - let hoff_29v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_29v3_send.give(Some(v)); - }); - let op_2v1 = hoff_14v3_recv - .filter(|item| { - let mut borrow = context - .state_ref(sg_6v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_2v1 = op_2v1.map(|k| (k, ())); - let mut sg_6v1_node_3v1_antijoindata_neg_borrow = context - .state_ref(sg_6v1_node_3v1_antijoindata_neg) - .borrow_mut(); - let mut sg_6v1_node_3v1_antijoindata_pos_borrow = context - .state_ref(sg_6v1_node_3v1_antijoindata_pos) - .borrow_mut(); - let op_3v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_28v3_recv, - op_2v1, - &mut *sg_6v1_node_3v1_antijoindata_neg_borrow, - &mut *sg_6v1_node_3v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_3v1 = op_3v1.map(|(k, ())| k); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__difference__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_3v1__difference__loc_nopath_2_19_2_24(op_3v1) - }; - let op_64v1 = dfir_rs::pusherator::map::Map::new( - |row: (_,)| ((row.0,), ()), - hoff_17v3_send, - ); - let op_64v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_64v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_64v1__map__loc_nopath_1_0_1_0(op_64v1) - }; - let op_39v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result3.send(v).unwrap() - }); - let op_39v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_39v1__for_each__loc_nopath_12_29_12_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_39v1__for_each__loc_nopath_12_29_12_67(op_39v1) - }; - let op_21v1 = dfir_rs::pusherator::filter::Filter::new( - |item| { - let mut borrow = context - .state_ref(sg_6v1_node_21v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }, - op_39v1, - ); - let op_21v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_21v1__unique__loc_nopath_12_20_12_27< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_21v1__unique__loc_nopath_12_20_12_27(op_21v1) - }; - let op_63v1 = dfir_rs::pusherator::map::Map::new( - |(g, a): ((_,), _)| (g.0,), - op_21v1, - ); - let op_63v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_63v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_63v1__map__loc_nopath_1_0_1_0(op_63v1) - }; - let op_62v1 = dfir_rs::pusherator::map::Map::new( - |row: (_,)| ((row.0,), ()), - op_63v1, - ); - let op_62v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_62v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_62v1__map__loc_nopath_1_0_1_0(op_62v1) - }; - let op_27v1 = dfir_rs::pusherator::filter::Filter::new( - |item| { - let mut borrow = context - .state_ref(sg_6v1_node_27v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }, - op_62v1, - ); - let op_27v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_27v1__unique__loc_nopath_18_12_18_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_27v1__unique__loc_nopath_18_12_18_24(op_27v1) - }; - let mut sg_6v1_node_61v1_persistvec = context - .state_ref(singleton_op_61v1) - .borrow_mut(); - let op_61v1 = { - fn constrain_types<'ctx, Push, Item>( - vec: &'ctx mut Vec, - mut output: Push, - is_new_tick: bool, - ) -> impl 'ctx + dfir_rs::pusherator::Pusherator - where - Push: 'ctx + dfir_rs::pusherator::Pusherator, - Item: ::std::clone::Clone, - { - if is_new_tick { - vec.iter() - .cloned() - .for_each(|item| { - dfir_rs::pusherator::Pusherator::give(&mut output, item); - }); - } - dfir_rs::pusherator::map::Map::new( - |item| { - vec.push(item); - vec.last().unwrap().clone() - }, - output, - ) - } - constrain_types( - &mut *sg_6v1_node_61v1_persistvec, - op_27v1, - context.is_first_run_this_tick(), - ) - }; - let op_61v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_61v1__persist__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_61v1__persist__loc_nopath_1_0_1_0(op_61v1) - }; - let op_60v1 = dfir_rs::pusherator::map::Map::new( - |(g, a): ((_,), _)| (g.0,), - op_61v1, - ); - let op_60v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_60v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_60v1__map__loc_nopath_1_0_1_0(op_60v1) - }; - let op_59v1 = dfir_rs::pusherator::map::Map::new( - |row: (_,)| ((row.0,), ()), - op_60v1, - ); - let op_59v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_59v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_59v1__map__loc_nopath_1_0_1_0(op_59v1) - }; - let op_4v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_29v3_send, - dfir_rs::pusherator::tee::Tee::new( - hoff_23v3_send, - dfir_rs::pusherator::tee::Tee::new( - op_59v1, - dfir_rs::pusherator::tee::Tee::new( - op_64v1, - hoff_25v3_send, - ), - ), - ), - ); - let op_4v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_4v1__tee__loc_nopath_2_19_2_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_4v1__tee__loc_nopath_2_19_2_24(op_4v1) - }; - #[inline(always)] - fn pivot_run_sg_6v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_6v1(op_3v1, op_4v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(7v1)", - 1, - var_expr!(hoff_16v3_recv, hoff_17v3_recv), - var_expr!(hoff_13v3_send), - false, - move | - context, - var_args!(hoff_16v3_recv, hoff_17v3_recv), - var_args!(hoff_13v3_send)| - { - let mut hoff_16v3_recv = hoff_16v3_recv.borrow_mut_swap(); - let hoff_16v3_recv = hoff_16v3_recv.drain(..); - let mut hoff_17v3_recv = hoff_17v3_recv.borrow_mut_swap(); - let hoff_17v3_recv = hoff_17v3_recv.drain(..); - let hoff_13v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_13v3_send.give(Some(v)); - }); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_65v1 = hoff_17v3_recv.map(|(g, a): ((_,), _)| (g.0,)); - let op_65v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_65v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_65v1__map__loc_nopath_1_0_1_0(op_65v1) - }; - let op_30v1 = op_65v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_7v1_node_30v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_30v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_30v1__unique__loc_nopath_21_21_21_41< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_30v1__unique__loc_nopath_21_21_21_41(op_30v1) - }; - let op_30v1 = op_30v1.map(|k| (k, ())); - let mut sg_7v1_node_31v1_antijoindata_neg_borrow = context - .state_ref(sg_7v1_node_31v1_antijoindata_neg) - .borrow_mut(); - let mut sg_7v1_node_31v1_antijoindata_pos_borrow = context - .state_ref(sg_7v1_node_31v1_antijoindata_pos) - .borrow_mut(); - let op_31v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_16v3_recv, - op_30v1, - &mut *sg_7v1_node_31v1_antijoindata_neg_borrow, - &mut *sg_7v1_node_31v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_31v1 = op_31v1.map(|(k, ())| k); - let op_31v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_31v1__difference__loc_nopath_21_21_21_41< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_31v1__difference__loc_nopath_21_21_21_41(op_31v1) - }; - let op_40v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result4.send(v).unwrap() - }); - let op_40v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_40v1__for_each__loc_nopath_13_29_13_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_40v1__for_each__loc_nopath_13_29_13_67(op_40v1) - }; - let op_24v1 = dfir_rs::pusherator::filter::Filter::new( - |item| { - let mut borrow = context - .state_ref(sg_7v1_node_24v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }, - op_40v1, - ); - let op_24v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_24v1__unique__loc_nopath_13_20_13_27< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_24v1__unique__loc_nopath_13_20_13_27(op_24v1) - }; - let mut sg_7v1_node_68v1_persistvec = context - .state_ref(singleton_op_68v1) - .borrow_mut(); - let op_68v1 = { - fn constrain_types<'ctx, Push, Item>( - vec: &'ctx mut Vec, - mut output: Push, - is_new_tick: bool, - ) -> impl 'ctx + dfir_rs::pusherator::Pusherator - where - Push: 'ctx + dfir_rs::pusherator::Pusherator, - Item: ::std::clone::Clone, - { - if is_new_tick { - vec.iter() - .cloned() - .for_each(|item| { - dfir_rs::pusherator::Pusherator::give(&mut output, item); - }); - } - dfir_rs::pusherator::map::Map::new( - |item| { - vec.push(item); - vec.last().unwrap().clone() - }, - output, - ) - } - constrain_types( - &mut *sg_7v1_node_68v1_persistvec, - op_24v1, - context.is_first_run_this_tick(), - ) - }; - let op_68v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_68v1__persist__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_68v1__persist__loc_nopath_1_0_1_0(op_68v1) - }; - let op_67v1 = dfir_rs::pusherator::map::Map::new( - |(g, a): ((_,), _)| (g.0,), - op_68v1, - ); - let op_67v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_67v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_67v1__map__loc_nopath_1_0_1_0(op_67v1) - }; - let op_66v1 = dfir_rs::pusherator::map::Map::new( - |row: (_,)| ((row.0,), ()), - op_67v1, - ); - let op_66v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_66v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_66v1__map__loc_nopath_1_0_1_0(op_66v1) - }; - let op_32v1 = dfir_rs::pusherator::tee::Tee::new( - op_66v1, - hoff_13v3_send, - ); - let op_32v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_32v1__tee__loc_nopath_21_21_21_41< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_32v1__tee__loc_nopath_21_21_21_41(op_32v1) - }; - #[inline(always)] - fn pivot_run_sg_7v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_7v1(op_31v1, op_32v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(8v1)", - 1, - var_expr!(hoff_11v3_recv, hoff_22v3_recv), - var_expr!(hoff_19v3_send, hoff_20v3_send, hoff_26v3_send), - false, - move | - context, - var_args!(hoff_11v3_recv, hoff_22v3_recv), - var_args!(hoff_19v3_send, hoff_20v3_send, hoff_26v3_send)| - { - let mut hoff_11v3_recv = hoff_11v3_recv.borrow_mut_swap(); - let hoff_11v3_recv = hoff_11v3_recv.drain(..); - let mut hoff_22v3_recv = hoff_22v3_recv.borrow_mut_swap(); - let hoff_22v3_recv = hoff_22v3_recv.drain(..); - let hoff_19v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_19v3_send.give(Some(v)); - }); - let hoff_20v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_20v3_send.give(Some(v)); - }); - let hoff_26v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_26v3_send.give(Some(v)); - }); - let op_7v1 = hoff_11v3_recv - .filter(|item| { - let mut borrow = context - .state_ref(sg_8v1_node_7v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__unique__loc_nopath_5_19_5_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__unique__loc_nopath_5_19_5_24(op_7v1) - }; - let op_7v1 = op_7v1.map(|k| (k, ())); - let mut sg_8v1_node_8v1_antijoindata_neg_borrow = context - .state_ref(sg_8v1_node_8v1_antijoindata_neg) - .borrow_mut(); - let mut sg_8v1_node_8v1_antijoindata_pos_borrow = context - .state_ref(sg_8v1_node_8v1_antijoindata_pos) - .borrow_mut(); - let op_8v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_22v3_recv, - op_7v1, - &mut *sg_8v1_node_8v1_antijoindata_neg_borrow, - &mut *sg_8v1_node_8v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_8v1 = op_8v1.map(|(k, ())| k); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__difference__loc_nopath_5_19_5_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__difference__loc_nopath_5_19_5_24(op_8v1) - }; - let op_56v1 = dfir_rs::pusherator::map::Map::new( - |_v: (_,)| (_v.0,), - hoff_20v3_send, - ); - let op_56v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_56v1__map__loc_nopath_16_37_16_45< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_56v1__map__loc_nopath_16_37_16_45(op_56v1) - }; - let mut sg_8v1_node_55v1_persistvec = context - .state_ref(singleton_op_55v1) - .borrow_mut(); - let op_55v1 = { - fn constrain_types<'ctx, Push, Item>( - vec: &'ctx mut Vec, - mut output: Push, - is_new_tick: bool, - ) -> impl 'ctx + dfir_rs::pusherator::Pusherator - where - Push: 'ctx + dfir_rs::pusherator::Pusherator, - Item: ::std::clone::Clone, - { - if is_new_tick { - vec.iter() - .cloned() - .for_each(|item| { - dfir_rs::pusherator::Pusherator::give(&mut output, item); - }); - } - dfir_rs::pusherator::map::Map::new( - |item| { - vec.push(item); - vec.last().unwrap().clone() - }, - output, - ) - } - constrain_types( - &mut *sg_8v1_node_55v1_persistvec, - op_56v1, - context.is_first_run_this_tick(), - ) - }; - let op_55v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_55v1__persist__loc_nopath_16_37_16_45< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_55v1__persist__loc_nopath_16_37_16_45(op_55v1) - }; - let op_9v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_26v3_send, - dfir_rs::pusherator::tee::Tee::new(op_55v1, hoff_19v3_send), - ); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__tee__loc_nopath_5_19_5_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_9v1__tee__loc_nopath_5_19_5_24(op_9v1) - }; - #[inline(always)] - fn pivot_run_sg_8v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_8v1(op_8v1, op_9v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@surface_graph.snap deleted file mode 100644 index a6f0af900944..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist@surface_graph.snap +++ /dev/null @@ -1,115 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = difference :: < 'tick , 'static > (); -4v1 = tee (); -5v1 = defer_tick (); -7v1 = unique :: < 'tick > (); -8v1 = difference :: < 'tick , 'static > (); -9v1 = tee (); -10v1 = defer_tick (); -12v1 = unique :: < 'tick > (); -15v1 = unique :: < 'tick > (); -18v1 = unique :: < 'tick > (); -21v1 = unique :: < 'tick > (); -24v1 = unique :: < 'tick > (); -27v1 = unique :: < 'tick > (); -30v1 = unique :: < 'tick > (); -31v1 = difference :: < 'tick , 'static > (); -32v1 = tee (); -33v1 = defer_tick (); -34v1 = source_stream (ints1); -35v1 = source_stream (ints2); -36v1 = source_stream (ints3); -37v1 = for_each (| v | result . send (v) . unwrap ()); -38v1 = for_each (| v | result2 . send (v) . unwrap ()); -39v1 = for_each (| v | result3 . send (v) . unwrap ()); -40v1 = for_each (| v | result4 . send (v) . unwrap ()); -41v1 = join :: < 'static , 'static , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -42v1 = map (| kv : (() , ((_ ,) , (_ ,))) | (kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,)); -43v1 = map (| _v : (_ ,) | (() , (_v . 0 ,))); -44v1 = map (| _v : (_ ,) | (() , (_v . 0 ,))); -45v1 = join :: < 'static , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -46v1 = map (| kv : (() , ((_ , _ ,) , (_ ,))) | (kv . 1 . 0 . 0 , kv . 1 . 0 . 1 , kv . 1 . 1 . 0 ,)); -47v1 = map (| _v : (_ , _ ,) | (() , (_v . 0 , _v . 1 ,))); -48v1 = map (| _v : (_ ,) | (() , (_v . 0 ,))); -49v1 = map (| row : (_ , _ , _ ,) | ((row . 0 , row . 1 , row . 2 ,) , ())); -50v1 = map (| (g , a) : ((_ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 ,)); -51v1 = anti_join (); -52v1 = map (| kv : ((_ ,) , ()) | (kv . 0 . 0 ,)); -53v1 = persist :: < 'static > (); -54v1 = map (| _v : (_ ,) | ((_v . 0 ,) , ())); -55v1 = persist :: < 'static > (); -56v1 = map (| _v : (_ ,) | (_v . 0 ,)); -57v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -58v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -59v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -60v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -61v1 = persist :: < 'static > (); -62v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -63v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -64v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -65v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -66v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -67v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -68v1 = persist :: < 'static > (); - -34v1 -> 2v1; -3v1 -> 4v1; -2v1 -> 3v1; -5v1 -> 3v1; -4v1 -> 5v1; -35v1 -> 7v1; -8v1 -> 9v1; -7v1 -> 8v1; -10v1 -> 8v1; -9v1 -> 10v1; -36v1 -> 12v1; -50v1 -> 15v1; -58v1 -> 18v1; -63v1 -> 21v1; -68v1 -> 24v1; -61v1 -> 27v1; -65v1 -> 30v1; -31v1 -> 32v1; -30v1 -> 31v1; -33v1 -> 31v1; -32v1 -> 33v1; -15v1 -> 37v1; -18v1 -> 38v1; -21v1 -> 39v1; -24v1 -> 40v1; -41v1 -> 42v1; -43v1 -> 41v1; -4v1 -> 43v1; -44v1 -> 41v1; -9v1 -> 44v1; -45v1 -> 46v1; -47v1 -> 45v1; -42v1 -> 47v1; -48v1 -> 45v1; -12v1 -> 48v1; -49v1 -> 50v1; -46v1 -> 49v1; -51v1 -> 52v1; -54v1 -> 51v1; -53v1 -> 54v1; -4v1 -> 53v1; -56v1 -> 51v1; -55v1 -> 56v1; -9v1 -> 55v1; -57v1 -> 58v1; -52v1 -> 57v1; -60v1 -> 61v1; -59v1 -> 60v1; -4v1 -> 59v1; -62v1 -> 63v1; -27v1 -> 62v1; -64v1 -> 65v1; -4v1 -> 64v1; -67v1 -> 68v1; -66v1 -> 67v1; -32v1 -> 66v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@datalog_program.snap deleted file mode 100644 index 460d6b454ece..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@datalog_program.snap +++ /dev/null @@ -1,824 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"difference :: < 'tick , 'static > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"defer_tick ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints2)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | (() , ((row . 0) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'static , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : (() , _) | (a . 0 . unwrap () . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":4,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":11,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":8,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":5},{\"value\":[{\"idx\":8,\"version\":3},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":11,\"version\":3},{\"idx\":3,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":7,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":3},{\"idx\":17,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":9,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Path\":\"pos\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":5},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Path\":\"neg\"}],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":5,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1},{\"idx\":4,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":12,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":2,\"version\":1},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":\"ints1\",\"version\":1},{\"value\":\"ints1\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let (hoff_8v3_send, hoff_8v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(8v3)"); - let (hoff_9v3_send, hoff_9v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(9v3)"); - let (hoff_11v3_send, hoff_11v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(11v3)"); - let mut sg_4v1_node_12v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints2) - }; - let sg_2v1_node_17v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(), (Option<_>,)>::default(), - ), - ); - let sg_2v1_node_10v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_7v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_3v1_antijoindata_neg = df - .add_state( - std::cell::RefCell::new(dfir_rs::rustc_hash::FxHashSet::default()), - ); - let sg_3v1_node_3v1_antijoindata_pos = df - .add_state( - std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(4v1)", - 0, - var_expr!(), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_6v3_send)| { - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_12v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_4v1_node_12v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__source_stream__loc_nopath_4_26_4_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__source_stream__loc_nopath_4_26_4_46(op_12v1) - }; - #[inline(always)] - fn pivot_run_sg_4v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_4v1(op_12v1, hoff_6v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(hoff_8v3_recv), - var_expr!(hoff_11v3_send), - false, - move |context, var_args!(hoff_8v3_recv), var_args!(hoff_11v3_send)| { - let mut hoff_8v3_recv = hoff_8v3_recv.borrow_mut_swap(); - let hoff_8v3_recv = hoff_8v3_recv.drain(..); - let hoff_11v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_11v3_send.give(Some(v)); - }); - let op_5v1 = { - fn check_input, Item>( - iter: Iter, - ) -> impl ::std::iter::Iterator { - iter - } - check_input::<_, _>(hoff_8v3_recv) - }; - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__defer_tick__loc_nopath_2_21_2_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__defer_tick__loc_nopath_2_21_2_26(op_5v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, hoff_11v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 2, - var_expr!(hoff_9v3_recv), - var_expr!(), - false, - 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(..); - let mut sg_2v1_node_17v1_hashtable = context - .state_ref(sg_2v1_node_17v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_9v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_2v1_node_17v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some({ - let prev: (dfir_rs::rustc_hash::FxHashSet<_>, _) = prev; - let mut set: dfir_rs::rustc_hash::FxHashSet<_> = prev.0; - if set.insert(val.0) { - (set, prev.1 + 1) - } else { - (set, prev.1) - } - }) - } else { - Some({ - let mut set = dfir_rs::rustc_hash::FxHashSet::< - _, - >::default(); - set.insert(val.0); - (set, 1) - }) - }; - }, - ); - } - } - let op_17v1 = context - .is_first_run_this_tick() - .then_some(sg_2v1_node_17v1_hashtable.iter()) - .into_iter() - .flatten() - .map( - #[allow( - unknown_lints, - suspicious_double_ref_op, - clippy::clone_on_copy - )] - |(k, v)| ( - ::std::clone::Clone::clone(k), - ::std::clone::Clone::clone(v), - ), - ); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__fold_keyed__loc_nopath_1_0_1_0(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1.map(|(g, a): ((), _)| (a.0.unwrap().1,)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_1_0_1_0(op_18v1) - }; - let op_10v1 = op_18v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_10v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__unique__loc_nopath_8_20_8_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__unique__loc_nopath_8_20_8_26(op_10v1) - }; - let op_13v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__for_each__loc_nopath_8_28_8_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_13v1__for_each__loc_nopath_8_28_8_65(op_13v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_10v1, op_13v1); - context.schedule_subgraph(context.current_subgraph(), false); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(3v1)", - 1, - var_expr!(hoff_6v3_recv, hoff_11v3_recv), - var_expr!(hoff_8v3_send, hoff_9v3_send), - false, - move | - context, - var_args!(hoff_6v3_recv, hoff_11v3_recv), - var_args!(hoff_8v3_send, hoff_9v3_send)| - { - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - let mut hoff_11v3_recv = hoff_11v3_recv.borrow_mut_swap(); - let hoff_11v3_recv = hoff_11v3_recv.drain(..); - let hoff_8v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_8v3_send.give(Some(v)); - }); - let hoff_9v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_9v3_send.give(Some(v)); - }); - let op_7v1 = hoff_6v3_recv - .filter(|item| { - let mut borrow = context - .state_ref(sg_3v1_node_7v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__unique__loc_nopath_4_19_4_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__unique__loc_nopath_4_19_4_24(op_7v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_7v1.map(|row: (_,)| ((row.0,), ())); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_14v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_1_0_1_0(op_15v1) - }; - let op_2v1 = op_15v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_3v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_21_2_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_21_2_26(op_2v1) - }; - let op_2v1 = op_2v1.map(|k| (k, ())); - let mut sg_3v1_node_3v1_antijoindata_neg_borrow = context - .state_ref(sg_3v1_node_3v1_antijoindata_neg) - .borrow_mut(); - let mut sg_3v1_node_3v1_antijoindata_pos_borrow = context - .state_ref(sg_3v1_node_3v1_antijoindata_pos) - .borrow_mut(); - let op_3v1 = { - /// Limit error propagation by bounding locally, erasing output iterator type. - #[inline(always)] - fn check_inputs<'a, K, I1, V, I2>( - input_neg: I1, - input_pos: I2, - neg_state: &'a mut dfir_rs::rustc_hash::FxHashSet, - pos_state: &'a mut dfir_rs::rustc_hash::FxHashSet<(K, V)>, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + ::std::hash::Hash + Clone, - V: Eq + ::std::hash::Hash + Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - neg_state.extend(input_neg); - dfir_rs::compiled::pull::anti_join_into_iter( - input_pos, - neg_state, - pos_state, - is_new_tick, - ) - } - check_inputs( - hoff_11v3_recv, - op_2v1, - &mut *sg_3v1_node_3v1_antijoindata_neg_borrow, - &mut *sg_3v1_node_3v1_antijoindata_pos_borrow - .get_mut_clear(context.current_tick()), - context.is_first_run_this_tick(), - ) - }; - let op_3v1 = op_3v1.map(|(k, ())| k); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__difference__loc_nopath_2_21_2_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_3v1__difference__loc_nopath_2_21_2_26(op_3v1) - }; - let op_16v1 = dfir_rs::pusherator::map::Map::new( - |row: (_,)| ((), ((row.0),)), - hoff_9v3_send, - ); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_1_0_1_0< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_16v1__map__loc_nopath_1_0_1_0(op_16v1) - }; - let op_4v1 = dfir_rs::pusherator::tee::Tee::new( - op_16v1, - hoff_8v3_send, - ); - let op_4v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_4v1__tee__loc_nopath_2_21_2_26< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_4v1__tee__loc_nopath_2_21_2_26(op_4v1) - }; - #[inline(always)] - fn pivot_run_sg_3v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_3v1(op_3v1, op_4v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@surface_graph.snap deleted file mode 100644 index 555aa40bf10c..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__persist_uniqueness@surface_graph.snap +++ /dev/null @@ -1,32 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = difference :: < 'tick , 'static > (); -4v1 = tee (); -5v1 = defer_tick (); -7v1 = unique :: < 'tick > (); -10v1 = unique :: < 'tick > (); -12v1 = source_stream (ints2); -13v1 = for_each (| v | result . send (v) . unwrap ()); -14v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -15v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -16v1 = map (| row : (_ ,) | (() , ((row . 0) ,))); -17v1 = fold_keyed :: < 'static , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; }); -18v1 = map (| (g , a) : (() , _) | (a . 0 . unwrap () . 1 ,)); - -15v1 -> 2v1; -3v1 -> 4v1; -2v1 -> 3v1; -5v1 -> 3v1; -4v1 -> 5v1; -12v1 -> 7v1; -18v1 -> 10v1; -10v1 -> 13v1; -14v1 -> 15v1; -7v1 -> 14v1; -17v1 -> 18v1; -16v1 -> 17v1; -4v1 -> 16v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@datalog_program.snap deleted file mode 100644 index c2233e2cc7c2..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@datalog_program.snap +++ /dev/null @@ -1,517 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (ints)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| (node , data) | async_send_result (node , data))\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (async_receive_result)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| v : (_ , _ ,) | (v . 1 , (v . 0 ,)))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":3}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result_async_send\",\"version\":1},{\"value\":\"result_async_send\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_12v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(async_receive_result) - }; - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_2v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints) - }; - let sg_2v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_2v1_node_10v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_12v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_12v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__source_stream__loc_nopath_4_84_4_119< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__source_stream__loc_nopath_4_84_4_119(op_12v1) - }; - let op_5v1 = op_12v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_26(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_28_3_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_28_3_65(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_25_2_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_25_2_44(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_23(op_2v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = op_2v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_14v1.map(|v: (_, _)| (v.1, (v.0,))); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_6_24_6_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_6_24_6_26(op_15v1) - }; - let op_10v1 = op_15v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_10v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__unique__loc_nopath_4_19_4_25< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__unique__loc_nopath_4_19_4_25(op_10v1) - }; - let op_11v1 = dfir_rs::pusherator::for_each::ForEach::new(| - (node, data)| - async_send_result(node, data)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__for_each__loc_nopath_4_27_4_81< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_11v1__for_each__loc_nopath_4_27_4_81(op_11v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_10v1, op_11v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@surface_graph.snap deleted file mode 100644 index c1f9a70c3f15..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__send_to_node@surface_graph.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (ints); -8v1 = for_each (| v | result . send (v) . unwrap ()); -10v1 = unique :: < 'tick > (); -11v1 = for_each (| (node , data) | async_send_result (node , data)); -12v1 = source_stream (async_receive_result); -13v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -14v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); -15v1 = map (| v : (_ , _ ,) | (v . 1 , (v . 0 ,))); - -7v1 -> 2v1; -12v1 -> 5v1; -5v1 -> 8v1; -10v1 -> 11v1; -15v1 -> 10v1; -14v1 -> 15v1; -13v1 -> 14v1; -2v1 -> 13v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@datalog_program.snap deleted file mode 100644 index 3f816dc3cfc9..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@datalog_program.snap +++ /dev/null @@ -1,349 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (input)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"filter (| row : & (_ , _ ,) | row . 0 > row . 1 && row . 1 == row . 0)\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"input_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"predicate_1_filter\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(input) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_9v1 = op_2v1 - .filter(|row: &(_, _)| row.0 > row.1 && row.1 == row.0); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__filter__loc_nopath_5_12_5_60< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__filter__loc_nopath_5_12_5_60(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1.map(|row: (_, _)| ((row.0, row.1), ())); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_1_0_1_0(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = op_10v1.map(|(g, a): ((_, _), _)| (g.0, g.1)); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_1_0_1_0(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_23(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_25_3_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_25_3_59(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@surface_graph.snap deleted file mode 100644 index 9add77080e85..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__simple_filter@surface_graph.snap +++ /dev/null @@ -1,19 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (input); -8v1 = for_each (| v | out . send (v) . unwrap ()); -9v1 = filter (| row : & (_ , _ ,) | row . 0 > row . 1 && row . 1 == row . 0); -10v1 = map (| row : (_ , _ ,) | ((row . 0 , row . 1 ,) , ())); -11v1 = map (| (g , a) : ((_ , _ ,) , _) | (g . 0 , g . 1 ,)); - -7v1 -> 2v1; -11v1 -> 5v1; -5v1 -> 8v1; -2v1 -> 9v1; -10v1 -> 11v1; -9v1 -> 10v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@datalog_program.snap deleted file mode 100644 index e10df0d379d9..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@datalog_program.snap +++ /dev/null @@ -1,638 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (in1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (in2)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , (() , ())) | (kv . 0 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | ((_v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | ((_v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_10v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_1v1_node_11v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in2) - }; - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_13v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_13v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_13v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_13v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_10v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_10v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__source_stream__loc_nopath_2_24_2_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__source_stream__loc_nopath_2_24_2_42(op_10v1) - }; - let op_2v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_22(op_2v1) - }; - let op_11v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_11v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__source_stream__loc_nopath_3_24_3_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__source_stream__loc_nopath_3_24_3_42(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_22(op_5v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_15v1 = op_2v1.map(|_v: (_,)| ((_v.0,), ())); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__map__loc_nopath_6_22_6_28< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__map__loc_nopath_6_22_6_28(op_15v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = op_5v1.map(|_v: (_,)| ((_v.0,), ())); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_6_30_6_36< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_6_30_6_36(op_16v1) - }; - let mut sg_1v1_node_13v1_joindata_lhs_borrow = context - .state_ref(sg_1v1_node_13v1_joindata_lhs) - .borrow_mut(); - let mut sg_1v1_node_13v1_joindata_rhs_borrow = context - .state_ref(sg_1v1_node_13v1_joindata_rhs) - .borrow_mut(); - let op_13v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_15v1, - op_16v1, - &mut *sg_1v1_node_13v1_joindata_lhs_borrow, - &mut *sg_1v1_node_13v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__join__loc_nopath_6_12_6_37< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__join__loc_nopath_6_12_6_37(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|kv: ((_,), ((), ()))| (kv.0.0,)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_6_12_6_37< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_6_12_6_37(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_17v1 = op_14v1.map(|row: (_,)| ((row.0,), ())); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__map__loc_nopath_1_0_1_0(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_1_0_1_0(op_18v1) - }; - let op_8v1 = op_18v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_4_20_4_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_4_20_4_23(op_8v1) - }; - let op_12v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__for_each__loc_nopath_4_25_4_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__for_each__loc_nopath_4_25_4_59(op_12v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_8v1, op_12v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@surface_graph.snap deleted file mode 100644 index 53db5afa6aaf..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__single_column_program@surface_graph.snap +++ /dev/null @@ -1,29 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -10v1 = source_stream (in1); -11v1 = source_stream (in2); -12v1 = for_each (| v | out . send (v) . unwrap ()); -13v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -14v1 = map (| kv : ((_ ,) , (() , ())) | (kv . 0 . 0 ,)); -15v1 = map (| _v : (_ ,) | ((_v . 0 ,) , ())); -16v1 = map (| _v : (_ ,) | ((_v . 0 ,) , ())); -17v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -18v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); - -10v1 -> 2v1; -11v1 -> 5v1; -18v1 -> 8v1; -8v1 -> 12v1; -13v1 -> 14v1; -15v1 -> 13v1; -2v1 -> 15v1; -16v1 -> 13v1; -5v1 -> 16v1; -17v1 -> 18v1; -14v1 -> 17v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@datalog_program.snap deleted file mode 100644 index 80e4033ca267..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@datalog_program.snap +++ /dev/null @@ -1,803 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"union ()\"},\"version\":1},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (edges)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (seed_reachable)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | reachable . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , (() , (_ ,))) | (kv . 0 . 0 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | ((_v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | ((row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":17,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":7,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":7,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":16,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":16,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1},{\"idx\":7,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":12,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"edges_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"seed_reachable_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"reachable_insert\",\"version\":1},{\"value\":\"reachable_insert\",\"version\":1},{\"value\":\"reachable\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_3\",\"version\":1},{\"value\":\"join_3\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let mut sg_1v1_node_10v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(edges) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_1v1_node_11v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(seed_reachable) - }; - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_15v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_15v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_15v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_15v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(hoff_6v3_recv), - var_expr!(hoff_6v3_send), - false, - move |context, var_args!(hoff_6v3_recv), var_args!(hoff_6v3_send)| { - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_10v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_10v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__source_stream__loc_nopath_2_26_2_46(op_10v1) - }; - let op_2v1 = op_10v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_11v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_11v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__source_stream__loc_nopath_3_35_3_64< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__source_stream__loc_nopath_3_35_3_64(op_11v1) - }; - let op_5v1 = op_11v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_33< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_33(op_5v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = op_5v1.map(|row: (_,)| ((row.0,), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_17v1 = hoff_6v3_recv.map(|_v: (_,)| ((_v.0,), ())); - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__map__loc_nopath_7_28_7_40< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__map__loc_nopath_7_28_7_40(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_2v1.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_7_42_7_53< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_7_42_7_53(op_18v1) - }; - let mut sg_1v1_node_15v1_joindata_lhs_borrow = context - .state_ref(sg_1v1_node_15v1_joindata_lhs) - .borrow_mut(); - let mut sg_1v1_node_15v1_joindata_rhs_borrow = context - .state_ref(sg_1v1_node_15v1_joindata_rhs) - .borrow_mut(); - let op_15v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_17v1, - op_18v1, - &mut *sg_1v1_node_15v1_joindata_lhs_borrow, - &mut *sg_1v1_node_15v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__join__loc_nopath_7_12_7_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__join__loc_nopath_7_12_7_54(op_15v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_16v1 = op_15v1 - .map(|kv: ((_,), ((), (_,)))| (kv.0.0, kv.1.1.0)); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__map__loc_nopath_7_12_7_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_16v1__map__loc_nopath_7_12_7_54(op_16v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = op_16v1.map(|row: (_, _)| ((row.1,), ())); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_1_0_1_0(op_19v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_20v1 = op_19v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__map__loc_nopath_1_0_1_0(op_20v1) - }; - let op_7v1 = { - #[allow(unused)] - #[inline(always)] - fn check_inputs< - A: ::std::iter::Iterator, - B: ::std::iter::Iterator, - Item, - >(a: A, b: B) -> impl ::std::iter::Iterator { - a.chain(b) - } - check_inputs(op_14v1, op_20v1) - }; - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__union__loc_nopath_4_20_4_29< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__union__loc_nopath_4_20_4_29(op_7v1) - }; - let op_8v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_4_20_4_29< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_4_20_4_29(op_8v1) - }; - let op_12v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - reachable.send(v).unwrap() - }); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__for_each__loc_nopath_4_31_4_71< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_12v1__for_each__loc_nopath_4_31_4_71(op_12v1) - }; - let op_9v1 = dfir_rs::pusherator::tee::Tee::new( - op_12v1, - hoff_6v3_send, - ); - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__tee__loc_nopath_4_20_4_29< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_9v1__tee__loc_nopath_4_20_4_29(op_9v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_8v1, op_9v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@surface_graph.snap deleted file mode 100644 index 4d8520cc7ccd..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__transitive_closure@surface_graph.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -7v1 = union (); -8v1 = unique :: < 'tick > (); -9v1 = tee (); -10v1 = source_stream (edges); -11v1 = source_stream (seed_reachable); -12v1 = for_each (| v | reachable . send (v) . unwrap ()); -13v1 = map (| row : (_ ,) | ((row . 0 ,) , ())); -14v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); -15v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -16v1 = map (| kv : ((_ ,) , (() , (_ ,))) | (kv . 0 . 0 , kv . 1 . 1 . 0 ,)); -17v1 = map (| _v : (_ ,) | ((_v . 0 ,) , ())); -18v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -19v1 = map (| row : (_ , _ ,) | ((row . 1 ,) , ())); -20v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); - -10v1 -> 2v1; -11v1 -> 5v1; -7v1 -> 8v1; -8v1 -> 9v1; -9v1 -> 12v1; -14v1 -> 7v1; -13v1 -> 14v1; -5v1 -> 13v1; -15v1 -> 16v1; -17v1 -> 15v1; -9v1 -> 17v1; -18v1 -> 15v1; -2v1 -> 18v1; -20v1 -> 7v1; -19v1 -> 20v1; -16v1 -> 19v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@datalog_program.snap deleted file mode 100644 index b7ff018e7d7f..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@datalog_program.snap +++ /dev/null @@ -1,970 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"source_stream (in1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (in2)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (in3)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ((_ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 1 ,) , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ((_ , _ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 0 . 1 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ , _ ,) | ((_v . 2 ,) , (_v . 1 , _v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ , _ , _ ,) | ((row . 3 , row . 0 , row . 2 , row . 1 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ , _ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 , g . 3 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":15,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":26,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":19,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":20,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":22,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":23,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":23,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":25,\"version\":1},{\"idx\":26,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":25,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":15,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":23,\"version\":1},{\"idx\":24,\"version\":1},{\"idx\":21,\"version\":1},{\"idx\":22,\"version\":1},{\"idx\":25,\"version\":1},{\"idx\":26,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in1_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"in3_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_4\",\"version\":1},{\"value\":\"join_4\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let mut sg_1v1_node_13v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_1v1_node_14v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in2) - }; - let sg_1v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_1v1_node_15v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(in3) - }; - let sg_1v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_1v1_node_17v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_17v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_17v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_17v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_21v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_21v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_21v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_1v1_node_21v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_1v1_node_11v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(), - false, - move |context, var_args!(), var_args!()| { - let op_13v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_13v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__source_stream__loc_nopath_2_24_2_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__source_stream__loc_nopath_2_24_2_42(op_13v1) - }; - let op_2v1 = op_13v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_22(op_2v1) - }; - let op_14v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_14v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__source_stream__loc_nopath_3_24_3_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__source_stream__loc_nopath_3_24_3_42(op_14v1) - }; - let op_5v1 = op_14v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_22(op_5v1) - }; - let op_15v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_15v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__source_stream__loc_nopath_4_24_4_42< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_15v1__source_stream__loc_nopath_4_24_4_42(op_15v1) - }; - let op_8v1 = op_15v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_4_19_4_22< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_4_19_4_22(op_8v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = op_2v1.map(|_v: (_, _)| ((_v.1,), (_v.0,))); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_7_31_7_40< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_7_31_7_40(op_19v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_20v1 = op_5v1.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_7_42_7_51< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__map__loc_nopath_7_42_7_51(op_20v1) - }; - let mut sg_1v1_node_17v1_joindata_lhs_borrow = context - .state_ref(sg_1v1_node_17v1_joindata_lhs) - .borrow_mut(); - let mut sg_1v1_node_17v1_joindata_rhs_borrow = context - .state_ref(sg_1v1_node_17v1_joindata_rhs) - .borrow_mut(); - let op_17v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_19v1, - op_20v1, - &mut *sg_1v1_node_17v1_joindata_lhs_borrow, - &mut *sg_1v1_node_17v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__join__loc_nopath_7_12_7_63< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__join__loc_nopath_7_12_7_63(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1 - .map(|kv: ((_,), ((_,), (_,)))| (kv.0.0, kv.1.0.0, kv.1.1.0)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_7_12_7_63< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_7_12_7_63(op_18v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_23v1 = op_18v1.map(|_v: (_, _, _)| ((_v.2,), (_v.1, _v.0))); - let op_23v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_23v1__map__loc_nopath_7_31_7_51< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_23v1__map__loc_nopath_7_31_7_51(op_23v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_24v1 = op_8v1.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_24v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_24v1__map__loc_nopath_7_53_7_62< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_24v1__map__loc_nopath_7_53_7_62(op_24v1) - }; - let mut sg_1v1_node_21v1_joindata_lhs_borrow = context - .state_ref(sg_1v1_node_21v1_joindata_lhs) - .borrow_mut(); - let mut sg_1v1_node_21v1_joindata_rhs_borrow = context - .state_ref(sg_1v1_node_21v1_joindata_rhs) - .borrow_mut(); - let op_21v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_23v1, - op_24v1, - &mut *sg_1v1_node_21v1_joindata_lhs_borrow, - &mut *sg_1v1_node_21v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_21v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_21v1__join__loc_nopath_7_12_7_63< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_21v1__join__loc_nopath_7_12_7_63(op_21v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_22v1 = op_21v1 - .map(|kv: ((_,), ((_, _), (_,)))| ( - kv.0.0, - kv.1.0.0, - kv.1.0.1, - kv.1.1.0, - )); - let op_22v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_22v1__map__loc_nopath_7_12_7_63< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_22v1__map__loc_nopath_7_12_7_63(op_22v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_25v1 = op_22v1 - .map(|row: (_, _, _, _)| ((row.3, row.0, row.2, row.1), ())); - let op_25v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_25v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_25v1__map__loc_nopath_1_0_1_0(op_25v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_26v1 = op_25v1 - .map(|(g, a): ((_, _, _, _), _)| (g.0, g.1, g.2, g.3)); - let op_26v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_26v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_26v1__map__loc_nopath_1_0_1_0(op_26v1) - }; - let op_11v1 = op_26v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_11v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__unique__loc_nopath_5_20_5_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__unique__loc_nopath_5_20_5_23(op_11v1) - }; - let op_16v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__for_each__loc_nopath_5_25_5_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_16v1__for_each__loc_nopath_5_25_5_59(op_16v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_11v1, op_16v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@surface_graph.snap deleted file mode 100644 index a7a477608edb..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__triple_relation_join@surface_graph.snap +++ /dev/null @@ -1,41 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -5v1 = unique :: < 'tick > (); -8v1 = unique :: < 'tick > (); -11v1 = unique :: < 'tick > (); -13v1 = source_stream (in1); -14v1 = source_stream (in2); -15v1 = source_stream (in3); -16v1 = for_each (| v | out . send (v) . unwrap ()); -17v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -18v1 = map (| kv : ((_ ,) , ((_ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,)); -19v1 = map (| _v : (_ , _ ,) | ((_v . 1 ,) , (_v . 0 ,))); -20v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -21v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -22v1 = map (| kv : ((_ ,) , ((_ , _ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 0 . 1 , kv . 1 . 1 . 0 ,)); -23v1 = map (| _v : (_ , _ , _ ,) | ((_v . 2 ,) , (_v . 1 , _v . 0 ,))); -24v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -25v1 = map (| row : (_ , _ , _ , _ ,) | ((row . 3 , row . 0 , row . 2 , row . 1 ,) , ())); -26v1 = map (| (g , a) : ((_ , _ , _ , _ ,) , _) | (g . 0 , g . 1 , g . 2 , g . 3 ,)); - -13v1 -> 2v1; -14v1 -> 5v1; -15v1 -> 8v1; -26v1 -> 11v1; -11v1 -> 16v1; -17v1 -> 18v1; -19v1 -> 17v1; -2v1 -> 19v1; -20v1 -> 17v1; -5v1 -> 20v1; -21v1 -> 22v1; -23v1 -> 21v1; -18v1 -> 23v1; -24v1 -> 21v1; -8v1 -> 24v1; -25v1 -> 26v1; -22v1 -> 25v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@datalog_program.snap deleted file mode 100644 index 3c497bdea542..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@datalog_program.snap +++ /dev/null @@ -1,601 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":2},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (input)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | out . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ((_ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 1 ,) , (_v . 0 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ , _ ,) | ((row . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : ((_ ,) , _) | (g . 0 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":6,\"version\":3},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":null,\"version\":2},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":6,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":1},{\"idx\":9,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":4,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":3},{\"idx\":12,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":10,\"version\":1},{\"idx\":13,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":7,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":12,\"version\":1},{\"idx\":9,\"version\":1},{\"idx\":10,\"version\":1},{\"idx\":13,\"version\":1},{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"input_insert\",\"version\":1},{\"value\":\"input\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"out_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_4v3_send, hoff_4v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(4v3)"); - let (hoff_6v3_send, hoff_6v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(6v3)"); - let mut sg_1v1_node_7v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(input) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_2v1_node_9v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_2v1_node_9v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_2v1_node_9v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_2v1_node_9v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_2v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(hoff_4v3_send, hoff_6v3_send), - false, - move |context, var_args!(), var_args!(hoff_4v3_send, hoff_6v3_send)| { - let hoff_4v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_4v3_send.give(Some(v)); - }); - let hoff_6v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_6v3_send.give(Some(v)); - }); - let op_7v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_7v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_7v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_7v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_7v1__source_stream__loc_nopath_2_26_2_46(op_7v1) - }; - let op_2v1 = op_7v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_6v3_send, - hoff_4v3_send, - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_2_19_2_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_2_19_2_24(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(hoff_4v3_recv, hoff_6v3_recv), - var_expr!(), - false, - 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(..); - let mut hoff_6v3_recv = hoff_6v3_recv.borrow_mut_swap(); - let hoff_6v3_recv = hoff_6v3_recv.drain(..); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_11v1 = hoff_6v3_recv.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__map__loc_nopath_5_22_5_33< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__map__loc_nopath_5_22_5_33(op_11v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_12v1 = hoff_4v3_recv.map(|_v: (_, _)| ((_v.1,), (_v.0,))); - let op_12v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_12v1__map__loc_nopath_5_35_5_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_12v1__map__loc_nopath_5_35_5_46(op_12v1) - }; - let mut sg_2v1_node_9v1_joindata_lhs_borrow = context - .state_ref(sg_2v1_node_9v1_joindata_lhs) - .borrow_mut(); - let mut sg_2v1_node_9v1_joindata_rhs_borrow = context - .state_ref(sg_2v1_node_9v1_joindata_rhs) - .borrow_mut(); - let op_9v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_11v1, - op_12v1, - &mut *sg_2v1_node_9v1_joindata_lhs_borrow, - &mut *sg_2v1_node_9v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_9v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_9v1__join__loc_nopath_5_12_5_47< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_9v1__join__loc_nopath_5_12_5_47(op_9v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_10v1 = op_9v1 - .map(|kv: ((_,), ((_,), (_,)))| (kv.0.0, kv.1.0.0, kv.1.1.0)); - let op_10v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_10v1__map__loc_nopath_5_12_5_47< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_10v1__map__loc_nopath_5_12_5_47(op_10v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_13v1 = op_10v1.map(|row: (_, _, _)| ((row.0,), ())); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__map__loc_nopath_1_0_1_0(op_13v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_14v1 = op_13v1.map(|(g, a): ((_,), _)| (g.0,)); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__map__loc_nopath_1_0_1_0(op_14v1) - }; - let op_5v1 = op_14v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_20_3_23< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_20_3_23(op_5v1) - }; - let op_8v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - out.send(v).unwrap() - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__for_each__loc_nopath_3_25_3_59< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_8v1__for_each__loc_nopath_3_25_3_59(op_8v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_5v1, op_8v1); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@surface_graph.snap deleted file mode 100644 index c0d8eba2120a..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_fields@surface_graph.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -5v1 = unique :: < 'tick > (); -7v1 = source_stream (input); -8v1 = for_each (| v | out . send (v) . unwrap ()); -9v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -10v1 = map (| kv : ((_ ,) , ((_ ,) , (_ ,))) | (kv . 0 . 0 , kv . 1 . 0 . 0 , kv . 1 . 1 . 0 ,)); -11v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -12v1 = map (| _v : (_ , _ ,) | ((_v . 1 ,) , (_v . 0 ,))); -13v1 = map (| row : (_ , _ , _ ,) | ((row . 0 ,) , ())); -14v1 = map (| (g , a) : ((_ ,) , _) | (g . 0 ,)); - -7v1 -> 2v1; -2v1 -> 3v1; -14v1 -> 5v1; -5v1 -> 8v1; -9v1 -> 10v1; -11v1 -> 9v1; -3v1 -> 11v1; -12v1 -> 9v1; -3v1 -> 12v1; -13v1 -> 14v1; -10v1 -> 13v1; - diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@datalog_program.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@datalog_program.snap deleted file mode 100644 index 4446535d46d7..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@datalog_program.snap +++ /dev/null @@ -1,1434 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: "prettyplease :: unparse(& wrapped)" ---- -fn main() { - { - #[allow(unused_qualifications)] - { - use dfir_rs::{var_expr, var_args}; - let mut df = dfir_rs::scheduled::graph::dfir_rs::new(); - df.__assign_meta_graph( - "{\"nodes\":[{\"value\":null,\"version\":0},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Operator\":\"tee ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"unique :: < 'tick > ()\"},\"version\":1},{\"value\":{\"Handoff\":{}},\"version\":3},{\"value\":{\"Operator\":\"source_stream (ints1)\"},\"version\":1},{\"value\":{\"Operator\":\"source_stream (ints2)\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"for_each (| v | result2 . send (v) . unwrap ())\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ((_ ,) , ())) | (kv . 0 . 0 , kv . 1 . 0 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | ((_v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | (() , (() ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev + 1) } else { Some (1) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : (() , _) | (a . 0 . unwrap () ,))\"},\"version\":1},{\"value\":{\"Operator\":\"join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > ()\"},\"version\":1},{\"value\":{\"Operator\":\"map (| kv : ((_ ,) , ((_ ,) , ())) | (kv . 0 . 0 , kv . 1 . 0 . 0 ,))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| _v : (_ ,) | ((_v . 0 ,) , ()))\"},\"version\":1},{\"value\":{\"Operator\":\"map (| row : (_ , _ ,) | (() , ((row . 0) ,)))\"},\"version\":1},{\"value\":{\"Operator\":\"fold_keyed :: < 'tick , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; })\"},\"version\":1},{\"value\":{\"Operator\":\"map (| (g , a) : (() , _) | (a . 0 . unwrap () . 1 ,))\"},\"version\":1}],\"graph\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":2,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":5,\"version\":1},{\"idx\":6,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":23,\"version\":1},{\"idx\":8,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":9,\"version\":3},{\"idx\":20,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":30,\"version\":1},{\"idx\":11,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":12,\"version\":3},{\"idx\":19,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":1,\"version\":3},{\"idx\":29,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":4,\"version\":3},{\"idx\":27,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":8,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":11,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":12,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":20,\"version\":1},{\"idx\":17,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":6,\"version\":1},{\"idx\":9,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":7,\"version\":3},{\"idx\":26,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":23,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":21,\"version\":1},{\"idx\":10,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":18,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":24,\"version\":1},{\"idx\":25,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":26,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":3,\"version\":1},{\"idx\":7,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":27,\"version\":1},{\"idx\":24,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":6,\"version\":1},{\"idx\":4,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":10,\"version\":3},{\"idx\":22,\"version\":1}],\"version\":3},{\"value\":[{\"idx\":29,\"version\":1},{\"idx\":30,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":28,\"version\":1},{\"idx\":1,\"version\":3}],\"version\":3},{\"value\":[{\"idx\":25,\"version\":1},{\"idx\":28,\"version\":1}],\"version\":1}],\"ports\":[{\"value\":null,\"version\":0},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[{\"Int\":\"0\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",{\"Int\":\"0\"}],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",{\"Int\":\"1\"}],\"version\":1},{\"value\":[{\"Int\":\"1\"},\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1},{\"value\":[\"Elided\",\"Elided\"],\"version\":3},{\"value\":[\"Elided\",\"Elided\"],\"version\":1}],\"node_loops\":[{\"value\":null,\"version\":0}],\"loop_nodes\":[{\"value\":null,\"version\":0}],\"loop_parent\":[{\"value\":null,\"version\":0}],\"loop_children\":[{\"value\":null,\"version\":0}],\"node_subgraph\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":null,\"version\":0},{\"value\":{\"idx\":1,\"version\":1},\"version\":1},{\"value\":{\"idx\":2,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":5,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":3,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":6,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1},{\"value\":{\"idx\":4,\"version\":1},\"version\":1}],\"subgraph_nodes\":[{\"value\":null,\"version\":0},{\"value\":[{\"idx\":13,\"version\":1},{\"idx\":2,\"version\":1},{\"idx\":3,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":14,\"version\":1},{\"idx\":5,\"version\":1},{\"idx\":6,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":22,\"version\":1},{\"idx\":23,\"version\":1},{\"idx\":8,\"version\":1},{\"idx\":15,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":29,\"version\":1},{\"idx\":30,\"version\":1},{\"idx\":11,\"version\":1},{\"idx\":16,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":19,\"version\":1},{\"idx\":20,\"version\":1},{\"idx\":17,\"version\":1},{\"idx\":18,\"version\":1},{\"idx\":21,\"version\":1}],\"version\":1},{\"value\":[{\"idx\":26,\"version\":1},{\"idx\":27,\"version\":1},{\"idx\":24,\"version\":1},{\"idx\":25,\"version\":1},{\"idx\":28,\"version\":1}],\"version\":1}],\"subgraph_stratum\":[{\"value\":null,\"version\":0},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1},{\"value\":1,\"version\":1},{\"value\":1,\"version\":1},{\"value\":0,\"version\":1},{\"value\":0,\"version\":1}],\"node_singleton_references\":[{\"value\":null,\"version\":0},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1},{\"value\":[],\"version\":1}],\"node_varnames\":[{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"ints1_insert\",\"version\":1},{\"value\":\"ints1\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"ints2_insert\",\"version\":1},{\"value\":\"ints2\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":\"result_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"result2_insert\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_2\",\"version\":1},{\"value\":\"join_2\",\"version\":1},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":null,\"version\":0},{\"value\":\"join_5\",\"version\":1},{\"value\":\"join_5\",\"version\":1}],\"subgraph_laziness\":[{\"value\":null,\"version\":0}]}", - ); - df.__assign_diagnostics("[]"); - let (hoff_1v3_send, hoff_1v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(1v3)"); - let (hoff_4v3_send, hoff_4v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(4v3)"); - let (hoff_7v3_send, hoff_7v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(7v3)"); - let (hoff_9v3_send, hoff_9v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(9v3)"); - let (hoff_10v3_send, hoff_10v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(10v3)"); - let (hoff_12v3_send, hoff_12v3_recv) = df - .make_edge::< - _, - dfir_rs::scheduled::handoff::VecHandoff<_>, - >("handoff GraphNodeId(12v3)"); - let mut sg_1v1_node_13v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints1) - }; - let sg_1v1_node_2v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let mut sg_2v1_node_14v1_stream = { - #[inline(always)] - fn check_stream< - Stream: dfir_rs::futures::stream::Stream - + ::std::marker::Unpin, - Item, - >( - stream: Stream, - ) -> impl dfir_rs::futures::stream::Stream< - Item = Item, - > + ::std::marker::Unpin { - stream - } - check_stream(ints2) - }; - let sg_2v1_node_5v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_3v1_node_22v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(), (Option<_>,)>::default(), - ), - ); - let sg_3v1_node_8v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_4v1_node_29v1_groupbydata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::rustc_hash::FxHashMap::<(), (Option<_>,)>::default(), - ), - ); - let sg_4v1_node_11v1_uniquedata = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::util::monotonic_map::MonotonicMap::< - _, - dfir_rs::rustc_hash::FxHashSet<_>, - >::default(), - ), - ); - let sg_5v1_node_17v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_5v1_node_17v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_5v1_node_17v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_5v1_node_17v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_6v1_node_24v1_joindata_lhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_6v1_node_24v1_joindata_lhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - let sg_6v1_node_24v1_joindata_rhs = df - .add_state( - ::std::cell::RefCell::new( - dfir_rs::compiled::pull::HalfMultisetJoinState::default(), - ), - ); - df.set_state_tick_hook( - sg_6v1_node_24v1_joindata_rhs, - |rcell| dfir_rs::util::clear::Clear::clear(rcell.get_mut()), - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(1v1)", - 0, - var_expr!(), - var_expr!(hoff_7v3_send, hoff_12v3_send), - false, - move |context, var_args!(), var_args!(hoff_7v3_send, hoff_12v3_send)| { - let hoff_7v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_7v3_send.give(Some(v)); - }); - let hoff_12v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_12v3_send.give(Some(v)); - }); - let op_13v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_1v1_node_13v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_13v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_13v1__source_stream__loc_nopath_2_26_2_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_13v1__source_stream__loc_nopath_2_26_2_46(op_13v1) - }; - let op_2v1 = op_13v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_1v1_node_2v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_2v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_2v1__unique__loc_nopath_2_19_2_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_2v1__unique__loc_nopath_2_19_2_24(op_2v1) - }; - let op_3v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_12v3_send, - hoff_7v3_send, - ); - let op_3v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_3v1__tee__loc_nopath_2_19_2_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_3v1__tee__loc_nopath_2_19_2_24(op_3v1) - }; - #[inline(always)] - fn pivot_run_sg_1v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_1v1(op_2v1, op_3v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(2v1)", - 0, - var_expr!(), - var_expr!(hoff_4v3_send, hoff_9v3_send), - false, - move |context, var_args!(), var_args!(hoff_4v3_send, hoff_9v3_send)| { - let hoff_4v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_4v3_send.give(Some(v)); - }); - let hoff_9v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_9v3_send.give(Some(v)); - }); - let op_14v1 = std::iter::from_fn(|| { - match dfir_rs::futures::stream::Stream::poll_next( - ::std::pin::Pin::new(&mut sg_2v1_node_14v1_stream), - &mut std::task::Context::from_waker(&context.waker()), - ) { - std::task::Poll::Ready(maybe) => maybe, - std::task::Poll::Pending => None, - } - }); - let op_14v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_14v1__source_stream__loc_nopath_3_26_3_46< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_14v1__source_stream__loc_nopath_3_26_3_46(op_14v1) - }; - let op_5v1 = op_14v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_2v1_node_5v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_5v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_5v1__unique__loc_nopath_3_19_3_24< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_5v1__unique__loc_nopath_3_19_3_24(op_5v1) - }; - let op_6v1 = dfir_rs::pusherator::tee::Tee::new( - hoff_9v3_send, - hoff_4v3_send, - ); - let op_6v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_6v1__tee__loc_nopath_3_19_3_24< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_6v1__tee__loc_nopath_3_19_3_24(op_6v1) - }; - #[inline(always)] - fn pivot_run_sg_2v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_2v1(op_5v1, op_6v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(3v1)", - 1, - var_expr!(hoff_10v3_recv), - var_expr!(), - false, - move |context, var_args!(hoff_10v3_recv), var_args!()| { - let mut hoff_10v3_recv = hoff_10v3_recv.borrow_mut_swap(); - let hoff_10v3_recv = hoff_10v3_recv.drain(..); - let mut sg_3v1_node_22v1_hashtable = context - .state_ref(sg_3v1_node_22v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_10v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_3v1_node_22v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some(prev + 1) - } else { - Some(1) - }; - }, - ); - } - } - let op_22v1 = sg_3v1_node_22v1_hashtable.drain(); - let op_22v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_22v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_22v1__fold_keyed__loc_nopath_1_0_1_0(op_22v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_23v1 = op_22v1.map(|(g, a): ((), _)| (a.0.unwrap(),)); - let op_23v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_23v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_23v1__map__loc_nopath_1_0_1_0(op_23v1) - }; - let op_8v1 = op_23v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_3v1_node_8v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_8v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_8v1__unique__loc_nopath_5_20_5_26< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_8v1__unique__loc_nopath_5_20_5_26(op_8v1) - }; - let op_15v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result.send(v).unwrap() - }); - let op_15v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_15v1__for_each__loc_nopath_5_28_5_65< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_15v1__for_each__loc_nopath_5_28_5_65(op_15v1) - }; - #[inline(always)] - fn pivot_run_sg_3v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_3v1(op_8v1, op_15v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(4v1)", - 1, - var_expr!(hoff_1v3_recv), - var_expr!(), - false, - move |context, var_args!(hoff_1v3_recv), var_args!()| { - let mut hoff_1v3_recv = hoff_1v3_recv.borrow_mut_swap(); - let hoff_1v3_recv = hoff_1v3_recv.drain(..); - let mut sg_4v1_node_29v1_hashtable = context - .state_ref(sg_4v1_node_29v1_groupbydata) - .borrow_mut(); - { - #[inline(always)] - fn check_input( - iter: Iter, - ) -> impl ::std::iter::Iterator - where - Iter: std::iter::Iterator, - A: ::std::clone::Clone, - B: ::std::clone::Clone, - { - iter - } - /// A: accumulator type - /// T: iterator item type - /// O: output type - #[inline(always)] - fn call_comb_type( - a: &mut A, - t: T, - f: impl Fn(&mut A, T) -> O, - ) -> O { - (f)(a, t) - } - for kv in check_input(hoff_1v3_recv) { - #[allow(unknown_lints, clippy::unwrap_or_default)] - let entry = sg_4v1_node_29v1_hashtable - .entry(kv.0) - .or_insert_with(|| (None,)); - #[allow(clippy::redundant_closure_call)] - call_comb_type( - entry, - kv.1, - |old: &mut (Option<_>,), val: (_,)| { - old.0 = if let Some(prev) = old.0.take() { - Some({ - let prev: (dfir_rs::rustc_hash::FxHashSet<_>, _) = prev; - let mut set: dfir_rs::rustc_hash::FxHashSet<_> = prev.0; - if set.insert(val.0) { - (set, prev.1 + 1) - } else { - (set, prev.1) - } - }) - } else { - Some({ - let mut set = dfir_rs::rustc_hash::FxHashSet::< - _, - >::default(); - set.insert(val.0); - (set, 1) - }) - }; - }, - ); - } - } - let op_29v1 = sg_4v1_node_29v1_hashtable.drain(); - let op_29v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_29v1__fold_keyed__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_29v1__fold_keyed__loc_nopath_1_0_1_0(op_29v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_30v1 = op_29v1.map(|(g, a): ((), _)| (a.0.unwrap().1,)); - let op_30v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_30v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_30v1__map__loc_nopath_1_0_1_0(op_30v1) - }; - let op_11v1 = op_30v1 - .filter(|item| { - let mut borrow = context - .state_ref(sg_4v1_node_11v1_uniquedata) - .borrow_mut(); - let set = borrow - .get_mut_clear(( - context.current_tick(), - context.current_stratum(), - )); - if !set.contains(item) { - set.insert(::std::clone::Clone::clone(item)); - true - } else { - false - } - }); - let op_11v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_11v1__unique__loc_nopath_6_20_6_27< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_11v1__unique__loc_nopath_6_20_6_27(op_11v1) - }; - let op_16v1 = dfir_rs::pusherator::for_each::ForEach::new(|v| { - result2.send(v).unwrap() - }); - let op_16v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_16v1__for_each__loc_nopath_6_29_6_67< - Item, - Input: dfir_rs::pusherator::Pusherator, - >( - input: Input, - ) -> impl dfir_rs::pusherator::Pusherator { - #[repr(transparent)] - struct Push< - Item, - Input: dfir_rs::pusherator::Pusherator, - > { - inner: Input, - } - impl< - Item, - Input: dfir_rs::pusherator::Pusherator, - > dfir_rs::pusherator::Pusherator for Push { - type Item = Item; - #[inline(always)] - fn give(&mut self, item: Self::Item) { - self.inner.give(item) - } - } - Push { inner: input } - } - op_16v1__for_each__loc_nopath_6_29_6_67(op_16v1) - }; - #[inline(always)] - fn pivot_run_sg_4v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_4v1(op_11v1, op_16v1); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(5v1)", - 0, - var_expr!(hoff_9v3_recv, hoff_12v3_recv), - var_expr!(hoff_10v3_send), - false, - move | - context, - var_args!(hoff_9v3_recv, hoff_12v3_recv), - var_args!(hoff_10v3_send)| - { - let mut hoff_9v3_recv = hoff_9v3_recv.borrow_mut_swap(); - let hoff_9v3_recv = hoff_9v3_recv.drain(..); - let mut hoff_12v3_recv = hoff_12v3_recv.borrow_mut_swap(); - let hoff_12v3_recv = hoff_12v3_recv.drain(..); - let hoff_10v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_10v3_send.give(Some(v)); - }); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_19v1 = hoff_12v3_recv.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_19v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_19v1__map__loc_nopath_8_32_8_43< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_19v1__map__loc_nopath_8_32_8_43(op_19v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_20v1 = hoff_9v3_recv.map(|_v: (_,)| ((_v.0,), ())); - let op_20v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_20v1__map__loc_nopath_8_45_8_53< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_20v1__map__loc_nopath_8_45_8_53(op_20v1) - }; - let mut sg_5v1_node_17v1_joindata_lhs_borrow = context - .state_ref(sg_5v1_node_17v1_joindata_lhs) - .borrow_mut(); - let mut sg_5v1_node_17v1_joindata_rhs_borrow = context - .state_ref(sg_5v1_node_17v1_joindata_rhs) - .borrow_mut(); - let op_17v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_19v1, - op_20v1, - &mut *sg_5v1_node_17v1_joindata_lhs_borrow, - &mut *sg_5v1_node_17v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_17v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_17v1__join__loc_nopath_8_12_8_53< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_17v1__join__loc_nopath_8_12_8_53(op_17v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_18v1 = op_17v1 - .map(|kv: ((_,), ((_,), ()))| (kv.0.0, kv.1.0.0)); - let op_18v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_18v1__map__loc_nopath_8_12_8_53< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_18v1__map__loc_nopath_8_12_8_53(op_18v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_21v1 = op_18v1.map(|row: (_, _)| ((), ((),))); - let op_21v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_21v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_21v1__map__loc_nopath_1_0_1_0(op_21v1) - }; - #[inline(always)] - fn pivot_run_sg_5v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_5v1(op_21v1, hoff_10v3_send); - }, - ); - df.add_subgraph_stratified( - "Subgraph GraphSubgraphId(6v1)", - 0, - var_expr!(hoff_4v3_recv, hoff_7v3_recv), - var_expr!(hoff_1v3_send), - false, - move | - context, - var_args!(hoff_4v3_recv, hoff_7v3_recv), - var_args!(hoff_1v3_send)| - { - let mut hoff_4v3_recv = hoff_4v3_recv.borrow_mut_swap(); - let hoff_4v3_recv = hoff_4v3_recv.drain(..); - let mut hoff_7v3_recv = hoff_7v3_recv.borrow_mut_swap(); - let hoff_7v3_recv = hoff_7v3_recv.drain(..); - let hoff_1v3_send = dfir_rs::pusherator::for_each::ForEach::new(| - v| - { - hoff_1v3_send.give(Some(v)); - }); - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_26v1 = hoff_7v3_recv.map(|_v: (_, _)| ((_v.0,), (_v.1,))); - let op_26v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_26v1__map__loc_nopath_9_33_9_44< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_26v1__map__loc_nopath_9_33_9_44(op_26v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_27v1 = hoff_4v3_recv.map(|_v: (_,)| ((_v.0,), ())); - let op_27v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_27v1__map__loc_nopath_9_46_9_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_27v1__map__loc_nopath_9_46_9_54(op_27v1) - }; - let mut sg_6v1_node_24v1_joindata_lhs_borrow = context - .state_ref(sg_6v1_node_24v1_joindata_lhs) - .borrow_mut(); - let mut sg_6v1_node_24v1_joindata_rhs_borrow = context - .state_ref(sg_6v1_node_24v1_joindata_rhs) - .borrow_mut(); - let op_24v1 = { - #[inline(always)] - fn check_inputs<'a, K, I1, V1, I2, V2>( - lhs: I1, - rhs: I2, - lhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V1, - V2, - >, - rhs_state: &'a mut dfir_rs::compiled::pull::HalfMultisetJoinState< - K, - V2, - V1, - >, - is_new_tick: bool, - ) -> impl 'a + Iterator - where - K: Eq + std::hash::Hash + Clone, - V1: Clone, - V2: Clone, - I1: 'a + Iterator, - I2: 'a + Iterator, - { - dfir_rs::compiled::pull::symmetric_hash_join_into_iter( - lhs, - rhs, - lhs_state, - rhs_state, - is_new_tick, - ) - } - check_inputs( - op_26v1, - op_27v1, - &mut *sg_6v1_node_24v1_joindata_lhs_borrow, - &mut *sg_6v1_node_24v1_joindata_rhs_borrow, - context.is_first_run_this_tick(), - ) - }; - let op_24v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_24v1__join__loc_nopath_9_12_9_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_24v1__join__loc_nopath_9_12_9_54(op_24v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_25v1 = op_24v1 - .map(|kv: ((_,), ((_,), ()))| (kv.0.0, kv.1.0.0)); - let op_25v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_25v1__map__loc_nopath_9_12_9_54< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_25v1__map__loc_nopath_9_12_9_54(op_25v1) - }; - #[allow( - clippy::map_clone, - reason = "hydroflow has no explicit `cloned`/`copied` operator" - )] - let op_28v1 = op_25v1.map(|row: (_, _)| ((), ((row.0),))); - let op_28v1 = { - #[allow(non_snake_case)] - #[inline(always)] - pub fn op_28v1__map__loc_nopath_1_0_1_0< - Item, - Input: ::std::iter::Iterator, - >(input: Input) -> impl ::std::iter::Iterator { - #[repr(transparent)] - struct Pull< - Item, - Input: ::std::iter::Iterator, - > { - inner: Input, - } - impl< - Item, - Input: ::std::iter::Iterator, - > Iterator for Pull { - type Item = Item; - #[inline(always)] - fn next(&mut self) -> Option { - self.inner.next() - } - #[inline(always)] - fn size_hint(&self) -> (usize, Option) { - self.inner.size_hint() - } - } - Pull { inner: input } - } - op_28v1__map__loc_nopath_1_0_1_0(op_28v1) - }; - #[inline(always)] - fn pivot_run_sg_6v1< - Pull: ::std::iter::Iterator, - Push: dfir_rs::pusherator::Pusherator, - Item, - >(pull: Pull, push: Push) { - dfir_rs::pusherator::pivot::Pivot::new(pull, push).run(); - } - pivot_run_sg_6v1(op_28v1, hoff_1v3_send); - }, - ); - df - } - } -} diff --git a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@surface_graph.snap b/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@surface_graph.snap deleted file mode 100644 index d3cbc73a8aa8..000000000000 --- a/dfir_datalog_core/src/snapshots/hydroflow_datalog_core__tests__wildcard_join_count@surface_graph.snap +++ /dev/null @@ -1,54 +0,0 @@ ---- -source: dfir_datalog_core/src/lib.rs -expression: flat_graph_ref.surface_syntax_string() ---- -2v1 = unique :: < 'tick > (); -3v1 = tee (); -5v1 = unique :: < 'tick > (); -6v1 = tee (); -8v1 = unique :: < 'tick > (); -11v1 = unique :: < 'tick > (); -13v1 = source_stream (ints1); -14v1 = source_stream (ints2); -15v1 = for_each (| v | result . send (v) . unwrap ()); -16v1 = for_each (| v | result2 . send (v) . unwrap ()); -17v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -18v1 = map (| kv : ((_ ,) , ((_ ,) , ())) | (kv . 0 . 0 , kv . 1 . 0 . 0 ,)); -19v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -20v1 = map (| _v : (_ ,) | ((_v . 0 ,) , ())); -21v1 = map (| row : (_ , _ ,) | (() , (() ,))); -22v1 = fold_keyed :: < 'tick , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some (prev + 1) } else { Some (1) } ; }); -23v1 = map (| (g , a) : (() , _) | (a . 0 . unwrap () ,)); -24v1 = join :: < 'tick , 'tick , hydroflow :: compiled :: pull :: HalfMultisetJoinState > (); -25v1 = map (| kv : ((_ ,) , ((_ ,) , ())) | (kv . 0 . 0 , kv . 1 . 0 . 0 ,)); -26v1 = map (| _v : (_ , _ ,) | ((_v . 0 ,) , (_v . 1 ,))); -27v1 = map (| _v : (_ ,) | ((_v . 0 ,) , ())); -28v1 = map (| row : (_ , _ ,) | (() , ((row . 0) ,))); -29v1 = fold_keyed :: < 'tick , () , (Option < _ > ,) > (| | (None ,) , | old : & mut (Option < _ > ,) , val : (_ ,) | { old . 0 = if let Some (prev) = old . 0 . take () { Some ({ let prev : (hydroflow :: rustc_hash :: FxHashSet < _ > , _) = prev ; let mut set : hydroflow :: rustc_hash :: FxHashSet < _ > = prev . 0 ; if set . insert (val . 0) { (set , prev . 1 + 1) } else { (set , prev . 1) } }) } else { Some ({ let mut set = hydroflow :: rustc_hash :: FxHashSet :: < _ > :: default () ; set . insert (val . 0) ; (set , 1) }) } ; }); -30v1 = map (| (g , a) : (() , _) | (a . 0 . unwrap () . 1 ,)); - -13v1 -> 2v1; -2v1 -> 3v1; -14v1 -> 5v1; -5v1 -> 6v1; -23v1 -> 8v1; -30v1 -> 11v1; -8v1 -> 15v1; -11v1 -> 16v1; -17v1 -> 18v1; -19v1 -> 17v1; -3v1 -> 19v1; -20v1 -> 17v1; -6v1 -> 20v1; -22v1 -> 23v1; -21v1 -> 22v1; -18v1 -> 21v1; -24v1 -> 25v1; -26v1 -> 24v1; -3v1 -> 26v1; -27v1 -> 24v1; -6v1 -> 27v1; -29v1 -> 30v1; -28v1 -> 29v1; -25v1 -> 28v1; - diff --git a/dfir_rs/tests/snapshots/surface_async__echo@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_async__echo@graphvis_dot.snap index 912a7c16439b..89b9d66cea90 100644 --- a/dfir_rs/tests/snapshots/surface_async__echo@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_async__echo@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_async.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_async.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -16,4 +16,3 @@ digraph { n2v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_async__echo@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_async__echo@graphvis_mermaid.snap index 90cc65fc1b17..d1baca432042 100644 --- a/dfir_rs/tests/snapshots/surface_async__echo@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_async__echo@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_async.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_async.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -15,4 +15,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 1v1 2v1 end - diff --git a/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_dot.snap index 8b1220f9c05a..46568b5c59d3 100644 --- a/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_batch.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_batch.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -40,4 +40,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_mermaid.snap index a560d44d4b09..517f94bbc553 100644 --- a/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_batch__basic_2@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_batch.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_batch.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -32,4 +32,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 1"] 1v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_dot.snap index ac74e218bc72..217202f9c424 100644 --- a/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_book.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_book.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -48,4 +48,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_mermaid.snap index f1ae7e386d68..32eda40ce6a1 100644 --- a/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_book__surface_flows_1@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_book.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_book.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -42,4 +42,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 0"] 6v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_dot.snap index 589dc1da93bc..fd24ee26560a 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -16,4 +16,3 @@ digraph { n2v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_mermaid.snap index 0ceba4af3643..7aa909047529 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__basic_2@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -15,4 +15,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 1v1 2v1 end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_dot.snap index 303159c0e415..0bb000221dda 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -19,4 +19,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_mermaid.snap index e535b2e092bc..22c561de9726 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__basic_3@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -18,4 +18,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_dot.snap index fae863480bb3..64c3a5e7f03a 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -27,4 +27,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_mermaid.snap index 40ef7b74f7cb..915ba4ea0c07 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__basic_union@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -25,4 +25,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_dot.snap index 2786987672ec..3ea54d597450 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "hydroflow.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "hydroflow.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -88,4 +88,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_mermaid.snap index 544f72a35557..9a20c12f2a77 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__covid_tracing@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "hydroflow.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "hydroflow.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -80,4 +80,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 0"] 12v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_dot.snap index 2db559e9f0ff..5b7ee9a1e2f3 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -16,4 +16,3 @@ digraph { n2v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_mermaid.snap index b46f9106987f..80961ee3a4d6 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__recv_expr@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -15,4 +15,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 1v1 2v1 end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_dot.snap index 329f01af5f7a..5ed5b7be6bf8 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_mermaid.snap index 703f51a18bea..e8ce7aba1d81 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__sort@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_dot.snap index 30f95df8758a..83c100ae72bc 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_mermaid.snap index e60c88ce080b..4bcae717b9b9 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__sort_by_key@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_dot.snap index c62ff3c66fa5..815ae6af03af 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -53,4 +53,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_mermaid.snap index 03e892561130..1892ad8ff5f3 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__surface_syntax_reachability_generated@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -50,4 +50,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_dot.snap index 92e23c4973da..0082048a5c2e 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -65,4 +65,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_mermaid.snap index 408115bd9d17..44ef5868fab5 100644 --- a/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_codegen__transitive_closure@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_codegen.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_codegen.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -58,4 +58,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 0"] 6v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_dot.snap deleted file mode 100644 index a8c5c11f1ef5..000000000000 --- a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_dot.snap +++ /dev/null @@ -1,45 +0,0 @@ ---- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter([()])", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(|_| context.current_tick_start())", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) defer_tick()", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) assert(|t: &dfir_rs::web_time::SystemTime| t.elapsed().unwrap().as_nanos() > 0)", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) for_each(|t: dfir_rs::web_time::SystemTime| {\l println!(\"Time between ticks: {:?}\", t.elapsed())\l})\l", shape=house, fillcolor="#ffff88"] - n6v1 [label="(n6v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n7v1 [label="(n7v1) identity()", shape=invhouse, fillcolor="#88aaff"] - n8v1 [label="(n8v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n4v1 -> n5v1 - n3v1 -> n4v1 - n2v1 -> n6v1 - n1v1 -> n2v1 - n6v1 -> n7v1 - n7v1 -> n8v1 - n8v1 -> n3v1 [color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 0" - n3v1 - n4v1 - n5v1 - } - subgraph "cluster n3v1" { - fillcolor="#dddddd" - style=filled - label = "sg_3v1\nstratum 1" - n7v1 - } -} - diff --git a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_mermaid.snap deleted file mode 100644 index 1270d4f3b754..000000000000 --- a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start@graphvis_mermaid.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_iter([()])"/]:::pullClass -2v1[\"(2v1) map(|_| context.current_tick_start())"/]:::pullClass -3v1[\"(3v1) defer_tick()"/]:::pullClass -4v1[\"(4v1) assert(|t: &dfir_rs::web_time::SystemTime| t.elapsed().unwrap().as_nanos() > 0)"/]:::pullClass -5v1[/"
(5v1)
for_each(|t: dfir_rs::web_time::SystemTime| {
println!("Time between ticks: {:?}", t.elapsed())
})
"\]:::pushClass -6v1["(6v1) handoff"]:::otherClass -7v1[\"(7v1) identity()"/]:::pullClass -8v1["(8v1) handoff"]:::otherClass -4v1-->5v1 -3v1-->4v1 -2v1-->6v1 -1v1-->2v1 -6v1-->7v1 -7v1-->8v1 -8v1--o3v1; linkStyle 6 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 -end -subgraph sg_2v1 ["sg_2v1 stratum 0"] - 3v1 - 4v1 - 5v1 -end -subgraph sg_3v1 ["sg_3v1 stratum 1"] - 7v1 -end - diff --git a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_dot.snap index ee9283fa7b61..0924f571440e 100644 --- a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_context.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -19,4 +19,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_mermaid.snap index f3a022410193..545287013787 100644 --- a/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_context__context_current_tick_start_does_not_count_time_between_ticks_async@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_context.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -18,4 +18,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_dot.snap index 67f431463d73..2b6ee4ee08f7 100644 --- a/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_context.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -29,4 +29,3 @@ digraph { n4v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_mermaid.snap index 45b1fb6c61eb..e57b45d55909 100644 --- a/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_context__context_mut@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_context.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -25,4 +25,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 3v1 4v1 end - diff --git a/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_dot.snap index e043a2e18344..c706871ed701 100644 --- a/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_context.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -16,4 +16,3 @@ digraph { n2v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_mermaid.snap index 0198b1b208fa..b7c639d5d1b4 100644 --- a/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_context__context_ref@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_context.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_context.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -15,4 +15,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 1v1 2v1 end - diff --git a/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_dot.snap index 0916dc2fd4ce..955cdc4679e3 100644 --- a/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_cross_singleton.rs +source: dfir_rs/tests/surface_cross_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -36,4 +36,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_mermaid.snap index 44a19c6ea3d3..dd4a00e0e3c3 100644 --- a/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_cross_singleton__basic@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_cross_singleton.rs +source: dfir_rs/tests/surface_cross_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -31,4 +31,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 1v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_dot.snap index 7957a90e7979..1093405a109c 100644 --- a/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_cross_singleton.rs +source: dfir_rs/tests/surface_cross_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_mermaid.snap index ae77d69d57cc..e72652826eba 100644 --- a/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_cross_singleton__union_defer_tick@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_cross_singleton.rs +source: dfir_rs/tests/surface_cross_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_dot.snap index 4b19ba844f55..5fc74fb287a0 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -70,4 +70,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_mermaid.snap index af0bfc26befe..2ed3ec8ce88c 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -56,4 +56,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 0"] 4v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_dot.snap index eb907c469b4e..e2bf6fc996c2 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -70,4 +70,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_mermaid.snap index 616e13d3f0ea..913c6aa99352 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_static_tick@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -56,4 +56,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 0"] 4v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_dot.snap index 2e33a5cb55ec..5a55b1ad1f6c 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -70,4 +70,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_mermaid.snap index 315508bedd09..6f2361699282 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_tick_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -56,4 +56,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 0"] 4v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_dot.snap index 25e5e0b0f924..8ecaedbb27e5 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -56,4 +56,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_mermaid.snap index e94ee5c0fdfb..0a474b6ecada 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_multiset_timing@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -46,4 +46,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 0"] 3v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_dot.snap index 256114f548f5..7f3436b189db 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -70,4 +70,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_mermaid.snap index df8046995e75..5b8b7a307d20 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -56,4 +56,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 0"] 4v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_dot.snap index 1d7adc513eae..23e9fd424c0d 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -56,4 +56,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_mermaid.snap index f97a83199573..239c67de076a 100644 --- a/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_difference__diff_timing@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_difference.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_difference.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -46,4 +46,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 0"] 3v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_examples__example_1_simplest.snap b/dfir_rs/tests/snapshots/surface_examples__example_1_simplest.snap index 065e174f4cb3..53ec19c0fe13 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_1_simplest.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_1_simplest.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- Hello 0 diff --git a/dfir_rs/tests/snapshots/surface_examples__example_2_simple_1.snap b/dfir_rs/tests/snapshots/surface_examples__example_2_simple_1.snap index 90de61d5dbe4..4ce10c2f30ce 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_2_simple_1.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_2_simple_1.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- Howdy 16 diff --git a/dfir_rs/tests/snapshots/surface_examples__example_2_simple_2.snap b/dfir_rs/tests/snapshots/surface_examples__example_2_simple_2.snap index c71290ae9336..f703b9089f50 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_2_simple_2.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_2_simple_2.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- G'day 16 diff --git a/dfir_rs/tests/snapshots/surface_examples__example_3_stream.snap b/dfir_rs/tests/snapshots/surface_examples__example_3_stream.snap index bd523917a67a..edcbf4738ebc 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_3_stream.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_3_stream.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- A diff --git a/dfir_rs/tests/snapshots/surface_examples__example_4_neighbors.snap b/dfir_rs/tests/snapshots/surface_examples__example_4_neighbors.snap index 7b931190d85a..32d53a65b58c 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_4_neighbors.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_4_neighbors.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_examples__example_5_reachability.snap b/dfir_rs/tests/snapshots/surface_examples__example_5_reachability.snap index 157ecc566559..32db53fabe92 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_5_reachability.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_5_reachability.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_examples__example_6_unreachability.snap b/dfir_rs/tests/snapshots/surface_examples__example_6_unreachability.snap index 2737c73983ac..8895ccf7d4f3 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_6_unreachability.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_6_unreachability.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_examples__example_naturals.snap b/dfir_rs/tests/snapshots/surface_examples__example_naturals.snap index 01a15b13afb4..11578cd61340 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_naturals.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_naturals.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- diff --git a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_1_basic.snap b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_1_basic.snap index e3a2e0a2da93..e9126cc8c337 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_1_basic.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_1_basic.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- HELLO diff --git a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_2_varname.snap b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_2_varname.snap index e3a2e0a2da93..e9126cc8c337 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_2_varname.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_2_varname.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- HELLO diff --git a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_3_ports.snap b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_3_ports.snap index 83ed8d6a0daf..c704f149ae5b 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_3_ports.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_3_ports.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_4_context.snap b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_4_context.snap index 2008630a0c89..4ca2fecdbee6 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_4_context.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_surface_flows_4_context.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- Current tick: [0], stratum: 0 diff --git a/dfir_rs/tests/snapshots/surface_examples__example_syntax_empty.snap b/dfir_rs/tests/snapshots/surface_examples__example_syntax_empty.snap index 01a15b13afb4..11578cd61340 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_syntax_empty.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_syntax_empty.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- diff --git a/dfir_rs/tests/snapshots/surface_examples__example_syntax_hello_world.snap b/dfir_rs/tests/snapshots/surface_examples__example_syntax_hello_world.snap index e3a2e0a2da93..e9126cc8c337 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_syntax_hello_world.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_syntax_hello_world.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- HELLO diff --git a/dfir_rs/tests/snapshots/surface_examples__example_syntax_input.snap b/dfir_rs/tests/snapshots/surface_examples__example_syntax_input.snap index e3a2e0a2da93..e9126cc8c337 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_syntax_input.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_syntax_input.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- HELLO diff --git a/dfir_rs/tests/snapshots/surface_examples__example_syntax_output.snap b/dfir_rs/tests/snapshots/surface_examples__example_syntax_output.snap index 01a15b13afb4..11578cd61340 100644 --- a/dfir_rs/tests/snapshots/surface_examples__example_syntax_output.snap +++ b/dfir_rs/tests/snapshots/surface_examples__example_syntax_output.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_examples.rs +source: dfir_rs/tests/surface_examples.rs expression: output --- diff --git a/dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_dot.snap deleted file mode 100644 index 432b185a79da..000000000000 --- a/dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_dot.snap +++ /dev/null @@ -1,56 +0,0 @@ ---- -source: hydroflow/tests/surface_flow_props.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter_delta((0..10).map(SetUnionSingletonSet::new_from))", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(|SetUnion(SingletonSet(x))| SetUnion(SingletonSet(x + 5)))", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) tee()", shape=house, fillcolor="#ffff88"] - n4v1 [label="(n4v1) cast(None)", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) map(|SetUnion(SingletonSet(x))| 10 * x)", shape=house, fillcolor="#ffff88"] - n6v1 [label="(n6v1) for_each(|x| println!(\"seq {:?}\", x))", shape=house, fillcolor="#ffff88"] - n7v1 [label="(n7v1) for_each(|s| println!(\"delta {:?}\", s))", shape=house, fillcolor="#ffff88"] - n8v1 [label="(n8v1) map(|SetUnion(SingletonSet(x))| SetUnionHashSet::new_from([x]))", shape=house, fillcolor="#ffff88"] - n9v1 [label="(n9v1) lattice_reduce()", shape=invhouse, fillcolor="#88aaff"] - n10v1 [label="(n10v1) for_each(|s| println!(\"cumul {:?}\", s))", shape=house, fillcolor="#ffff88"] - n11v1 [label="(n11v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n2v1 -> n3v1 [color=darkgreen, style=dashed] - n1v1 -> n2v1 [color=darkgreen, style=dashed] - n5v1 -> n6v1 - n4v1 -> n5v1 - n3v1 -> n4v1 [color=darkgreen, style=dashed] - n3v1 -> n7v1 [color=darkgreen, style=dashed] - n9v1 -> n10v1 [color=darkgreen, style=bold] - n8v1 -> n11v1 [color=darkgreen, style=dashed] - n3v1 -> n8v1 [color=darkgreen, style=dashed] - n11v1 -> n9v1 [color=red, style=dashed] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - n3v1 - n4v1 - n5v1 - n6v1 - n7v1 - n8v1 - subgraph "cluster_sg_1v1_var_my_tee" { - label="var my_tee" - n1v1 - n2v1 - n3v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 0" - n9v1 - n10v1 - } -} - diff --git a/dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_mermaid.snap deleted file mode 100644 index 208fd77b9f0b..000000000000 --- a/dfir_rs/tests/snapshots/surface_flow_props__basic@graphvis_mermaid.snap +++ /dev/null @@ -1,51 +0,0 @@ ---- -source: hydroflow/tests/surface_flow_props.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_iter_delta((0..10).map(SetUnionSingletonSet::new_from))"/]:::pullClass -2v1[\"(2v1) map(|SetUnion(SingletonSet(x))| SetUnion(SingletonSet(x + 5)))"/]:::pullClass -3v1[/"(3v1) tee()"\]:::pushClass -4v1[/"(4v1) cast(None)"\]:::pushClass -5v1[/"(5v1) map(|SetUnion(SingletonSet(x))| 10 * x)"\]:::pushClass -6v1[/"(6v1) for_each(|x| println!("seq {:?}", x))"\]:::pushClass -7v1[/"(7v1) for_each(|s| println!("delta {:?}", s))"\]:::pushClass -8v1[/"(8v1) map(|SetUnion(SingletonSet(x))| SetUnionHashSet::new_from([x]))"\]:::pushClass -9v1[\"(9v1) lattice_reduce()"/]:::pullClass -10v1[/"(10v1) for_each(|s| println!("cumul {:?}", s))"\]:::pushClass -11v1["(11v1) handoff"]:::otherClass -2v1-.->3v1; linkStyle 0 stroke:#060 -1v1-.->2v1; linkStyle 1 stroke:#060 -5v1-->6v1 -4v1-->5v1 -3v1-.->4v1; linkStyle 4 stroke:#060 -3v1-.->7v1; linkStyle 5 stroke:#060 -9v1==>10v1; linkStyle 6 stroke:#060 -8v1-.->11v1; linkStyle 7 stroke:#060 -3v1-.->8v1; linkStyle 8 stroke:#060 -11v1-.->9v1; linkStyle 9 stroke:#060 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - 3v1 - 4v1 - 5v1 - 6v1 - 7v1 - 8v1 - subgraph sg_1v1_var_my_tee ["var my_tee"] - 1v1 - 2v1 - 3v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 0"] - 9v1 - 10v1 -end - diff --git a/dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_dot.snap deleted file mode 100644 index 5689495dde96..000000000000 --- a/dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_dot.snap +++ /dev/null @@ -1,30 +0,0 @@ ---- -source: hydroflow/tests/surface_flow_props.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter_delta((0..10).map(SetUnionSingletonSet::new_from))", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) source_iter((0..10).map(SetUnionSingletonSet::new_from))", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) union()", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) for_each(|s| println!(\"{:?}\", s))", shape=house, fillcolor="#ffff88"] - n1v1 -> n3v1 [label="0", color=darkgreen, style=dashed] - n2v1 -> n3v1 [label="1"] - n3v1 -> n4v1 - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - n3v1 - n4v1 - subgraph "cluster_sg_1v1_var_my_union" { - label="var my_union" - n3v1 - n4v1 - } - } -} - diff --git a/dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_mermaid.snap deleted file mode 100644 index 69d77537df55..000000000000 --- a/dfir_rs/tests/snapshots/surface_flow_props__union_warning@graphvis_mermaid.snap +++ /dev/null @@ -1,28 +0,0 @@ ---- -source: hydroflow/tests/surface_flow_props.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_iter_delta((0..10).map(SetUnionSingletonSet::new_from))"/]:::pullClass -2v1[\"(2v1) source_iter((0..10).map(SetUnionSingletonSet::new_from))"/]:::pullClass -3v1[\"(3v1) union()"/]:::pullClass -4v1[/"(4v1) for_each(|s| println!("{:?}", s))"\]:::pushClass -1v1-.->|0|3v1; linkStyle 0 stroke:#060 -2v1-->|1|3v1 -3v1-->4v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - 3v1 - 4v1 - subgraph sg_1v1_var_my_union ["var my_union"] - 3v1 - 4v1 - end -end - diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_dot.snap index e3d1a1ecb9d1..5ec59e69002d 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_fold.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -29,4 +29,3 @@ digraph { n4v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_mermaid.snap index ca1cf57668b3..1f082ece7472 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_sort@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_fold.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -25,4 +25,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 3v1 4v1 end - diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_dot.snap index 03c597fef376..25459d61914f 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_fold.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_mermaid.snap index 2cb2ed0438e2..443a35316005 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_fold.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_dot.snap index 65ef0b0e7454..329007298850 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_fold.rs +source: dfir_rs/tests/surface_fold.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_mermaid.snap index 9d60d59a378b..6c9936d3a779 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_static_join@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_fold.rs +source: dfir_rs/tests/surface_fold.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_dot.snap index 8a7cb5eeb8ac..e803ac17b84d 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_fold.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_mermaid.snap index 9182c2817983..f32192b7ae27 100644 --- a/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold__fold_tick@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_fold.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_dot.snap index 5ad4db77894a..3032a87f95a8 100644 --- a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold_keyed.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_fold_keyed.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -29,4 +29,3 @@ digraph { n4v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_mermaid.snap index 7e5425930394..936b4ff8c0fa 100644 --- a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_infer_basic@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold_keyed.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_fold_keyed.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -25,4 +25,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 3v1 4v1 end - diff --git a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_dot.snap index 4de57d82db9f..a4bdf3836298 100644 --- a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold_keyed.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_fold_keyed.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_mermaid.snap index 0fedf7169097..e171452c7790 100644 --- a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold_keyed.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_fold_keyed.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_dot.snap index 5d227e527c33..5cf38972aa83 100644 --- a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold_keyed.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_fold_keyed.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_mermaid.snap index 6be1dffa2357..39ef7d5bdc80 100644 --- a/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_fold_keyed__fold_keyed_tick@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_fold_keyed.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_fold_keyed.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_dot.snap index 71d3c6f8371c..896a4789104f 100644 --- a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_forwardref.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_forwardref.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -20,4 +20,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_mermaid.snap index 6d2eb57bbe2f..6981cd8692cb 100644 --- a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_backward@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_forwardref.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_forwardref.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -18,4 +18,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_dot.snap index f11a84a48c59..c93d73887a03 100644 --- a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_forwardref.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_forwardref.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -20,4 +20,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_mermaid.snap index 64b5ed198e26..9c06bc811ddf 100644 --- a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_forward@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_forwardref.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_forwardref.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -18,4 +18,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_dot.snap index 68456e40ba03..a13928ea63db 100644 --- a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_forwardref.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_forwardref.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -23,4 +23,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_mermaid.snap index 89462718e600..024e70b4ab40 100644 --- a/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_forwardref__forwardref_basic_middle@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_forwardref.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_forwardref.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -21,4 +21,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 3v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_dot.snap index 53a5fc96ad2d..284f36b8d56a 100644 --- a/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -100,4 +100,3 @@ digraph { n18v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_mermaid.snap index 4c990a36cecc..6017702794df 100644 --- a/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join__static_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -79,4 +79,3 @@ end subgraph sg_7v1 ["sg_7v1 stratum 1"] 18v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_dot.snap index 500338f4e77a..435b291319c7 100644 --- a/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -100,4 +100,3 @@ digraph { n18v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_mermaid.snap index 07eab690c57e..e172ef3f573f 100644 --- a/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join__static_tick@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -79,4 +79,3 @@ end subgraph sg_7v1 ["sg_7v1 stratum 1"] 18v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_dot.snap index e1e86cc2491f..a2dfa25fd78e 100644 --- a/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -100,4 +100,3 @@ digraph { n18v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_mermaid.snap index f7c4eceb2c1e..126fe8a25023 100644 --- a/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join__tick_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -79,4 +79,3 @@ end subgraph sg_7v1 ["sg_7v1 stratum 1"] 18v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_dot.snap index 5d5723608825..f6e97b6f0f44 100644 --- a/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -100,4 +100,3 @@ digraph { n18v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_mermaid.snap index a4d5851fd4c8..7d86a6e72150 100644 --- a/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join__tick_tick@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -79,4 +79,3 @@ end subgraph sg_7v1 ["sg_7v1 stratum 1"] 18v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_dot.snap index 5b8c3c86d29e..77dc78f54d56 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -110,4 +110,3 @@ digraph { n20v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_mermaid.snap index 0ecee721532e..106d09d5a15d 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_blocking_rhs_streaming@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -86,4 +86,3 @@ end subgraph sg_8v1 ["sg_8v1 stratum 2"] 20v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_dot.snap index a2e054e7d003..59406427a471 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -114,4 +114,3 @@ digraph { n21v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_mermaid.snap index ceedc16d2606..b8e2792d5868 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_static_lhs_streaming_rhs_blocking@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -90,4 +90,3 @@ end subgraph sg_8v1 ["sg_8v1 stratum 2"] 21v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap index 0fd868e5005f..17197bfa3a59 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -110,4 +110,3 @@ digraph { n20v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap index 263860ff3e7b..9e8de9fb9e79 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -86,4 +86,3 @@ end subgraph sg_8v1 ["sg_8v1 stratum 2"] 20v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap index eec03a8d3c19..6b547ea56edc 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -110,4 +110,3 @@ digraph { n20v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap index cc5ad00a7d2e..a5de14217f87 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__static_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -86,4 +86,3 @@ end subgraph sg_8v1 ["sg_8v1 stratum 2"] 20v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap index 5cfc5e458cef..f82d9a3128d7 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -110,4 +110,3 @@ digraph { n20v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap index 22078919c56c..79b507bb5436 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_blocking_rhs_streaming@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -86,4 +86,3 @@ end subgraph sg_8v1 ["sg_8v1 stratum 2"] 20v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_dot.snap index 95c51868f28c..400fbbba451c 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -117,4 +117,3 @@ digraph { n21v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_mermaid.snap index a487ebb7e45e..adbd714bf8b1 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_fold_rhs_reduce@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -90,4 +90,3 @@ end subgraph sg_9v1 ["sg_9v1 stratum 2"] 21v1 end - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap index d55b00d7372c..a45330c727c5 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -110,4 +110,3 @@ digraph { n20v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap index d7927308a14c..ee00cd5ded60 100644 --- a/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_join_fused__tick_tick_lhs_streaming_rhs_blocking@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_join_fused.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_join_fused.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -86,4 +86,3 @@ end subgraph sg_8v1 ["sg_8v1 stratum 2"] 20v1 end - diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_dot.snap index 9e81d0e6973d..6f4bfa820f87 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_mermaid.snap index 60c4b26b33f7..3f63cab6e57c 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_dot.snap index a1f6888a2b86..00f771231175 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_mermaid.snap index 08e6a806fc42..1ccba808f45e 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_1401@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_dot.snap index 239b30948c41..4251195d75d0 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_mermaid.snap index a71d84cc9f12..fa1b3e78e2d8 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__cartesian_product_tick_state@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_dot.snap index 11eb8a895be1..1db3d6034f30 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_mermaid.snap index f4a08363658f..15385c320019 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism__join@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism.rs +source: dfir_rs/tests/surface_lattice_bimorphism.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_dot.snap index 901913e33985..a604e2d89124 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism_persist_insertion.rs +source: dfir_rs/tests/surface_lattice_bimorphism_persist_insertion.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -81,4 +81,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_mermaid.snap index 9c9cca474009..ce5b8e112b4e 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism_persist_insertion.rs +source: dfir_rs/tests/surface_lattice_bimorphism_persist_insertion.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -67,4 +67,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 1"] 9v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_dot.snap index 8ef2f9322891..727fd220d6f4 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism_persist_insertion.rs +source: dfir_rs/tests/surface_lattice_bimorphism_persist_insertion.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -88,4 +88,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_mermaid.snap index 8c83ec06db7e..956e97276949 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_identity@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism_persist_insertion.rs +source: dfir_rs/tests/surface_lattice_bimorphism_persist_insertion.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -73,4 +73,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 1"] 10v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_dot.snap index c8e9bdd55225..5505b4cf8596 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism_persist_insertion.rs +source: dfir_rs/tests/surface_lattice_bimorphism_persist_insertion.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -91,4 +91,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_mermaid.snap index 3d902c27f2fa..7652b6e4c1c1 100644 --- a/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_lattice_bimorphism_persist_insertion__cartesian_product_multi_tick_tee@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_lattice_bimorphism_persist_insertion.rs +source: dfir_rs/tests/surface_lattice_bimorphism_persist_insertion.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -76,4 +76,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 1"] 11v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_dot.snap index e566a3c1a17b..45b593ffec72 100644 --- a/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_loop.rs +source: dfir_rs/tests/surface_loop.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_mermaid.snap index 68f67faccaf8..65ec7c6a4493 100644 --- a/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_loop__flo_nested@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_loop.rs +source: dfir_rs/tests/surface_loop.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_dot.snap index 57f118a3fee3..b1c2844d65f4 100644 --- a/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_loop.rs +source: dfir_rs/tests/surface_loop.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_mermaid.snap index 3fdd6bd94591..d025637edea0 100644 --- a/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_loop__flo_syntax@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_loop.rs +source: dfir_rs/tests/surface_loop.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_dot.snap index 2f090dac01db..44e75600f635 100644 --- a/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_multiset_delta.rs -expression: "flow.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_multiset_delta.rs +expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -19,4 +19,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_mermaid.snap index 678f1165ae3c..d4a0599e3696 100644 --- a/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_multiset_delta__multiset_delta@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_multiset_delta.rs -expression: "flow.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_multiset_delta.rs +expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -18,4 +18,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_dot.snap index 022df0ac736a..e8ae6cb54977 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -34,4 +34,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_mermaid.snap index 3588c671889c..df17f5358808 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -32,4 +32,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 3v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_dot.snap index c4af5ac9bbcc..f2609d23bbe0 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -32,4 +32,3 @@ digraph { n5v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_mermaid.snap index baf6b131693f..c61c6581178e 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_basic@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -28,4 +28,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 4v1 5v1 end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_dot.snap index 8be883eaad8d..c6c398f6c0ed 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -54,4 +54,3 @@ digraph { n7v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_mermaid.snap index 850050cc00c5..b43609b337f0 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_mut@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -45,4 +45,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 2"] 6v1 7v1 end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_dot.snap index c1e61e9ec370..c1cad0c80621 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -54,4 +54,3 @@ digraph { n7v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_mermaid.snap index d06101fd8954..132f39c2db14 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_mut_keyed@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -45,4 +45,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 2"] 6v1 7v1 end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_dot.snap index 9834556ec043..b3ab33002026 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -58,4 +58,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_mermaid.snap index 5b2da7eb3da8..c2427d18c216 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_pull@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -51,4 +51,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 9v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_dot.snap index f8c0fd045d7b..cbd68819834c 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -55,4 +55,3 @@ digraph { n9v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_mermaid.snap index d542edfcbc33..e1320a11f2bc 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_push@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -49,4 +49,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 8v1 9v1 end - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_dot.snap index 07092b6a6561..3daf649c51c5 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -57,4 +57,3 @@ digraph { n5v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_mermaid.snap index 644158b1e508..b3701bcdffb6 100644 --- a/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_persist__persist_replay_join@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_persist.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_persist.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -46,4 +46,3 @@ end subgraph sg_4v1 ["sg_4v1 stratum 0"] 5v1 end - diff --git a/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_dot.snap index a559b48e75e4..697c0d5508af 100644 --- a/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_python.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_python.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -25,4 +25,3 @@ digraph { n5v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_mermaid.snap index 2f5634dfa192..7d48e4721637 100644 --- a/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_python__python_basic@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_python.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_python.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -24,4 +24,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 4v1 5v1 end - diff --git a/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_dot.snap index 67be621147cb..a19afb7329c6 100644 --- a/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_python.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_python.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -25,4 +25,3 @@ digraph { n5v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_mermaid.snap index d8917ee02665..b1be96236ab2 100644 --- a/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_python__python_too_many_args@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_python.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_python.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -24,4 +24,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 4v1 5v1 end - diff --git a/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_dot.snap index 31dffd59940c..430ba2af247e 100644 --- a/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_python.rs -expression: "hf.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_python.rs +expression: "hf.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -22,4 +22,3 @@ digraph { n4v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_mermaid.snap index a203517495c1..d8c5723a63de 100644 --- a/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_python__python_two_args@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_python.rs -expression: "hf.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_python.rs +expression: "hf.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -21,4 +21,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 3v1 4v1 end - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_dot.snap index fae4ed23bfac..531353c91b57 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -59,4 +59,3 @@ digraph { n9v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_mermaid.snap index d0fb85826a87..1e3a8fbd5f79 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -53,4 +53,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 8v1 9v1 end - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_dot.snap index 78d1a024f923..c9f86a4bdfab 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_mermaid.snap index 918fe4d80c04..05e4493ddde3 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce_static@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_dot.snap index fb7cc76498de..a316930ae569 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_mermaid.snap index 61ac4ff766b3..be6880ff2264 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce_sum@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_dot.snap index e590ad2b56d8..dda3f31659db 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -26,4 +26,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_mermaid.snap index 290df0f16818..635410591b0c 100644 --- a/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_reduce__reduce_tick@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_reduce.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_reduce.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -22,4 +22,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_dot.snap index ed299adbfa52..4ef9e3019346 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -52,4 +52,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_mermaid.snap index de8b45b1a3a8..216069cc580a 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_fold_keyed@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -46,4 +46,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 5v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_dot.snap index 8bca14967e93..77e7b9eebfa4 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -45,4 +45,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_mermaid.snap index cae3d863bdf9..13da5668e4e5 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_persist@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -42,4 +42,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 5v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_dot.snap index 3a97af7ec634..03fcb70e48da 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -52,4 +52,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_mermaid.snap index ecae5cd8b650..b68ef19c48cb 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__issue_800_1050_reduce_keyed@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -46,4 +46,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 5v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_dot.snap index 3ea95ef3af1b..4ecf18cfe63e 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -56,4 +56,3 @@ digraph { n9v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_mermaid.snap index 8e013783541c..5693a9e395ba 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -43,4 +43,3 @@ end subgraph sg_5v1 ["sg_5v1 stratum 2"] 9v1 end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_dot.snap index 1b14c0342b95..9a99e1572db3 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -79,4 +79,3 @@ digraph { n12v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_mermaid.snap index 4dc59de2c175..975a8b2d3f29 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__nospin_issue_961_complicated@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -65,4 +65,3 @@ end subgraph sg_4v1 ["sg_4v1 stratum 2"] 12v1 end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_dot.snap index 92dd049fed4f..60a3c5796b44 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -29,4 +29,3 @@ digraph { n4v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_mermaid.snap index 095cadbbbc04..d4852e5af176 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_async@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -25,4 +25,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 3v1 4v1 end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_dot.snap index e33d6db6e66b..37af9e4b4288 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -39,4 +39,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_mermaid.snap index 00c5bc1eb608..d74b8ed96673 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__persist_stratum_run_available@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -33,4 +33,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 4v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_dot.snap index 62351287df30..019857a67391 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_scheduling.rs +source: dfir_rs/tests/surface_scheduling.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_mermaid.snap index defafae56088..cfa6f8658714 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__stratum_loop@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_scheduling.rs +source: dfir_rs/tests/surface_scheduling.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_dot.snap index 0cbac9d8f699..4fb4c47adb81 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -56,4 +56,3 @@ digraph { n10v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_mermaid.snap index 7eecd00d130d..bffbd95e358d 100644 --- a/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_scheduling__tick_loop@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_scheduling.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_scheduling.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -48,4 +48,3 @@ end subgraph sg_3v1 ["sg_3v1 stratum 1"] 10v1 end - diff --git a/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_dot.snap index a2c27549fa90..e519f8110ef0 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -81,4 +81,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_mermaid.snap index 46e8729bf2f5..c1a1db9ab64d 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__fold_cross@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -70,4 +70,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 0"] 5v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_dot.snap index b5162a08a2cc..89b75c456f2b 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -64,4 +64,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_mermaid.snap index 3775b3febceb..575afb2c3cfe 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_dot.snap index 313356b0c3b9..d8f7c340dd50 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_singleton.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_singleton.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -62,4 +62,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_mermaid.snap index 44963ff34e03..e322d0bbab1b 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__fold_singleton_push@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_singleton.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_singleton.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -51,4 +51,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 2"] 1v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_dot.snap index 3a4356ee0bc7..b1d4c9ac2240 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { diff --git a/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_mermaid.snap index 3a8ee979cc01..ba1f2adf626a 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__multi_tick@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% diff --git a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_dot.snap index 83a545a6d852..da8bfad47312 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_singleton.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_singleton.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -68,4 +68,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_mermaid.snap index 88687b0df810..8bef5240fd81 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_singleton.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_singleton.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -57,4 +57,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 1"] 3v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_dot.snap index c85259bdf6d6..46033d142038 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_singleton.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_singleton.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -62,4 +62,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_mermaid.snap index e49d15044872..f659e6375c51 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__reduce_singleton_push@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_singleton.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_singleton.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -51,4 +51,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 2"] 1v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_dot.snap index ba91a191b48a..8a2c9815b137 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -65,4 +65,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_mermaid.snap index c8a0f7bb4436..aeab298edd7d 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__state@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -57,4 +57,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 0"] 3v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_dot.snap index 7987afd4b41e..e70896ec51d8 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_dot.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { @@ -28,4 +28,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_mermaid.snap index 59d410dbd061..488bc471af9c 100644 --- a/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_singleton__state_unused@graphvis_mermaid.snap @@ -1,5 +1,5 @@ --- -source: hydroflow/tests/surface_singleton.rs +source: dfir_rs/tests/surface_singleton.rs expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% @@ -25,4 +25,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_dot.snap index 60473f2e5cf3..cf50e0f15864 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -53,4 +53,3 @@ digraph { n9v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_mermaid.snap index 0d95a13a3f4a..58641b62362c 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__defer_lazy@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -45,4 +45,3 @@ end subgraph sg_3v1 ["sg_3v1 stratum 1"] 9v1 end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_dot.snap index 375a9358d9c2..dbf57a431cdf 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -33,4 +33,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_mermaid.snap index 4b77902d5af1..dd6776c4591e 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__difference_a@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -28,4 +28,3 @@ subgraph sg_2v1 ["sg_2v1 stratum 1"] 1v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_dot.snap index 2ea623d7ce90..f147a4f8b65f 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -50,4 +50,3 @@ digraph { n2v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_mermaid.snap index a000cd0c2f39..b2261c087bad 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__difference_b@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -41,4 +41,3 @@ end subgraph sg_3v1 ["sg_3v1 stratum 0"] 2v1 end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_dot.snap index b46b4ac8fd8a..e4367df5805d 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -90,4 +90,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_mermaid.snap index 0888ceddac20..005640150651 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__subgraph_stratum_consolidation@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -76,4 +76,3 @@ subgraph sg_4v1 ["sg_4v1 stratum 0"] 8v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_dot.snap index 46db338a6211..4d1633946bed 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -93,4 +93,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_mermaid.snap index 544439aa2d97..bfd7b9ecfa0a 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__surface_syntax_graph_unreachability@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -82,4 +82,3 @@ subgraph sg_3v1 ["sg_3v1 stratum 1"] 12v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_dot.snap index 71fbf0f04455..fc5319153be8 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -53,4 +53,3 @@ digraph { n9v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_mermaid.snap index 7da4e31f02a1..2a7ab029a59f 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_1@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -45,4 +45,3 @@ end subgraph sg_3v1 ["sg_3v1 stratum 1"] 9v1 end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_dot.snap index b517d15ad5ed..45d93f5b4057 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -66,4 +66,3 @@ digraph { n12v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_mermaid.snap index fc58bb58e3b1..cda57994d0f7 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_2@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -55,4 +55,3 @@ end subgraph sg_4v1 ["sg_4v1 stratum 1"] 12v1 end - diff --git a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_dot.snap index cfb9bb21ff53..2e1cc55d0bad 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -86,4 +86,3 @@ digraph { n16v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_mermaid.snap index 66ac4570d178..2c6852fb49a0 100644 --- a/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_stratum__tick_loop_3@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_stratum.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_stratum.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -69,4 +69,3 @@ end subgraph sg_6v1 ["sg_6v1 stratum 1"] 16v1 end - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_dot.snap index d4c91cc68278..4869b4cf78b9 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -19,4 +19,3 @@ digraph { n3v1 } } - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_mermaid.snap index 823f63f11023..81a8fa22aa58 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -18,4 +18,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 2v1 3v1 end - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_dot.snap index c3a5db025643..11529de8e2f1 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -50,4 +50,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_mermaid.snap index 2c60336ba20a..8688315ba4fb 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_static_pull@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -47,4 +47,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 10v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_dot.snap index 0a9941d987f5..2eb376554a86 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -42,4 +42,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_mermaid.snap index 462af4169a0a..63383080557d 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_static_push@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -40,4 +40,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 6v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_dot.snap index ecc7a68fb9f6..469ea5d653f1 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -50,4 +50,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_mermaid.snap index f74ac96916d7..dae6bdc7e7c8 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_tick_pull@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -47,4 +47,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 10v1 end end - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_dot.snap b/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_dot.snap index bd307e83c43d..3a888fa4157f 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_dot.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_dot.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_dot(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_dot(& Default :: default())" --- digraph { node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; @@ -42,4 +42,3 @@ digraph { } } } - diff --git a/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_mermaid.snap b/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_mermaid.snap index cede5798d772..849174f059b4 100644 --- a/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_mermaid.snap +++ b/dfir_rs/tests/snapshots/surface_unique__unique_tick_push@graphvis_mermaid.snap @@ -1,6 +1,6 @@ --- -source: hydroflow/tests/surface_unique.rs -expression: "df.meta_graph().unwrap().to_mermaid(&Default::default())" +source: dfir_rs/tests/surface_unique.rs +expression: "df.meta_graph().unwrap().to_mermaid(& Default :: default())" --- %%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% flowchart TD @@ -40,4 +40,3 @@ subgraph sg_1v1 ["sg_1v1 stratum 0"] 6v1 end end - diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee-2.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee-2.snap deleted file mode 100644 index 7ab17a3d0ed5..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee-2.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/persist_pullup.rs -expression: optimized.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) }), - input: Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 }), - input: Tee { - inner: : Source { - source: Iter( - { use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - }, - }, - ), - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) }), - input: Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 }), - input: Tee { - inner: : Source { - source: Iter( - { use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - }, - }, - ), - }, -] diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee.snap deleted file mode 100644 index b0cdf8700bfb..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee.snap +++ /dev/null @@ -1,58 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/persist_pullup.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) }), - input: Unpersist( - Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 }), - input: Tee { - inner: : Persist( - Unpersist( - Persist( - Source { - source: Iter( - { use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - ), - ), - ), - }, - }, - ), - ), - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) }), - input: Unpersist( - Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 }), - input: Tee { - inner: : Persist( - Unpersist( - Persist( - Source { - source: Iter( - { use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - ), - ), - ), - }, - }, - ), - ), - }, -] diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee@surface_graph_0.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee@surface_graph_0.snap deleted file mode 100644 index 14beff31a5de..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_behind_tee@surface_graph_0.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/persist_pullup.rs -expression: graph.surface_syntax_string() ---- -1v1 = source_iter ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }); -2v1 = tee (); -3v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 })); -4v1 = persist :: < 'static > (); -5v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) })); -6v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 })); -7v1 = persist :: < 'static > (); -8v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) })); - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -4v1 -> 5v1; -2v1 -> 6v1; -6v1 -> 7v1; -7v1 -> 8v1; diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map-2.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map-2.snap deleted file mode 100644 index 9811741ab041..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map-2.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/persist_pullup.rs -expression: optimized.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 }), - input: Source { - source: Iter( - { use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - }, - }, -] diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map.snap deleted file mode 100644 index a079c2bfaaaf..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/persist_pullup.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) }), - input: Unpersist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 }), - input: Persist( - Source { - source: Iter( - { use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - ), - }, - ), - }, -] diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map@surface_graph_0.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map@surface_graph_0.snap deleted file mode 100644 index 3c16bf5d01c4..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__persist_pullup__tests__persist_pullup_through_map@surface_graph_0.snap +++ /dev/null @@ -1,10 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/persist_pullup.rs -expression: graph.surface_syntax_string() ---- -1v1 = source_iter ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; 0 .. 10 }); -2v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | v | v + 1 })); -3v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: persist_pullup :: tests :: * ; | n | println ! ("{}" , n) })); - -1v1 -> 2v1; -2v1 -> 3v1; diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators-2.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators-2.snap deleted file mode 100644 index cb1775df747b..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators-2.snap +++ /dev/null @@ -1,26 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/profiler.rs -expression: "&pushed_down.ir()" ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: profiler :: tests :: * ; | n | println ! ("{}" , n) }), - input: Inspect { - f: { use crate :: __staged :: rewrites :: profiler :: * ; let counter_queue__free = Fake ; let counters__free = Fake ; let my_id__free = 0u32 ; { counter_queue__free . borrow () . unbounded_send ((my_id__free as usize , counters__free . borrow () [my_id__free as usize])) . unwrap () ; counters__free . borrow_mut () [my_id__free as usize] = 0 ; move | _ | { myself :: increment_counter (& mut counters__free . borrow_mut () [my_id__free as usize]) ; } } }, - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: profiler :: tests :: * ; | v | v + 1 }), - input: Inspect { - f: { use crate :: __staged :: rewrites :: profiler :: * ; let counter_queue__free = Fake ; let counters__free = Fake ; let my_id__free = 1u32 ; { counter_queue__free . borrow () . unbounded_send ((my_id__free as usize , counters__free . borrow () [my_id__free as usize])) . unwrap () ; counters__free . borrow_mut () [my_id__free as usize] = 0 ; move | _ | { myself :: increment_counter (& mut counters__free . borrow_mut () [my_id__free as usize]) ; } } }, - input: Source { - source: Iter( - { use crate :: __staged :: rewrites :: profiler :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - }, - }, - }, - }, -] diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators.snap deleted file mode 100644 index 2d59233459b0..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__profiler__tests__profiler_wrapping_all_operators.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/profiler.rs -expression: "&built.ir()" ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , () > ({ use crate :: __staged :: rewrites :: profiler :: tests :: * ; | n | println ! ("{}" , n) }), - input: Unpersist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , i32 > ({ use crate :: __staged :: rewrites :: profiler :: tests :: * ; | v | v + 1 }), - input: Persist( - Source { - source: Iter( - { use crate :: __staged :: rewrites :: profiler :: tests :: * ; 0 .. 10 }, - ), - location_kind: Process( - 0, - ), - }, - ), - }, - ), - }, -] diff --git a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__properties__tests__property_optimized.snap b/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__properties__tests__property_optimized.snap deleted file mode 100644 index d793961df8ce..000000000000 --- a/hydro_lang/src/rewrites/snapshots/hydroflow_plus__rewrites__properties__tests__property_optimized.snap +++ /dev/null @@ -1,24 +0,0 @@ ---- -source: hydroflow_plus/src/rewrites/properties.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: string :: String , i32) , () > ({ use crate :: __staged :: rewrites :: properties :: tests :: * ; | (string , count) | println ! ("{}: {}" , string , count) }), - input: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < i32 > ({ use crate :: __staged :: rewrites :: properties :: tests :: * ; | | 0 }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < i32 , () , () > ({ use crate :: __staged :: rewrites :: properties :: tests :: * ; | count : & mut i32 , _ | * count += 1 }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: string :: String , (std :: string :: String , ()) > ({ use crate :: __staged :: rewrites :: properties :: tests :: * ; | string : String | (string , ()) }), - input: Source { - source: Iter( - { use crate :: __staged :: rewrites :: properties :: tests :: * ; vec ! [] }, - ), - location_kind: Process( - 0, - ), - }, - }, - }, - }, -] diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir.snap deleted file mode 100644 index 96f896cfb01b..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir.snap +++ /dev/null @@ -1,72 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/compute_pi.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u64 , u64) , () > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (inside , total) | { println ! ("pi: {} ({} trials)" , 4.0 * inside as f64 / total as f64 , total) ; } }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((u64 , u64) , ()) , (u64 , u64) > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , (u64 , u64) , () > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , (inside_batch , total_batch) | { * inside += inside_batch ; * total += total_batch ; } }), - input: Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: compute_pi :: Worker > , (u64 , u64)) , (u64 , u64) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Process( - 1, - ), - to_key: None, - serialize_fn: Some( - | data | { hydroflow_plus :: runtime_support :: bincode :: serialize :: < (u64 , u64) > (& data) . unwrap () . into () }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: compute_pi :: Worker > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (u64 , u64) > (& b) . unwrap ()) }, - ), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (u64 , u64) > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | | (0u64 , 0u64) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , bool , () > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , sample_inside | { if sample_inside { * inside += 1 ; } * total += 1 ; } }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (f64 , f64) , bool > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (x , y) | x * x + y * y < 1.0 }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , (f64 , f64) > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | _ | rand :: random :: < (f64 , f64) > () }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydroflow_plus :: __staged :: location :: tick :: * ; | _ | () }), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , std :: ops :: Range < usize > > ({ use hydroflow_plus :: __staged :: location :: tick :: * ; let batch_size__free = { use crate :: __staged :: cluster :: compute_pi :: * ; let batch_size__free = 8192usize ; batch_size__free } ; move | _ | 0 .. batch_size__free }), - input: Source { - source: Spin, - location_kind: Cluster( - 0, - ), - }, - }, - }, - }, - }, - }, - }, - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () }), - input: Source { - source: Stream( - { use hydroflow_plus :: __staged :: location :: * ; let interval__free = { use crate :: __staged :: cluster :: compute_pi :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - location_kind: Process( - 1, - ), - }, - }, - ), - }, - }, -] diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_0.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_0.snap deleted file mode 100644 index 94f1f5ad6f0b..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_0.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/compute_pi.rs -expression: ir.surface_syntax_string() ---- -1v1 = spin (); -2v1 = flat_map (stageleft :: runtime_support :: fn1_type_hint :: < () , std :: ops :: Range < usize > > ({ use hydroflow_plus :: __staged :: location :: tick :: * ; let batch_size__free = { use crate :: __staged :: cluster :: compute_pi :: * ; let batch_size__free = 8192usize ; batch_size__free } ; move | _ | 0 .. batch_size__free })); -3v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydroflow_plus :: __staged :: location :: tick :: * ; | _ | () })); -4v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < () , (f64 , f64) > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | _ | rand :: random :: < (f64 , f64) > () })); -5v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (f64 , f64) , bool > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (x , y) | x * x + y * y < 1.0 })); -6v1 = fold :: < 'tick > (stageleft :: runtime_support :: fn0_type_hint :: < (u64 , u64) > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | | (0u64 , 0u64) }) , stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , bool , () > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , sample_inside | { if sample_inside { * inside += 1 ; } * total += 1 ; } })); -7v1 = map (| data | { hydroflow_plus :: runtime_support :: bincode :: serialize :: < (u64 , u64) > (& data) . unwrap () . into () }); -8v1 = dest_sink ({ use hydroflow_plus :: __staged :: deploy_runtime :: * ; let c1_port__free = "port_0" ; let env__free = FAKE ; { env__free . port (c1_port__free) . connect_local_blocking :: < ConnectedDirect > () . into_sink () } }); - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -4v1 -> 5v1; -5v1 -> 6v1; -7v1 -> 8v1; -6v1 -> 7v1; diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_1.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_1.snap deleted file mode 100644 index a8db79e7fbf8..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__compute_pi__tests__compute_pi_ir@surface_graph_1.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/compute_pi.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_stream ({ use hydroflow_plus :: __staged :: deploy_runtime :: * ; let env__free = FAKE ; let p2_port__free = "port_0" ; { env__free . port (p2_port__free) . connect_local_blocking :: < ConnectedTagged < ConnectedDirect > > () . into_source () } }); -2v1 = map (| res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: compute_pi :: Worker > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (u64 , u64) > (& b) . unwrap ()) }); -3v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: compute_pi :: Worker > , (u64 , u64)) , (u64 , u64) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b })); -4v1 = reduce :: < 'static > (stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , (u64 , u64) , () > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , (inside_batch , total_batch) | { * inside += inside_batch ; * total += total_batch ; } })); -5v1 = source_stream ({ use hydroflow_plus :: __staged :: location :: * ; let interval__free = { use crate :: __staged :: cluster :: compute_pi :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }); -6v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () })); -7v1 = cross_singleton (); -8v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < ((u64 , u64) , ()) , (u64 , u64) > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d })); -9v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < (u64 , u64) , () > ({ use crate :: __staged :: cluster :: compute_pi :: * ; | (inside , total) | { println ! ("pi: {} ({} trials)" , 4.0 * inside as f64 / total as f64 , total) ; } })); - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -5v1 -> 6v1; -4v1 -> 7v1; -6v1 -> 7v1; -7v1 -> 8v1; -8v1 -> 9v1; diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__many_to_many__tests__many_to_many.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__many_to_many__tests__many_to_many.snap deleted file mode 100644 index 9df002b2a165..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__many_to_many__tests__many_to_many.snap +++ /dev/null @@ -1,37 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/many_to_many.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) , () > ({ use crate :: __staged :: cluster :: many_to_many :: * ; | n | println ! ("cluster received: {:?}" , n) }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Cluster( - 0, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , i32) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < i32 > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < () > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < i32 > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < i32 , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < () > > > (__hydroflow_plus_cluster_ids_0) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: Source { - source: Iter( - { use crate :: __staged :: cluster :: many_to_many :: * ; 0 .. 2 }, - ), - location_kind: Cluster( - 0, - ), - }, - }, - }, - }, -] diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir.snap deleted file mode 100644 index f330a4745b54..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir.snap +++ /dev/null @@ -1,78 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/map_reduce.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: string :: String , i32) , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | (string , count) | println ! ("{}: {}" , string , count) }), - input: ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < i32 , i32 , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | total , count | * total += count }), - input: Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: map_reduce :: Worker > , (std :: string :: String , i32)) , (std :: string :: String , i32) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 1, - ), - from_key: None, - to_location: Process( - 0, - ), - to_key: None, - serialize_fn: Some( - | data | { hydroflow_plus :: runtime_support :: bincode :: serialize :: < (std :: string :: String , i32) > (& data) . unwrap () . into () }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: map_reduce :: Worker > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (std :: string :: String , i32) > (& b) . unwrap ()) }, - ), - input: Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (std :: string :: String , i32) , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | (string , count) | println ! ("partition count: {} - {}" , string , count) }), - input: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < i32 > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | | 0 }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < i32 , () , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | count , _ | * count += 1 }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: string :: String , (std :: string :: String , ()) > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | string | (string , ()) }), - input: Network { - from_location: Process( - 0, - ), - from_key: None, - to_location: Cluster( - 1, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , std :: string :: String) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < std :: string :: String > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydroflow_plus :: runtime_support :: bincode :: deserialize :: < std :: string :: String > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , std :: string :: String) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: map_reduce :: Worker > , std :: string :: String) > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: map_reduce :: Worker > > > (__hydroflow_plus_cluster_ids_1) } ; | (i , w) | (ids__free [i % ids__free . len ()] , w) }), - input: Enumerate { - is_static: true, - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < & str , std :: string :: String > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | s | s . to_string () }), - input: Source { - source: Iter( - { use crate :: __staged :: cluster :: map_reduce :: * ; vec ! ["abc" , "abc" , "xyz" , "abc"] }, - ), - location_kind: Process( - 0, - ), - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - ), - }, - }, -] diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_0.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_0.snap deleted file mode 100644 index 00787247c6a1..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_0.snap +++ /dev/null @@ -1,25 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/map_reduce.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_iter ({ use crate :: __staged :: cluster :: map_reduce :: * ; vec ! ["abc" , "abc" , "xyz" , "abc"] }); -2v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < & str , std :: string :: String > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | s | s . to_string () })); -3v1 = enumerate :: < 'static > (); -4v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (usize , std :: string :: String) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: map_reduce :: Worker > , std :: string :: String) > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: map_reduce :: Worker > > > (__hydroflow_plus_cluster_ids_1) } ; | (i , w) | (ids__free [i % ids__free . len ()] , w) })); -5v1 = map (| (id , data) : (hydroflow_plus :: ClusterId < _ > , std :: string :: String) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < std :: string :: String > (& data) . unwrap () . into ()) }); -6v1 = dest_sink ({ use hydroflow_plus :: __staged :: deploy_runtime :: * ; let env__free = FAKE ; let p1_port__free = "port_0" ; { env__free . port (p1_port__free) . connect_local_blocking :: < ConnectedDemux < ConnectedDirect > > () . into_sink () } }); -7v1 = source_stream ({ use hydroflow_plus :: __staged :: deploy_runtime :: * ; let env__free = FAKE ; let p2_port__free = "port_1" ; { env__free . port (p2_port__free) . connect_local_blocking :: < ConnectedTagged < ConnectedDirect > > () . into_source () } }); -8v1 = map (| res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: map_reduce :: Worker > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (std :: string :: String , i32) > (& b) . unwrap ()) }); -9v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: map_reduce :: Worker > , (std :: string :: String , i32)) , (std :: string :: String , i32) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b })); -10v1 = reduce_keyed :: < 'static > (stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < i32 , i32 , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | total , count | * total += count })); -11v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < (std :: string :: String , i32) , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | (string , count) | println ! ("{}: {}" , string , count) })); - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -5v1 -> 6v1; -4v1 -> 5v1; -7v1 -> 8v1; -8v1 -> 9v1; -9v1 -> 10v1; -10v1 -> 11v1; diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_1.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_1.snap deleted file mode 100644 index 5254228e0544..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__map_reduce__tests__map_reduce_ir@surface_graph_1.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/map_reduce.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_stream ({ use hydroflow_plus :: __staged :: deploy_runtime :: * ; let c2_port__free = "port_0" ; let env__free = FAKE ; { env__free . port (c2_port__free) . connect_local_blocking :: < ConnectedDirect > () . into_source () } }); -2v1 = map (| res | { hydroflow_plus :: runtime_support :: bincode :: deserialize :: < std :: string :: String > (& res . unwrap ()) . unwrap () }); -3v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < std :: string :: String , (std :: string :: String , ()) > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | string | (string , ()) })); -4v1 = fold_keyed :: < 'tick > (stageleft :: runtime_support :: fn0_type_hint :: < i32 > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | | 0 }) , stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < i32 , () , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | count , _ | * count += 1 })); -5v1 = inspect (stageleft :: runtime_support :: fn1_borrow_type_hint :: < (std :: string :: String , i32) , () > ({ use crate :: __staged :: cluster :: map_reduce :: * ; | (string , count) | println ! ("partition count: {} - {}" , string , count) })); -6v1 = map (| data | { hydroflow_plus :: runtime_support :: bincode :: serialize :: < (std :: string :: String , i32) > (& data) . unwrap () . into () }); -7v1 = dest_sink ({ use hydroflow_plus :: __staged :: deploy_runtime :: * ; let c1_port__free = "port_1" ; let env__free = FAKE ; { env__free . port (c1_port__free) . connect_local_blocking :: < ConnectedDirect > () . into_sink () } }); - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -4v1 -> 5v1; -6v1 -> 7v1; -5v1 -> 6v1; diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__paxos_bench__tests__paxos_ir.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__paxos_bench__tests__paxos_ir.snap deleted file mode 100644 index 8fdc53efeaa5..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__paxos_bench__tests__paxos_ir.snap +++ /dev/null @@ -1,1588 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/paxos_bench.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < & str , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | s | println ! ("{}" , s) }), - input: Source { - source: Iter( - { use crate :: __staged :: cluster :: paxos :: * ; ["Proposers say hello"] }, - ), - location_kind: Cluster( - 0, - ), - }, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < & str , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | s | println ! ("{}" , s) }), - input: Source { - source: Iter( - { use crate :: __staged :: cluster :: paxos :: * ; ["Acceptors say hello"] }, - ), - location_kind: Cluster( - 1, - ), - }, - }, - CycleSink { - ident: Ident { - sym: cycle_4, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , u32) , u32 > ({ use crate :: __staged :: cluster :: paxos :: * ; let CLUSTER_SELF_ID__free = hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (__hydroflow_plus_cluster_self_id_0) ; move | (received_max_ballot , ballot_num) | { if received_max_ballot > (Ballot { num : ballot_num , proposer_id : CLUSTER_SELF_ID__free , }) { received_max_ballot . num + 1 } else { ballot_num } } }), - input: CrossSingleton( - Tee { - inner: : Chain( - Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | { if new > * curr { * curr = new ; } } }), - input: Persist( - Chain( - Chain( - CycleSource { - ident: Ident { - sym: cycle_1, - }, - location_kind: Cluster( - 0, - ), - }, - CycleSource { - ident: Ident { - sym: cycle_0, - }, - location_kind: Cluster( - 0, - ), - }, - ), - CycleSource { - ident: Ident { - sym: cycle_2, - }, - location_kind: Cluster( - 0, - ), - }, - ), - ), - }, - Persist( - Source { - source: Iter( - { use hydroflow_plus :: __staged :: location :: * ; let e__free = { use crate :: __staged :: cluster :: paxos :: * ; Ballot { num : 0 , proposer_id : ClusterId :: from_raw (0) } } ; [e__free] }, - ), - location_kind: Cluster( - 0, - ), - }, - ), - ), - }, - Tee { - inner: : Chain( - CycleSource { - ident: Ident { - sym: cycle_4, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - Persist( - Source { - source: Iter( - { use hydroflow_plus :: __staged :: location :: * ; let e__free = { use crate :: __staged :: cluster :: paxos :: * ; 0 } ; [e__free] }, - ), - location_kind: Cluster( - 0, - ), - }, - ), - ), - }, - ), - }, - ), - }, - CycleSink { - ident: Ident { - sym: cycle_2, - }, - location_kind: Cluster( - 0, - ), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Cluster( - 0, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , hydroflow_plus_test :: cluster :: paxos :: Ballot) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: cluster :: paxos :: Ballot > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: cluster :: paxos :: Ballot > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > > > (__hydroflow_plus_cluster_ids_0) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , ()) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , ()) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use crate :: __staged :: cluster :: paxos :: * ; let CLUSTER_SELF_ID__free = hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (__hydroflow_plus_cluster_self_id_0) ; move | num | Ballot { num , proposer_id : CLUSTER_SELF_ID__free } }), - input: Tee { - inner: , - }, - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydroflow_plus :: __staged :: singleton :: * ; | _u | () }), - input: Tee { - inner: : CycleSource { - ident: Ident { - sym: cycle_3, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - }, - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () }), - input: Source { - source: Stream( - { use hydroflow_plus :: __staged :: location :: * ; let interval__free = { use crate :: __staged :: cluster :: paxos :: * ; let i_am_leader_send_timeout__free = 1u64 ; Duration :: from_secs (i_am_leader_send_timeout__free) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - location_kind: Cluster( - 0, - ), - }, - }, - ), - }, - }, - }, - }, - }, - }, - CycleSink { - ident: Ident { - sym: cycle_6, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - Difference( - FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , (usize , usize)) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: Ballot > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; let min__free = 2usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot > , () > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: Tee { - inner: : Chain( - CycleSource { - ident: Ident { - sym: cycle_5, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - Tee { - inner: : Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >) , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | p1b | println ! ("Proposer received P1b: {:?}" , p1b) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > , (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >)) , (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 1, - ), - from_key: None, - to_location: Cluster( - 0, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >)) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >) > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Acceptor > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >) > (& b) . unwrap ()) }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot) , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >)) > ({ use crate :: __staged :: cluster :: paxos :: * ; | ((ballot , max_ballot) , log) | (ballot . proposer_id , (ballot , if ballot == max_ballot { Ok (log) } else { Err (max_ballot) })) }), - input: CrossSingleton( - CrossSingleton( - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Cluster( - 1, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , hydroflow_plus_test :: cluster :: paxos :: Ballot) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: cluster :: paxos :: Ballot > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: cluster :: paxos :: Ballot > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > > > (__hydroflow_plus_cluster_ids_1) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | _ | println ! ("Proposer leader expired, sending P1a") }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , ()) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Tee { - inner: , - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydroflow_plus :: __staged :: singleton :: * ; | _u | () }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (() , ()) , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (() , ()) , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton( - FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < tokio :: time :: Instant > , core :: option :: Option < () > > ({ use hydroflow_plus :: __staged :: stream :: * ; let duration__free = { use crate :: __staged :: cluster :: paxos :: * ; let i_am_leader_check_timeout__free = 1u64 ; Duration :: from_secs (i_am_leader_check_timeout__free) } ; move | latest_received | { if let Some (latest_received) = latest_received { if Instant :: now () . duration_since (latest_received) > duration__free { Some (()) } else { None } } else { Some (()) } } }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < core :: option :: Option < tokio :: time :: Instant > > ({ use hydroflow_plus :: __staged :: stream :: * ; | | None }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < core :: option :: Option < tokio :: time :: Instant > , hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | latest , _ | { * latest = Some (Instant :: now ()) ; } }), - input: Persist( - Tee { - inner: , - }, - ), - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < usize , bool > ({ use hydroflow_plus :: __staged :: optional :: * ; | c | * c == 0 }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydroflow_plus :: __staged :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , () , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | count , _ | * count += 1 }), - input: Tee { - inner: , - }, - }, - }, - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () }), - input: Source { - source: Stream( - { use hydroflow_plus :: __staged :: location :: * ; let delay__free = { use crate :: __staged :: cluster :: paxos :: * ; let CLUSTER_SELF_ID__free = hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (__hydroflow_plus_cluster_self_id_0) ; let i_am_leader_check_timeout_delay_multiplier__free = 1usize ; Duration :: from_secs ((CLUSTER_SELF_ID__free . raw_id * i_am_leader_check_timeout_delay_multiplier__free as u32) . into ()) } ; let interval__free = { use crate :: __staged :: cluster :: paxos :: * ; let i_am_leader_check_timeout__free = 1u64 ; Duration :: from_secs (i_am_leader_check_timeout__free) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval_at (tokio :: time :: Instant :: now () + delay__free , interval__free)) }, - ), - location_kind: Cluster( - 0, - ), - }, - }, - ), - }, - }, - ), - }, - }, - }, - }, - }, - }, - Tee { - inner: : Chain( - Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | { if new > * curr { * curr = new ; } } }), - input: Persist( - Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | p1a | println ! ("Acceptor received P1a: {:?}" , p1a) }), - input: Tee { - inner: , - }, - }, - ), - }, - Persist( - Source { - source: Iter( - { use hydroflow_plus :: __staged :: location :: * ; let e__free = { use crate :: __staged :: cluster :: paxos :: * ; Ballot { num : 0 , proposer_id : ClusterId :: from_raw (0) } } ; [e__free] }, - ), - location_kind: Cluster( - 1, - ), - }, - ), - ), - }, - ), - CycleSource { - ident: Ident { - sym: cycle_0, - }, - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - }, - ), - }, - }, - }, - }, - }, - ), - }, - }, - }, - }, - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , (usize , usize)) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: Ballot > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; let max__free = 3usize ; move | (key , (success , error)) | if (success + error) >= max__free { Some (key) } else { None } }), - input: Tee { - inner: , - }, - }, - }, - ), - ), - }, - CycleSink { - ident: Ident { - sym: cycle_5, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - AntiJoin( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - ), - }, - CycleSink { - ident: Ident { - sym: cycle_3, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (() , ()) , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | _ | () }), - input: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydroflow_plus_test :: cluster :: paxos :: Ballot , std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > >) , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > > > ({ use crate :: __staged :: cluster :: paxos :: * ; move | ((quorum_ballot , quorum_accepted) , my_ballot) | if quorum_ballot == my_ballot { Some (quorum_accepted) } else { None } }), - input: CrossSingleton( - Reduce { - f: { let key_fn = stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > >) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use crate :: __staged :: cluster :: paxos :: * ; | t | t . 0 }) ; move | curr , new | { if key_fn (& new) > key_fn (& * curr) { * curr = new ; } } }, - input: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > > ({ use crate :: __staged :: cluster :: paxos :: * ; | | vec ! [] }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | logs , log | { logs . push (log) ; } }), - input: Persist( - FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >) , core :: option :: Option < (hydroflow_plus_test :: cluster :: paxos :: Ballot , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | (key , res) | match res { Ok (v) => Some ((key , v)) , Err (_) => None , } }), - input: AntiJoin( - AntiJoin( - Tee { - inner: , - }, - FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , (usize , usize)) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: Ballot > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; let min__free = 2usize ; move | (key , (success , _error)) | if success < min__free { Some (key) } else { None } }), - input: Tee { - inner: , - }, - }, - ), - CycleSource { - ident: Ident { - sym: cycle_6, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - ), - }, - ), - }, - }, - Tee { - inner: , - }, - ), - }, - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot) , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | _ | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot) , bool > ({ use crate :: __staged :: cluster :: paxos :: * ; | (received_max_ballot , cur_ballot) | * received_max_ballot <= * cur_ballot }), - input: CrossSingleton( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - }, - }, - }, - ), - }, - }, - }, - CycleSink { - ident: Ident { - sym: cycle_1, - }, - location_kind: Cluster( - 0, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use crate :: __staged :: cluster :: paxos :: * ; | (_ , ballot) | ballot }), - input: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , core :: result :: Result < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , hydroflow_plus_test :: cluster :: paxos :: Ballot >) , core :: option :: Option < (hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot) > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | (key , res) | match res { Ok (_) => None , Err (e) => Some ((key , e)) , } }), - input: Tee { - inner: , - }, - }, - }, - }, - CycleSink { - ident: Ident { - sym: cycle_7, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , usize > ({ use crate :: __staged :: cluster :: paxos :: * ; | (num_payloads , base_slot) | base_slot + num_payloads }), - input: CrossSingleton( - Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydroflow_plus :: __staged :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (usize , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | count , _ | * count += 1 }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) , usize) , (usize , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) > ({ use crate :: __staged :: cluster :: paxos :: * ; | ((index , payload) , base_slot) | (base_slot + index , payload) }), - input: CrossSingleton( - Enumerate { - is_static: false, - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , ()) , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > ({ use hydroflow_plus :: __staged :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 2, - ), - from_key: None, - to_location: Cluster( - 0, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos_bench :: Client > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > (& b) . unwrap ()) }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((u32 , u32) , hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer >) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; let CLUSTER_SELF_ID__free = hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos_bench :: Client > :: from_raw (__hydroflow_plus_cluster_self_id_2) ; move | ((key , value) , leader_id) | (leader_id , KvPayload { key , value : (CLUSTER_SELF_ID__free , value) }) }), - input: CrossSingleton( - CycleSource { - ident: Ident { - sym: cycle_1, - }, - location_kind: Cluster( - 2, - ), - }, - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | ballot : Ballot | ballot . proposer_id }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | { if new > * curr { * curr = new ; } } }), - input: Persist( - Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , () > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | ballot | println ! ("Client notified that leader was elected: {:?}" , ballot) }), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - location_kind: Cluster( - 2, - ), - }, - }, - ), - }, - }, - }, - ), - }, - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | _u | () }), - input: Tee { - inner: , - }, - }, - ), - }, - }, - Tee { - inner: : Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , usize > ({ use crate :: __staged :: cluster :: paxos :: * ; | max_slot | max_slot + 1 }), - input: Tee { - inner: : Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , usize , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | { if new > * curr { * curr = new ; } } }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , (usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >)) , usize > ({ use crate :: __staged :: cluster :: paxos :: * ; | (slot , _) | slot }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , (usize , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >)) , (usize , (usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >)) > ({ use crate :: __staged :: cluster :: paxos :: * ; | (slot , (count , entry)) | (slot , (count , entry . unwrap ())) }), - input: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) > ({ use crate :: __staged :: cluster :: paxos :: * ; | | (0 , None) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | curr_entry , new_entry | { if let Some (curr_entry_payload) = & mut curr_entry . 1 { let same_values = new_entry . value == curr_entry_payload . value ; let higher_ballot = new_entry . ballot > curr_entry_payload . ballot ; if same_values { curr_entry . 0 += 1 ; } if higher_ballot { curr_entry_payload . ballot = new_entry . ballot ; if ! same_values { curr_entry . 0 = 1 ; curr_entry_payload . value = new_entry . value ; } } } else { * curr_entry = (1 , Some (new_entry)) ; } } }), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > ({ use hydroflow_plus :: __staged :: stream :: * ; | d | d }), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > , std :: vec :: Vec < std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > > ({ use hydroflow_plus :: __staged :: optional :: * ; | v | v }), - input: Tee { - inner: , - }, - }, - }, - }, - }, - }, - }, - }, - }, - }, - Chain( - CycleSource { - ident: Ident { - sym: cycle_7, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - Persist( - Source { - source: Iter( - { use hydroflow_plus :: __staged :: location :: * ; let e__free = { use crate :: __staged :: cluster :: paxos :: * ; 0 } ; [e__free] }, - ), - location_kind: Cluster( - 0, - ), - }, - ), - ), - ), - }, - ), - }, - }, - }, - }, - Tee { - inner: , - }, - ), - }, - ), - }, - CycleSink { - ident: Ident { - sym: cycle_9, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - Difference( - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , (usize , usize)) , core :: option :: Option < (usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; let min__free = 2usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot > , () > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: Tee { - inner: : Chain( - CycleSource { - ident: Ident { - sym: cycle_8, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >)) , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 1, - ), - from_key: None, - to_location: Cluster( - 0, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >)) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >) > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Acceptor > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >) > (& b) . unwrap ()) }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , hydroflow_plus_test :: cluster :: paxos :: Ballot) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >)) > ({ use crate :: __staged :: cluster :: paxos :: * ; | (p2a , max_ballot) | (p2a . ballot . proposer_id , ((p2a . slot , p2a . ballot) , if p2a . ballot == max_ballot { Ok (()) } else { Err (max_ballot) })) }), - input: CrossSingleton( - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) , hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Cluster( - 1, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > > > (__hydroflow_plus_cluster_ids_1) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) , hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > ({ use crate :: __staged :: cluster :: paxos :: * ; | ((slot , ballot) , value) | P2a { ballot , slot , value } }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) , ()) , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) , hydroflow_plus_test :: cluster :: paxos :: Ballot) , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) > ({ use crate :: __staged :: cluster :: paxos :: * ; | ((slot , payload) , ballot) | ((slot , ballot) , Some (payload)) }), - input: CrossSingleton( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) > ({ use crate :: __staged :: cluster :: paxos :: * ; | p2a | ((p2a . slot , p2a . ballot) , p2a . value) }), - input: Chain( - FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , (usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >)) , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > ({ use crate :: __staged :: cluster :: paxos :: * ; let f__free = 1usize ; move | ((slot , (count , entry)) , ballot) | { if count <= f__free { Some (P2a { ballot , slot , value : entry . value , }) } else { None } } }), - input: CrossSingleton( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > ({ use crate :: __staged :: cluster :: paxos :: * ; | (slot , ballot) | P2a { ballot , slot , value : None } }), - input: CrossSingleton( - Difference( - FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , std :: ops :: Range < usize > > ({ use crate :: __staged :: cluster :: paxos :: * ; | max_slot | 0 .. max_slot }), - input: Tee { - inner: , - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , (usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >)) , usize > ({ use crate :: __staged :: cluster :: paxos :: * ; | (slot , _) | slot }), - input: Tee { - inner: , - }, - }, - ), - Tee { - inner: , - }, - ), - }, - ), - }, - ), - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | _u | () }), - input: Tee { - inner: , - }, - }, - ), - }, - }, - }, - }, - }, - }, - }, - Tee { - inner: , - }, - ), - }, - }, - }, - }, - ), - }, - }, - }, - }, - }, - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , (usize , usize)) , core :: option :: Option < (usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; let max__free = 3usize ; move | (key , (success , error)) | if (success + error) >= max__free { Some (key) } else { None } }), - input: Tee { - inner: , - }, - }, - }, - ), - ), - }, - CycleSink { - ident: Ident { - sym: cycle_8, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - AntiJoin( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - ), - }, - CycleSink { - ident: Ident { - sym: cycle_10, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - input: DeferTick( - AntiJoin( - Tee { - inner: : Chain( - CycleSource { - ident: Ident { - sym: cycle_10, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - Tee { - inner: , - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , ()) , (usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) > ({ use hydroflow_plus_std :: __staged :: request_response :: * ; | (key , _) | key }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , ()) > ({ use crate :: __staged :: cluster :: paxos :: * ; | k | (k , ()) }), - input: Difference( - Tee { - inner: , - }, - CycleSource { - ident: Ident { - sym: cycle_9, - }, - location_kind: Tick( - 2, - Cluster( - 0, - ), - ), - }, - ), - }, - }, - }, - ), - ), - }, - CycleSink { - ident: Ident { - sym: cycle_0, - }, - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (core :: option :: Option < usize > , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > ({ use crate :: __staged :: cluster :: paxos :: * ; | (_ckpnt , log) | log }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (core :: option :: Option < usize > , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) > ({ use crate :: __staged :: cluster :: paxos :: * ; | | (None , HashMap :: new ()) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (core :: option :: Option < usize > , std :: collections :: hash_map :: HashMap < usize , hydroflow_plus_test :: cluster :: paxos :: LogValue < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > >) , hydroflow_plus_test :: cluster :: paxos :: CheckpointOrP2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | (prev_checkpoint , log) , checkpoint_or_p2a | { match checkpoint_or_p2a { CheckpointOrP2a :: Checkpoint (new_checkpoint) => { if prev_checkpoint . map (| prev | new_checkpoint > prev) . unwrap_or (true) { for slot in (prev_checkpoint . unwrap_or (0)) .. new_checkpoint { log . remove (& slot) ; } * prev_checkpoint = Some (new_checkpoint) ; } } CheckpointOrP2a :: P2a (p2a) => { if prev_checkpoint . map (| prev | p2a . slot > prev) . unwrap_or (true) && log . get (& p2a . slot) . map (| prev_p2a : & LogValue < _ > | p2a . ballot > prev_p2a . ballot) . unwrap_or (true) { log . insert (p2a . slot , LogValue { ballot : p2a . ballot , value : p2a . value , } ,) ; } } } } }), - input: Persist( - Chain( - FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: P2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos :: CheckpointOrP2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > > ({ use crate :: __staged :: cluster :: paxos :: * ; | (p2a , max_ballot) | if p2a . ballot >= max_ballot { Some (CheckpointOrP2a :: P2a (p2a)) } else { None } }), - input: CrossSingleton( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , hydroflow_plus_test :: cluster :: paxos :: CheckpointOrP2a < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > ({ use crate :: __staged :: cluster :: paxos :: * ; | min_seq | CheckpointOrP2a :: Checkpoint (min_seq) }), - input: Delta( - Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , usize , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | { if new < * curr { * curr = new ; } } }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > , usize) , usize > ({ use crate :: __staged :: cluster :: paxos :: * ; | (_sender , seq) | seq }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > , usize) , ()) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > , usize) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , usize , () > ({ use crate :: __staged :: cluster :: paxos :: * ; | curr_seq , seq | { if seq > * curr_seq { * curr_seq = seq ; } } }), - input: Persist( - Network { - from_location: Cluster( - 3, - ), - from_key: None, - to_location: Cluster( - 1, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , usize) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < usize > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < usize > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Acceptor > > > (__hydroflow_plus_cluster_ids_1) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - location_kind: Cluster( - 3, - ), - }, - }, - }, - ), - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < bool , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | _u | () }), - input: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , core :: option :: Option < bool > > ({ use crate :: __staged :: cluster :: paxos :: * ; let f__free = 1usize ; move | num_received | if num_received == f__free + 1 { Some (true) } else { None } }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydroflow_plus :: __staged :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > , usize) , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | count , _ | * count += 1 }), - input: Tee { - inner: , - }, - }, - }, - }, - ), - }, - }, - }, - ), - }, - ), - ), - }, - }, - }, - CycleSink { - ident: Ident { - sym: cycle_0, - }, - location_kind: Cluster( - 0, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use crate :: __staged :: cluster :: paxos :: * ; | (_ , ballot) | ballot }), - input: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , core :: result :: Result < () , hydroflow_plus_test :: cluster :: paxos :: Ballot >) , core :: option :: Option < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot) > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | (key , res) | match res { Ok (_) => None , Err (e) => Some ((key , e)) , } }), - input: Tee { - inner: , - }, - }, - }, - }, - CycleSink { - ident: Ident { - sym: cycle_1, - }, - location_kind: Tick( - 8, - Cluster( - 3, - ), - ), - input: DeferTick( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , usize) , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (sorted_payload , _) | { sorted_payload } }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , usize) , bool > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (sorted_payload , highest_seq) | sorted_payload . seq > * highest_seq }), - input: CrossSingleton( - Tee { - inner: : Sort( - Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Cluster( - 3, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) >) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > > > (__hydroflow_plus_cluster_ids_3) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (slot , kv) | SequencedKv { seq : slot , kv } }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , (core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , ())) , (usize , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > >) > ({ use crate :: __staged :: cluster :: paxos :: * ; | ((slot , _ballot) , (value , _)) | (slot , value) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , (core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , ())) , ((usize , hydroflow_plus_test :: cluster :: paxos :: Ballot) , (core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > , ())) > ({ use hydroflow_plus_std :: __staged :: request_response :: * ; | (key , (meta , resp)) | (key , (meta , resp)) }), - input: Join( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - }, - }, - }, - }, - }, - CycleSource { - ident: Ident { - sym: cycle_1, - }, - location_kind: Tick( - 8, - Cluster( - 3, - ), - ), - }, - ), - ), - }, - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < usize > , core :: option :: Option < usize > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | v | v }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < core :: option :: Option < usize > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | | None }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < core :: option :: Option < usize > , (hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , core :: option :: Option < usize >) , () > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | filled_slot , (sorted_payload , highest_seq) | { let expected_next_slot = std :: cmp :: max (filled_slot . map (| v | v + 1) . unwrap_or (0) , highest_seq . map (| v | v + 1) . unwrap_or (0) ,) ; if sorted_payload . seq == expected_next_slot { * filled_slot = Some (sorted_payload . seq) ; } } }), - input: CrossSingleton( - Tee { - inner: , - }, - Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , core :: option :: Option < usize > > ({ use hydroflow_plus :: __staged :: optional :: * ; | v | Some (v) }), - input: CycleSource { - ident: Ident { - sym: cycle_2, - }, - location_kind: Tick( - 8, - Cluster( - 3, - ), - ), - }, - }, - Persist( - Source { - source: Iter( - [:: std :: option :: Option :: None], - ), - location_kind: Cluster( - 3, - ), - }, - ), - ), - ), - }, - }, - }, - ), - }, - }, - ), - }, - CycleSink { - ident: Ident { - sym: cycle_2, - }, - location_kind: Tick( - 8, - Cluster( - 3, - ), - ), - input: DeferTick( - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: collections :: hash_map :: HashMap < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , core :: option :: Option < usize >) , core :: option :: Option < usize > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (_kv_store , highest_seq) | highest_seq }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (std :: collections :: hash_map :: HashMap < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , core :: option :: Option < usize >) > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | | (HashMap :: new () , None) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (std :: collections :: hash_map :: HashMap < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , core :: option :: Option < usize >) , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , () > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (kv_store , last_seq) , payload | { if let Some (kv) = payload . kv { kv_store . insert (kv . key , kv . value) ; } debug_assert ! (payload . seq == (last_seq . map (| s | s + 1) . unwrap_or (0)) , "Hole in log between seq {:?} and {}" , * last_seq , payload . seq) ; * last_seq = Some (payload . seq) ; } }), - input: Persist( - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , usize) , hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (sorted_payload , _) | { sorted_payload } }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , usize) , bool > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | (sorted_payload , highest_seq) | sorted_payload . seq <= * highest_seq }), - input: CrossSingleton( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - }, - }, - ), - }, - }, - }, - ), - }, - CycleSink { - ident: Ident { - sym: cycle_3, - }, - location_kind: Tick( - 8, - Cluster( - 3, - ), - ), - input: DeferTick( - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (core :: option :: Option < usize > , usize) , core :: option :: Option < usize > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; let checkpoint_frequency__free = 1usize ; move | (max_checkpointed_seq , new_highest_seq) | if max_checkpointed_seq . map (| m | new_highest_seq - m >= checkpoint_frequency__free) . unwrap_or (true) { Some (new_highest_seq) } else { None } }), - input: CrossSingleton( - Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , core :: option :: Option < usize > > ({ use hydroflow_plus :: __staged :: optional :: * ; | v | Some (v) }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , usize , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | { if new > * curr { * curr = new ; } } }), - input: Persist( - CycleSource { - ident: Ident { - sym: cycle_3, - }, - location_kind: Tick( - 8, - Cluster( - 3, - ), - ), - }, - ), - }, - }, - Persist( - Source { - source: Iter( - [:: std :: option :: Option :: None], - ), - location_kind: Cluster( - 3, - ), - }, - ), - ), - Tee { - inner: , - }, - ), - }, - }, - ), - }, - CycleSink { - ident: Ident { - sym: cycle_0, - }, - location_kind: Cluster( - 3, - ), - input: Tee { - inner: , - }, - }, - CycleSink { - ident: Ident { - sym: cycle_0, - }, - location_kind: Cluster( - 2, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , hydroflow_plus_test :: cluster :: paxos :: Ballot) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 0, - ), - from_key: None, - to_location: Cluster( - 2, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , hydroflow_plus_test :: cluster :: paxos :: Ballot) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: cluster :: paxos :: Ballot > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos :: Proposer > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: cluster :: paxos :: Ballot > (& b) . unwrap ()) }, - ), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos :: Ballot , std :: iter :: Map < std :: slice :: Iter < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > > , _ > > ({ use hydroflow_plus :: __staged :: stream :: * ; let ids__free = unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > > > (__hydroflow_plus_cluster_ids_2) } ; | b | ids__free . iter () . map (move | id | (:: std :: clone :: Clone :: clone (id) , :: std :: clone :: Clone :: clone (& b))) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus_test :: cluster :: paxos :: Ballot , ()) , hydroflow_plus_test :: cluster :: paxos :: Ballot > ({ use hydroflow_plus :: __staged :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Tee { - inner: , - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydroflow_plus :: __staged :: singleton :: * ; | _u | () }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (() , ()) , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Tee { - inner: , - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydroflow_plus :: __staged :: optional :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < usize , bool > ({ use hydroflow_plus :: __staged :: optional :: * ; | c | * c == 0 }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydroflow_plus :: __staged :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , () , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | count , _ | * count += 1 }), - input: DeferTick( - Tee { - inner: , - }, - ), - }, - }, - }, - ), - }, - }, - ), - }, - }, - }, - }, - }, - CycleSink { - ident: Ident { - sym: cycle_2, - }, - location_kind: Tick( - 0, - Cluster( - 2, - ), - ), - input: DeferTick( - AntiJoin( - Tee { - inner: : Chain( - CycleSource { - ident: Ident { - sym: cycle_2, - }, - location_kind: Tick( - 0, - Cluster( - 2, - ), - ), - }, - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > , ((u32 , u32) , core :: result :: Result < () , () >)) , ((u32 , u32) , core :: result :: Result < () , () >) > ({ use hydroflow_plus :: __staged :: stream :: * ; | (_ , b) | b }), - input: Network { - from_location: Cluster( - 3, - ), - from_key: None, - to_location: Cluster( - 2, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , ((u32 , u32) , core :: result :: Result < () , () >)) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < ((u32 , u32) , core :: result :: Result < () , () >) > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos_kv :: Replica > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < ((u32 , u32) , core :: result :: Result < () , () >) > (& b) . unwrap ()) }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , ((u32 , u32) , core :: result :: Result < () , () >)) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | payload | (payload . value . 0 , ((payload . key , payload . value . 1) , Ok (()))) }), - input: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: cluster :: paxos_kv :: SequencedKv < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > , core :: option :: Option < hydroflow_plus_test :: cluster :: paxos_kv :: KvPayload < u32 , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos_bench :: Client > , u32) > > > ({ use crate :: __staged :: cluster :: paxos_kv :: * ; | payload | payload . kv }), - input: Tee { - inner: , - }, - }, - }, - }, - }, - }, - ), - }, - Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((u32 , u32) , (usize , usize)) , core :: option :: Option < (u32 , u32) > > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; let min__free = 2usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydroflow_plus_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: Tee { - inner: , - }, - }, - }, - }, - }, - ), - ), - }, - CycleSink { - ident: Ident { - sym: cycle_1, - }, - location_kind: Cluster( - 2, - ), - input: Chain( - FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , std :: iter :: Map < std :: ops :: Range < usize > , _ > > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; let CLUSTER_SELF_ID__free = hydroflow_plus :: ClusterId :: < hydroflow_plus_test :: cluster :: paxos_bench :: Client > :: from_raw (__hydroflow_plus_cluster_self_id_2) ; let num_clients_per_node__free = 1usize ; move | _ | (0 .. num_clients_per_node__free) . map (move | i | ((CLUSTER_SELF_ID__free . raw_id * (num_clients_per_node__free as u32)) + i as u32 , 0)) }), - input: Tee { - inner: : Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < () , () , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | curr , new | * curr = new }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < hydroflow_plus_test :: cluster :: paxos :: Proposer > , () > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | _ | () }), - input: Delta( - Tee { - inner: , - }, - ), - }, - }, - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , u32) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | payload | (payload . 0 , payload . 1 + 1) }), - input: Tee { - inner: : Tee { - inner: , - }, - }, - }, - ), - }, - CycleSink { - ident: Ident { - sym: cycle_3, - }, - location_kind: Tick( - 1, - Cluster( - 2, - ), - ), - input: DeferTick( - ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < tokio :: time :: Instant , tokio :: time :: Instant , () > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | curr_time , new_time | { if new_time > * curr_time { * curr_time = new_time ; } } }), - input: Chain( - Chain( - Tee { - inner: : CycleSource { - ident: Ident { - sym: cycle_3, - }, - location_kind: Tick( - 1, - Cluster( - 2, - ), - ), - }, - }, - FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , std :: iter :: Map < std :: ops :: Range < usize > , _ > > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; let num_clients_per_node__free = 1usize ; move | now | (0 .. num_clients_per_node__free) . map (move | virtual_id | (virtual_id , now)) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , tokio :: time :: Instant > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | _ | Instant :: now () }), - input: Tee { - inner: , - }, - }, - }, - ), - Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (usize , tokio :: time :: Instant) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | (key , _prev_count) | (key as usize , Instant :: now ()) }), - input: Tee { - inner: , - }, - }, - }, - ), - }, - ), - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > , usize) , () > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; move | (latencies , throughput) | { let mut latencies_mut = latencies . borrow_mut () ; if latencies_mut . len () > 0 { let middle_idx = latencies_mut . len () / 2 ; let (_ , median , _) = latencies_mut . select_nth_unstable (middle_idx) ; println ! ("Median latency: {}ms" , median . as_micros () as f64 / 1000.0) ; } println ! ("Throughput: {} requests/s" , throughput) ; } }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > , usize) , ()) , (std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > , usize) > ({ use hydroflow_plus :: __staged :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton( - CrossSingleton( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > , usize) , std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | (latencies , _) | latencies }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > , usize) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; let median_latency_window_size__free = 1usize ; move | | (Rc :: new (RefCell :: new (Vec :: < Duration > :: with_capacity (median_latency_window_size__free))) , 0usize ,) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (std :: rc :: Rc < core :: cell :: RefCell < std :: vec :: Vec < core :: time :: Duration > > > , usize) , core :: time :: Duration , () > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; let median_latency_window_size__free = 1usize ; move | (latencies , write_index) , latency | { let mut latencies_mut = latencies . borrow_mut () ; if * write_index < latencies_mut . len () { latencies_mut [* write_index] = latency ; } else { latencies_mut . push (latency) ; } * write_index = (* write_index + 1) % median_latency_window_size__free ; } }), - input: Persist( - FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < core :: time :: Duration > , core :: option :: Option < core :: time :: Duration > > ({ use hydroflow_plus :: __staged :: stream :: * ; | d | d }), - input: Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , (tokio :: time :: Instant , tokio :: time :: Instant)) , core :: option :: Option < core :: time :: Duration > > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | (_virtual_id , (prev_time , curr_time)) | Some (curr_time . duration_since (prev_time)) }), - input: Join( - Tee { - inner: , - }, - Tee { - inner: , - }, - ), - }, - DeferTick( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , core :: option :: Option < core :: time :: Duration > > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | _ | None }), - input: Tee { - inner: : Source { - source: Stream( - { use hydroflow_plus :: __staged :: location :: * ; let interval__free = { use crate :: __staged :: cluster :: paxos_bench :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - location_kind: Cluster( - 2, - ), - }, - }, - }, - ), - ), - }, - ), - }, - }, - Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | | 0 }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (usize , bool) , () > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | total , (batch_size , reset) | { if reset { * total = 0 ; } else { * total += batch_size ; } } }), - input: Persist( - Chain( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | batch_size | (batch_size , false) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , ()) , usize > ({ use hydroflow_plus :: __staged :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton( - Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydroflow_plus :: __staged :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (u32 , u32) , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | count , _ | * count += 1 }), - input: Tee { - inner: , - }, - }, - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydroflow_plus :: __staged :: singleton :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < usize , bool > ({ use hydroflow_plus :: __staged :: singleton :: * ; | c | * c == 0 }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydroflow_plus :: __staged :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , tokio :: time :: Instant , () > ({ use hydroflow_plus :: __staged :: stream :: * ; | count , _ | * count += 1 }), - input: Tee { - inner: , - }, - }, - }, - }, - ), - }, - }, - DeferTick( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , (usize , bool) > ({ use crate :: __staged :: cluster :: paxos_bench :: * ; | _ | (0 , true) }), - input: Tee { - inner: , - }, - }, - ), - ), - ), - }, - ), - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < tokio :: time :: Instant , () > ({ use hydroflow_plus :: __staged :: singleton :: * ; | _u | () }), - input: Tee { - inner: , - }, - }, - ), - }, - }, -] diff --git a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__simple_cluster__tests__simple_cluster.snap b/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__simple_cluster__tests__simple_cluster.snap deleted file mode 100644 index b19ad045728d..000000000000 --- a/hydro_test/src/cluster/snapshots/hydroflow_plus_test__cluster__simple_cluster__tests__simple_cluster.snap +++ /dev/null @@ -1,76 +0,0 @@ ---- -source: hydroflow_plus_test/src/cluster/simple_cluster.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32)) , () > ({ use crate :: __staged :: cluster :: simple_cluster :: * ; | (id , d) | println ! ("node received: ({}, {:?})" , id , d) }), - input: Network { - from_location: Cluster( - 1, - ), - from_key: None, - to_location: Process( - 0, - ), - to_key: None, - serialize_fn: Some( - | data | { hydroflow_plus :: runtime_support :: bincode :: serialize :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) > (& data) . unwrap () . into () }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydroflow_plus :: ClusterId :: < () > :: from_raw (id) , hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) > (& b) . unwrap ()) }, - ), - input: Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) , () > ({ use crate :: __staged :: cluster :: simple_cluster :: * ; let CLUSTER_SELF_ID__free = hydroflow_plus :: ClusterId :: < () > :: from_raw (__hydroflow_plus_cluster_self_id_1) ; move | n | println ! ("cluster received: {:?} (self cluster id: {})" , n , CLUSTER_SELF_ID__free) }), - input: Network { - from_location: Process( - 0, - ), - from_key: None, - to_location: Cluster( - 1, - ), - to_key: None, - serialize_fn: Some( - | (id , data) : (hydroflow_plus :: ClusterId < _ > , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32)) | { (id . raw_id , hydroflow_plus :: runtime_support :: bincode :: serialize :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) > (& data) . unwrap () . into ()) }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydroflow_plus :: runtime_support :: bincode :: deserialize :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32) , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , (hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , i32)) > ({ use crate :: __staged :: cluster :: simple_cluster :: * ; | (id , n) | (id , (id , n)) }), - input: Delta( - CrossProduct( - Persist( - Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < & hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > , hydroflow_plus :: location :: cluster :: cluster_id :: ClusterId < () > > ({ use crate :: __staged :: cluster :: simple_cluster :: * ; | & id | id }), - input: Source { - source: Iter( - unsafe { :: std :: mem :: transmute :: < _ , & :: std :: vec :: Vec < hydroflow_plus :: ClusterId < () > > > (__hydroflow_plus_cluster_ids_1) }, - ), - location_kind: Process( - 0, - ), - }, - }, - ), - Persist( - Source { - source: Iter( - { use crate :: __staged :: cluster :: simple_cluster :: * ; 0 .. 5 }, - ), - location_kind: Process( - 0, - ), - }, - ), - ), - ), - }, - }, - }, - }, - }, -] diff --git a/hydro_test/src/distributed/snapshots/hydroflow_plus_test__distributed__first_ten__tests__first_ten_distributed.snap b/hydro_test/src/distributed/snapshots/hydroflow_plus_test__distributed__first_ten__tests__first_ten_distributed.snap deleted file mode 100644 index 19c5d8d28064..000000000000 --- a/hydro_test/src/distributed/snapshots/hydroflow_plus_test__distributed__first_ten__tests__first_ten_distributed.snap +++ /dev/null @@ -1,63 +0,0 @@ ---- -source: hydroflow_plus_test/src/distributed/first_ten.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: string :: String , () > ({ use crate :: __staged :: distributed :: first_ten :: * ; | n | println ! ("hi: {:?}" , n) }), - input: Network { - from_location: ExternalProcess( - 0, - ), - from_key: Some( - 0, - ), - to_location: Process( - 1, - ), - to_key: None, - serialize_fn: None, - instantiate_fn: , - deserialize_fn: Some( - | res | { hydroflow_plus :: runtime_support :: bincode :: deserialize :: < std :: string :: String > (& res . unwrap ()) . unwrap () }, - ), - input: Source { - source: ExternalNetwork, - location_kind: ExternalProcess( - 0, - ), - }, - }, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydroflow_plus_test :: distributed :: first_ten :: SendOverNetwork , () > ({ use crate :: __staged :: distributed :: first_ten :: * ; | n | println ! ("{}" , n . n) }), - input: Network { - from_location: Process( - 1, - ), - from_key: None, - to_location: Process( - 2, - ), - to_key: None, - serialize_fn: Some( - | data | { hydroflow_plus :: runtime_support :: bincode :: serialize :: < hydroflow_plus_test :: distributed :: first_ten :: SendOverNetwork > (& data) . unwrap () . into () }, - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydroflow_plus :: runtime_support :: bincode :: deserialize :: < hydroflow_plus_test :: distributed :: first_ten :: SendOverNetwork > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , hydroflow_plus_test :: distributed :: first_ten :: SendOverNetwork > ({ use crate :: __staged :: distributed :: first_ten :: * ; | n | SendOverNetwork { n } }), - input: Source { - source: Iter( - { use crate :: __staged :: distributed :: first_ten :: * ; 0 .. 10 }, - ), - location_kind: Process( - 1, - ), - }, - }, - }, - }, -] diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_dot.snap deleted file mode 100644 index aa61b78fad2f..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_dot.snap +++ /dev/null @@ -1,43 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/chat_app.rs -expression: "chat_server.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_stream(users_stream)", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) source_stream(messages)", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l std::string::String,\l std::string::String,\l >({\l use crate::__staged::local::chat_app::*;\l |s| s.to_uppercase()\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) cross_join_multiset::<'static, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, std::string::String),\l (),\l >({\l use crate::__staged::local::chat_app::*;\l let output__free = output;\l |t| {\l output__free.send(t).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n2v1 -> n3v1 - n1v1 -> n4v1 [label="0"] - n3v1 -> n4v1 [label="1"] - n4v1 -> n5v1 - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - n3v1 - n4v1 - n5v1 - subgraph "cluster_sg_1v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_1v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_mermaid.snap deleted file mode 100644 index d7f3ff6decc9..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_no_replay@graphvis_mermaid.snap +++ /dev/null @@ -1,38 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/chat_app.rs -expression: "chat_server.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_stream(users_stream)"/]:::pullClass -2v1[\"(2v1) source_stream(messages)"/]:::pullClass -3v1[\"
(3v1)
map(
stageleft::runtime_support::fn1_type_hint::<
std::string::String,
std::string::String,
>({
use crate::__staged::local::chat_app::*;
|s| s.to_uppercase()
}),
)
"/]:::pullClass -4v1[\"(4v1) cross_join_multiset::<'static, 'tick>()"/]:::pullClass -5v1[/"
(5v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
(u32, std::string::String),
(),
>({
use crate::__staged::local::chat_app::*;
let output__free = output;
|t| {
output__free.send(t).unwrap();
}
}),
)
"\]:::pushClass -2v1-->3v1 -1v1-->|0|4v1 -3v1-->|1|4v1 -4v1-->5v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - 3v1 - 4v1 - 5v1 - subgraph sg_1v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_1v1_var_stream_3 ["var stream_3"] - 4v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_dot.snap deleted file mode 100644 index 3fb6e6d48cf8..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_dot.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/chat_app.rs -expression: "chat_server.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_stream(users_stream)", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) source_stream(messages)", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l std::string::String,\l std::string::String,\l >({\l use crate::__staged::local::chat_app::*;\l |s| s.to_uppercase()\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) cross_join_multiset::<'static, 'static>()", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) multiset_delta()", shape=invhouse, fillcolor="#88aaff"] - n6v1 [label="(n6v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, std::string::String),\l (),\l >({\l use crate::__staged::local::chat_app::*;\l let output__free = output;\l |t| {\l output__free.send(t).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n2v1 -> n3v1 - n1v1 -> n4v1 [label="0"] - n3v1 -> n4v1 [label="1"] - n4v1 -> n5v1 - n5v1 -> n6v1 - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - n3v1 - n4v1 - n5v1 - n6v1 - subgraph "cluster_sg_1v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_1v1_var_stream_3" { - label="var stream_3" - n4v1 - } - subgraph "cluster_sg_1v1_var_stream_4" { - label="var stream_4" - n5v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_mermaid.snap deleted file mode 100644 index 9c3d82a4e5e8..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__chat_app__tests__chat_app_replay@graphvis_mermaid.snap +++ /dev/null @@ -1,44 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/chat_app.rs -expression: "chat_server.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_stream(users_stream)"/]:::pullClass -2v1[\"(2v1) source_stream(messages)"/]:::pullClass -3v1[\"
(3v1)
map(
stageleft::runtime_support::fn1_type_hint::<
std::string::String,
std::string::String,
>({
use crate::__staged::local::chat_app::*;
|s| s.to_uppercase()
}),
)
"/]:::pullClass -4v1[\"(4v1) cross_join_multiset::<'static, 'static>()"/]:::pullClass -5v1[\"(5v1) multiset_delta()"/]:::pullClass -6v1[/"
(6v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
(u32, std::string::String),
(),
>({
use crate::__staged::local::chat_app::*;
let output__free = output;
|t| {
output__free.send(t).unwrap();
}
}),
)
"\]:::pushClass -2v1-->3v1 -1v1-->|0|4v1 -3v1-->|1|4v1 -4v1-->5v1 -5v1-->6v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - 3v1 - 4v1 - 5v1 - 6v1 - subgraph sg_1v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_1v1_var_stream_3 ["var stream_3"] - 4v1 - end - subgraph sg_1v1_var_stream_4 ["var stream_4"] - 5v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_dot.snap deleted file mode 100644 index 374f7193775e..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_dot.snap +++ /dev/null @@ -1,43 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/count_elems.rs -expression: "count.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_stream(input_stream)", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l usize,\l u32,\l >({\l use crate::__staged::local::count_elems::*;\l |_| 1\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) fold::<\l 'tick,\l>(\l stageleft::runtime_support::fn0_type_hint::<\l u32,\l >({\l use crate::__staged::local::count_elems::*;\l || 0\l }),\l stageleft::runtime_support::fn2_borrow_mut_type_hint::<\l u32,\l u32,\l (),\l >({\l use crate::__staged::local::count_elems::*;\l |a, b| *a += b\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::count_elems::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n5v1 - n3v1 -> n4v1 - n5v1 -> n3v1 [color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - subgraph "cluster_sg_1v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n3v1 - n4v1 - subgraph "cluster_sg_2v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_mermaid.snap deleted file mode 100644 index 47423697fb14..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__count_elems__tests__count@graphvis_mermaid.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/count_elems.rs -expression: "count.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_stream(input_stream)"/]:::pullClass -2v1[\"
(2v1)
map(
stageleft::runtime_support::fn1_type_hint::<
usize,
u32,
>({
use crate::__staged::local::count_elems::*;
|_| 1
}),
)
"/]:::pullClass -3v1[\"
(3v1)
fold::<
'tick,
>(
stageleft::runtime_support::fn0_type_hint::<
u32,
>({
use crate::__staged::local::count_elems::*;
|| 0
}),
stageleft::runtime_support::fn2_borrow_mut_type_hint::<
u32,
u32,
(),
>({
use crate::__staged::local::count_elems::*;
|a, b| *a += b
}),
)
"/]:::pullClass -4v1[/"
(4v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::count_elems::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -5v1["(5v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->5v1 -3v1-->4v1 -5v1--x3v1; linkStyle 3 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - subgraph sg_1v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 3v1 - 4v1 - subgraph sg_2v1_var_stream_2 ["var stream_2"] - 3v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_dot.snap deleted file mode 100644 index a29934f0eb58..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_dot.snap +++ /dev/null @@ -1,136 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/graph_reachability.rs -expression: "reachability.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_stream(roots)", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) chain()", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) tee()", shape=house, fillcolor="#ffff88"] - n4v1 [label="(n4v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, ()),\l >({\l use crate::__staged::local::graph_reachability::*;\l |r| (r, ())\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) source_stream(edges)", shape=invhouse, fillcolor="#88aaff"] - n6v1 [label="(n6v1) join_multiset::<'tick, 'static>()", shape=invhouse, fillcolor="#88aaff"] - n7v1 [label="(n7v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, ((), u32)),\l u32,\l >({\l use crate::__staged::local::graph_reachability::*;\l |(_from, (_, to))| to\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n8v1 [label="(n8v1) chain()", shape=invhouse, fillcolor="#88aaff"] - n9v1 [label="(n9v1) defer_tick_lazy()", shape=invhouse, fillcolor="#88aaff"] - n10v1 [label="(n10v1) persist::<'static>()", shape=house, fillcolor="#ffff88"] - n11v1 [label="(n11v1) unique::<'tick>()", shape=house, fillcolor="#ffff88"] - n12v1 [label="(n12v1) multiset_delta()", shape=house, fillcolor="#ffff88"] - n13v1 [label="(n13v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::graph_reachability::*;\l let reached_out__free = reached_out;\l |v| {\l reached_out__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n14v1 [label="(n14v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n15v1 [label="(n15v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n16v1 [label="(n16v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n17v1 [label="(n17v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n18v1 [label="(n18v1) identity()", shape=invhouse, fillcolor="#88aaff"] - n19v1 [label="(n19v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n20v1 [label="(n20v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n14v1 - n9v1 -> n2v1 [label="1"] - n2v1 -> n3v1 - n3v1 -> n4v1 - n4v1 -> n15v1 - n5v1 -> n20v1 - n6v1 -> n7v1 - n3v1 -> n16v1 - n7v1 -> n8v1 [label="1"] - n8v1 -> n17v1 - n3v1 -> n10v1 - n10v1 -> n11v1 - n11v1 -> n12v1 - n12v1 -> n13v1 - n14v1 -> n2v1 [label="0", color=red] - n15v1 -> n6v1 [label="0"] - n16v1 -> n8v1 [label="0", color=red] - n17v1 -> n18v1 - n18v1 -> n19v1 - n19v1 -> n9v1 [color=red] - n20v1 -> n6v1 [label="1"] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - subgraph "cluster_sg_1v1_var_stream_0" { - label="var stream_0" - n1v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 2" - n6v1 - n7v1 - n8v1 - subgraph "cluster_sg_2v1_var_stream_5" { - label="var stream_5" - n6v1 - } - subgraph "cluster_sg_2v1_var_stream_6" { - label="var stream_6" - n7v1 - } - subgraph "cluster_sg_2v1_var_stream_7" { - label="var stream_7" - n8v1 - } - } - subgraph "cluster n3v1" { - fillcolor="#dddddd" - style=filled - label = "sg_3v1\nstratum 1" - n9v1 - n2v1 - n3v1 - n4v1 - n10v1 - n11v1 - n12v1 - n13v1 - subgraph "cluster_sg_3v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_3v1_var_stream_10" { - label="var stream_10" - n11v1 - } - subgraph "cluster_sg_3v1_var_stream_11" { - label="var stream_11" - n12v1 - } - subgraph "cluster_sg_3v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_3v1_var_stream_3" { - label="var stream_3" - n4v1 - } - subgraph "cluster_sg_3v1_var_stream_8" { - label="var stream_8" - n9v1 - } - subgraph "cluster_sg_3v1_var_stream_9" { - label="var stream_9" - n10v1 - } - } - subgraph "cluster n4v1" { - fillcolor="#dddddd" - style=filled - label = "sg_4v1\nstratum 3" - n18v1 - } - subgraph "cluster n5v1" { - fillcolor="#dddddd" - style=filled - label = "sg_5v1\nstratum 0" - n5v1 - subgraph "cluster_sg_5v1_var_stream_4" { - label="var stream_4" - n5v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_mermaid.snap deleted file mode 100644 index bdd9a1910fc6..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__graph_reachability__tests__reachability@graphvis_mermaid.snap +++ /dev/null @@ -1,111 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/graph_reachability.rs -expression: "reachability.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_stream(roots)"/]:::pullClass -2v1[\"(2v1) chain()"/]:::pullClass -3v1[/"(3v1) tee()"\]:::pushClass -4v1[/"
(4v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, ()),
>({
use crate::__staged::local::graph_reachability::*;
|r| (r, ())
}),
)
"\]:::pushClass -5v1[\"(5v1) source_stream(edges)"/]:::pullClass -6v1[\"(6v1) join_multiset::<'tick, 'static>()"/]:::pullClass -7v1[\"
(7v1)
map(
stageleft::runtime_support::fn1_type_hint::<
(u32, ((), u32)),
u32,
>({
use crate::__staged::local::graph_reachability::*;
|(_from, (_, to))| to
}),
)
"/]:::pullClass -8v1[\"(8v1) chain()"/]:::pullClass -9v1[\"(9v1) defer_tick_lazy()"/]:::pullClass -10v1[/"(10v1) persist::<'static>()"\]:::pushClass -11v1[/"(11v1) unique::<'tick>()"\]:::pushClass -12v1[/"(12v1) multiset_delta()"\]:::pushClass -13v1[/"
(13v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::graph_reachability::*;
let reached_out__free = reached_out;
|v| {
reached_out__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -14v1["(14v1) handoff"]:::otherClass -15v1["(15v1) handoff"]:::otherClass -16v1["(16v1) handoff"]:::otherClass -17v1["(17v1) handoff"]:::otherClass -18v1[\"(18v1) identity()"/]:::pullClass -19v1["(19v1) handoff"]:::otherClass -20v1["(20v1) handoff"]:::otherClass -1v1-->14v1 -9v1-->|1|2v1 -2v1-->3v1 -3v1-->4v1 -4v1-->15v1 -5v1-->20v1 -6v1-->7v1 -3v1-->16v1 -7v1-->|1|8v1 -8v1-->17v1 -3v1-->10v1 -10v1-->11v1 -11v1-->12v1 -12v1-->13v1 -14v1--x|0|2v1; linkStyle 14 stroke:red -15v1-->|0|6v1 -16v1--x|0|8v1; linkStyle 16 stroke:red -17v1-->18v1 -18v1-->19v1 -19v1--o9v1; linkStyle 19 stroke:red -20v1-->|1|6v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - subgraph sg_1v1_var_stream_0 ["var stream_0"] - 1v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 2"] - 6v1 - 7v1 - 8v1 - subgraph sg_2v1_var_stream_5 ["var stream_5"] - 6v1 - end - subgraph sg_2v1_var_stream_6 ["var stream_6"] - 7v1 - end - subgraph sg_2v1_var_stream_7 ["var stream_7"] - 8v1 - end -end -subgraph sg_3v1 ["sg_3v1 stratum 1"] - 9v1 - 2v1 - 3v1 - 4v1 - 10v1 - 11v1 - 12v1 - 13v1 - subgraph sg_3v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_3v1_var_stream_10 ["var stream_10"] - 11v1 - end - subgraph sg_3v1_var_stream_11 ["var stream_11"] - 12v1 - end - subgraph sg_3v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_3v1_var_stream_3 ["var stream_3"] - 4v1 - end - subgraph sg_3v1_var_stream_8 ["var stream_8"] - 9v1 - end - subgraph sg_3v1_var_stream_9 ["var stream_9"] - 10v1 - end -end -subgraph sg_4v1 ["sg_4v1 stratum 3"] - 18v1 -end -subgraph sg_5v1 ["sg_5v1 stratum 0"] - 5v1 - subgraph sg_5v1_var_stream_4 ["var stream_4"] - 5v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_dot.snap deleted file mode 100644 index c1d64fab31b3..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_dot.snap +++ /dev/null @@ -1,57 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, u32),\l >({\l use crate::__staged::local::negation::*;\l |v| (v, v)\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) persist::<'static>()", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) anti_join_multiset::<'tick, 'static>()", shape=invhouse, fillcolor="#88aaff"] - n6v1 [label="(n6v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, u32),\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v.0).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n7v1 [label="(n7v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n3v1 - n3v1 -> n5v1 [label="pos"] - n4v1 -> n7v1 - n5v1 -> n6v1 - n7v1 -> n5v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n4v1 - subgraph "cluster_sg_1v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n2v1 - n3v1 - n5v1 - n6v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_2v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_2v1_var_stream_4" { - label="var stream_4" - n5v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_mermaid.snap deleted file mode 100644 index e461c8275ec8..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_static@graphvis_mermaid.snap +++ /dev/null @@ -1,48 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"
(2v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, u32),
>({
use crate::__staged::local::negation::*;
|v| (v, v)
}),
)
"/]:::pullClass -3v1[\"(3v1) persist::<'static>()"/]:::pullClass -4v1[\"
(4v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -5v1[\"(5v1) anti_join_multiset::<'tick, 'static>()"/]:::pullClass -6v1[/"
(6v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
(u32, u32),
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v.0).unwrap();
}
}),
)
"\]:::pushClass -7v1["(7v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->3v1 -3v1-->|pos|5v1 -4v1-->7v1 -5v1-->6v1 -7v1--x|neg|5v1; linkStyle 5 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 4v1 - subgraph sg_1v1_var_stream_3 ["var stream_3"] - 4v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 2v1 - 3v1 - 5v1 - 6v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_2v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_2v1_var_stream_4 ["var stream_4"] - 5v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_dot.snap deleted file mode 100644 index 125415caa1f9..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_dot.snap +++ /dev/null @@ -1,57 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, u32),\l >({\l use crate::__staged::local::negation::*;\l |v| (v, v)\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) persist::<'static>()", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) anti_join_multiset::<'tick, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n6v1 [label="(n6v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, u32),\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v.0).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n7v1 [label="(n7v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n3v1 - n3v1 -> n5v1 [label="pos"] - n4v1 -> n7v1 - n5v1 -> n6v1 - n7v1 -> n5v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n4v1 - subgraph "cluster_sg_1v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n2v1 - n3v1 - n5v1 - n6v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_2v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_2v1_var_stream_4" { - label="var stream_4" - n5v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_mermaid.snap deleted file mode 100644 index daa59bcd9c60..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_static_tick@graphvis_mermaid.snap +++ /dev/null @@ -1,48 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"
(2v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, u32),
>({
use crate::__staged::local::negation::*;
|v| (v, v)
}),
)
"/]:::pullClass -3v1[\"(3v1) persist::<'static>()"/]:::pullClass -4v1[\"
(4v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -5v1[\"(5v1) anti_join_multiset::<'tick, 'tick>()"/]:::pullClass -6v1[/"
(6v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
(u32, u32),
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v.0).unwrap();
}
}),
)
"\]:::pushClass -7v1["(7v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->3v1 -3v1-->|pos|5v1 -4v1-->7v1 -5v1-->6v1 -7v1--x|neg|5v1; linkStyle 5 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 4v1 - subgraph sg_1v1_var_stream_3 ["var stream_3"] - 4v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 2v1 - 3v1 - 5v1 - 6v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_2v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_2v1_var_stream_4 ["var stream_4"] - 5v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_dot.snap deleted file mode 100644 index 79936132989d..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_dot.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, u32),\l >({\l use crate::__staged::local::negation::*;\l |v| (v, v)\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) anti_join_multiset::<'tick, 'static>()", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, u32),\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v.0).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n6v1 [label="(n6v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n4v1 [label="pos"] - n3v1 -> n6v1 - n4v1 -> n5v1 - n6v1 -> n4v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n3v1 - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n2v1 - n4v1 - n5v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_2v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_mermaid.snap deleted file mode 100644 index 6d60700e2d83..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_static@graphvis_mermaid.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"
(2v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, u32),
>({
use crate::__staged::local::negation::*;
|v| (v, v)
}),
)
"/]:::pullClass -3v1[\"
(3v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -4v1[\"(4v1) anti_join_multiset::<'tick, 'static>()"/]:::pullClass -5v1[/"
(5v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
(u32, u32),
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v.0).unwrap();
}
}),
)
"\]:::pushClass -6v1["(6v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->|pos|4v1 -3v1-->6v1 -4v1-->5v1 -6v1--x|neg|4v1; linkStyle 4 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 3v1 - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 2v1 - 4v1 - 5v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_2v1_var_stream_3 ["var stream_3"] - 4v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_dot.snap deleted file mode 100644 index 8a4b988f4ce0..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_dot.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, u32),\l >({\l use crate::__staged::local::negation::*;\l |v| (v, v)\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) anti_join_multiset::<'tick, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, u32),\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v.0).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n6v1 [label="(n6v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n4v1 [label="pos"] - n3v1 -> n6v1 - n4v1 -> n5v1 - n6v1 -> n4v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n3v1 - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n2v1 - n4v1 - n5v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_2v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_mermaid.snap deleted file mode 100644 index 16fd2abddc27..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__anti_join_tick_tick@graphvis_mermaid.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"
(2v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, u32),
>({
use crate::__staged::local::negation::*;
|v| (v, v)
}),
)
"/]:::pullClass -3v1[\"
(3v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -4v1[\"(4v1) anti_join_multiset::<'tick, 'tick>()"/]:::pullClass -5v1[/"
(5v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
(u32, u32),
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v.0).unwrap();
}
}),
)
"\]:::pushClass -6v1["(6v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->|pos|4v1 -3v1-->6v1 -4v1-->5v1 -6v1--x|neg|4v1; linkStyle 4 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 3v1 - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 2v1 - 4v1 - 5v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_2v1_var_stream_3 ["var stream_3"] - 4v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_dot.snap deleted file mode 100644 index b9112226c9de..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_dot.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) persist::<'static>()", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) difference_multiset::<'tick, 'static>()", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n6v1 [label="(n6v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n4v1 [label="pos"] - n3v1 -> n6v1 - n4v1 -> n5v1 - n6v1 -> n4v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n3v1 - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n2v1 - n4v1 - n5v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_2v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_mermaid.snap deleted file mode 100644 index c28b6b0d4d5d..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_static@graphvis_mermaid.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"(2v1) persist::<'static>()"/]:::pullClass -3v1[\"
(3v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -4v1[\"(4v1) difference_multiset::<'tick, 'static>()"/]:::pullClass -5v1[/"
(5v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -6v1["(6v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->|pos|4v1 -3v1-->6v1 -4v1-->5v1 -6v1--x|neg|4v1; linkStyle 4 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 3v1 - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 2v1 - 4v1 - 5v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_2v1_var_stream_3 ["var stream_3"] - 4v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_dot.snap deleted file mode 100644 index 1e9a8e2cf4e5..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_dot.snap +++ /dev/null @@ -1,50 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) persist::<'static>()", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) difference_multiset::<'tick, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n5v1 [label="(n5v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n6v1 [label="(n6v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n4v1 [label="pos"] - n3v1 -> n6v1 - n4v1 -> n5v1 - n6v1 -> n4v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n3v1 - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n2v1 - n4v1 - n5v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_2v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_mermaid.snap deleted file mode 100644 index e7d673d11e08..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_static_tick@graphvis_mermaid.snap +++ /dev/null @@ -1,42 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"(2v1) persist::<'static>()"/]:::pullClass -3v1[\"
(3v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -4v1[\"(4v1) difference_multiset::<'tick, 'tick>()"/]:::pullClass -5v1[/"
(5v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -6v1["(6v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->|pos|4v1 -3v1-->6v1 -4v1-->5v1 -6v1--x|neg|4v1; linkStyle 4 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 3v1 - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 2v1 - 4v1 - 5v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_2v1_var_stream_3 ["var stream_3"] - 4v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_dot.snap deleted file mode 100644 index 1eea0f181a5a..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_dot.snap +++ /dev/null @@ -1,43 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) difference_multiset::<'tick, 'static>()", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n3v1 [label="pos"] - n2v1 -> n5v1 - n3v1 -> n4v1 - n5v1 -> n3v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n2v1 - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n3v1 - n4v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_mermaid.snap deleted file mode 100644 index ad3cf51c3a1c..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_static@graphvis_mermaid.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"
(2v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -3v1[\"(3v1) difference_multiset::<'tick, 'static>()"/]:::pullClass -4v1[/"
(4v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -5v1["(5v1) handoff"]:::otherClass -1v1-->|pos|3v1 -2v1-->5v1 -3v1-->4v1 -5v1--x|neg|3v1; linkStyle 3 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 2v1 - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 3v1 - 4v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_2 ["var stream_2"] - 3v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_dot.snap deleted file mode 100644 index 67dc43c1e7fe..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_dot.snap +++ /dev/null @@ -1,43 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::negation::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) source_iter({\l use crate::__staged::local::negation::*;\l 3..6\l})\l", shape=invhouse, fillcolor="#88aaff"] - n3v1 [label="(n3v1) difference_multiset::<'tick, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n4v1 [label="(n4v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::negation::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n3v1 [label="pos"] - n2v1 -> n5v1 - n3v1 -> n4v1 - n5v1 -> n3v1 [label="neg", color=red] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n2v1 - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 1" - n1v1 - n3v1 - n4v1 - subgraph "cluster_sg_2v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_2v1_var_stream_2" { - label="var stream_2" - n3v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_mermaid.snap deleted file mode 100644 index af952d07e1d6..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__negation__tests__difference_tick_tick@graphvis_mermaid.snap +++ /dev/null @@ -1,36 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/negation.rs -expression: "flow.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::negation::*;
0..5
})
"/]:::pullClass -2v1[\"
(2v1)
source_iter({
use crate::__staged::local::negation::*;
3..6
})
"/]:::pullClass -3v1[\"(3v1) difference_multiset::<'tick, 'tick>()"/]:::pullClass -4v1[/"
(4v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::negation::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -5v1["(5v1) handoff"]:::otherClass -1v1-->|pos|3v1 -2v1-->5v1 -3v1-->4v1 -5v1--x|neg|3v1; linkStyle 3 stroke:red -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 2v1 - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 1"] - 1v1 - 3v1 - 4v1 - subgraph sg_2v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_2v1_var_stream_2 ["var stream_2"] - 3v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_dot.snap deleted file mode 100644 index ac9a190ad283..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_dot.snap +++ /dev/null @@ -1,67 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/teed_join.rs -expression: "joined.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_stream(input_stream)", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) tee()", shape=house, fillcolor="#ffff88"] - n3v1 [label="(n3v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, ()),\l >({\l use crate::__staged::local::teed_join::*;\l |v| (v + 1, ())\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n4v1 [label="(n4v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, ()),\l >({\l use crate::__staged::local::teed_join::*;\l |v| (v - 1, ())\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) join_multiset::<'tick, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n6v1 [label="(n6v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, ((), ())),\l u32,\l >({\l use crate::__staged::local::teed_join::*;\l |t| t.0\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n7v3 [label="(n7v3) handoff", shape=parallelogram, fillcolor="#ddddff"] - n8v1 [label="(n8v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::teed_join::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n9v1 [label="(n9v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n3v1 - n2v1 -> n4v1 - n3v1 -> n7v3 - n4v1 -> n9v1 - n5v1 -> n6v1 - n7v3 -> n5v1 [label="0"] - n6v1 -> n8v1 - n9v1 -> n5v1 [label="1"] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - n3v1 - n4v1 - subgraph "cluster_sg_1v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_1v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 0" - n5v1 - n6v1 - n8v1 - subgraph "cluster_sg_2v1_var_stream_4" { - label="var stream_4" - n5v1 - } - subgraph "cluster_sg_2v1_var_stream_5" { - label="var stream_5" - n6v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_mermaid.snap deleted file mode 100644 index 4da0aa56994c..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join@graphvis_mermaid.snap +++ /dev/null @@ -1,57 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/teed_join.rs -expression: "joined.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_stream(input_stream)"/]:::pullClass -2v1[/"(2v1) tee()"\]:::pushClass -3v1[/"
(3v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, ()),
>({
use crate::__staged::local::teed_join::*;
|v| (v + 1, ())
}),
)
"\]:::pushClass -4v1[/"
(4v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, ()),
>({
use crate::__staged::local::teed_join::*;
|v| (v - 1, ())
}),
)
"\]:::pushClass -5v1[\"(5v1) join_multiset::<'tick, 'tick>()"/]:::pullClass -6v1[\"
(6v1)
map(
stageleft::runtime_support::fn1_type_hint::<
(u32, ((), ())),
u32,
>({
use crate::__staged::local::teed_join::*;
|t| t.0
}),
)
"/]:::pullClass -7v3["(7v3) handoff"]:::otherClass -8v1[/"
(8v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::teed_join::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -9v1["(9v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->3v1 -2v1-->4v1 -3v1-->7v3 -4v1-->9v1 -5v1-->6v1 -7v3-->|0|5v1 -6v1-->8v1 -9v1-->|1|5v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - 3v1 - 4v1 - subgraph sg_1v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_1v1_var_stream_3 ["var stream_3"] - 4v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 0"] - 5v1 - 6v1 - 8v1 - subgraph sg_2v1_var_stream_4 ["var stream_4"] - 5v1 - end - subgraph sg_2v1_var_stream_5 ["var stream_5"] - 6v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_dot.snap deleted file mode 100644 index c557ed3d7ad5..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_dot.snap +++ /dev/null @@ -1,22 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/teed_join.rs -expression: "joined.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_iter({\l use crate::__staged::local::teed_join::*;\l 0..5\l})\l", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::teed_join::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n1v1 -> n2v1 - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - subgraph "cluster_sg_1v1_var_stream_7" { - label="var stream_7" - n1v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_mermaid.snap deleted file mode 100644 index 72cdbf388e0e..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_multi_node@graphvis_mermaid.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/teed_join.rs -expression: "joined.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"
(1v1)
source_iter({
use crate::__staged::local::teed_join::*;
0..5
})
"/]:::pullClass -2v1[/"
(2v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::teed_join::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -1v1-->2v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - subgraph sg_1v1_var_stream_7 ["var stream_7"] - 1v1 - end -end diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_dot.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_dot.snap deleted file mode 100644 index d35e86f614ec..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_dot.snap +++ /dev/null @@ -1,77 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/teed_join.rs -expression: "joined.meta_graph().unwrap().to_dot(& Default :: default())" ---- -digraph { - node [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace", style=filled]; - edge [fontname="Monaco,Menlo,Consolas,"Droid Sans Mono",Inconsolata,"Courier New",monospace"]; - n1v1 [label="(n1v1) source_stream(input_stream)", shape=invhouse, fillcolor="#88aaff"] - n2v1 [label="(n2v1) tee()", shape=house, fillcolor="#ffff88"] - n3v1 [label="(n3v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, ()),\l >({\l use crate::__staged::local::teed_join::*;\l |v| (v + 1, ())\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n4v1 [label="(n4v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (u32, ()),\l >({\l use crate::__staged::local::teed_join::*;\l |v| (v - 1, ())\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n5v1 [label="(n5v1) join_multiset::<'tick, 'tick>()", shape=invhouse, fillcolor="#88aaff"] - n6v1 [label="(n6v1) map(\l stageleft::runtime_support::fn1_type_hint::<\l (u32, ((), ())),\l u32,\l >({\l use crate::__staged::local::teed_join::*;\l |t| t.0\l }),\l)\l", shape=invhouse, fillcolor="#88aaff"] - n7v1 [label="(n7v1) tee()", shape=house, fillcolor="#ffff88"] - n8v1 [label="(n8v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::teed_join::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n9v1 [label="(n9v1) for_each(\l stageleft::runtime_support::fn1_type_hint::<\l u32,\l (),\l >({\l use crate::__staged::local::teed_join::*;\l let output__free = output;\l |v| {\l output__free.send(v).unwrap();\l }\l }),\l)\l", shape=house, fillcolor="#ffff88"] - n10v1 [label="(n10v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n11v1 [label="(n11v1) handoff", shape=parallelogram, fillcolor="#ddddff"] - n1v1 -> n2v1 - n2v1 -> n3v1 - n2v1 -> n4v1 - n3v1 -> n10v1 - n4v1 -> n11v1 - n5v1 -> n6v1 - n6v1 -> n7v1 - n7v1 -> n8v1 - n7v1 -> n9v1 - n10v1 -> n5v1 [label="0"] - n11v1 -> n5v1 [label="1"] - subgraph "cluster n1v1" { - fillcolor="#dddddd" - style=filled - label = "sg_1v1\nstratum 0" - n1v1 - n2v1 - n3v1 - n4v1 - subgraph "cluster_sg_1v1_var_stream_0" { - label="var stream_0" - n1v1 - } - subgraph "cluster_sg_1v1_var_stream_1" { - label="var stream_1" - n2v1 - } - subgraph "cluster_sg_1v1_var_stream_2" { - label="var stream_2" - n3v1 - } - subgraph "cluster_sg_1v1_var_stream_3" { - label="var stream_3" - n4v1 - } - } - subgraph "cluster n2v1" { - fillcolor="#dddddd" - style=filled - label = "sg_2v1\nstratum 0" - n5v1 - n6v1 - n7v1 - n8v1 - n9v1 - subgraph "cluster_sg_2v1_var_stream_4" { - label="var stream_4" - n5v1 - } - subgraph "cluster_sg_2v1_var_stream_5" { - label="var stream_5" - n6v1 - } - subgraph "cluster_sg_2v1_var_stream_6" { - label="var stream_6" - n7v1 - } - } -} diff --git a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_mermaid.snap b/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_mermaid.snap deleted file mode 100644 index 5efe825e367d..000000000000 --- a/hydro_test_local/src/local/snapshots/hydroflow_plus_test_local__local__teed_join__tests__teed_join_twice@graphvis_mermaid.snap +++ /dev/null @@ -1,66 +0,0 @@ ---- -source: hydroflow_plus_test_local/src/local/teed_join.rs -expression: "joined.meta_graph().unwrap().to_mermaid(& Default :: default())" ---- -%%{init:{'theme':'base','themeVariables':{'clusterBkg':'#ddd','clusterBorder':'#888'}}}%% -flowchart TD -classDef pullClass fill:#8af,stroke:#000,text-align:left,white-space:pre -classDef pushClass fill:#ff8,stroke:#000,text-align:left,white-space:pre -classDef otherClass fill:#fdc,stroke:#000,text-align:left,white-space:pre -linkStyle default stroke:#aaa -1v1[\"(1v1) source_stream(input_stream)"/]:::pullClass -2v1[/"(2v1) tee()"\]:::pushClass -3v1[/"
(3v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, ()),
>({
use crate::__staged::local::teed_join::*;
|v| (v + 1, ())
}),
)
"\]:::pushClass -4v1[/"
(4v1)
map(
stageleft::runtime_support::fn1_type_hint::<
u32,
(u32, ()),
>({
use crate::__staged::local::teed_join::*;
|v| (v - 1, ())
}),
)
"\]:::pushClass -5v1[\"(5v1) join_multiset::<'tick, 'tick>()"/]:::pullClass -6v1[\"
(6v1)
map(
stageleft::runtime_support::fn1_type_hint::<
(u32, ((), ())),
u32,
>({
use crate::__staged::local::teed_join::*;
|t| t.0
}),
)
"/]:::pullClass -7v1[/"(7v1) tee()"\]:::pushClass -8v1[/"
(8v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::teed_join::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -9v1[/"
(9v1)
for_each(
stageleft::runtime_support::fn1_type_hint::<
u32,
(),
>({
use crate::__staged::local::teed_join::*;
let output__free = output;
|v| {
output__free.send(v).unwrap();
}
}),
)
"\]:::pushClass -10v1["(10v1) handoff"]:::otherClass -11v1["(11v1) handoff"]:::otherClass -1v1-->2v1 -2v1-->3v1 -2v1-->4v1 -3v1-->10v1 -4v1-->11v1 -5v1-->6v1 -6v1-->7v1 -7v1-->8v1 -7v1-->9v1 -10v1-->|0|5v1 -11v1-->|1|5v1 -subgraph sg_1v1 ["sg_1v1 stratum 0"] - 1v1 - 2v1 - 3v1 - 4v1 - subgraph sg_1v1_var_stream_0 ["var stream_0"] - 1v1 - end - subgraph sg_1v1_var_stream_1 ["var stream_1"] - 2v1 - end - subgraph sg_1v1_var_stream_2 ["var stream_2"] - 3v1 - end - subgraph sg_1v1_var_stream_3 ["var stream_3"] - 4v1 - end -end -subgraph sg_2v1 ["sg_2v1 stratum 0"] - 5v1 - 6v1 - 7v1 - 8v1 - 9v1 - subgraph sg_2v1_var_stream_4 ["var stream_4"] - 5v1 - end - subgraph sg_2v1_var_stream_5 ["var stream_5"] - 6v1 - end - subgraph sg_2v1_var_stream_6 ["var stream_6"] - 7v1 - end -end diff --git a/lattices_macro/src/snapshots/lattices_macro__test__derive_example.snap b/lattices_macro/src/snapshots/lattices_macro__test__derive_example.snap index 5720227238b4..f453f5e01a29 100644 --- a/lattices_macro/src/snapshots/lattices_macro__test__derive_example.snap +++ b/lattices_macro/src/snapshots/lattices_macro__test__derive_example.snap @@ -1,6 +1,6 @@ --- source: lattices_macro/src/lib.rs -expression: "prettyplease::unparse(&parse_quote! { # derive_lattice })" +expression: "prettyplease :: unparse(& parse_quote! { # derive_lattice })" --- impl< KeySet, @@ -150,4 +150,3 @@ where } } } - diff --git a/lattices_macro/src/snapshots/lattices_macro__test__derive_pair.snap b/lattices_macro/src/snapshots/lattices_macro__test__derive_pair.snap index 362d8a309b67..a4762ff75854 100644 --- a/lattices_macro/src/snapshots/lattices_macro__test__derive_pair.snap +++ b/lattices_macro/src/snapshots/lattices_macro__test__derive_pair.snap @@ -1,6 +1,6 @@ --- source: lattices_macro/src/lib.rs -expression: "prettyplease::unparse(&parse_quote! { # derive_lattice })" +expression: "prettyplease :: unparse(& parse_quote! { # derive_lattice })" --- impl< LatA, @@ -146,4 +146,3 @@ where } } } - diff --git a/lattices_macro/src/snapshots/lattices_macro__test__derive_similar_fields.snap b/lattices_macro/src/snapshots/lattices_macro__test__derive_similar_fields.snap index 3891561a7f7f..a7c5071e7a6a 100644 --- a/lattices_macro/src/snapshots/lattices_macro__test__derive_similar_fields.snap +++ b/lattices_macro/src/snapshots/lattices_macro__test__derive_similar_fields.snap @@ -1,6 +1,6 @@ --- source: lattices_macro/src/lib.rs -expression: "prettyplease::unparse(&parse_quote! { # derive_lattice })" +expression: "prettyplease :: unparse(& parse_quote! { # derive_lattice })" --- impl lattices::Merge for SimilarFields where @@ -151,4 +151,3 @@ where } } } -