diff --git a/.gitignore b/.gitignore index 8a333b3..ade713e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ target/ *.data.folded *.perf.data +scripts/*.png -*.results.txt \ No newline at end of file +# I'll output the results of cargo run to these files +*.results.txt diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..23fd35f --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "editor.formatOnSave": true +} \ No newline at end of file diff --git a/Cargo.lock b/Cargo.lock index 2eb1412..fd4e980 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,13 +227,12 @@ dependencies = [ [[package]] name = "async-compression" -version = "0.4.36" +version = "0.4.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98ec5f6c2f8bc326c994cb9e241cc257ddaba9afa8555a43cffbb5dd86efaa37" +checksum = "d10e4f991a553474232bc0a31799f6d24b034a84c0971d80d2e2f78b2e576e40" dependencies = [ "compression-codecs", "compression-core", - "futures-core", "futures-io", "pin-project-lite", "tokio", @@ -292,7 +291,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b681c58ec6001e5385fb80647299e8a5f796d17ab33ffe81a17408899f008208" dependencies = [ - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -333,7 +332,7 @@ dependencies = [ "async-promise", "russh", "russh-sftp", - "thiserror 2.0.17", + "thiserror 2.0.18", "tokio", "tracing", ] @@ -413,9 +412,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "base64ct" -version = "1.8.2" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d809780667f4410e7c41b07f52439b94d2bdf8528eeedc287fa38d3b7f95d82" +checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06" [[package]] name = "bcrypt-pbkdf" @@ -458,7 +457,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "rustc-hash", + "rustc-hash 2.1.1", "shlex", "syn", ] @@ -536,6 +535,121 @@ dependencies = [ "cipher", ] +[[package]] +name = "bolero-afl" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bf4cbd0bacf9356d3c7e5d9d088480f2076ba3c595c15ee9a6a378cdd7b297" +dependencies = [ + "bolero-engine", + "cc", +] + +[[package]] +name = "bolero-engine" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dca199170a7c92c669c1019f9219a316b66bcdcfa4b36cac5a460a4c1a851aba" +dependencies = [ + "anyhow", + "bolero-generator", + "lazy_static", + "pretty-hex", +] + +[[package]] +name = "bolero-engine-hydro" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "691790fb2d24fe4984eebd9ef3eb0afc8598a0530471f4d5de499d379e504fc5" +dependencies = [ + "anyhow", + "bolero-generator-hydro", + "lazy_static", + "pretty-hex", + "rand 0.9.2", + "rand_xoshiro", +] + +[[package]] +name = "bolero-generator" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98a5782f2650f80d533f58ec339c6dce4cc5428f9c2755894f98156f52af81f2" +dependencies = [ + "bolero-generator-derive", + "rand_core 0.9.5", +] + +[[package]] +name = "bolero-generator-derive" +version = "0.13.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a21a3b022507b9edd2050caf370d945e398c1a7c8455531220fa3968c45d29e" +dependencies = [ + "proc-macro-crate 2.0.0", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "bolero-generator-hydro" +version = "0.13.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a78618f55ac4dfa3c66dde097f26105478348b52e985249999c859c250c5719e" +dependencies = [ + "bolero-generator-derive", + "either", + "getrandom 0.3.4", + "rand_core 0.9.5", + "rand_xoshiro", +] + +[[package]] +name = "bolero-honggfuzz" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a118ef27295eddefadc6a99728ee698d1b18d2e80dc4777d21bee3385096ffd" +dependencies = [ + "bolero-engine", +] + +[[package]] +name = "bolero-hydro" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef7956e385b91a5aee997d23d40c65ff65af698e71f49ba5f3d87ee99ea4b6f5" +dependencies = [ + "bolero-afl", + "bolero-engine-hydro", + "bolero-generator-hydro", + "bolero-honggfuzz", + "bolero-kani", + "bolero-libfuzzer-hydro", + "cfg-if", + "rand 0.9.2", +] + +[[package]] +name = "bolero-kani" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "852ea5784a9f3e68bfd302ca80b8b863bce140593eb5770fee6ab110899c28fc" +dependencies = [ + "bolero-engine", +] + +[[package]] +name = "bolero-libfuzzer-hydro" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59a4b5c591eff98751f101412e42edac650f417a9fefbe36d3ecb0773009470c" +dependencies = [ + "bolero-engine-hydro", + "cc", +] + [[package]] name = "brotli" version = "8.0.2" @@ -584,9 +698,9 @@ checksum = "64fa3c856b712db6612c019f14756e64e4bcea13337a6b33b696333a9eaa2d06" [[package]] name = "bytemuck" -version = "1.24.0" +version = "1.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fbdf580320f38b612e485521afda1ee26d10cc9884efaaa750d383e13e3c5f4" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" [[package]] name = "byteorder" @@ -596,9 +710,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" dependencies = [ "serde", ] @@ -658,14 +772,20 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.52" +version = "1.2.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd4932aefd12402b36c60956a4fe0035421f544799057659ff86f923657aada3" +checksum = "47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29" dependencies = [ "find-msvc-tools", "shlex", ] +[[package]] +name = "cc-traits" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "060303ef31ef4a522737e1b1ab68c67916f2a787bb2f4f54f383279adba962b5" + [[package]] name = "cesu8" version = "1.1.0" @@ -706,9 +826,9 @@ dependencies = [ [[package]] name = "chrono" -version = "0.4.42" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "145052bdd345b87320e369255277e3fb5152762ad123a901ef5c262dd38fe8d2" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" dependencies = [ "iana-time-zone", "js-sys", @@ -740,9 +860,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.54" +version = "4.5.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6e6ff9dcd79cff5cd969a17a545d79e84ab086e444102a591e288a8aa3ce394" +checksum = "6899ea499e3fb9305a65d5ebf6e3d2248c5fab291f300ad0a704fbe142eae31a" dependencies = [ "clap_builder", "clap_derive", @@ -750,9 +870,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.54" +version = "4.5.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa42cf4d2b7a41bc8f663a7cab4031ebafa1bf3875705bfaf8466dc60ab52c00" +checksum = "7b12c8b680195a62a8364d16b8447b01b6c2c8f9aaf68bee653be34d4245e238" dependencies = [ "anstream", "anstyle", @@ -762,9 +882,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.49" +version = "4.5.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a0b5487afeab2deb2ff4e03a807ad1a03ac532ff5a2cee5d86884440c7f7671" +checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5" dependencies = [ "heck", "proc-macro2", @@ -774,9 +894,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "0.7.6" +version = "0.7.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1d728cc89cf3aee9ff92b05e62b19ee65a02b5702cff7d5a377e32c6ae29d8d" +checksum = "c3e64b0cc0439b12df2fa678eae89a1c56a529fd067a9115f7827f1fffd22b32" [[package]] name = "cmake" @@ -795,11 +915,11 @@ checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" [[package]] name = "colored" -version = "3.0.0" +version = "3.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fde0e0ec90c9dfb3b4b1a0891a7dcd0e2bffde2f7efed5fe7c9bb00e5bfb915e" +checksum = "faf9468729b8cbcea668e36183cb69d317348c2e08e994829fb56ebfdfbaac34" dependencies = [ - "windows-sys 0.59.0", + "windows-sys 0.61.2", ] [[package]] @@ -814,9 +934,9 @@ dependencies = [ [[package]] name = "compression-codecs" -version = "0.4.35" +version = "0.4.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0f7ac3e5b97fdce45e8922fb05cae2c37f7bbd63d30dd94821dacfd8f3f2bf2" +checksum = "00828ba6fd27b45a448e57dbfe84f1029d4c9f26b368157e9a448a5f49a2ec2a" dependencies = [ "brotli", "compression-core", @@ -873,7 +993,7 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f9d839f2a20b0aee515dc581a6172f2321f96cab76c1a38a4c584a194955390e" dependencies = [ - "getrandom 0.2.16", + "getrandom 0.2.17", "once_cell", "tiny-keccak", ] @@ -896,7 +1016,7 @@ dependencies = [ [[package]] name = "copy_span" version = "0.1.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "proc-macro2", "syn", @@ -1066,25 +1186,11 @@ dependencies = [ "syn", ] -[[package]] -name = "dashmap" -version = "6.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5041cc499144891f3790297212f32a74fb938e5136a14943f338ef9e0ae276cf" -dependencies = [ - "cfg-if", - "crossbeam-utils", - "hashbrown 0.14.5", - "lock_api", - "once_cell", - "parking_lot_core", -] - [[package]] name = "data-encoding" -version = "2.9.0" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a2330da5de22e8a3cb63252ce2abb30116bf5265e89c0e01bc17015ce30a476" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" [[package]] name = "debugid" @@ -1129,7 +1235,7 @@ dependencies = [ [[package]] name = "dfir_lang" version = "0.15.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "auto_impl", "documented", @@ -1144,6 +1250,36 @@ dependencies = [ "syn", ] +[[package]] +name = "dfir_rs" +version = "0.15.0" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" +dependencies = [ + "bincode", + "bytes", + "dfir_lang", + "futures", + "getrandom 0.2.17", + "hydro_build_utils", + "itertools 0.13.0", + "lattices", + "pin-project-lite", + "ref-cast", + "rustc-hash 1.1.0", + "sealed", + "serde", + "serde_json", + "sinktools", + "slotmap", + "smallvec", + "tokio", + "tokio-stream", + "tokio-util", + "tracing", + "variadics", + "web-time", +] + [[package]] name = "digest" version = "0.10.7" @@ -1196,7 +1332,7 @@ checksum = "ed6b3e31251e87acd1b74911aed84071c8364fc9087972748ade2f1094ccce34" dependencies = [ "documented-macros", "phf 0.12.1", - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -1235,12 +1371,6 @@ version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" -[[package]] -name = "dyn-clone" -version = "1.0.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" - [[package]] name = "ecdsa" version = "0.16.9" @@ -1335,23 +1465,10 @@ dependencies = [ ] [[package]] -name = "env_filter" -version = "0.1.4" +name = "env_home" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bf3c259d255ca70051b30e2e95b5446cdb8949ac4cd22c0d7fd634d89f568e2" -dependencies = [ - "log", -] - -[[package]] -name = "env_logger" -version = "0.11.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13c863f0904021b108aa8b2f55046443e6b1ebde8fd4a15c399893aae4fa069f" -dependencies = [ - "env_filter", - "log", -] +checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe" [[package]] name = "equivalent" @@ -1426,19 +1543,19 @@ checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" [[package]] name = "find-msvc-tools" -version = "0.1.7" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f449e6c6c08c865631d4890cfacf252b3d396c9bcc83adb6623cdb02a8336c41" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" [[package]] name = "flate2" -version = "1.1.5" +version = "1.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfe33edd8e85a12a67454e37f8c75e730830d83e313556ab9ebf9ee7fbeb3bfb" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" dependencies = [ "crc32fast", - "libz-rs-sys", "miniz_oxide", + "zlib-rs", ] [[package]] @@ -1478,6 +1595,12 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "fst" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ab85b9b05e3978cc9a9cf8fea7f01b494e1a09ed3037e16ba39edc7a29eb61a" + [[package]] name = "futures" version = "0.3.31" @@ -1593,9 +1716,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" dependencies = [ "cfg-if", "js-sys", @@ -1814,7 +1937,7 @@ checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" [[package]] name = "hydro_build_utils" version = "0.0.1" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "insta", "rustc_version", @@ -1823,7 +1946,7 @@ dependencies = [ [[package]] name = "hydro_deploy" version = "0.15.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "anyhow", "append-only-vec", @@ -1836,7 +1959,6 @@ dependencies = [ "bytes", "cargo_metadata", "dunce", - "dyn-clone", "futures", "hydro_deploy_integration", "indicatif", @@ -1848,19 +1970,19 @@ dependencies = [ "nix", "serde", "serde_json", - "serde_path_to_error", "shell-escape", "tempfile", "tokio", "tokio-stream", "tokio-util", + "which", "wholesym", ] [[package]] name = "hydro_deploy_integration" version = "0.15.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "async-recursion", "async-trait", @@ -1878,12 +2000,15 @@ dependencies = [ [[package]] name = "hydro_lang" version = "0.15.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "auto_impl", "backtrace", "bincode", + "bolero-hydro", + "buildstructor", "bytes", + "cargo_metadata", "chrono", "clap", "colored", @@ -1891,16 +2016,19 @@ dependencies = [ "ctor 0.2.9", "data-encoding", "dfir_lang", + "dfir_rs", "flate2", "futures", "hydro_build_utils", "hydro_deploy", "hydro_deploy_integration", + "indenter", "itertools 0.13.0", - "match_box", + "libloading", "nameof", + "pin-project-lite", "prettyplease", - "proc-macro-crate", + "proc-macro-crate 3.4.0", "proc-macro2", "quote", "sealed", @@ -1908,10 +2036,13 @@ dependencies = [ "serde_json", "sha2", "sinktools", + "slotmap", "stageleft", "stageleft_tool", "syn", + "tempfile", "tokio", + "tokio-metrics", "tokio-stream", "tokio-util", "toml", @@ -1935,12 +2066,13 @@ dependencies = [ "hydro_std", "hydro_test", "include_mdtests", - "proc-macro-crate", + "proc-macro-crate 3.4.0", "proc-macro2", "quote", "regex", "serde", "stageleft", + "stageleft_tool", "syn", "tokio", ] @@ -1952,6 +2084,7 @@ dependencies = [ "clap", "ctor 0.2.9", "dfir_lang", + "hdrhistogram", "hydro_build_utils", "hydro_deploy", "hydro_lang", @@ -1969,7 +2102,7 @@ dependencies = [ [[package]] name = "hydro_std" version = "0.15.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "hdrhistogram", "hydro_lang", @@ -1981,7 +2114,7 @@ dependencies = [ [[package]] name = "hydro_test" version = "0.0.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "bytes", "colored", @@ -1992,9 +2125,12 @@ dependencies = [ "palette", "rand 0.8.5", "serde", + "serde_json", "stageleft", "stageleft_tool", "tokio", + "tokio-stream", + "tokio-util", ] [[package]] @@ -2037,14 +2173,13 @@ dependencies = [ [[package]] name = "hyper-util" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "727805d60e7938b76b826a6ef209eb70eaa1812794f9424d4a4e2d740662df5f" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" dependencies = [ "base64 0.22.1", "bytes", "futures-channel", - "futures-core", "futures-util", "http", "http-body", @@ -2061,9 +2196,9 @@ dependencies = [ [[package]] name = "iana-time-zone" -version = "0.1.64" +version = "0.1.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" dependencies = [ "android_system_properties", "core-foundation-sys", @@ -2188,7 +2323,7 @@ dependencies = [ [[package]] name = "include_mdtests" version = "0.0.0" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "glob", "proc-macro2", @@ -2196,6 +2331,12 @@ dependencies = [ "syn", ] +[[package]] +name = "indenter" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "964de6e86d545b246d84badc0fef527924ace5134f30641c203ef52ba83f58d5" + [[package]] name = "indexmap" version = "2.13.0" @@ -2226,12 +2367,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "232929e1d75fe899576a3d5c7416ad0d88dbfbb3c3d6aa00873a7408a50ddb88" dependencies = [ "ahash", - "clap", - "crossbeam-channel", - "crossbeam-utils", - "dashmap", - "env_logger", - "indexmap", "is-terminal", "itoa", "log", @@ -2263,9 +2398,9 @@ dependencies = [ [[package]] name = "insta" -version = "1.46.0" +version = "1.46.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b66886d14d18d420ab5052cbff544fc5d34d0b2cdd35eb5976aaa10a4a472e5" +checksum = "e82db8c87c7f1ccecb34ce0c24399b8a73081427f3c7c50a5d597925356115e4" dependencies = [ "console", "once_cell", @@ -2382,14 +2517,42 @@ checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" [[package]] name = "js-sys" -version = "0.3.83" +version = "0.3.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "464a3709c7f55f1f721e5389aa6ea4e3bc6aba669353300af094b29ffbdde1d8" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" dependencies = [ "once_cell", "wasm-bindgen", ] +[[package]] +name = "lattices" +version = "0.6.2" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" +dependencies = [ + "cc-traits", + "fst", + "hydro_build_utils", + "lattices_macro", + "roaring", + "sealed", + "serde", + "variadics", + "variadics_macro", +] + +[[package]] +name = "lattices_macro" +version = "0.5.11" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" +dependencies = [ + "hydro_build_utils", + "proc-macro-crate 3.4.0", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "lazy_static" version = "1.5.0" @@ -2417,9 +2580,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" [[package]] name = "libredox" @@ -2431,15 +2594,6 @@ dependencies = [ "libc", ] -[[package]] -name = "libz-rs-sys" -version = "0.5.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c10501e7805cee23da17c7790e59df2870c0d4043ec6d03f67d31e2b53e77415" -dependencies = [ - "zlib-rs", -] - [[package]] name = "linear-map" version = "1.2.0" @@ -2458,7 +2612,7 @@ dependencies = [ "memchr", "prost", "prost-derive", - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -2470,7 +2624,7 @@ dependencies = [ "bitflags", "byteorder", "memchr", - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -2528,22 +2682,11 @@ version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb4bdc8b0ce69932332cf76d24af69c3a155242af95c226b2ab6c2e371ed1149" dependencies = [ - "thiserror 2.0.17", + "thiserror 2.0.18", "zerocopy", "zerocopy-derive", ] -[[package]] -name = "match_box" -version = "0.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c33c1d4fa92364abfc42bcc58c201cfbb63ae80f5e471aac5c051db48dab6843" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "matchers" version = "0.2.0" @@ -2704,9 +2847,9 @@ dependencies = [ [[package]] name = "num-conv" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" [[package]] name = "num-format" @@ -2983,7 +3126,7 @@ dependencies = [ "maybe-owned", "pdb2", "range-collections", - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -3196,9 +3339,9 @@ dependencies = [ [[package]] name = "portable-atomic" -version = "1.13.0" +version = "1.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950" +checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49" [[package]] name = "potential_utf" @@ -3224,6 +3367,12 @@ dependencies = [ "zerocopy", ] +[[package]] +name = "pretty-hex" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbc83ee4a840062f368f9096d80077a9841ec117e17e7f700df81958f1451254" + [[package]] name = "prettyplease" version = "0.2.37" @@ -3243,6 +3392,15 @@ dependencies = [ "elliptic-curve", ] +[[package]] +name = "proc-macro-crate" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e8366a6159044a37876a2b9817124296703c586a5c92e2c53751fa06d8d43e8" +dependencies = [ + "toml_edit 0.20.7", +] + [[package]] name = "proc-macro-crate" version = "3.4.0" @@ -3254,9 +3412,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.105" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "535d180e0ecab6268a3e718bb9fd44db66bbbc256257165fc699dadf70d16fe7" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" dependencies = [ "unicode-ident", ] @@ -3303,10 +3461,10 @@ dependencies = [ "pin-project-lite", "quinn-proto", "quinn-udp", - "rustc-hash", + "rustc-hash 2.1.1", "rustls", "socket2", - "thiserror 2.0.17", + "thiserror 2.0.18", "tokio", "tracing", "web-time", @@ -3323,11 +3481,11 @@ dependencies = [ "lru-slab", "rand 0.9.2", "ring", - "rustc-hash", + "rustc-hash 2.1.1", "rustls", "rustls-pki-types", "slab", - "thiserror 2.0.17", + "thiserror 2.0.18", "tinyvec", "tracing", "web-time", @@ -3349,9 +3507,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.43" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc74d9a594b72ae6656596548f56f667211f8a97b3d4c3d467150794690dc40a" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" dependencies = [ "proc-macro2", ] @@ -3380,7 +3538,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" dependencies = [ "rand_chacha 0.9.0", - "rand_core 0.9.3", + "rand_core 0.9.5", ] [[package]] @@ -3400,7 +3558,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" dependencies = [ "ppv-lite86", - "rand_core 0.9.3", + "rand_core 0.9.5", ] [[package]] @@ -3409,18 +3567,27 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.16", + "getrandom 0.2.17", ] [[package]] name = "rand_core" -version = "0.9.3" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99d9a13982dcf210057a8a78572b2217b667c3beacbf3a0d8b454f6f82837d38" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" dependencies = [ "getrandom 0.3.4", ] +[[package]] +name = "rand_xoshiro" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f703f4665700daf5512dcca5f43afa6af89f09db47fb56be587f80636bda2d41" +dependencies = [ + "rand_core 0.9.5", +] + [[package]] name = "range-collections" version = "0.4.6" @@ -3454,9 +3621,9 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" dependencies = [ - "getrandom 0.2.16", + "getrandom 0.2.17", "libredox", - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -3481,9 +3648,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.12.2" +version = "1.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" dependencies = [ "aho-corasick", "memchr", @@ -3493,9 +3660,9 @@ dependencies = [ [[package]] name = "regex-automata" -version = "0.4.13" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" dependencies = [ "aho-corasick", "memchr", @@ -3504,9 +3671,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.8.8" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" +checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c" [[package]] name = "reqwest" @@ -3576,12 +3743,22 @@ checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", "cfg-if", - "getrandom 0.2.16", + "getrandom 0.2.17", "libc", "untrusted", "windows-sys 0.52.0", ] +[[package]] +name = "roaring" +version = "0.10.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19e8d2cfa184d94d0726d650a9f4a1be7f9b76ac9fdb954219878dc00c1c1e7b" +dependencies = [ + "bytemuck", + "byteorder", +] + [[package]] name = "rsa" version = "0.9.10" @@ -3630,7 +3807,7 @@ dependencies = [ "flate2", "futures", "generic-array", - "getrandom 0.2.16", + "getrandom 0.2.17", "hex-literal", "hmac", "home", @@ -3692,7 +3869,7 @@ dependencies = [ "flurry", "log", "serde", - "thiserror 2.0.17", + "thiserror 2.0.18", "tokio", "tokio-util", ] @@ -3711,9 +3888,15 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.26" +version = "0.1.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b50b8869d9fc858ce7266cce0194bd74df58b9d0e3f6df3a9fc8eb470d95c09d" + +[[package]] +name = "rustc-hash" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56f7d92ca342cea22a06f2121d944b4fd82af56988c270852495420f961d4ace" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustc-hash" @@ -3759,9 +3942,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.13.2" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21e6f2ab2928ca4291b86736a8bd920a277a399bba1589409d72154ff87c1282" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" dependencies = [ "web-time", "zeroize", @@ -3769,9 +3952,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.8" +version = "0.103.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ffdfa2f5286e2247234e03f680868ac2815974dc39e00ea15adc445d0aafe52" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" dependencies = [ "ring", "rustls-pki-types", @@ -3843,7 +4026,7 @@ dependencies = [ "rustc-demangle", "scala-native-demangle", "srcsrv", - "thiserror 2.0.17", + "thiserror 2.0.18", "uuid", "yoke", "yoke-derive", @@ -3964,24 +4147,13 @@ dependencies = [ "zmij", ] -[[package]] -name = "serde_path_to_error" -version = "0.1.20" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" -dependencies = [ - "itoa", - "serde", - "serde_core", -] - [[package]] name = "serde_spanned" -version = "0.6.9" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776" dependencies = [ - "serde", + "serde_core", ] [[package]] @@ -4074,7 +4246,7 @@ checksum = "bbbb5d9659141646ae647b42fe094daf6c6192d1620870b449d9557f748b2daa" [[package]] name = "sinktools" version = "0.0.1" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "futures-util", "pin-project-lite", @@ -4085,15 +4257,15 @@ dependencies = [ [[package]] name = "siphasher" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" [[package]] name = "slab" -version = "0.4.11" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" [[package]] name = "slotmap" @@ -4113,9 +4285,9 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" [[package]] name = "socket2" -version = "0.6.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17129e116933cf371d018bb80ae557e889637989d8638274fb25622827b03881" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" dependencies = [ "libc", "windows-sys 0.60.2", @@ -4144,7 +4316,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85cd3e3828fb4dd5ba0e7091777edb6c3db3cd2d6fc10547b29b40f6949a29be" dependencies = [ "memchr", - "thiserror 2.0.17", + "thiserror 2.0.18", ] [[package]] @@ -4184,12 +4356,12 @@ checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" [[package]] name = "stageleft" -version = "0.11.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57d298ebe7d1c345ace8f9aa75de8e80dc11cf3c7263be203b3e1d3686eee073" +checksum = "5515c966d11023237b528433ed874b94f81d8fd1d960182758946948584ad348" dependencies = [ "ctor 0.4.3", - "proc-macro-crate", + "proc-macro-crate 3.4.0", "proc-macro2", "quote", "stageleft_macro", @@ -4198,11 +4370,11 @@ dependencies = [ [[package]] name = "stageleft_macro" -version = "0.11.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b75caa0673619e888064be2c6776d5d776333f07fff4d2c13e76570769f92766" +checksum = "22b9d1c1c018fa785a5298bee5d876bba170e8abf8859c9d6c4d4f1ce61f6758" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.4.0", "proc-macro2", "quote", "sha2", @@ -4211,12 +4383,12 @@ dependencies = [ [[package]] name = "stageleft_tool" -version = "0.11.0" +version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62dbaa8c42dbec00aa24188b6a8a568021e70b132fa1944f9c7f035510934f5a" +checksum = "3d611f80971adc49ae8a47372f785a3047df3b4cb7c56c3e9f8b920cedc5075a" dependencies = [ "prettyplease", - "proc-macro-crate", + "proc-macro-crate 3.4.0", "proc-macro2", "quote", "sha2", @@ -4294,7 +4466,7 @@ dependencies = [ "http", "reqwest", "scopeguard", - "thiserror 2.0.17", + "thiserror 2.0.18", "tokio", ] @@ -4339,6 +4511,12 @@ dependencies = [ "syn", ] +[[package]] +name = "target-triple" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "591ef38edfb78ca4771ee32cf494cb8771944bee237a9b91fc9c1424ac4b777b" + [[package]] name = "tempfile" version = "3.24.0" @@ -4372,11 +4550,11 @@ dependencies = [ [[package]] name = "thiserror" -version = "2.0.17" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" dependencies = [ - "thiserror-impl 2.0.17", + "thiserror-impl 2.0.18", ] [[package]] @@ -4392,9 +4570,9 @@ dependencies = [ [[package]] name = "thiserror-impl" -version = "2.0.17" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" dependencies = [ "proc-macro2", "quote", @@ -4412,22 +4590,22 @@ dependencies = [ [[package]] name = "time" -version = "0.3.44" +version = "0.3.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e7d9e3bb61134e77bde20dd4825b97c010155709965fedf0f49bb138e52a9d" +checksum = "9da98b7d9b7dad93488a84b8248efc35352b0b2657397d4167e7ad67e5d535e5" dependencies = [ "deranged", "num-conv", "powerfmt", - "serde", + "serde_core", "time-core", ] [[package]] name = "time-core" -version = "0.1.6" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40868e7c1d2f0b8d73e4a8c7f0ff63af4f6d19be117e90bd73eb1d62cf831c6b" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" [[package]] name = "tiny-keccak" @@ -4491,6 +4669,18 @@ dependencies = [ "syn", ] +[[package]] +name = "tokio-metrics" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c2ca6283a34abc77cb58ea83d4a3c40e0162b0095d7a674172a2eed5415197" +dependencies = [ + "futures-util", + "pin-project-lite", + "tokio", + "tokio-stream", +] + [[package]] name = "tokio-rustls" version = "0.26.4" @@ -4528,14 +4718,17 @@ dependencies = [ [[package]] name = "toml" -version = "0.8.23" +version = "0.9.11+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362" +checksum = "f3afc9a848309fe1aaffaed6e1546a7a14de1f935dc9d89d32afd9a44bab7c46" dependencies = [ - "serde", + "indexmap", + "serde_core", "serde_spanned", - "toml_datetime 0.6.11", - "toml_edit 0.22.27", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.14", ] [[package]] @@ -4543,9 +4736,6 @@ name = "toml_datetime" version = "0.6.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c" -dependencies = [ - "serde", -] [[package]] name = "toml_datetime" @@ -4556,6 +4746,17 @@ dependencies = [ "serde_core", ] +[[package]] +name = "toml_edit" +version = "0.20.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81" +dependencies = [ + "indexmap", + "toml_datetime 0.6.11", + "winnow 0.5.40", +] + [[package]] name = "toml_edit" version = "0.22.27" @@ -4563,11 +4764,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a" dependencies = [ "indexmap", - "serde", - "serde_spanned", "toml_datetime 0.6.11", "toml_write", - "winnow", + "winnow 0.7.14", ] [[package]] @@ -4579,7 +4778,7 @@ dependencies = [ "indexmap", "toml_datetime 0.7.5+spec-1.1.0", "toml_parser", - "winnow", + "winnow 0.7.14", ] [[package]] @@ -4588,7 +4787,7 @@ version = "1.0.6+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3198b4b0a8e11f09dd03e133c0280504d0801269e9afa46362ffde1cbeebf44" dependencies = [ - "winnow", + "winnow 0.7.14", ] [[package]] @@ -4597,11 +4796,17 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801" +[[package]] +name = "toml_writer" +version = "1.0.6+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607" + [[package]] name = "tower" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" dependencies = [ "futures-core", "futures-util", @@ -4736,14 +4941,15 @@ dependencies = [ [[package]] name = "trybuild-internals-api" -version = "1.0.99" +version = "1.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bde7ac6ae8a3798bbd277b668363eec49497db8f7beb14070b3eaf09e6884a8" +checksum = "c823ac353d4ef60d9ed955b3294f0dafb0e05180175bc170a4c555f7e0a3333f" dependencies = [ "glob", "serde", "serde_derive", "serde_json", + "target-triple", "termcolor", "toml", ] @@ -4830,9 +5036,9 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.19.0" +version = "1.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e054861b4bd027cd373e18e8d8d8e6548085000e41290d95ce0c373a654b4a" +checksum = "ee48d38b119b0cd71fe4141b30f5ba9c7c5d9f4e7a3a8b4a674e4b6ef789976f" dependencies = [ "js-sys", "wasm-bindgen", @@ -4847,13 +5053,25 @@ checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" [[package]] name = "variadics" version = "0.0.10" -source = "git+https://github.com/hydro-project/hydro.git#1a769e1c0a5a8bbe7930b8f7224de5c661642147" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" dependencies = [ "hashbrown 0.14.5", "hydro_build_utils", "sealed", ] +[[package]] +name = "variadics_macro" +version = "0.6.2" +source = "git+https://github.com/hydro-project/hydro.git#efaa8f61c124c4b3c691b92a58df1686751cf45c" +dependencies = [ + "proc-macro-crate 3.4.0", + "proc-macro2", + "quote", + "syn", + "variadics", +] + [[package]] name = "version_check" version = "0.9.5" @@ -4887,18 +5105,18 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasip2" -version = "1.0.1+wasi-0.2.4" +version = "1.0.2+wasi-0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" dependencies = [ "wit-bindgen", ] [[package]] name = "wasm-bindgen" -version = "0.2.106" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d759f433fa64a2d763d1340820e46e111a7a5ab75f993d1852d70b03dbb80fd" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" dependencies = [ "cfg-if", "once_cell", @@ -4909,11 +5127,12 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.56" +version = "0.4.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "836d9622d604feee9e5de25ac10e3ea5f2d65b41eac0d9ce72eb5deae707ce7c" +checksum = "70a6e77fd0ae8029c9ea0063f87c46fde723e7d887703d74ad2616d792e51e6f" dependencies = [ "cfg-if", + "futures-util", "js-sys", "once_cell", "wasm-bindgen", @@ -4922,9 +5141,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.106" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48cb0d2638f8baedbc542ed444afc0644a29166f1595371af4fecf8ce1e7eeb3" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4932,9 +5151,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.106" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cefb59d5cd5f92d9dcf80e4683949f15ca4b511f4ac0a6e14d4e1ac60c6ecd40" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" dependencies = [ "bumpalo", "proc-macro2", @@ -4945,9 +5164,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.106" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbc538057e648b67f72a982e708d485b2efa771e1ac05fec311f9f63e5800db4" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" dependencies = [ "unicode-ident", ] @@ -4967,9 +5186,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.83" +version = "0.3.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b32828d774c412041098d182a8b38b16ea816958e07cf40eec2bc080ae137ac" +checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598" dependencies = [ "js-sys", "wasm-bindgen", @@ -5003,13 +5222,24 @@ dependencies = [ [[package]] name = "webpki-roots" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12bed680863276c63889429bfd6cab3b99943659923822de1c8a39c49e4d722c" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" dependencies = [ "rustls-pki-types", ] +[[package]] +name = "which" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fabb953106c3c8eea8306e4393700d7657561cb43122571b172bbfb7c7ba1d" +dependencies = [ + "env_home", + "rustix", + "winsafe", +] + [[package]] name = "wholesym" version = "0.8.1" @@ -5031,7 +5261,7 @@ dependencies = [ "samply-symbols", "scopeguard", "symsrv", - "thiserror 2.0.17", + "thiserror 2.0.18", "tokio", "uuid", "yoke", @@ -5423,6 +5653,15 @@ version = "0.53.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + [[package]] name = "winnow" version = "0.7.14" @@ -5432,11 +5671,17 @@ dependencies = [ "memchr", ] +[[package]] +name = "winsafe" +version = "0.0.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904" + [[package]] name = "wit-bindgen" -version = "0.46.0" +version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" [[package]] name = "writeable" @@ -5469,18 +5714,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.33" +version = "0.8.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "668f5168d10b9ee831de31933dc111a459c97ec93225beb307aed970d1372dfd" +checksum = "57cf3aa6855b23711ee9852dfc97dfaa51c45feaba5b645d0c777414d494a961" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.33" +version = "0.8.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c7962b26b0a8685668b671ee4b54d007a67d4eaf05fda79ac0ecf41e32270f1" +checksum = "8a616990af1a287837c4fe6596ad77ef57948f787e46ce28e166facc0cc1cb75" dependencies = [ "proc-macro2", "quote", @@ -5549,12 +5794,12 @@ dependencies = [ [[package]] name = "zlib-rs" -version = "0.5.5" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40990edd51aae2c2b6907af74ffb635029d5788228222c4bb811e9351c0caad3" +checksum = "a7948af682ccbc3342b6e9420e8c51c1fe5d7bf7756002b4a3c6cabfe96a7e3c" [[package]] name = "zmij" -version = "1.0.12" +version = "1.0.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fc5a66a20078bf1251bde995aa2fdcc4b800c70b5d92dd2c62abc5c60f679f8" +checksum = "3ff05f8caa9038894637571ae6b9e29466c1f4f829d26c9b28f869a29cbe3445" diff --git a/Cargo.toml b/Cargo.toml index eb1b5b8..37ee4b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,12 +13,23 @@ hydro_std = { version = "0.15.0", git = "https://github.com/hydro-project/hydro. hydro_test = { version = "0.0.0", git = "https://github.com/hydro-project/hydro.git" } dfir_lang = { version = "0.15.0", git = "https://github.com/hydro-project/hydro.git" } hydro_build_utils = { version = "0.0.1", git = "https://github.com/hydro-project/hydro.git" } -hydro_deploy = { version = "0.15.0", git = "https://github.com/hydro-project/hydro.git" } +hydro_deploy = { version = "0.15.0", git = "https://github.com/hydro-project/hydro.git", features = ["profile-folding"] } include_mdtests = { version = "0.0.0", git = "https://github.com/hydro-project/hydro.git" } serde = { version = "1.0.197", features = ["derive"] } -stageleft = "0.11.0" -stageleft_tool = "0.11.0" +stageleft = "0.13.0" +stageleft_tool = "0.13.0" tokio = { version = "1.29.0", features = ["full"] } ctor = "0.2" clap = { version = "4.4", features = ["derive"] } -regex = "1.11.1" \ No newline at end of file +regex = "1.11.1" + + +# Uncomment to use local hydroflow checkout (change path as needed) +# [patch."https://github.com/hydro-project/hydro.git"] +# hydro_lang = { path = "/local/home/chudc/hydroflow/hydro_lang" } +# hydro_std = { path = "/local/home/chudc/hydroflow/hydro_std" } +# hydro_test = { path = "/local/home/chudc/hydroflow/hydro_test" } +# dfir_lang = { path = "/local/home/chudc/hydroflow/dfir_lang" } +# hydro_build_utils = { path = "/local/home/chudc/hydroflow/hydro_build_utils" } +# hydro_deploy = { path = "/local/home/chudc/hydroflow/hydro_deploy/core" } +# include_mdtests = { path = "/local/home/chudc/hydroflow/include_mdtests" } \ No newline at end of file diff --git a/docs/partitioning.mdx b/docs/partitioning.mdx index 333313f..df372d7 100644 --- a/docs/partitioning.mdx +++ b/docs/partitioning.mdx @@ -160,7 +160,7 @@ Imagine `Chain` then joins with another stream, as in the following program. ```rust # use hydro_lang::prelude::*; fn chain_parents_same_input<'a, L>( - flow: FlowBuilder<'a>, + mut flow: FlowBuilder<'a>, input1: Stream<(usize, usize), Process<'a, L>, Unbounded>, input2: Stream<(usize, usize), Process<'a, L>, Unbounded>, ) { @@ -198,7 +198,7 @@ Imagine `Chain` then joins with another stream, as in the following program. ```rust # use hydro_lang::prelude::*; fn chain_parents_different_inputs<'a, L>( - flow: FlowBuilder<'a>, + mut flow: FlowBuilder<'a>, input1: Stream<(usize, usize), Process<'a, L>, Unbounded>, input2: Stream<(usize, usize), Process<'a, L>, Unbounded>, ) { diff --git a/hydro_optimize/Cargo.toml b/hydro_optimize/Cargo.toml index cdd8348..042662e 100644 --- a/hydro_optimize/Cargo.toml +++ b/hydro_optimize/Cargo.toml @@ -13,6 +13,7 @@ all-features = true good_lp = { version = "1.14.0", features = ["highs"], default-features = false } hydro_deploy.workspace = true hydro_lang = { workspace = true, features = ["deploy"] } +hydro_std.workspace = true proc-macro2 = "1.0.95" regex.workspace = true serde.workspace = true @@ -31,9 +32,9 @@ ctor.workspace = true hydro_build_utils.workspace = true hydro_lang = { workspace = true, features = ["viz"] } hydro_test.workspace = true -hydro_std.workspace = true clap.workspace = true include_mdtests.workspace = true [build-dependencies] +stageleft_tool.workspace = true hydro_build_utils.workspace = true \ No newline at end of file diff --git a/hydro_optimize/build.rs b/hydro_optimize/build.rs new file mode 100644 index 0000000..99775c3 --- /dev/null +++ b/hydro_optimize/build.rs @@ -0,0 +1,3 @@ +fn main() { + stageleft_tool::gen_final!(); +} diff --git a/hydro_optimize/src/debug.rs b/hydro_optimize/src/debug.rs index bbb7696..617cf98 100644 --- a/hydro_optimize/src/debug.rs +++ b/hydro_optimize/src/debug.rs @@ -21,10 +21,9 @@ fn print_id_node(node: &mut HydroNode, next_stmt_id: &mut usize) { .map(|m| m.op.id) .collect::>>(); println!( - "{} Node {}, Backtrace: {:?}, {:?}, Cardinality: {:?}, CPU Usage: {:?}, Network Recv CPU Usage: {:?}, Inputs: {:?}", + "{} Node {}, {:?}, Cardinality: {:?}, CPU Usage: {:?}, Network Recv CPU Usage: {:?}, Inputs: {:?}", next_stmt_id, node.print_root(), - metadata.op.backtrace.elements(), metadata, metadata.cardinality, metadata.op.cpu_usage, diff --git a/hydro_optimize/src/decouple_analysis.rs b/hydro_optimize/src/decouple_analysis.rs index c93142c..0c6a651 100644 --- a/hydro_optimize/src/decouple_analysis.rs +++ b/hydro_optimize/src/decouple_analysis.rs @@ -1,6 +1,7 @@ use std::cell::RefCell; use std::collections::HashMap; +use crate::decoupler::DecoupleDecision; use crate::rewrites::op_id_to_inputs; use good_lp::solvers::highs::HighsSolution; use good_lp::{ @@ -90,7 +91,7 @@ fn add_tick_constraint( .. } = &mut *model_metadata.borrow_mut(); - if let LocationId::Tick(tick_id, _) = metadata.location_kind { + if let LocationId::Tick(tick_id, _) = metadata.location_id { // Set each input = to the last input let mut inputs = op_id_to_inputs .get(&metadata.op.id.unwrap()) @@ -291,7 +292,7 @@ fn decouple_analysis_root( model_metadata: &RefCell, ) { // Ignore nodes that are not in the cluster to decouple - if model_metadata.borrow().cluster_to_decouple != *root.input_metadata().location_kind.root() { + if model_metadata.borrow().cluster_to_decouple != *root.input_metadata().location_id.root() { return; } @@ -306,7 +307,7 @@ fn decouple_analysis_node( ) { let network_type = get_network_type( node, - model_metadata.borrow().cluster_to_decouple.root().raw_id(), + &model_metadata.borrow().cluster_to_decouple.root().key(), ); if let HydroNode::Network { .. } = node { // If this is a network and we're not involved, ignore @@ -317,7 +318,7 @@ fn decouple_analysis_node( .borrow_mut() .network_ids .insert(*op_id, network_type.clone().unwrap()); - } else if model_metadata.borrow().cluster_to_decouple != *node.metadata().location_kind.root() { + } else if model_metadata.borrow().cluster_to_decouple != *node.metadata().location_id.root() { // If it's not a network and the operator isn't on the cluster, ignore return; } @@ -387,7 +388,7 @@ pub(crate) fn decouple_analysis( send_overhead: f64, recv_overhead: f64, cycle_source_to_sink_input: &HashMap, -) -> (Vec, Vec, Vec) { +) -> DecoupleDecision { let model_metadata = RefCell::new(ModelMetadata { cluster_to_decouple: cluster_to_decouple.clone(), decoupling_send_overhead: send_overhead, @@ -401,8 +402,11 @@ pub(crate) fn decouple_analysis( tee_inner_to_decoupled_vars: HashMap::new(), network_ids: HashMap::new(), }); - let op_id_to_inputs = - op_id_to_inputs(ir, Some(cluster_to_decouple), cycle_source_to_sink_input); + let op_id_to_inputs = op_id_to_inputs( + ir, + Some(&cluster_to_decouple.key()), + cycle_source_to_sink_input, + ); traverse_dfir::( ir, @@ -433,9 +437,7 @@ pub(crate) fn decouple_analysis( let mut orig_machine = vec![]; let mut decoupled_machine = vec![]; - let mut orig_to_decoupled = vec![]; - let mut decoupled_to_orig = vec![]; - let mut place_on_decoupled = vec![]; + let mut decision = DecoupleDecision::default(); for (op_id, inputs) in op_id_to_inputs { if let Some(op_var) = op_id_to_var.get(&op_id) { @@ -457,10 +459,10 @@ pub(crate) fn decouple_analysis( // Figure out if we should insert Network nodes match (input_unwrapped, op_value) { (0.0, 1.0) => { - orig_to_decoupled.push(op_id); + decision.output_to_decoupled_machine_after.push(op_id); } (1.0, 0.0) => { - decoupled_to_orig.push(op_id); + decision.output_to_original_machine_after.push(op_id); } _ => {} } @@ -477,7 +479,7 @@ pub(crate) fn decouple_analysis( decoupled_machine.push(op_id); // Don't modify the destination if we're sending to someone else if !network_type.is_some_and(|t| *t == NetworkType::Send) { - place_on_decoupled.push(op_id); + decision.place_on_decoupled_machine.push(op_id); } } } @@ -488,18 +490,21 @@ pub(crate) fn decouple_analysis( decoupled_machine.sort(); println!("Original: {:?}", orig_machine); println!("Decoupling: {:?}", decoupled_machine); - orig_to_decoupled.sort(); - decoupled_to_orig.sort(); - place_on_decoupled.sort(); + decision.output_to_decoupled_machine_after.sort(); + decision.output_to_original_machine_after.sort(); + decision.place_on_decoupled_machine.sort(); println!( "Original outputting to decoupled after: {:?}", - orig_to_decoupled + decision.output_to_decoupled_machine_after ); println!( "Decoupled outputting to original after: {:?}", - decoupled_to_orig + decision.output_to_original_machine_after + ); + println!( + "Placing on decoupled: {:?}", + decision.place_on_decoupled_machine ); - println!("Placing on decoupled: {:?}", place_on_decoupled); - (orig_to_decoupled, decoupled_to_orig, place_on_decoupled) + decision } diff --git a/hydro_optimize/src/decoupler.rs b/hydro_optimize/src/decoupler.rs index 9262972..7acd2be 100644 --- a/hydro_optimize/src/decoupler.rs +++ b/hydro_optimize/src/decoupler.rs @@ -13,25 +13,29 @@ use serde::{Deserialize, Serialize}; use stageleft::quote_type; use syn::visit_mut::VisitMut; -use crate::parse_results::{MultiRunMetadata, get_or_append_run_metadata}; -use crate::repair::{cycle_source_to_sink_input, inject_id, inject_location}; +use crate::repair::{cycle_source_to_sink_input, inject_location}; use crate::rewrites::{ ClusterSelfIdReplace, collection_kind_to_debug_type, deserialize_bincode_with_type, prepend_member_id_to_collection_kind, serialize_bincode_with_type, tee_to_inner_id, }; -#[derive(Clone, Serialize, Deserialize)] -pub struct Decoupler { +#[derive(Clone, Serialize, Deserialize, Default)] +pub struct DecoupleDecision { pub output_to_decoupled_machine_after: Vec, /* The output of the operator at this index should be sent to the decoupled machine */ pub output_to_original_machine_after: Vec, /* The output of the operator at this index should be sent to the original machine */ pub place_on_decoupled_machine: Vec, /* This operator should be placed on the decoupled machine. Only for sources */ +} + +#[derive(Clone, Serialize, Deserialize)] +pub struct Decoupler { + pub decision: DecoupleDecision, pub orig_location: LocationId, pub decoupled_location: LocationId, } fn add_network(node: &mut HydroNode, new_location: &LocationId) { let metadata = node.metadata().clone(); - let parent_id = metadata.location_kind.root().raw_id(); + let parent_id = metadata.location_id.root().key(); let node_content = std::mem::replace(node, HydroNode::Placeholder); // Map from b to (MemberId, b), where MemberId is the id of the decoupled (or original) node we're sending to @@ -52,7 +56,7 @@ fn add_network(node: &mut HydroNode, new_location: &LocationId) { f: f.into(), input: Box::new(node_content), metadata: HydroIrMetadata { - location_kind: metadata.location_kind.root().clone(), // Remove any ticks + location_id: metadata.location_id.root().clone(), // Remove any ticks collection_kind: new_collection_kind.clone(), cardinality: None, tag: None, @@ -68,6 +72,7 @@ fn add_network(node: &mut HydroNode, new_location: &LocationId) { // Set up the network node let output_debug_type = collection_kind_to_debug_type(&original_collection_kind); let network_node = HydroNode::Network { + name: None, serialize_fn: Some(serialize_bincode_with_type(true, &output_debug_type)).map(|e| e.into()), instantiate_fn: DebugInstantiate::Building, deserialize_fn: Some(deserialize_bincode_with_type( @@ -77,7 +82,7 @@ fn add_network(node: &mut HydroNode, new_location: &LocationId) { .map(|e| e.into()), input: Box::new(mapped_node), metadata: HydroIrMetadata { - location_kind: new_location.clone(), + location_id: new_location.clone(), collection_kind: new_collection_kind, cardinality: None, tag: None, @@ -96,7 +101,7 @@ fn add_network(node: &mut HydroNode, new_location: &LocationId) { f: f.into(), input: Box::new(network_node), metadata: HydroIrMetadata { - location_kind: new_location.clone(), + location_id: new_location.clone(), collection_kind: original_collection_kind, cardinality: None, tag: None, @@ -150,19 +155,23 @@ fn decouple_node( tee_to_inner_id_before_rewrites: &HashMap, ) { // Replace location of sources, if necessary - if decoupler.place_on_decoupled_machine.contains(next_stmt_id) { + if decoupler + .decision + .place_on_decoupled_machine + .contains(next_stmt_id) + { match node { HydroNode::Source { metadata, .. } | HydroNode::SingletonSource { metadata, .. } | HydroNode::Network { metadata, .. } => { println!( "Changing source/network destination from {:?} to location {:?}, id: {}", - metadata.location_kind, + metadata.location_id, decoupler.decoupled_location.clone(), next_stmt_id ); metadata - .location_kind + .location_id .swap_root(decoupler.decoupled_location.clone()); } _ => { @@ -177,11 +186,13 @@ fn decouple_node( // Otherwise, replace where the outputs go let new_location = if decoupler + .decision .output_to_decoupled_machine_after .contains(next_stmt_id) { &decoupler.decoupled_location } else if decoupler + .decision .output_to_original_machine_after .contains(next_stmt_id) { @@ -226,7 +237,7 @@ fn fix_cluster_self_id_root(root: &mut HydroRoot, mut locations: ClusterSelfIdRe decoupled_cluster_id, .. } = locations - && root.input_metadata().location_kind.root().raw_id() == decoupled_cluster_id + && root.input_metadata().location_id.root().key() == decoupled_cluster_id { root.visit_debug_expr(|expr| { locations.visit_expr_mut(&mut expr.0); @@ -239,7 +250,7 @@ fn fix_cluster_self_id_node(node: &mut HydroNode, mut locations: ClusterSelfIdRe decoupled_cluster_id, .. } = locations - && node.metadata().location_kind.root().raw_id() == decoupled_cluster_id + && node.metadata().location_id.root().key() == decoupled_cluster_id { node.visit_debug_expr(|expr| { locations.visit_expr_mut(&mut expr.0); @@ -247,12 +258,7 @@ fn fix_cluster_self_id_node(node: &mut HydroNode, mut locations: ClusterSelfIdRe } } -pub fn decouple( - ir: &mut [HydroRoot], - decoupler: &Decoupler, - multi_run_metadata: &RefCell, - iteration: usize, -) { +pub fn decouple(ir: &mut [HydroRoot], decoupler: &Decoupler) { let tee_to_inner_id_before_rewrites = tee_to_inner_id(ir); let mut new_inners = HashMap::new(); traverse_dfir::( @@ -269,18 +275,13 @@ pub fn decouple( }, ); - // Fix IDs since we injected nodes - let new_id_to_old_id = inject_id(ir); - let mut mut_multi_run_metadata = multi_run_metadata.borrow_mut(); - let run_metadata = get_or_append_run_metadata(&mut mut_multi_run_metadata, iteration + 1); - run_metadata.op_id_to_prev_iteration_op_id = new_id_to_old_id; // Fix locations since we changed some let cycle_source_to_sink_input = cycle_source_to_sink_input(ir); inject_location(ir, &cycle_source_to_sink_input); // Fix CLUSTER_SELF_ID for the decoupled node let locations = ClusterSelfIdReplace::Decouple { - orig_cluster_id: decoupler.orig_location.raw_id(), - decoupled_cluster_id: decoupler.decoupled_location.raw_id(), + orig_cluster_id: decoupler.orig_location.key(), + decoupled_cluster_id: decoupler.decoupled_location.key(), }; transform_bottom_up( ir, @@ -293,194 +294,3 @@ pub fn decouple( true, ); } - -#[cfg(test)] -mod tests { - use std::cell::RefCell; - use std::collections::HashSet; - - use hydro_build_utils::insta; - use hydro_deploy::Deployment; - use hydro_lang::compile::builder::FlowBuilder; - use hydro_lang::compile::built::BuiltFlow; - use hydro_lang::compile::ir; - use hydro_lang::location::Location; - use hydro_lang::nondet::nondet; - use hydro_lang::prelude::{Cluster, TCP}; - use stageleft::q; - - use crate::debug::{name_to_id_map, print_id}; - use crate::decoupler::{Decoupler, decouple}; - use crate::repair::inject_id; - - fn decouple_mini_program<'a>( - output_to_decoupled_machine_after: Vec<(&str, i32)>, // name, offset - output_to_original_machine_after: Vec<(&str, i32)>, - place_on_decoupled_machine: Vec<(&str, i32)>, - ) -> ( - Cluster<'a, ()>, - Cluster<'a, ()>, - Cluster<'a, ()>, - BuiltFlow<'a>, - ) { - let builder = FlowBuilder::new(); - let send_cluster = builder.cluster::<()>(); - let recv_cluster = builder.cluster::<()>(); - let decoupled_cluster = builder.cluster::<()>(); - - send_cluster - .source_iter(q!(0..10)) - .map(q!(|a| a + 1)) - .ir_node_named("map") - .broadcast(&recv_cluster, TCP.bincode(), nondet!(/** test */)) - .values() - .assume_ordering(nondet!(/** test */)) - .assume_retries(nondet!(/** test */)) - .for_each(q!(|a| println!("Got it: {}", a))); - - let multi_run_metadata = RefCell::new(vec![]); - let iteration = 0; - let built = builder.optimize_with(|ir| { - inject_id(ir); - print_id(ir); - // Convert named nodes to IDs, accounting for the offset - let name_to_id = name_to_id_map(ir); - let decoupler = Decoupler { - output_to_decoupled_machine_after: output_to_decoupled_machine_after - .into_iter() - .map(|(name, offset)| { - (name_to_id.get(name).cloned().unwrap() as i32 + offset) as usize - }) - .collect(), - output_to_original_machine_after: output_to_original_machine_after - .into_iter() - .map(|(name, offset)| { - (name_to_id.get(name).cloned().unwrap() as i32 + offset) as usize - }) - .collect(), - place_on_decoupled_machine: place_on_decoupled_machine - .into_iter() - .map(|(name, offset)| { - (name_to_id.get(name).cloned().unwrap() as i32 + offset) as usize - }) - .collect(), - decoupled_location: decoupled_cluster.id().clone(), - orig_location: send_cluster.id().clone(), - }; - decouple(ir, &decoupler, &multi_run_metadata, iteration) - }); - (send_cluster, recv_cluster, decoupled_cluster, built) - } - - async fn check_decouple_mini_program( - output_to_decoupled_machine_after: Vec<(&str, i32)>, // name, offset - output_to_original_machine_after: Vec<(&str, i32)>, - place_on_decoupled_machine: Vec<(&str, i32)>, - ) { - let (send_cluster, recv_cluster, decoupled_cluster, built) = decouple_mini_program( - output_to_decoupled_machine_after, - output_to_original_machine_after, - place_on_decoupled_machine, - ); - - // Check outputs - let mut deployment = Deployment::new(); - let nodes = built - .with_cluster(&send_cluster, vec![deployment.Localhost(); 1]) - .with_cluster(&recv_cluster, vec![deployment.Localhost(); 3]) - .with_cluster(&decoupled_cluster, vec![deployment.Localhost(); 1]) - .deploy(&mut deployment); - - deployment.deploy().await.unwrap(); - - let recv_members = nodes.get_cluster(&recv_cluster).members(); - let mut stdouts = vec![]; - for member in recv_members { - use hydro_lang::deploy::DeployCrateWrapper; - - stdouts.push(member.stdout()); - } - - deployment.start().await.unwrap(); - - for mut stdout in stdouts { - let mut expected = HashSet::new(); - let mut received = HashSet::new(); - for i in 1..11 { - received.insert(stdout.recv().await.unwrap()); - expected.insert(format!("Got it: {}", i)); - } - assert_eq!(expected, received); - } - } - - #[test] - fn decouple_after_source_ir() { - let output_to_decoupled_machine_after = vec![("map", -1)]; - let output_to_original_machine_after = vec![]; - let place_on_decoupled_machine = vec![ - // the source of cluster membership (TODO(shadaj): should have a better way of identifying) - ("map", -11), - ]; - - let built = decouple_mini_program( - output_to_decoupled_machine_after, - output_to_original_machine_after, - place_on_decoupled_machine, - ) - .3; - - ir::dbg_dedup_tee(|| { - insta::assert_debug_snapshot!(built.ir()); - }); - } - - #[tokio::test] - async fn decouple_after_source() { - let output_to_decoupled_machine_after = vec![("map", -1)]; - let output_to_original_machine_after = vec![]; - let place_on_decoupled_machine = vec![ - // the source of cluster membership (TODO(shadaj): should have a better way of identifying) - ("map", -11), - ]; - - check_decouple_mini_program( - output_to_decoupled_machine_after, - output_to_original_machine_after, - place_on_decoupled_machine, - ) - .await - } - - #[test] - fn move_source_decouple_map_ir() { - let output_to_decoupled_machine_after = vec![]; - let output_to_original_machine_after = vec![("map", 0)]; - let place_on_decoupled_machine = vec![("map", -1)]; - - let built = decouple_mini_program( - output_to_decoupled_machine_after, - output_to_original_machine_after, - place_on_decoupled_machine, - ) - .3; - - ir::dbg_dedup_tee(|| { - insta::assert_debug_snapshot!(built.ir()); - }); - } - - #[tokio::test] - async fn move_source_decouple_map() { - let output_to_decoupled_machine_after = vec![]; - let output_to_original_machine_after = vec![("map", 0)]; - let place_on_decoupled_machine = vec![("map", -1)]; - - check_decouple_mini_program( - output_to_decoupled_machine_after, - output_to_original_machine_after, - place_on_decoupled_machine, - ) - .await - } -} diff --git a/hydro_optimize/src/deploy.rs b/hydro_optimize/src/deploy.rs index 3c5ab12..77666a7 100644 --- a/hydro_optimize/src/deploy.rs +++ b/hydro_optimize/src/deploy.rs @@ -33,8 +33,8 @@ pub struct ReusableHosts { } // Note: Aws AMIs vary by region. If you are changing the region, please also change the AMI. -const AWS_REGION: &str = "us-east-1"; -const AWS_INSTANCE_AMI: &str = "ami-0e95a5e2743ec9ec9"; // Amazon Linux 2 +const AWS_REGION: &str = "us-west-2"; +const AWS_INSTANCE_AMI: &str = "ami-055a9df0c8c9f681c"; // Amazon Linux 2 impl ReusableHosts { pub fn new(host_type: HostType) -> Self { @@ -44,7 +44,7 @@ impl ReusableHosts { project, }, HostType::Aws => InitializedHostType::Aws { - network: AwsNetwork::new("us-east-1", None), + network: AwsNetwork::new(AWS_REGION, None), }, HostType::Localhost => InitializedHostType::Localhost, }; diff --git a/hydro_optimize/src/deploy_and_analyze.rs b/hydro_optimize/src/deploy_and_analyze.rs index 9ea6ea0..03483ff 100644 --- a/hydro_optimize/src/deploy_and_analyze.rs +++ b/hydro_optimize/src/deploy_and_analyze.rs @@ -1,29 +1,31 @@ -use std::cell::RefCell; use std::collections::HashMap; use std::time::Duration; use hydro_deploy::Deployment; -use hydro_lang::compile::builder::RewriteIrFlowBuilder; use hydro_lang::compile::built::BuiltFlow; use hydro_lang::compile::deploy::DeployResult; use hydro_lang::compile::ir::{HydroNode, HydroRoot, deep_clone, traverse_dfir}; use hydro_lang::deploy::HydroDeploy; use hydro_lang::deploy::deploy_graph::DeployCrateWrapper; +use hydro_lang::location::Location; +use hydro_lang::location::LocationKey; use hydro_lang::location::dynamic::LocationId; -use hydro_lang::prelude::FlowBuilder; +use hydro_lang::prelude::{Cluster, FlowBuilder, Process}; +use hydro_lang::telemetry::Sidecar; use tokio::sync::mpsc::UnboundedReceiver; use crate::decouple_analysis::decouple_analysis; -use crate::decoupler::Decoupler; +use crate::decoupler::{self, Decoupler}; use crate::deploy::ReusableHosts; -use crate::parse_results::{ - MultiRunMetadata, analyze_cluster_results, analyze_send_recv_overheads, - compare_expected_performance, get_or_append_run_metadata, -}; +use crate::parse_results::{RunMetadata, analyze_cluster_results, analyze_send_recv_overheads}; use crate::repair::{cycle_source_to_sink_input, inject_id, remove_counter}; +pub(crate) const METRIC_INTERVAL_SECS: u64 = 1; const COUNTER_PREFIX: &str = "_optimize_counter"; pub(crate) const CPU_USAGE_PREFIX: &str = "HYDRO_OPTIMIZE_CPU:"; +pub(crate) const NETWORK_USAGE_PREFIX: &str = "HYDRO_OPTIMIZE_NET:"; +pub(crate) const LATENCY_PREFIX: &str = "HYDRO_OPTIMIZE_LAT:"; +pub(crate) const THROUGHPUT_PREFIX: &str = "HYDRO_OPTIMIZE_THR:"; // Note: Ensure edits to the match arms are consistent with inject_count_node fn insert_counter_node(node: &mut HydroNode, next_stmt_id: &mut usize, duration: syn::Expr) { @@ -89,7 +91,7 @@ fn insert_counter_node(node: &mut HydroNode, next_stmt_id: &mut usize, duration: } } -fn insert_counter(ir: &mut [HydroRoot], duration: syn::Expr) { +fn insert_counter(ir: &mut [HydroRoot], duration: &syn::Expr) { traverse_dfir::( ir, |_, _| {}, @@ -99,168 +101,282 @@ fn insert_counter(ir: &mut [HydroRoot], duration: syn::Expr) { ); } -async fn track_process_usage_cardinality( - process: &impl DeployCrateWrapper, -) -> (UnboundedReceiver, UnboundedReceiver) { - ( - process.stdout_filter(CPU_USAGE_PREFIX), - process.stdout_filter(COUNTER_PREFIX), - ) +pub struct MetricLogs { + pub throughputs: UnboundedReceiver, + pub latencies: UnboundedReceiver, + pub cpu: UnboundedReceiver, + pub network: UnboundedReceiver, + pub counters: UnboundedReceiver, } -async fn track_cluster_usage_cardinality( +async fn track_process_metrics(process: &impl DeployCrateWrapper) -> MetricLogs { + MetricLogs { + throughputs: process.stdout_filter(THROUGHPUT_PREFIX), + latencies: process.stdout_filter(LATENCY_PREFIX), + cpu: process.stdout_filter(CPU_USAGE_PREFIX), + network: process.stdout_filter(NETWORK_USAGE_PREFIX), + counters: process.stdout_filter(COUNTER_PREFIX), + } +} + +async fn track_cluster_metrics( nodes: &DeployResult<'_, HydroDeploy>, -) -> ( - HashMap<(LocationId, String, usize), UnboundedReceiver>, - HashMap<(LocationId, String, usize), UnboundedReceiver>, -) { - let mut usage_out = HashMap::new(); - let mut cardinality_out = HashMap::new(); +) -> HashMap<(LocationId, String, usize), MetricLogs> { + let mut cluster_to_metrics = HashMap::new(); for (id, name, cluster) in nodes.get_all_clusters() { for (idx, node) in cluster.members().iter().enumerate() { - let (node_usage_out, node_cardinality_out) = - track_process_usage_cardinality(node).await; - usage_out.insert((id.clone(), name.clone(), idx), node_usage_out); - cardinality_out.insert((id.clone(), name.clone(), idx), node_cardinality_out); + let metrics = track_process_metrics(node).await; + cluster_to_metrics.insert((id.clone(), name.to_string(), idx), metrics); } } for (id, name, process) in nodes.get_all_processes() { - let (process_usage_out, process_cardinality_out) = - track_process_usage_cardinality(process).await; - usage_out.insert((id.clone(), name.clone(), 0), process_usage_out); - cardinality_out.insert((id.clone(), name.clone(), 0), process_cardinality_out); + let metrics = track_process_metrics(process).await; + cluster_to_metrics.insert((id.clone(), name.to_string(), 0), metrics); + } + cluster_to_metrics +} + +struct ScriptSidecar { + script: String, + prefix: String, +} + +impl Sidecar for ScriptSidecar { + fn to_expr( + &self, + _flow_name: &str, + location_key: hydro_lang::location::LocationKey, + _location_type: hydro_lang::location::LocationType, + _location_name: &str, + _dfir_ident: &syn::Ident, + ) -> syn::Expr { + let script = &self.script; + let prefix = &self.prefix; + let location_key_str = format!("{:?}", location_key); + + syn::parse_quote! { + async { + use tokio::process::Command; + use tokio::io::{BufReader, AsyncBufReadExt}; + use std::process::Stdio; + + let mut child = Command::new("sh") + .arg("-c") + .arg(#script) + .stdout(Stdio::piped()) + .spawn() + .expect("Failed to spawn sidecar"); + + let stdout = child.stdout.take().expect("Failed to open sidecar stdout"); + let mut reader = BufReader::new(stdout).lines(); + while let Some(line) = reader.next_line().await.expect("Failed to read line from sidecar") { + println!("{}{}: {}", #prefix, #location_key_str, line); + } + + child.wait().await.expect("Failed to wait for sidecar"); + } + } + } +} + +#[derive(Default)] +pub struct ReusableClusters { + named_clusters: Vec<(LocationKey, String, usize)>, +} + +impl ReusableClusters { + pub fn with_cluster(mut self, cluster: Cluster<'_, C>, num_members: usize) -> Self { + self.named_clusters.push(( + cluster.id().key(), + std::any::type_name::().to_string(), + num_members, + )); + self + } +} + +#[derive(Default)] +pub struct ReusableProcesses { + named_processes: Vec<(LocationKey, String)>, +} + +impl ReusableProcesses { + pub fn with_process

(mut self, process: Process<'_, P>) -> Self { + self.named_processes + .push((process.id().key(), std::any::type_name::

().to_string())); + self + } +} + +pub struct Optimizations { + decoupling: bool, + partitioning: bool, + exclude: Vec, + iterations: usize, // Must be at least 1 +} + +impl Default for Optimizations { + fn default() -> Self { + Self { + decoupling: true, + partitioning: true, + exclude: vec![], + iterations: 1, + } } - (usage_out, cardinality_out) } -/// TODO: Return type should be changed to also include Partitioner -#[expect(clippy::too_many_arguments, reason = "Optimizer internal function")] -#[expect( - clippy::await_holding_refcell_ref, - reason = "Await function needs to write to data in RefCell" -)] -pub async fn deploy_and_analyze<'a>( +impl Optimizations { + pub fn with_decoupling(mut self) -> Self { + self.decoupling = true; + self + } + + pub fn with_partitioning(mut self) -> Self { + self.partitioning = true; + self + } + + pub fn excluding(mut self) -> Self { + self.exclude.push(std::any::type_name::().to_string()); + self + } + + pub fn with_iterations(mut self, iterations: usize) -> Self { + assert!(iterations > 0); + self.iterations = iterations; + self + } +} + +pub async fn deploy_and_optimize<'a>( reusable_hosts: &mut ReusableHosts, deployment: &mut Deployment, - builder: BuiltFlow<'a>, - clusters: &Vec<(usize, String, usize)>, - processes: &Vec<(usize, String)>, - exclude_from_decoupling: Vec, + mut builder: BuiltFlow<'a>, + mut clusters: ReusableClusters, + processes: ReusableProcesses, + optimizations: Optimizations, num_seconds: Option, - multi_run_metadata: &RefCell, - iteration: usize, // Starts at 0, how many times this function has been called -) -> ( - RewriteIrFlowBuilder<'a>, - Vec, - Decoupler, - String, - usize, -) { - let counter_output_duration = syn::parse_quote!(std::time::Duration::from_secs(1)); - - // Rewrite with counter tracking - let rewritten_ir_builder = FlowBuilder::rewritten_ir_builder(&builder); - let optimized = builder.optimize_with(|leaf| { - inject_id(leaf); - insert_counter(leaf, counter_output_duration); - }); - let mut ir = deep_clone(optimized.ir()); - - // Insert all clusters & processes - let mut deployable = optimized.into_deploy(); - for (cluster_id, name, num_hosts) in clusters { - deployable = deployable.with_cluster_id_name( - *cluster_id, - name.clone(), - reusable_hosts.get_cluster_hosts(deployment, name.clone(), *num_hosts), - ); - } - for (process_id, name) in processes { - deployable = deployable.with_process_id_name( - *process_id, - name.clone(), - reusable_hosts.get_process_hosts(deployment, name.clone()), - ); +) -> RunMetadata { + if optimizations.iterations > 1 && num_seconds.is_none() { + panic!("Cannot specify multiple iterations without bounding run time"); } - let nodes = deployable.deploy(deployment); - deployment.deploy().await.unwrap(); - - let (mut usage_out, mut cardinality_out) = track_cluster_usage_cardinality(&nodes).await; - - // Wait for user to input a newline - deployment - .start_until(async { - if let Some(seconds) = num_seconds { - // Wait for some number of seconds - tokio::time::sleep(Duration::from_secs(seconds as u64)).await; - } else { - // Wait for a new line - eprintln!("Press enter to stop deployment and analyze results"); - let _ = tokio::io::AsyncBufReadExt::lines(tokio::io::BufReader::new( - tokio::io::stdin(), - )) - .next_line() - .await - .unwrap(); - } - }) - .await - .unwrap(); - - // Add metadata for this run - let mut mut_multi_run_metadata = multi_run_metadata.borrow_mut(); - let run_metadata = get_or_append_run_metadata(&mut mut_multi_run_metadata, iteration); - let (bottleneck, bottleneck_name, bottleneck_num_nodes) = analyze_cluster_results( - &nodes, - &mut ir, - &mut usage_out, - &mut cardinality_out, - run_metadata, - exclude_from_decoupling, - ) - .await; - // Remove HydroNode::Counter (since we don't want to consider decoupling those) - remove_counter(&mut ir); - - // Create a mapping from each CycleSink to its corresponding CycleSource - let cycle_source_to_sink_input = cycle_source_to_sink_input(&mut ir); - analyze_send_recv_overheads(&mut ir, run_metadata); - let send_overhead = run_metadata - .send_overhead - .get(&bottleneck) - .cloned() - .unwrap_or_default(); - let recv_overhead = run_metadata - .recv_overhead - .get(&bottleneck) - .cloned() - .unwrap_or_default(); - - // Check the expected/actual CPU usages before/after rewrites - std::mem::drop(mut_multi_run_metadata); // Release borrow - compare_expected_performance(&mut ir, multi_run_metadata, iteration); - - let (orig_to_decoupled, decoupled_to_orig, place_on_decoupled) = decouple_analysis( - &mut ir, - &bottleneck, - send_overhead, - recv_overhead, - &cycle_source_to_sink_input, - ); - // TODO: Save decoupling decision to file + let counter_output_duration = + syn::parse_quote!(std::time::Duration::from_secs(#METRIC_INTERVAL_SECS)); + let mut run_metadata = RunMetadata::default(); - ( - rewritten_ir_builder, - ir, - Decoupler { - output_to_decoupled_machine_after: orig_to_decoupled, - output_to_original_machine_after: decoupled_to_orig, - place_on_decoupled_machine: place_on_decoupled, - orig_location: bottleneck.clone(), - decoupled_location: LocationId::Process(0), // Placeholder, must replace - }, - bottleneck_name, - bottleneck_num_nodes, - ) + for iteration in 0..optimizations.iterations { + // Rewrite with counter tracking + let mut post_rewrite_builder = FlowBuilder::from_built(&builder); + let optimized = builder.optimize_with(|leaf| { + inject_id(leaf); + insert_counter(leaf, &counter_output_duration); + }); + let mut ir = deep_clone(optimized.ir()); + + // Insert all clusters & processes + let mut deployable = optimized.into_deploy(); + for (cluster_id, name, num_hosts) in clusters.named_clusters.iter() { + deployable = deployable.with_cluster_erased( + *cluster_id, + reusable_hosts.get_cluster_hosts(deployment, name.clone(), *num_hosts), + ); + } + for (process_id, name) in processes.named_processes.iter() { + deployable = deployable.with_process_erased( + *process_id, + reusable_hosts.get_process_hosts(deployment, name.clone()), + ); + } + let network_sidecar = ScriptSidecar { + script: "sar -n DEV 1".to_string(), + prefix: NETWORK_USAGE_PREFIX.to_string(), + }; + let nodes = deployable + .with_sidecar_all(&network_sidecar) // Measure network usage + .deploy(deployment); + deployment.deploy().await.unwrap(); + + let metrics = track_cluster_metrics(&nodes).await; + + // Wait for user to input a newline + deployment + .start_until(async { + if let Some(seconds) = num_seconds { + // Wait for some number of seconds + tokio::time::sleep(Duration::from_secs(seconds as u64)).await; + } else { + // Wait for a new line + eprintln!("Press enter to stop deployment and analyze results"); + let _ = tokio::io::AsyncBufReadExt::lines(tokio::io::BufReader::new( + tokio::io::stdin(), + )) + .next_line() + .await + .unwrap(); + } + }) + .await + .unwrap(); + + // Add metadata for this run, clearing the metadata from the previous run + run_metadata = RunMetadata::default(); + let (bottleneck, bottleneck_name, bottleneck_num_nodes) = analyze_cluster_results( + &nodes, + &mut ir, + metrics, + &mut run_metadata, + &optimizations.exclude, + ) + .await; + // Remove HydroNode::Counter (since we don't want to consider decoupling those) + remove_counter(&mut ir); + + // Create a mapping from each CycleSink to its corresponding CycleSource + let cycle_source_to_sink_input = cycle_source_to_sink_input(&mut ir); + analyze_send_recv_overheads(&mut ir, &mut run_metadata); + let send_overhead = run_metadata + .send_overhead + .get(&bottleneck) + .cloned() + .unwrap_or_default(); + let recv_overhead = run_metadata + .recv_overhead + .get(&bottleneck) + .cloned() + .unwrap_or_default(); + + // TODO: Output overheads to file + + if optimizations.decoupling { + let decision = decouple_analysis( + &mut ir, + &bottleneck, + send_overhead, + recv_overhead, + &cycle_source_to_sink_input, + ); + + // Apply decoupling + let new_cluster = post_rewrite_builder.cluster::<()>(); + let decouple_with_location = Decoupler { + decision, + orig_location: bottleneck, + decoupled_location: new_cluster.id().clone(), + }; + decoupler::decouple(&mut ir, &decouple_with_location); + clusters.named_clusters.push(( + new_cluster.id().key(), + format!("{}-decouple-{}", bottleneck_name, iteration), + bottleneck_num_nodes, + )); + // TODO: Save decoupling decision to file + } + + post_rewrite_builder.replace_ir(ir); + builder = post_rewrite_builder.finalize(); + } + + run_metadata } diff --git a/hydro_optimize/src/lib.rs b/hydro_optimize/src/lib.rs index 7b39bf9..42b41ea 100644 --- a/hydro_optimize/src/lib.rs +++ b/hydro_optimize/src/lib.rs @@ -1,3 +1,6 @@ +#[cfg(stageleft_runtime)] +hydro_lang::setup!(); + pub mod debug; pub mod decouple_analysis; pub mod decoupler; @@ -10,19 +13,8 @@ pub mod partitioner; pub mod repair; pub mod rewrites; -#[cfg(test)] -mod tests; - #[doc(hidden)] #[cfg(doctest)] mod docs { include_mdtests::include_mdtests!("docs/**/*.md*"); } - -#[cfg(test)] -mod test_init { - #[ctor::ctor] - fn init() { - hydro_lang::deploy::init_test(); - } -} diff --git a/hydro_optimize/src/parse_results.rs b/hydro_optimize/src/parse_results.rs index e63cc2e..bcb999c 100644 --- a/hydro_optimize/src/parse_results.rs +++ b/hydro_optimize/src/parse_results.rs @@ -1,35 +1,26 @@ -use std::cell::RefCell; -use std::collections::{HashMap, HashSet}; +use std::collections::HashMap; use hydro_lang::compile::deploy::DeployResult; -use hydro_lang::compile::ir::{ - HydroIrMetadata, HydroIrOpMetadata, HydroNode, HydroRoot, traverse_dfir, -}; +use hydro_lang::compile::ir::{HydroNode, HydroRoot, traverse_dfir}; use hydro_lang::deploy::HydroDeploy; use hydro_lang::deploy::deploy_graph::DeployCrateWrapper; use hydro_lang::location::dynamic::LocationId; use regex::Regex; use tokio::sync::mpsc::UnboundedReceiver; -use crate::debug::print_id; +use crate::deploy_and_analyze::MetricLogs; #[derive(Default)] pub struct RunMetadata { + pub throughput: (f64, f64, f64), // mean - 2 std, mean, mean + 2 std + pub latencies: (f64, f64, f64, u64), // p50, p99, p999, count pub send_overhead: HashMap, pub recv_overhead: HashMap, pub unaccounted_perf: HashMap, // % of perf samples not mapped to any operator pub total_usage: HashMap, // 100% CPU = 1.0 - pub op_id_to_prev_iteration_op_id: HashMap, - pub op_id_to_location: HashMap, - pub op_id_to_cpu_usage: HashMap, - pub op_id_to_recv_cpu_usage: HashMap, - pub op_id_to_cardinality: HashMap, - pub op_id_to_input_op_id: HashMap>, - pub network_op_id: HashSet, + pub network_stats: HashMap, } -pub type MultiRunMetadata = Vec; - pub fn parse_cpu_usage(measurement: String) -> f64 { let regex = Regex::new(r"Total (\d+\.\d+)%").unwrap(); regex @@ -39,6 +30,116 @@ pub fn parse_cpu_usage(measurement: String) -> f64 { .unwrap_or(0f64) } +#[derive(Debug, Default, Clone, Copy)] +pub struct PercentileStats { + pub p50: f64, + pub p99: f64, + pub p999: f64, +} + +#[derive(Debug, Default, Clone)] +pub struct NetworkStats { + pub rx_packets_per_sec: PercentileStats, + pub tx_packets_per_sec: PercentileStats, + pub rx_bytes_per_sec: PercentileStats, + pub tx_bytes_per_sec: PercentileStats, +} + +impl PercentileStats { + fn from_samples(samples: &mut [f64]) -> Self { + if samples.is_empty() { + return Self::default(); + } + samples.sort_by(|a, b| a.partial_cmp(b).unwrap()); + let len = samples.len(); + Self { + p50: samples[len * 50 / 100], + p99: samples[len * 99 / 100], + p999: samples[len.saturating_sub(1).min(len * 999 / 1000)], + } + } +} + +/// Parses `sar -n DEV` output lines and computes p50, p99, p999 for network metrics. +/// Only considers eth0 interface data. +pub fn parse_network_usage(lines: Vec) -> NetworkStats { + let mut rx_pkt_samples = Vec::new(); + let mut tx_pkt_samples = Vec::new(); + let mut rx_kb_samples = Vec::new(); + let mut tx_kb_samples = Vec::new(); + + // sar output format: TIME IFACE rxpck/s txpck/s rxkB/s txkB/s ... + // We look for lines containing "eth0" with numeric data + let eth0_regex = + Regex::new(r"eth0\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)\s+(\d+\.?\d*)").unwrap(); + + for line in &lines { + if let Some(caps) = eth0_regex.captures(line) + && let (Ok(rx_pkt), Ok(tx_pkt), Ok(rx_kb), Ok(tx_kb)) = ( + caps[1].parse::(), + caps[2].parse::(), + caps[3].parse::(), + caps[4].parse::(), + ) + { + rx_pkt_samples.push(rx_pkt); + tx_pkt_samples.push(tx_pkt); + // Convert kB/s to bytes/s + rx_kb_samples.push(rx_kb * 1024.0); + tx_kb_samples.push(tx_kb * 1024.0); + } + } + + NetworkStats { + rx_packets_per_sec: PercentileStats::from_samples(&mut rx_pkt_samples), + tx_packets_per_sec: PercentileStats::from_samples(&mut tx_pkt_samples), + rx_bytes_per_sec: PercentileStats::from_samples(&mut rx_kb_samples), + tx_bytes_per_sec: PercentileStats::from_samples(&mut tx_kb_samples), + } +} + +/// Parses throughput output from `print_parseable_bench_results`. +/// Format: "HYDRO_OPTIMIZE_THR: {lower:.2} - {mean:.2} - {upper:.2} requests/s" +/// Returns the last (lower, mean, upper) tuple found. +pub fn parse_throughput(lines: Vec) -> (f64, f64, f64) { + let regex = + Regex::new(r"(\d+\.?\d*)\s*-\s*(\d+\.?\d*)\s*-\s*(\d+\.?\d*)\s*requests/s").unwrap(); + lines + .iter() + .filter_map(|line| { + regex.captures(line).map(|cap| { + ( + cap[1].parse::().unwrap(), + cap[2].parse::().unwrap(), + cap[3].parse::().unwrap(), + ) + }) + }) + .next_back() + .unwrap() +} + +/// Parses latency output from `print_parseable_bench_results`. +/// Format: "HYDRO_OPTIMIZE_LAT: p50: {p50:.3} | p99 {p99:.3} | p999 {p999:.3} ms ({num_samples} samples)" +/// Returns the last (p50, p99, p999, num_samples) tuple found. +pub fn parse_latency(lines: Vec) -> (f64, f64, f64, u64) { + let regex = Regex::new(r"p50:\s*(\d+\.?\d*)\s*\|\s*p99\s+(\d+\.?\d*)\s*\|\s*p999\s+(\d+\.?\d*)\s*ms\s*\((\d+)\s*samples\)").unwrap(); + lines + .iter() + .filter_map(|line| { + regex.captures(line).map(|cap| { + ( + cap[1].parse::().unwrap(), + cap[2].parse::().unwrap(), + cap[3].parse::().unwrap(), + cap[4].parse::().unwrap(), + ) + }) + }) + .next_back() + .unwrap() +} + /// Returns a map from (operator ID, is network receiver) to percentage of total samples, and the percentage of samples that are unaccounted fn parse_perf(file: String) -> (HashMap<(usize, bool), f64>, f64) { let mut total_samples = 0f64; @@ -120,12 +221,14 @@ pub fn inject_perf(ir: &mut [HydroRoot], folded_data: Vec) -> f64 { } /// Returns (op_id, count) -pub fn parse_counter_usage(measurement: String) -> (usize, usize) { +pub fn parse_counter_usage(lines: Vec, op_to_count: &mut HashMap) { let regex = Regex::new(r"\((\d+)\): (\d+)").unwrap(); - let matches = regex.captures_iter(&measurement).last().unwrap(); - let op_id = matches[1].parse::().unwrap(); - let count = matches[2].parse::().unwrap(); - (op_id, count) + for measurement in lines { + let matches = regex.captures_iter(&measurement).last().unwrap(); + let op_id = matches[1].parse::().unwrap(); + let count = matches[2].parse::().unwrap(); + op_to_count.insert(op_id, count); + } } // Note: Ensure edits to the match arms are consistent with insert_counter_node @@ -201,33 +304,40 @@ pub fn inject_count(ir: &mut [HydroRoot], op_to_count: &HashMap) { ); } +/// Drains all currently available messages from a receiver into a Vec. +/// Uses try_recv() to avoid blocking if the channel is empty but not closed. +fn drain_receiver(receiver: &mut UnboundedReceiver) -> Vec { + let mut lines = Vec::new(); + while let Ok(line) = receiver.try_recv() { + lines.push(line); + } + lines +} + pub async fn analyze_process_results( process: &impl DeployCrateWrapper, ir: &mut [HydroRoot], op_to_count: &mut HashMap, - node_cardinality: &mut UnboundedReceiver, -) -> f64 { - let perf_results = process.tracing_results().unwrap(); + metrics: &mut MetricLogs, +) -> (f64, NetworkStats) { + let underlying = process.underlying(); + let perf_results = underlying.tracing_results().unwrap(); // Inject perf usages into metadata - let unidentified_usage = inject_perf(ir, perf_results.folded_data); - - // Get cardinality data. Allow later values to overwrite earlier ones - while let Some(measurement) = node_cardinality.recv().await { - let (op_id, count) = parse_counter_usage(measurement.clone()); - op_to_count.insert(op_id, count); - } + let unidentified_perf = inject_perf(ir, perf_results.folded_data.clone()); - unidentified_usage + // Parse all metric streams + parse_counter_usage(drain_receiver(&mut metrics.counters), op_to_count); + let network_stats = parse_network_usage(drain_receiver(&mut metrics.network)); + (unidentified_perf, network_stats) } pub async fn analyze_cluster_results( nodes: &DeployResult<'_, HydroDeploy>, ir: &mut [HydroRoot], - usage_out: &mut HashMap<(LocationId, String, usize), UnboundedReceiver>, - cardinality_out: &mut HashMap<(LocationId, String, usize), UnboundedReceiver>, + mut cluster_metrics: HashMap<(LocationId, String, usize), MetricLogs>, run_metadata: &mut RunMetadata, - exclude_from_decoupling: Vec, + exclude: &[String], ) -> (LocationId, String, usize) { let mut max_usage_cluster_id = None; let mut max_usage_cluster_size = 0; @@ -241,8 +351,13 @@ pub async fn analyze_cluster_results( // Iterate through nodes' usages and keep the max usage one let mut max_usage = None; for (idx, _) in cluster.members().iter().enumerate() { - let usage = - get_usage(usage_out.get_mut(&(id.clone(), name.clone(), idx)).unwrap()).await; + let usage = get_usage( + &mut cluster_metrics + .get_mut(&(id.clone(), name.to_string(), idx)) + .unwrap() + .cpu, + ) + .await; println!("Node {} usage: {}", idx, usage); if let Some((prev_usage, _)) = max_usage { if usage > prev_usage { @@ -255,14 +370,14 @@ pub async fn analyze_cluster_results( if let Some((usage, idx)) = max_usage { // Modify IR with perf & cardinality numbers - let node_cardinality = cardinality_out - .get_mut(&(id.clone(), name.clone(), idx)) + let metrics = cluster_metrics + .get_mut(&(id.clone(), name.to_string(), idx)) .unwrap(); - let unidentified_perf = analyze_process_results( + let (unidentified_perf, network_stats) = analyze_process_results( cluster.members().get(idx).unwrap(), ir, &mut op_to_count, - node_cardinality, + metrics, ) .await; @@ -270,11 +385,15 @@ pub async fn analyze_cluster_results( run_metadata .unaccounted_perf .insert(id.clone(), unidentified_perf); + run_metadata + .network_stats + .insert(id.clone(), network_stats.clone()); + println!("Network stats for {}: {:?}", idx, network_stats); // Update cluster with max usage - if max_usage_overall < usage && !exclude_from_decoupling.contains(&name) { + if max_usage_overall < usage && !exclude.contains(&name.to_string()) { max_usage_cluster_id = Some(id); - max_usage_cluster_name = name.clone(); + max_usage_cluster_name = name.to_string(); max_usage_cluster_size = cluster.members().len(); max_usage_overall = usage; println!("The bottleneck is {}", name); @@ -282,6 +401,18 @@ pub async fn analyze_cluster_results( } } + // Collect throughput/latency from all processes (aggregator outputs these) + for metrics in cluster_metrics.values_mut() { + // Filter metrics until we find the Aggregator + let throughputs = drain_receiver(&mut metrics.throughputs); + if throughputs.is_empty() { + continue; + } + + run_metadata.throughput = parse_throughput(throughputs); + run_metadata.latencies = parse_latency(drain_receiver(&mut metrics.latencies)); + } + inject_count(ir, &op_to_count); ( @@ -306,8 +437,8 @@ pub fn analyze_send_recv_overheads(ir: &mut [HydroRoot], run_metadata: &mut RunM input, metadata, .. } = node { - let sender = input.metadata().location_kind.root(); - let receiver = metadata.location_kind.root(); + let sender = input.metadata().location_id.root(); + let receiver = metadata.location_id.root(); // Use cardinality from the network's input, not the network itself. // Reason: Cardinality is measured at ONE recipient, but the sender may be sending to MANY machines. @@ -353,347 +484,3 @@ pub fn analyze_send_recv_overheads(ir: &mut [HydroRoot], run_metadata: &mut RunM println!("Max recv overhead at {:?}: {}", location, overhead); } } - -pub fn get_or_append_run_metadata( - multi_run_metadata: &mut MultiRunMetadata, - iteration: usize, -) -> &mut RunMetadata { - while multi_run_metadata.len() < iteration + 1 { - multi_run_metadata.push(RunMetadata::default()); - } - multi_run_metadata.get_mut(iteration).unwrap() -} - -fn op_id_to_orig_id( - op_id: usize, - multi_run_metadata: &RefCell, - iteration: usize, -) -> Option { - if iteration == 0 { - return Some(op_id); - } - if let Some(prev_iter_id) = multi_run_metadata - .borrow() - .get(iteration) - .unwrap() - .op_id_to_prev_iteration_op_id - .get(&op_id) - { - op_id_to_orig_id(*prev_iter_id, multi_run_metadata, iteration - 1) - } else { - None - } -} - -fn record_metadata( - metadata: &HydroIrOpMetadata, - input_metadata: Vec<&HydroIrMetadata>, - run_metadata: &mut RunMetadata, -) { - let id = metadata.id.unwrap(); - - if let Some(cpu_usage) = metadata.cpu_usage { - run_metadata.op_id_to_cpu_usage.insert(id, cpu_usage); - } - if let Some(network_recv_cpu_usage) = metadata.network_recv_cpu_usage { - run_metadata - .op_id_to_recv_cpu_usage - .insert(id, network_recv_cpu_usage); - } - - let input_ids = input_metadata - .iter() - .filter_map(|input| input.op.id) - .collect(); - run_metadata.op_id_to_input_op_id.insert(id, input_ids); -} - -fn record_metadata_root(root: &mut HydroRoot, run_metadata: &mut RunMetadata) { - record_metadata( - root.op_metadata(), - vec![root.input_metadata()], - run_metadata, - ); - - // Location = input's location, cardinality = input's cardinality - let id = root.op_metadata().id.unwrap(); - let input = root.input_metadata(); - run_metadata - .op_id_to_location - .insert(id, input.location_kind.root().clone()); - if let Some(cardinality) = input.cardinality { - run_metadata.op_id_to_cardinality.insert(id, cardinality); - } -} - -fn record_metadata_node(node: &mut HydroNode, run_metadata: &mut RunMetadata) { - record_metadata(node.op_metadata(), node.input_metadata(), run_metadata); - - let id = node.op_metadata().id.unwrap(); - let metadata = node.metadata(); - run_metadata - .op_id_to_location - .insert(id, metadata.location_kind.root().clone()); - if let Some(cardinality) = metadata.cardinality { - run_metadata.op_id_to_cardinality.insert(id, cardinality); - } - - // Track network nodes - if let HydroNode::Network { .. } = node { - run_metadata.network_op_id.insert(id); - } -} - -fn compare_expected_values( - new_value: f64, - old_value: f64, - new_location: &LocationId, - old_location: &LocationId, - orig_id: usize, - value_name: &str, -) { - println!( - "New location {:?}, old location {:?}: Operator {} {}, new value {:?}, old value {:?}", - new_location, old_location, orig_id, value_name, new_value, old_value - ); -} - -/// If the op_id is a network node, return the sender's location by checking its parent. Otherwise return the operator's location -fn sender_location_if_network(run_metadata: &RunMetadata, op_id: usize) -> &LocationId { - if run_metadata.network_op_id.contains(&op_id) { - let parent = run_metadata.op_id_to_input_op_id.get(&op_id).unwrap(); - assert!( - parent.len() == 1, - "Network operator should have exactly one input" - ); - run_metadata.op_id_to_location.get(&parent[0]).unwrap() - } else { - run_metadata.op_id_to_location.get(&op_id).unwrap() - } -} - -/// Compares the performance of the current iteration against the previous one. -pub fn compare_expected_performance( - ir: &mut [HydroRoot], - multi_run_metadata: &RefCell, - iteration: usize, -) { - print_id(ir); - - // Record run_metadata - traverse_dfir::( - ir, - |root, _| { - record_metadata_root( - root, - multi_run_metadata.borrow_mut().get_mut(iteration).unwrap(), - ); - }, - |node, _| { - record_metadata_node( - node, - multi_run_metadata.borrow_mut().get_mut(iteration).unwrap(), - ); - }, - ); - - // Nothing to compare against for the 1st run, return - if iteration == 0 { - return; - } - - // Compare against previous runs - let borrowed_multi_run_metadata = multi_run_metadata.borrow(); - let run_metadata = borrowed_multi_run_metadata.get(iteration).unwrap(); - let prev_run_metadata = borrowed_multi_run_metadata.get(iteration - 1).unwrap(); - - // 1. Compare operators with an orig_id - for (op_id, prev_id) in run_metadata.op_id_to_prev_iteration_op_id.iter() { - let orig_id = op_id_to_orig_id(*op_id, multi_run_metadata, iteration).unwrap(); - let new_location = run_metadata.op_id_to_location.get(op_id).unwrap(); - let old_location = prev_run_metadata.op_id_to_location.get(prev_id).unwrap(); - - // Compare CPU usage - if let Some(cpu_usage) = run_metadata.op_id_to_cpu_usage.get(op_id) - && let Some(prev_cpu_usage) = prev_run_metadata.op_id_to_cpu_usage.get(prev_id) - { - compare_expected_values( - *cpu_usage, - *prev_cpu_usage, - sender_location_if_network(run_metadata, *op_id), - sender_location_if_network(prev_run_metadata, *prev_id), - orig_id, - "CPU usage", - ); - } - - // Compare recv CPU usage - if let Some(network_recv_cpu_usage) = run_metadata.op_id_to_recv_cpu_usage.get(op_id) - && let Some(prev_network_recv_cpu_usage) = - prev_run_metadata.op_id_to_recv_cpu_usage.get(prev_id) - { - compare_expected_values( - *network_recv_cpu_usage, - *prev_network_recv_cpu_usage, - new_location, - old_location, - orig_id, - "recv CPU usage", - ); - } - - // Compare cardinality - if let Some(cardinality) = run_metadata.op_id_to_cardinality.get(op_id) - && let Some(prev_cardinality) = prev_run_metadata.op_id_to_cardinality.get(prev_id) - { - compare_expected_values( - *cardinality as f64, - *prev_cardinality as f64, - new_location, - old_location, - orig_id, - "cardinality", - ); - } - } - - // 2. Compare operators without orig_id (added by decoupling) - let mut prev_id_and_loc_to_send_usage = HashMap::new(); // (id in prev iteration, LocationId of sender) -> CPU usage of decoupled output nodes - let mut prev_id_and_loc_to_recv_usage = HashMap::new(); // (id in prev iteration, LocationId of receiver) -> CPU usage of decoupled input nodes - for (id, location) in run_metadata.op_id_to_location.iter() { - if run_metadata.op_id_to_prev_iteration_op_id.contains_key(id) { - continue; - } - - // A. Find the ancestor that existed in the previous iteration - let mut parent_id = None; - let mut parent_prev_id = None; - let mut curr_id = *id; - while parent_prev_id.is_none() { - let inputs = run_metadata.op_id_to_input_op_id.get(&curr_id).unwrap(); - assert_eq!( - inputs.len(), - 1, - "Warning: Location {:?}: Created operator {} has {} inputs, expected 1", - location, - id, - inputs.len() - ); - let input = inputs[0]; - - if let Some(prev_id) = run_metadata.op_id_to_prev_iteration_op_id.get(&input) { - parent_prev_id = Some(*prev_id); - parent_id = Some(input); - } else { - curr_id = input; - } - } - - // B. Add this operator's usages - let parent_location = run_metadata - .op_id_to_location - .get(&parent_id.unwrap()) - .unwrap(); - let is_network = run_metadata.network_op_id.contains(id); - - if parent_location == location || is_network { - // This operator is on the sender - if let Some(cpu_usage) = run_metadata.op_id_to_cpu_usage.get(id) { - prev_id_and_loc_to_send_usage - .entry(( - parent_prev_id.unwrap(), - sender_location_if_network(run_metadata, *id), - )) - .and_modify(|usage| { - *usage += *cpu_usage; - }) - .or_insert_with(|| *cpu_usage); - } - } - if parent_location != location || is_network { - // This operator is on the recipient - let cpu_usage = if is_network { - run_metadata.op_id_to_recv_cpu_usage.get(id) - } else { - run_metadata.op_id_to_cpu_usage.get(id) - }; - - if let Some(cpu_usage) = cpu_usage { - prev_id_and_loc_to_recv_usage - .entry((parent_prev_id.unwrap(), location.clone())) - .and_modify(|usage| { - *usage += *cpu_usage; - }) - .or_insert_with(|| *cpu_usage); - } - } - } - // C. Compare changes in send CPU usage - for ((prev_id, location), cpu_usage) in prev_id_and_loc_to_send_usage { - if let Some(prev_cardinality) = prev_run_metadata.op_id_to_cardinality.get(&prev_id) - && let Some(prev_location) = prev_run_metadata.op_id_to_location.get(&prev_id) - { - compare_expected_values( - cpu_usage, - prev_run_metadata - .send_overhead - .get(prev_location) - .cloned() - .unwrap_or_default() - * *prev_cardinality as f64, - location, - prev_location, - op_id_to_orig_id(prev_id, multi_run_metadata, iteration - 1).unwrap(), - "decoupled send CPU usage", - ); - } - } - // D. Compare changes in recv CPU usage - for ((prev_id, location), cpu_usage) in prev_id_and_loc_to_recv_usage { - if let Some(prev_cardinality) = prev_run_metadata.op_id_to_cardinality.get(&prev_id) - && let Some(prev_location) = prev_run_metadata.op_id_to_location.get(&prev_id) - { - compare_expected_values( - cpu_usage, - prev_run_metadata - .recv_overhead - .get(prev_location) - .cloned() - .unwrap_or_default() - * *prev_cardinality as f64, - &location, - prev_location, - op_id_to_orig_id(prev_id, multi_run_metadata, iteration - 1).unwrap(), - "decoupled recv CPU usage", - ); - } - } - - // 3. Compare changes in unexplained CPU usage - for (location, unexplained) in &run_metadata.unaccounted_perf { - if let Some(old_unexplained) = prev_run_metadata.unaccounted_perf.get(location) { - println!( - "Location {:?}'s unexplained CPU usage changed from {} to {}", - location, old_unexplained, unexplained - ); - } - } - - // 4. Compare changes in send/recv overheads - for (location, send_overhead) in &run_metadata.send_overhead { - if let Some(old_send_overhead) = prev_run_metadata.send_overhead.get(location) { - println!( - "Location {:?}'s send overhead changed from {} to {}", - location, old_send_overhead, send_overhead - ); - } - } - for (location, recv_overhead) in &run_metadata.recv_overhead { - if let Some(old_recv_overhead) = prev_run_metadata.recv_overhead.get(location) { - println!( - "Location {:?}'s recv overhead changed from {} to {}", - location, old_recv_overhead, recv_overhead - ); - } - } -} diff --git a/hydro_optimize/src/partition_node_analysis.rs b/hydro_optimize/src/partition_node_analysis.rs index 4ddfa02..539576e 100644 --- a/hydro_optimize/src/partition_node_analysis.rs +++ b/hydro_optimize/src/partition_node_analysis.rs @@ -35,7 +35,7 @@ fn all_inputs(ir: &mut [HydroRoot], location: &LocationId) -> Vec { traverse_dfir::( ir, |_, _| {}, - |node, next_stmt_id| match get_network_type(node, location.root().raw_id()) { + |node, next_stmt_id| match get_network_type(node, &location.root().key()) { Some(NetworkType::Recv) | Some(NetworkType::SendRecv) => { inputs.push(*next_stmt_id); } @@ -87,7 +87,7 @@ fn input_dependency_analysis_node( metadata: &mut InputDependencyMetadata, ) { // Filter unrelated nodes - if metadata.location != *node.metadata().location_kind.root() { + if metadata.location != *node.metadata().location_id.root() { return; } @@ -606,7 +606,7 @@ pub fn partitioning_analysis( Vec>, BTreeMap, )> { - let op_id_to_parents = op_id_to_inputs(ir, Some(location), cycle_source_to_sink_input); + let op_id_to_parents = op_id_to_inputs(ir, Some(&location.key()), cycle_source_to_sink_input); let dependency_metadata = input_dependency_analysis(ir, location, op_id_to_parents); let mut possible_partitionings = BTreeMap::new(); @@ -793,7 +793,7 @@ mod tests { #[test] fn test_map_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -812,7 +812,7 @@ mod tests { #[test] fn test_map_complex_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -832,7 +832,7 @@ mod tests { #[test] fn test_filter_map_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -851,7 +851,7 @@ mod tests { #[test] fn test_filter_map_remove_none_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -878,7 +878,7 @@ mod tests { #[test] fn test_chain_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input = cluster1 @@ -903,7 +903,7 @@ mod tests { #[test] fn test_cross_product_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input = cluster1 @@ -928,7 +928,7 @@ mod tests { #[test] fn test_join_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input = cluster1 @@ -954,7 +954,7 @@ mod tests { #[test] fn test_enumerate_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -972,7 +972,7 @@ mod tests { #[test] fn test_reduce_keyed_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -999,7 +999,7 @@ mod tests { #[test] fn test_reduce_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); cluster1 @@ -1024,7 +1024,7 @@ mod tests { #[test] fn test_cycle_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input = cluster1 @@ -1055,7 +1055,7 @@ mod tests { #[test] fn test_nested_cycle_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input = cluster1 @@ -1090,7 +1090,7 @@ mod tests { #[test] fn test_source_iter_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input = cluster1 @@ -1115,7 +1115,7 @@ mod tests { #[test] fn test_multiple_inputs_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input1 = cluster1 @@ -1158,7 +1158,7 @@ mod tests { #[test] fn test_difference_partitionable() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster1 = builder.cluster::<()>(); let cluster2 = builder.cluster::<()>(); let input1 = cluster1 diff --git a/hydro_optimize/src/partition_syn_analysis.rs b/hydro_optimize/src/partition_syn_analysis.rs index ad6a869..ccad20c 100644 --- a/hydro_optimize/src/partition_syn_analysis.rs +++ b/hydro_optimize/src/partition_syn_analysis.rs @@ -860,7 +860,7 @@ mod tests { #[test] fn test_tuple_input_assignment() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -873,7 +873,7 @@ mod tests { #[test] fn test_tuple_input_implicit_nesting() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -886,7 +886,7 @@ mod tests { #[test] fn test_tuple_assignment() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -902,7 +902,7 @@ mod tests { #[test] fn test_tuple_creation() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -918,7 +918,7 @@ mod tests { #[test] fn test_tuple_output_implicit_nesting() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -934,7 +934,7 @@ mod tests { #[test] fn test_tuple_input_output_implicit_nesting() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -950,7 +950,7 @@ mod tests { #[test] fn test_tuple_no_block() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -963,7 +963,7 @@ mod tests { #[test] fn test_if_shared_intersection() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -980,7 +980,7 @@ mod tests { #[test] fn test_if_conflicting_intersection() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -996,7 +996,7 @@ mod tests { #[test] fn test_if_implicit_expansion() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1011,7 +1011,7 @@ mod tests { #[test] fn test_if_let() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1036,7 +1036,7 @@ mod tests { #[test] fn test_else_if() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1064,7 +1064,7 @@ mod tests { #[test] fn test_if_option() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1077,7 +1077,7 @@ mod tests { #[test] fn test_match() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1099,7 +1099,7 @@ mod tests { #[test] fn test_match_assign() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1120,7 +1120,7 @@ mod tests { #[test] fn test_block() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1140,7 +1140,7 @@ mod tests { #[test] fn test_nested_block() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1163,7 +1163,7 @@ mod tests { #[test] fn test_block_shadowing() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1186,7 +1186,7 @@ mod tests { #[test] fn test_full_assignment() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([(1, 2, (3, (4,)), 5)])) @@ -1243,7 +1243,7 @@ mod tests { #[test] fn test_nested_struct() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([TestStruct { @@ -1275,7 +1275,7 @@ mod tests { #[test] fn test_nested_struct_declaration() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([TestStruct { @@ -1305,7 +1305,7 @@ mod tests { #[test] fn test_struct_implicit_field() { - let builder = FlowBuilder::new(); + let mut builder = FlowBuilder::new(); let cluster = builder.cluster::<()>(); cluster .source_iter(q!([TestStruct { diff --git a/hydro_optimize/src/partitioner.rs b/hydro_optimize/src/partitioner.rs index 5afd3fd..68c42a9 100644 --- a/hydro_optimize/src/partitioner.rs +++ b/hydro_optimize/src/partitioner.rs @@ -3,6 +3,7 @@ use std::collections::HashMap; use hydro_lang::compile::ir::{HydroNode, HydroRoot, traverse_dfir}; use hydro_lang::deploy::HydroDeploy; +use hydro_lang::location::LocationKey; use hydro_lang::location::dynamic::LocationId; use serde::{Deserialize, Serialize}; use syn::visit_mut::{self, VisitMut}; @@ -19,14 +20,14 @@ use crate::rewrites::{ pub struct Partitioner { pub nodes_to_partition: HashMap, /* ID of node right before a Network -> what to partition on */ pub num_partitions: usize, - pub location_id: usize, - pub new_cluster_id: Option, /* If we're partitioning a process, then a new cluster will be created and we'll need to substitute the old ID with this one */ + pub location_id: LocationKey, + pub new_cluster_id: Option, /* If we're partitioning a process, then a new cluster will be created and we'll need to substitute the old ID with this one */ } /// Don't expose partition members to the cluster pub struct ClusterMembersReplace { pub num_partitions: usize, - pub location_id: usize, + pub location_id: LocationKey, pub op_id: usize, } @@ -71,20 +72,20 @@ fn replace_membership_info(node: &mut HydroNode, partitioner: &Partitioner, op_i num_partitions, location_id, .. - } = *partitioner; + } = partitioner; node.visit_debug_expr(|expr| { let mut visitor = ClusterMembersReplace { - num_partitions, - location_id, + num_partitions: *num_partitions, + location_id: *location_id, op_id, }; visitor.visit_expr_mut(&mut expr.0); }); node.visit_debug_expr(|expr| { let mut visitor = ClusterSelfIdReplace::Partition { - num_partitions, - partitioned_cluster_id: location_id, + num_partitions: *num_partitions, + partitioned_cluster_id: *location_id, op_id, }; visitor.visit_expr_mut(&mut expr.0); @@ -184,7 +185,7 @@ fn replace_receiver_src_id(node: &mut HydroNode, partitioner: &Partitioner, op_i if let HydroNode::Network { input, metadata, .. } = node - && input.metadata().location_kind.root().raw_id() == *location_id + && input.metadata().location_id.root().key() == *location_id { println!( "Rewriting network on op {} so the sender's ID is mapped from the partition to the original sender", @@ -211,7 +212,7 @@ fn replace_receiver_src_id(node: &mut HydroNode, partitioner: &Partitioner, op_i fn replace_network_serialization(node: &mut HydroNode, partitioner: &Partitioner, op_id: usize) { let Partitioner { new_cluster_id, .. } = partitioner; - if let Some(network_type) = get_network_type(node, new_cluster_id.unwrap()) { + if let Some(network_type) = get_network_type(node, new_cluster_id.as_ref().unwrap()) { let HydroNode::Network { serialize_fn, deserialize_fn, @@ -256,16 +257,6 @@ fn replace_network_serialization(node: &mut HydroNode, partitioner: &Partitioner } } -fn replace_process_location_id( - location: &mut LocationId, - process_location: usize, - cluster_location: usize, -) { - if location.root().raw_id() == process_location { - location.swap_root(LocationId::Cluster(cluster_location)); - } -} - /// If we're partitioning a process into a cluster, we need to replace references to its location fn replace_process_node_location(node: &mut HydroNode, partitioner: &Partitioner) { let Partitioner { @@ -276,11 +267,10 @@ fn replace_process_node_location(node: &mut HydroNode, partitioner: &Partitioner if let Some(new_id) = new_cluster_id { // Change any HydroNodes with a location field - replace_process_location_id( - &mut node.metadata_mut().location_kind, - *location_id, - *new_id, - ); + let location = &mut node.metadata_mut().location_id; + if location.root().key() == *location_id { + location.swap_root(LocationId::Cluster(*new_id)); + } } } @@ -288,7 +278,7 @@ fn replace_process_node_location(node: &mut HydroNode, partitioner: &Partitioner fn remove_sender_id_from_receiver(node: &mut HydroNode, partitioner: &Partitioner, op_id: usize) { let Partitioner { new_cluster_id, .. } = partitioner; - let network_type = get_network_type(node, new_cluster_id.unwrap()); + let network_type = get_network_type(node, new_cluster_id.as_ref().unwrap()); match network_type { Some(NetworkType::Send) | Some(NetworkType::SendRecv) => { println!("Removing sender ID from receiver for op {}", op_id); diff --git a/hydro_optimize/src/repair.rs b/hydro_optimize/src/repair.rs index 857e35f..5894437 100644 --- a/hydro_optimize/src/repair.rs +++ b/hydro_optimize/src/repair.rs @@ -103,7 +103,7 @@ fn inject_location_node( | HydroNode::ExternalInput { metadata, .. } | HydroNode::Network { metadata, .. } => { // Get location sources from the nodes must have it be correct: Source and Network - id_to_location.insert(op_id, metadata.location_kind.clone()); + id_to_location.insert(op_id, metadata.location_id.clone()); return false; } HydroNode::Tee { inner, .. } => { @@ -124,8 +124,8 @@ fn inject_location_node( for input in inputs { let location = id_to_location.get(&input).cloned(); if let Some(location) = location { - metadata.location_kind.swap_root(location.root().clone()); - id_to_location.insert(op_id, metadata.location_kind.clone()); + metadata.location_id.swap_root(location.root().clone()); + id_to_location.insert(op_id, metadata.location_id.clone()); return false; } } diff --git a/hydro_optimize/src/rewrites.rs b/hydro_optimize/src/rewrites.rs index 7a26a3b..b183246 100644 --- a/hydro_optimize/src/rewrites.rs +++ b/hydro_optimize/src/rewrites.rs @@ -1,14 +1,14 @@ use std::cell::RefCell; use std::collections::HashMap; -use hydro_lang::compile::builder::{FlowBuilder, RewriteIrFlowBuilder}; +use hydro_lang::compile::builder::FlowBuilder; use hydro_lang::compile::ir::{ BoundKind, CollectionKind, DebugType, HydroIrMetadata, HydroNode, HydroRoot, KeyedSingletonBoundKind, StreamOrder, StreamRetry, deep_clone, traverse_dfir, }; use hydro_lang::deploy::HydroDeploy; use hydro_lang::location::dynamic::LocationId; -use hydro_lang::location::{Cluster, Location}; +use hydro_lang::location::{Cluster, Location, LocationKey}; use proc_macro2::{Span, TokenStream}; use quote::quote; use serde::{Deserialize, Serialize}; @@ -37,46 +37,43 @@ pub type Rewrites = Vec; /// Returns Vec(Cluster, number of nodes) for each created cluster and a new FlowBuilder pub fn replay<'a>( rewrites: &mut Rewrites, - builder: RewriteIrFlowBuilder<'a>, + builder: &mut FlowBuilder<'a>, ir: &[HydroRoot], -) -> (Vec<(Cluster<'a, ()>, usize)>, FlowBuilder<'a>) { +) -> Vec<(Cluster<'a, ()>, usize)> { let mut new_clusters = vec![]; - let multi_run_metadata = RefCell::new(vec![]); - let new_builder = builder.build_with(|builder| { - let mut ir = deep_clone(ir); + let mut ir = deep_clone(ir); - // Apply decoupling/partitioning in order - for rewrite_metadata in rewrites.iter_mut() { - let new_cluster = builder.cluster::<()>(); - match &mut rewrite_metadata.rewrite { - Rewrite::Decouple(decoupler) => { - decoupler.decoupled_location = new_cluster.id().clone(); - decoupler::decouple(&mut ir, decoupler, &multi_run_metadata, 0); - } - Rewrite::Partition(_partitioner) => { - panic!("Partitioning is not yet replayable"); - } + // Apply decoupling/partitioning in order + for rewrite_metadata in rewrites.iter_mut() { + let new_cluster = builder.cluster::<()>(); + match &mut rewrite_metadata.rewrite { + Rewrite::Decouple(decoupler) => { + decoupler.decoupled_location = new_cluster.id().clone(); + decoupler::decouple(&mut ir, decoupler); + } + Rewrite::Partition(_partitioner) => { + panic!("Partitioning is not yet replayable"); } - new_clusters.push((new_cluster, rewrite_metadata.num_nodes)); } + new_clusters.push((new_cluster, rewrite_metadata.num_nodes)); + } - ir - }); + builder.replace_ir(ir); - (new_clusters, new_builder) + new_clusters } /// Replace CLUSTER_SELF_ID with the ID of the original node the partition is assigned to #[derive(Copy, Clone)] pub enum ClusterSelfIdReplace { Decouple { - orig_cluster_id: usize, - decoupled_cluster_id: usize, + orig_cluster_id: LocationKey, + decoupled_cluster_id: LocationKey, }, Partition { num_partitions: usize, - partitioned_cluster_id: usize, + partitioned_cluster_id: LocationKey, op_id: usize, }, } @@ -128,13 +125,13 @@ impl VisitMut for ClusterSelfIdReplace { /// Converts input metadata to IDs, filtering by location if provided pub fn relevant_inputs( input_metadatas: Vec<&HydroIrMetadata>, - location: Option<&LocationId>, + location: Option<&LocationKey>, ) -> Vec { input_metadatas .iter() .filter_map(|input_metadata| { if let Some(location) = location - && input_metadata.location_kind.root() != location + && input_metadata.location_id.root().key() != *location { None } else { @@ -147,7 +144,7 @@ pub fn relevant_inputs( /// Creates a mapping from op_id to its input op_ids, filtered by location if provided pub fn op_id_to_inputs( ir: &mut [HydroRoot], - location: Option<&LocationId>, + location: Option<&LocationKey>, cycle_source_to_sink_input: &HashMap, ) -> HashMap> { let mapping = RefCell::new(HashMap::new()); @@ -199,15 +196,15 @@ pub enum NetworkType { SendRecv, } -pub fn get_network_type(node: &HydroNode, location: usize) -> Option { +pub fn get_network_type(node: &HydroNode, location: &LocationKey) -> Option { let mut is_to_us = false; let mut is_from_us = false; if let HydroNode::Network { input, .. } = node { - if input.metadata().location_kind.root().raw_id() == location { + if input.metadata().location_id.root().key() == *location { is_from_us = true; } - if node.metadata().location_kind.root().raw_id() == location { + if node.metadata().location_id.root().key() == *location { is_to_us = true; } diff --git a/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__decouple_after_source_ir.snap b/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__decouple_after_source_ir.snap index 7e4f1ee..5b1b9e0 100644 --- a/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__decouple_after_source_ir.snap +++ b/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__decouple_after_source_ir.snap @@ -42,7 +42,7 @@ expression: built.ir() ), ), metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: Stream { @@ -54,7 +54,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: Stream { @@ -66,7 +66,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: KeyedStream { @@ -79,7 +79,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: KeyedSingleton { @@ -90,7 +90,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -104,7 +104,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -118,7 +118,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -134,7 +134,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -149,7 +149,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -165,7 +165,7 @@ expression: built.ir() }, trusted: true, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -199,7 +199,7 @@ expression: built.ir() stageleft :: runtime_support :: type_hint :: < std :: ops :: Range < i32 > > ({ use crate :: __staged :: __deps :: * ; use crate :: __staged :: decoupler :: tests :: * ; 0 .. 10 }), ), metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: Stream { @@ -211,7 +211,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: KeyedStream { @@ -224,7 +224,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: KeyedStream { @@ -237,7 +237,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: Stream { @@ -249,7 +249,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: Stream { @@ -261,7 +261,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -276,7 +276,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -291,7 +291,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 2, @@ -307,7 +307,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: KeyedStream { @@ -320,7 +320,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { @@ -332,7 +332,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: KeyedStream { @@ -345,7 +345,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { @@ -357,7 +357,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { @@ -370,7 +370,7 @@ expression: built.ir() }, trusted: false, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { diff --git a/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__move_source_decouple_map_ir.snap b/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__move_source_decouple_map_ir.snap index 6eed208..621e9a7 100644 --- a/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__move_source_decouple_map_ir.snap +++ b/hydro_optimize/src/snapshots/hydro_optimize__decoupler__tests__move_source_decouple_map_ir.snap @@ -42,7 +42,7 @@ expression: built.ir() ), ), metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: Stream { @@ -54,7 +54,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: Stream { @@ -66,7 +66,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: KeyedStream { @@ -79,7 +79,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: KeyedSingleton { @@ -90,7 +90,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -104,7 +104,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -118,7 +118,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -134,7 +134,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -149,7 +149,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -165,7 +165,7 @@ expression: built.ir() }, trusted: true, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -199,7 +199,7 @@ expression: built.ir() stageleft :: runtime_support :: type_hint :: < std :: ops :: Range < i32 > > ({ use crate :: __staged :: __deps :: * ; use crate :: __staged :: decoupler :: tests :: * ; 0 .. 10 }), ), metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: Stream { @@ -211,7 +211,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: Stream { @@ -223,7 +223,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 2, ), collection_kind: KeyedStream { @@ -236,7 +236,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: KeyedStream { @@ -249,7 +249,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: Stream { @@ -261,7 +261,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -276,7 +276,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -291,7 +291,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Tick( + location_id: Tick( 0, Cluster( 0, @@ -307,7 +307,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 0, ), collection_kind: KeyedStream { @@ -320,7 +320,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { @@ -332,7 +332,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: KeyedStream { @@ -345,7 +345,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { @@ -357,7 +357,7 @@ expression: built.ir() }, }, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { @@ -370,7 +370,7 @@ expression: built.ir() }, trusted: false, metadata: HydroIrMetadata { - location_kind: Cluster( + location_id: Cluster( 1, ), collection_kind: Stream { diff --git a/hydro_optimize/src/tests/mod.rs b/hydro_optimize/src/tests/mod.rs deleted file mode 100644 index db3f544..0000000 --- a/hydro_optimize/src/tests/mod.rs +++ /dev/null @@ -1,67 +0,0 @@ -use std::cell::RefCell; -use std::collections::HashMap; - -use hydro_build_utils::insta; -use hydro_lang::deploy::HydroDeploy; -use hydro_lang::location::Location; -use hydro_lang::prelude::*; - -use crate::decoupler; -use crate::partitioner::Partitioner; - -mod two_pc; - -struct DecoupledCluster; - -#[test] -fn decoupled_compute_pi_ir() { - let builder = FlowBuilder::new(); - let (cluster, _) = hydro_test::cluster::compute_pi::compute_pi(&builder, 8192); - let decoupled_cluster = builder.cluster::(); - let decoupler = decoupler::Decoupler { - output_to_decoupled_machine_after: vec![4], - output_to_original_machine_after: vec![], - place_on_decoupled_machine: vec![], - decoupled_location: decoupled_cluster.id().clone(), - orig_location: cluster.id().clone(), - }; - let multi_run_metadata = RefCell::new(vec![]); - let mut built = builder - .optimize_with(|roots| decoupler::decouple(roots, &decoupler, &multi_run_metadata, 0)) - .into_deploy::(); - - insta::assert_debug_snapshot!(built.ir()); - - for (id, ir) in built.preview_compile().all_dfir() { - insta::with_settings!({ - snapshot_suffix => format!("surface_graph_{id}"), - }, { - insta::assert_snapshot!(ir.surface_syntax_string()); - }); - } -} - -#[test] -fn partitioned_simple_cluster_ir() { - let builder = FlowBuilder::new(); - let (_, cluster) = hydro_test::cluster::simple_cluster::simple_cluster(&builder); - let partitioner = Partitioner { - nodes_to_partition: HashMap::from([(5, vec!["1".to_string()])]), - num_partitions: 3, - location_id: cluster.id().raw_id(), - new_cluster_id: None, - }; - let mut built = builder - .optimize_with(|roots| crate::partitioner::partition(roots, &partitioner)) - .into_deploy::(); - - insta::assert_debug_snapshot!(built.ir()); - - for (id, ir) in built.preview_compile().all_dfir() { - insta::with_settings!({ - snapshot_suffix => format!("surface_graph_{id}") - }, { - insta::assert_snapshot!(ir.surface_syntax_string()); - }); - } -} diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir.snap deleted file mode 100644 index b3fdca1..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir.snap +++ /dev/null @@ -1,445 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u64 , u64) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (inside , total) | { println ! ("pi: {} ({} trials)" , 4.0 * inside as f64 / total as f64 , total) ; } }), - input: ObserveNonDet { - inner: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((u64 , u64) , ()) , (u64 , u64) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , (u64 , u64) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , (inside_batch , total_batch) | { * inside += inside_batch ; * total += total_batch ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: compute_pi :: Worker > , (u64 , u64)) , (u64 , u64) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u64 , u64) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: compute_pi :: Worker > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u64 , u64) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (u64 , u64) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | | (0u64 , 0u64) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , bool , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __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 hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (x , y) | x * x + y * y < 1.0 }), - input: Map { - f: | (_ , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (f64 , f64)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (f64 , f64) > (& b) . unwrap ()) }, - ), - input: Map { - f: | b | (:: hydro_lang :: location :: MemberId :: < () > :: from_tagless (__hydro_lang_cluster_self_id_0 . clone ()) , b), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , (f64 , f64) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | _ | rand :: random :: < (f64 , f64) > () }), - input: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; | _ | () }), - input: FlatMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , std :: ops :: Range < usize > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let batch_size__free = { use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; let batch_size__free = 8192usize ; batch_size__free } ; move | _ | 0 .. batch_size__free }), - input: Source { - source: Spin, - metadata: HydroIrMetadata { - location_kind: Cluster( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (f64 , f64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (f64 , f64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (f64 , f64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (f64 , f64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: compute_pi :: Worker > , (u64 , u64)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: compute_pi :: Worker >, - value_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: compute_pi :: Worker > , (u64 , u64)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u64 , u64), - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: ((u64 , u64) , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (u64 , u64), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u64 , u64), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, -] diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_0.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_0.snap deleted file mode 100644 index 94ca922..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_0.snap +++ /dev/null @@ -1,18 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: ir.surface_syntax_string() ---- -1v1 = spin (); -2v1 = flat_map (stageleft :: runtime_support :: fn1_type_hint :: < () , std :: ops :: Range < usize > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let batch_size__free = { use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __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 hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; | _ | () })); -4v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < () , (f64 , f64) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | _ | rand :: random :: < (f64 , f64) > () })); -5v1 = map (| b | (:: hydro_lang :: location :: MemberId :: < () > :: from_tagless (__hydro_lang_cluster_self_id_0 . clone ()) , b)); -6v1 = map (:: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (f64 , f64)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) })); -7v1 = dest_sink (DUMMY_SINK); - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -4v1 -> 5v1; -6v1 -> 7v1; -5v1 -> 6v1; diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_1.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_1.snap deleted file mode 100644 index 03ebc36..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_1.snap +++ /dev/null @@ -1,32 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_stream (DUMMY_SOURCE); -2v1 = map (| res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: compute_pi :: Worker > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u64 , u64) > (& b) . unwrap ()) }); -3v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: compute_pi :: Worker > , (u64 , u64)) , (u64 , u64) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v })); -4v1 = reduce :: < 'static > (stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , (u64 , u64) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , (inside_batch , total_batch) | { * inside += inside_batch ; * total += total_batch ; } })); -5v1 = source_stream ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }); -6v1 = reduce :: < 'tick > (stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } })); -7v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () })); -8v1 = cross_singleton (); -9v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < ((u64 , u64) , ()) , (u64 , u64) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d })); -10v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < (u64 , u64) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (inside , total) | { println ! ("pi: {} ({} trials)" , 4.0 * inside as f64 / total as f64 , total) ; } })); -// 11v1 = ; -// 12v1 = ; -// 13v1 = ; -// 14v1 = ; - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 11v1; -5v1 -> 12v1; -6v1 -> 13v1; -4v1 -> 8v1; -7v1 -> 14v1; -8v1 -> 9v1; -9v1 -> 10v1; -11v1 -> 4v1; -12v1 -> 6v1; -13v1 -> 7v1; -14v1 -> 8v1; diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_2.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_2.snap deleted file mode 100644 index d30c232..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__decoupled_compute_pi_ir@surface_graph_2.snap +++ /dev/null @@ -1,20 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_stream (DUMMY_SOURCE); -2v1 = map (| res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (f64 , f64) > (& b) . unwrap ()) }); -3v1 = map (| (_ , b) | b); -4v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (f64 , f64) , bool > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (x , y) | x * x + y * y < 1.0 })); -5v1 = fold :: < 'tick > (stageleft :: runtime_support :: fn0_type_hint :: < (u64 , u64) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | | (0u64 , 0u64) }) , stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (u64 , u64) , bool , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: compute_pi :: * ; | (inside , total) , sample_inside | { if sample_inside { * inside += 1 ; } * total += 1 ; } })); -6v1 = map (:: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u64 , u64) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () })); -7v1 = dest_sink (DUMMY_SINK); -// 8v1 = ; - -1v1 -> 2v1; -2v1 -> 3v1; -3v1 -> 4v1; -4v1 -> 8v1; -6v1 -> 7v1; -5v1 -> 6v1; -8v1 -> 5v1; diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir.snap deleted file mode 100644 index e23d4a7..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir.snap +++ /dev/null @@ -1,263 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: built.ir() ---- -[ - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; | (id , d) | println ! ("node received: ({}, {:?})" , id , d) }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) > (& b) . unwrap ()) }, - ), - input: Inspect { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; let CLUSTER_SELF_ID__free = hydro_lang :: location :: MemberId :: < () > :: from_tagless (({ __hydro_lang_cluster_self_id_1 / 3usize as u32 }) . clone ()) ; move | n | println ! ("cluster received: {:?} (self cluster id: {})" , n , CLUSTER_SELF_ID__free) }), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; | (id , n) | (id . clone () , (id , n)) }), - input: CrossProduct { - left: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , core :: option :: Option < hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > > > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; | (i , e) | match e { MembershipEvent :: Joined => Some (i) , MembershipEvent :: Left => None , } }), - input: Cast { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () >, - }, - }, - }, - right: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Source { - source: Iter( - stageleft :: runtime_support :: type_hint :: < std :: ops :: Range < i32 > > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; 0 .. 5 }), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: i32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: i32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, -] diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir@surface_graph_0.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir@surface_graph_0.snap deleted file mode 100644 index 89a8ef3..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir@surface_graph_0.snap +++ /dev/null @@ -1,31 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_stream ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: deploy :: deploy_runtime :: * ; let cluster_ids__free = __hydro_lang_cluster_ids_1 ; Box :: new (futures :: stream :: iter (cluster_ids__free . iter () . cloned () . map (| member_id | (member_id , MembershipEvent :: Joined)))) as Box < dyn futures :: Stream < Item = (TaglessMemberId , MembershipEvent) > + Unpin , > }); -2v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) })); -3v1 = filter_map (stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , core :: option :: Option < hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > > > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; | (i , e) | match e { MembershipEvent :: Joined => Some (i) , MembershipEvent :: Left => None , } })); -4v1 = source_iter (stageleft :: runtime_support :: type_hint :: < std :: ops :: Range < i32 > > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; 0 .. 5 })); -5v1 = map (| (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }); -6v1 = cross_join_multiset :: < 'static , 'static > (); -7v1 = multiset_delta (); -8v1 = map (stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; | (id , n) | (id . clone () , (id , n)) })); -9v1 = map (:: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) })); -10v1 = dest_sink (DUMMY_SINK); -11v1 = source_stream (DUMMY_SOURCE); -12v1 = map (| res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) > (& b) . unwrap ()) }); -13v1 = map (| (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b)); -14v1 = for_each (stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32)) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; | (id , d) | println ! ("node received: ({}, {:?})" , id , d) })); - -1v1 -> 2v1; -2v1 -> 3v1; -4v1 -> 5v1; -6v1 -> 7v1; -3v1 -> 6v1; -5v1 -> 6v1; -7v1 -> 8v1; -9v1 -> 10v1; -8v1 -> 9v1; -11v1 -> 12v1; -12v1 -> 13v1; -13v1 -> 14v1; diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir@surface_graph_1.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir@surface_graph_1.snap deleted file mode 100644 index 586ccda..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__partitioned_simple_cluster_ir@surface_graph_1.snap +++ /dev/null @@ -1,14 +0,0 @@ ---- -source: hydro_optimize/src/tests/mod.rs -expression: ir.surface_syntax_string() ---- -1v1 = source_stream (DUMMY_SOURCE); -2v1 = map (| res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) > (& res . unwrap ()) . unwrap () }); -3v1 = inspect (stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) , () > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: simple_cluster :: * ; let CLUSTER_SELF_ID__free = hydro_lang :: location :: MemberId :: < () > :: from_tagless (({ __hydro_lang_cluster_self_id_1 / 3usize as u32 }) . clone ()) ; move | n | println ! ("cluster received: {:?} (self cluster id: {})" , n , CLUSTER_SELF_ID__free) })); -4v1 = map (:: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < () > , i32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () })); -5v1 = dest_sink (DUMMY_SINK); - -1v1 -> 2v1; -2v1 -> 3v1; -4v1 -> 5v1; -3v1 -> 4v1; diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__two_pc__two_pc_partition_coordinator.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__two_pc__two_pc_partition_coordinator.snap deleted file mode 100644 index 1eaf64c..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__two_pc__two_pc_partition_coordinator.snap +++ /dev/null @@ -1,18378 +0,0 @@ ---- -source: hydro_optimize/src/tests/two_pc.rs -expression: "&ir" ---- -[ - CycleSink { - ident: Ident { - sym: cycle_1, - }, - input: AntiJoin { - pos: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - neg: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_2, - }, - input: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_2, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_3, - }, - input: AntiJoin { - pos: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - neg: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_4, - }, - input: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_4, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_5, - }, - input: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; let num_clients_per_node__free = 100usize ; move | virtual_id | { if virtual_id < num_clients_per_node__free as u32 { Some (virtual_id + 1) } else { None } } }), - input: Tee { - inner: : ChainFirst { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_5, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , ()) , u32 > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Cast { - inner: SingletonSource { - value: { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; 0u32 }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Batch { - inner: Source { - source: Iter( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let e__free = { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; () } ; [e__free] }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u32 , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_6, - }, - input: ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < std :: time :: Instant , std :: time :: Instant , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | curr_time , new_time | { if new_time > * curr_time { * curr_time = new_time ; } } }), - input: ObserveNonDet { - inner: Chain { - first: Chain { - first: Cast { - inner: Tee { - inner: : DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_6, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - second: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , (u32 , std :: time :: Instant) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | virtual_id | (virtual_id , Instant :: now ()) }), - input: Tee { - inner: : Cast { - inner: Tee { - inner: : ChainFirst { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_5, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , ()) , u32 > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Cast { - inner: SingletonSource { - value: { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; 0u32 }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Batch { - inner: Source { - source: Iter( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let e__free = { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; () } ; [e__free] }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u32 , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - second: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , (u32 , std :: time :: Instant) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < u32 > , std :: time :: Instant > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _payload | Instant :: now () }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_0, - }, - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , (u32 , u32) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: paxos_bench :: * ; move | (virtual_id , payload) | { let value = if let Some (payload) = payload { payload + 1 } else { 0 } ; (virtual_id , value) } }), - input: Cast { - inner: YieldConcat { - inner: Chain { - first: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , (u32 , core :: option :: Option < u32 >) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | virtual_id | (virtual_id , None) }), - input: Tee { - inner: : Cast { - inner: Tee { - inner: : ChainFirst { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_5, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , ()) , u32 > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Cast { - inner: SingletonSource { - value: { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; 0u32 }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Batch { - inner: Source { - source: Iter( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let e__free = { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; () } ; [e__free] }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u32 , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - second: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | num_clients_not_responded | println ! ("Awaiting {} clients" , num_clients_not_responded) }), - input: ObserveNonDet { - inner: Cast { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , ()) , usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: YieldConcat { - inner: Cast { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , core :: option :: Option < usize > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (num_clients , num_clients_with_throughput) | { if num_clients > num_clients_with_throughput { Some (num_clients - num_clients_with_throughput) } else { None } } }), - input: Cast { - inner: CrossSingleton { - left: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 3, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - right: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | throughputs | throughputs . sample_mean () > 0.0 }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: usize, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | (throughputs , num_client_machines) | { if throughputs . sample_count () >= 2 { let mean = throughputs . sample_mean () * num_client_machines as f64 ; if let Some ((lower , upper)) = throughputs . confidence_interval_99 () { println ! ("Throughput: {:.2} - {:.2} - {:.2} requests/s" , lower * num_client_machines as f64 , mean , upper * num_client_machines as f64) ; } } } }), - input: ObserveNonDet { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) , ()) , (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: CrossSingleton { - left: Batch { - inner: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: YieldConcat { - inner: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { combined . add (new) ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (_ , v) | v }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Cast { - inner: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 3, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < () > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < core :: option :: Option < () > , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | o | o . is_none () }), - input: Cast { - inner: ChainFirst { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , core :: option :: Option < () > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | v | Some (v) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ | () }), - input: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , core :: option :: Option < usize > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (num_clients , num_clients_with_throughput) | { if num_clients > num_clients_with_throughput { Some (num_clients - num_clients_with_throughput) } else { None } } }), - input: Cast { - inner: CrossSingleton { - left: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 3, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - right: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | throughputs | throughputs . sample_mean () > 0.0 }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - second: Cast { - inner: SingletonSource { - value: :: std :: option :: Option :: None, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | latencies | { println ! ("Latency p50: {:.3} | p99 {:.3} | p999 {:.3} ms ({:} samples)" , Duration :: from_nanos (latencies . value_at_quantile (0.5)) . as_micros () as f64 / 1000.0 , Duration :: from_nanos (latencies . value_at_quantile (0.99)) . as_micros () as f64 / 1000.0 , Duration :: from_nanos (latencies . value_at_quantile (0.999)) . as_micros () as f64 / 1000.0 , latencies . len ()) ; } }), - input: ObserveNonDet { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()) , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()) , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: YieldConcat { - inner: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { combined . add (new) . unwrap () ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >) , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (_ , v) | v }), - input: Batch { - inner: ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | histogram | histogram . histogram . borrow () . clone () }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper > (& b) . unwrap ()) }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | latencies | { SerializableHistogramWrapper { histogram : latencies , } } }), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , ()) , std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | | Rc :: new (RefCell :: new (Histogram :: < u64 > :: new (3) . unwrap ())) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , core :: time :: Duration , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | latencies , latency | { latencies . borrow_mut () . record (latency . as_nanos () as u64) . unwrap () ; } }), - input: ObserveNonDet { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: time :: Instant , std :: time :: Instant) , core :: time :: Duration > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (prev_time , curr_time) | curr_time . duration_since (prev_time) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , (std :: time :: Instant , std :: time :: Instant)) , (std :: time :: Instant , std :: time :: Instant) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Join { - left: Cast { - inner: Cast { - inner: Tee { - inner: : DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_6, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , std :: time :: Instant), - }, - }, - }, - right: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , (u32 , std :: time :: Instant) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < u32 > , std :: time :: Instant > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _payload | Instant :: now () }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , (std :: time :: Instant , std :: time :: Instant)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: (std :: time :: Instant , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , (std :: time :: Instant , std :: time :: Instant)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (std :: time :: Instant , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: time :: Duration, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: time :: Duration, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: time :: Duration, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < () > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < core :: option :: Option < () > , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | o | o . is_none () }), - input: Cast { - inner: ChainFirst { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , core :: option :: Option < () > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | v | Some (v) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ | () }), - input: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , core :: option :: Option < usize > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (num_clients , num_clients_with_throughput) | { if num_clients > num_clients_with_throughput { Some (num_clients - num_clients_with_throughput) } else { None } } }), - input: Cast { - inner: CrossSingleton { - left: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 3, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - right: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | throughputs | throughputs . sample_mean () > 0.0 }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple . 1 , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: Map { - f: | (_sender_id , b) | b, - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: location :: MemberId :: < () > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: Map { - f: | struct_or_tuple | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: :: hydro_lang :: location :: MemberId < () >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Cluster( - 1, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - second: Cast { - inner: SingletonSource { - value: :: std :: option :: Option :: None, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 4, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 4, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, -] diff --git a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__two_pc__two_pc_partition_participant.snap b/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__two_pc__two_pc_partition_participant.snap deleted file mode 100644 index b2efcc4..0000000 --- a/hydro_optimize/src/tests/snapshots/hydro_optimize__tests__two_pc__two_pc_partition_participant.snap +++ /dev/null @@ -1,18115 +0,0 @@ ---- -source: hydro_optimize/src/tests/two_pc.rs -expression: "&ir" ---- -[ - CycleSink { - ident: Ident { - sym: cycle_1, - }, - input: AntiJoin { - pos: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - neg: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_2, - }, - input: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_2, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_3, - }, - input: AntiJoin { - pos: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - neg: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_4, - }, - input: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_4, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_5, - }, - input: FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; let num_clients_per_node__free = 100usize ; move | virtual_id | { if virtual_id < num_clients_per_node__free as u32 { Some (virtual_id + 1) } else { None } } }), - input: Tee { - inner: : ChainFirst { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_5, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , ()) , u32 > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Cast { - inner: SingletonSource { - value: { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; 0u32 }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Batch { - inner: Source { - source: Iter( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let e__free = { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; () } ; [e__free] }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u32 , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_6, - }, - input: ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < std :: time :: Instant , std :: time :: Instant , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | curr_time , new_time | { if new_time > * curr_time { * curr_time = new_time ; } } }), - input: ObserveNonDet { - inner: Chain { - first: Chain { - first: Cast { - inner: Tee { - inner: : DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_6, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - second: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , (u32 , std :: time :: Instant) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | virtual_id | (virtual_id , Instant :: now ()) }), - input: Tee { - inner: : Cast { - inner: Tee { - inner: : ChainFirst { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_5, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , ()) , u32 > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Cast { - inner: SingletonSource { - value: { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; 0u32 }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Batch { - inner: Source { - source: Iter( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let e__free = { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; () } ; [e__free] }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u32 , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - second: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , (u32 , std :: time :: Instant) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < u32 > , std :: time :: Instant > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _payload | Instant :: now () }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - CycleSink { - ident: Ident { - sym: cycle_0, - }, - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , (u32 , u32) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: paxos_bench :: * ; move | (virtual_id , payload) | { let value = if let Some (payload) = payload { payload + 1 } else { 0 } ; (virtual_id , value) } }), - input: Cast { - inner: YieldConcat { - inner: Chain { - first: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < u32 , (u32 , core :: option :: Option < u32 >) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | virtual_id | (virtual_id , None) }), - input: Tee { - inner: : Cast { - inner: Tee { - inner: : ChainFirst { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_5, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , ()) , u32 > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Cast { - inner: SingletonSource { - value: { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; 0u32 }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Batch { - inner: Source { - source: Iter( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: tick :: * ; let e__free = { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; () } ; [e__free] }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (u32 , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - second: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | num_clients_not_responded | println ! ("Awaiting {} clients" , num_clients_not_responded) }), - input: ObserveNonDet { - inner: Cast { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , ()) , usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: YieldConcat { - inner: Cast { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , core :: option :: Option < usize > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (num_clients , num_clients_with_throughput) | { if num_clients > num_clients_with_throughput { Some (num_clients - num_clients_with_throughput) } else { None } } }), - input: Cast { - inner: CrossSingleton { - left: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - right: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | throughputs | throughputs . sample_mean () > 0.0 }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 7, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: usize, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | (throughputs , num_client_machines) | { if throughputs . sample_count () >= 2 { let mean = throughputs . sample_mean () * num_client_machines as f64 ; if let Some ((lower , upper)) = throughputs . confidence_interval_99 () { println ! ("Throughput: {:.2} - {:.2} - {:.2} requests/s" , lower * num_client_machines as f64 , mean , upper * num_client_machines as f64) ; } } } }), - input: ObserveNonDet { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) , ()) , (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: CrossSingleton { - left: Batch { - inner: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: YieldConcat { - inner: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { combined . add (new) ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (_ , v) | v }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 8, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 9, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Cast { - inner: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < () > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < core :: option :: Option < () > , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | o | o . is_none () }), - input: Cast { - inner: ChainFirst { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , core :: option :: Option < () > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | v | Some (v) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ | () }), - input: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , core :: option :: Option < usize > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (num_clients , num_clients_with_throughput) | { if num_clients > num_clients_with_throughput { Some (num_clients - num_clients_with_throughput) } else { None } } }), - input: Cast { - inner: CrossSingleton { - left: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - right: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | throughputs | throughputs . sample_mean () > 0.0 }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - second: Cast { - inner: SingletonSource { - value: :: std :: option :: Option :: None, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize) , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , usize), - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, - ForEach { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | latencies | { println ! ("Latency p50: {:.3} | p99 {:.3} | p999 {:.3} ms ({:} samples)" , Duration :: from_nanos (latencies . value_at_quantile (0.5)) . as_micros () as f64 / 1000.0 , Duration :: from_nanos (latencies . value_at_quantile (0.99)) . as_micros () as f64 / 1000.0 , Duration :: from_nanos (latencies . value_at_quantile (0.999)) . as_micros () as f64 / 1000.0 , latencies . len ()) ; } }), - input: ObserveNonDet { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()) , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()) , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: YieldConcat { - inner: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { combined . add (new) . unwrap () ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >) , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (_ , v) | v }), - input: Batch { - inner: ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper , hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | histogram | histogram . histogram . borrow () . clone () }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper > (& b) . unwrap ()) }, - ), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | latencies | { SerializableHistogramWrapper { histogram : latencies , } } }), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , ()) , std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | | Rc :: new (RefCell :: new (Histogram :: < u64 > :: new (3) . unwrap ())) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , core :: time :: Duration , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; move | latencies , latency | { latencies . borrow_mut () . record (latency . as_nanos () as u64) . unwrap () ; } }), - input: ObserveNonDet { - inner: YieldConcat { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (std :: time :: Instant , std :: time :: Instant) , core :: time :: Duration > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (prev_time , curr_time) | curr_time . duration_since (prev_time) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , (std :: time :: Instant , std :: time :: Instant)) , (std :: time :: Instant , std :: time :: Instant) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Join { - left: Cast { - inner: Cast { - inner: Tee { - inner: : DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_6, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , std :: time :: Instant), - }, - }, - }, - right: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , (u32 , std :: time :: Instant) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < u32 > , std :: time :: Instant > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _payload | Instant :: now () }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: std :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , (std :: time :: Instant , std :: time :: Instant)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: (std :: time :: Instant , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , (std :: time :: Instant , std :: time :: Instant)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (std :: time :: Instant , std :: time :: Instant), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: time :: Duration, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: time :: Duration, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: time :: Duration, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > > , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 10, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: std :: rc :: Rc < core :: cell :: RefCell < hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > > >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: SerializableHistogramWrapper, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 11, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Optional { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 12, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < core :: option :: Option < () > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _u | () }), - input: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < core :: option :: Option < () > , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | o | o . is_none () }), - input: Cast { - inner: ChainFirst { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < () , core :: option :: Option < () > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: optional :: * ; | v | Some (v) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ | () }), - input: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , usize) , core :: option :: Option < usize > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (num_clients , num_clients_with_throughput) | { if num_clients > num_clients_with_throughput { Some (num_clients - num_clients_with_throughput) } else { None } } }), - input: Cast { - inner: CrossSingleton { - left: Tee { - inner: : Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: membership :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 2, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - right: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , bool > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | throughputs | throughputs . sample_mean () > 0.0 }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: Tee { - inner: : ReduceKeyed { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | combined , new | { * combined = new ; } }), - input: ObserveNonDet { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > (& b) . unwrap ()) }, - ), - input: Cast { - inner: YieldConcat { - inner: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | (d , _signal) | d }), - input: CrossSingleton { - left: Batch { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (_ , stats) | stats }), - input: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | | (0 , { RollingAverage :: new () }) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage) , (usize , bool) , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | (total , stats) , (batch_size , reset) | { if reset { if * total > 0 { stats . add_sample (* total as f64) ; } * total = 0 ; } else { * total += batch_size ; } } }), - input: Chain { - first: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < usize , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | batch_size | (batch_size , false) }), - input: YieldConcat { - inner: Cast { - inner: Fold { - init: stageleft :: runtime_support :: fn0_type_hint :: < usize > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | | 0usize }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < usize , core :: option :: Option < u32 > , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | count , _ | * count += 1 }), - input: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , core :: option :: Option < u32 >) , core :: option :: Option < u32 > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , (u32 , core :: option :: Option < u32 >) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; let f__free = stageleft :: runtime_support :: fn1_type_hint :: < u32 , core :: option :: Option < u32 > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | payload | Some (payload) }) ; { let orig = f__free ; move | (k , v) | (k , orig (v)) } }), - input: Batch { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (u32 , u32)) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& res . unwrap ()) . unwrap () }, - ), - input: Cast { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_3, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: YieldConcat { - inner: Tee { - inner: : FilterMap { - f: stageleft :: runtime_support :: fn1_type_hint :: < ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)) , core :: option :: Option < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; let min__free = 3usize ; move | (key , (success , _error)) | if success >= min__free { Some (key) } else { None } }), - input: Cast { - inner: Cast { - inner: Tee { - inner: : FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < (usize , usize) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | | (0 , 0) }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < (usize , usize) , core :: result :: Result < () , () > , () > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: quorum :: * ; move | accum , value | { if value . is_ok () { accum . 0 += 1 ; } else { accum . 1 += 1 ; } } }), - input: ObserveNonDet { - inner: Cast { - inner: Tee { - inner: : Chain { - first: DeferTick { - input: CycleSource { - ident: Ident { - sym: cycle_1, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - second: Batch { - inner: Tee { - inner: : Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >) > ({ use hydro_test :: __staged :: __deps :: * ; use hydro_test :: __staged :: cluster :: two_pc :: * ; | kv | (kv , Ok :: < () , () > (())) }), - input: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_stream :: * ; | (_ , v) | v }), - input: Cast { - inner: Cast { - inner: Map { - f: | (sender_id , b) | (:: hydro_lang :: location :: MemberId :: < _ > :: from_raw_id (sender_id . raw_id / 3usize as u32) , b), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc :: Participant > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& b) . unwrap ()) }, - ), - input: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_lang :: __staged :: location :: MemberId < _ > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))) , _ > (| (id , data) | { (id . into_tagless () , hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into ()) }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { hydro_lang :: runtime_support :: bincode :: deserialize :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) > (& res . unwrap ()) . unwrap () }, - ), - input: Map { - f: | (orig_dest , struct_or_tuple) : (:: hydro_lang :: location :: MemberId < _ > , _) | { let mut s = :: std :: hash :: DefaultHasher :: new () ; :: std :: hash :: Hash :: hash (& struct_or_tuple , & mut s) ; let partition_val = :: std :: hash :: Hasher :: finish (& s) as u32 ; (:: hydro_lang :: location :: MemberId :: < () > :: from_raw_id ((orig_dest . raw_id * 3usize as u32) + (partition_val % 3usize as u32) as u32) , struct_or_tuple) }, - input: YieldConcat { - inner: Cast { - inner: CrossProduct { - left: ObserveNonDet { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; | (k , _) | k }), - input: Cast { - inner: Cast { - inner: Filter { - f: stageleft :: runtime_support :: fn1_borrow_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool) , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: keyed_singleton :: * ; let f__free = stageleft :: runtime_support :: fn1_borrow_type_hint :: < bool , bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | b | * b }) ; { let orig = f__free ; move | t : & (_ , _) | orig (& t . 1) } }), - input: Batch { - inner: FoldKeyed { - init: stageleft :: runtime_support :: fn0_type_hint :: < bool > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | | false }), - acc: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < bool , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: networking :: * ; | present , event | { match event { MembershipEvent :: Joined => * present = true , MembershipEvent :: Left => * present = false , } } }), - input: Cast { - inner: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent) > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; | (k , v) | (MemberId :: from_tagless (k) , v) }), - input: Source { - source: ClusterMembers( - Cluster( - 1, - ), - ), - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: TaglessMemberId , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: MembershipEvent, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: bool, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - }, - }, - }, - right: Batch { - inner: Cast { - inner: Cast { - inner: Network { - serialize_fn: Some( - :: hydro_lang :: runtime_support :: stageleft :: runtime_support :: fn1_type_hint :: < (u32 , u32) , _ > (| data | { hydro_lang :: runtime_support :: bincode :: serialize (& data) . unwrap () . into () }), - ), - instantiate_fn: , - deserialize_fn: Some( - | res | { let (id , b) = res . unwrap () ; (hydro_lang :: __staged :: location :: MemberId :: < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > :: from_tagless (id as hydro_lang :: __staged :: location :: TaglessMemberId) , hydro_lang :: runtime_support :: bincode :: deserialize :: < (u32 , u32) > (& b) . unwrap ()) }, - ), - input: CycleSource { - ident: Ident { - sym: cycle_0, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 0, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 1, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 2, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 1, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant >, - value_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc :: Participant > , (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32))), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , core :: result :: Result < () , () >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: core :: result :: Result < () , () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - value_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: ((hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)) , (usize , usize)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 3, - Process( - 0, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , (u32 , u32)), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 0, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , u32), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: u32, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: NoOrder, - value_retry: ExactlyOnce, - key_type: u32, - value_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (u32 , core :: option :: Option < u32 >), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: core :: option :: Option < u32 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 4, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - second: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , (usize , bool) > ({ use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; | _ | (0 , true) }), - input: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_secs (1) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (usize , bool), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: (usize , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Singleton { - bound: Unbounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - right: Map { - f: stageleft :: runtime_support :: fn1_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: singleton :: * ; | _u | () }), - input: Reduce { - f: stageleft :: runtime_support :: fn2_borrow_mut_type_hint :: < hydro_test :: __staged :: __deps :: tokio :: time :: Instant , hydro_test :: __staged :: __deps :: tokio :: time :: Instant , () > ({ use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: live_collections :: stream :: * ; | _ , _ | { } }), - input: Batch { - inner: Source { - source: Stream( - { use hydro_lang :: __staged :: __deps :: * ; use hydro_lang :: __staged :: location :: * ; let interval__free = { use hydro_std :: __staged :: __deps :: * ; use hydro_std :: __staged :: bench_client :: * ; Duration :: from_millis (1000) } ; tokio_stream :: wrappers :: IntervalStream :: new (tokio :: time :: interval (interval__free)) }, - ), - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: tokio :: time :: Instant, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 6, - Cluster( - 2, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Cluster( - 2, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: AtLeastOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedStream { - bound: Unbounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: KeyedSingleton { - bound: Unbounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedSingleton { - bound: Bounded, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: KeyedStream { - bound: Bounded, - value_order: TotalOrder, - value_retry: ExactlyOnce, - key_type: hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client >, - value_type: hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: NoOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - trusted: true, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_lang :: location :: member_id :: MemberId < hydro_test :: __staged :: cluster :: two_pc_bench :: Client > , hydro_test :: __staged :: __deps :: hydro_std :: bench_client :: rolling_average :: RollingAverage), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: (usize , usize), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: usize, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - second: Cast { - inner: SingletonSource { - value: :: std :: option :: Option :: None, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Singleton { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: core :: option :: Option < () >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Optional { - bound: Bounded, - element_type: (), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: (hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 > , ()), - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Tick( - 5, - Process( - 3, - ), - ), - collection_kind: Stream { - bound: Bounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: AtLeastOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - trusted: false, - metadata: HydroIrMetadata { - location_kind: Process( - 3, - ), - collection_kind: Stream { - bound: Unbounded, - order: TotalOrder, - retry: ExactlyOnce, - element_type: hydro_test :: __staged :: __deps :: hydro_std :: __staged :: __deps :: hdrhistogram :: Histogram < u64 >, - }, - }, - }, - op_metadata: HydroIrOpMetadata, - }, -] diff --git a/hydro_optimize/src/tests/two_pc.rs b/hydro_optimize/src/tests/two_pc.rs deleted file mode 100644 index e8139ad..0000000 --- a/hydro_optimize/src/tests/two_pc.rs +++ /dev/null @@ -1,138 +0,0 @@ -use std::collections::{BTreeMap, HashMap}; - -use hydro_build_utils::insta; -use hydro_lang::compile::ir::deep_clone; -use hydro_lang::deploy::HydroDeploy; -use hydro_lang::location::Location; -use hydro_lang::prelude::*; -use hydro_test::cluster::two_pc::{Coordinator, Participant}; -use hydro_test::cluster::two_pc_bench::{Aggregator, Client}; - -use crate::debug::name_to_id_map; -use crate::partition_node_analysis::{nodes_to_partition, partitioning_analysis}; -use crate::partitioner::{Partitioner, partition}; -use crate::repair::{cycle_source_to_sink_input, inject_id, inject_location}; - -const NUM_PARTICIPANTS: usize = 3; - -fn create_two_pc<'a>( - coordinator: &Process<'a, Coordinator>, - participants: &Cluster<'a, Participant>, - clients: &Cluster<'a, Client>, - client_aggregator: &Process<'a, Aggregator>, -) { - hydro_test::cluster::two_pc_bench::two_pc_bench( - 100, - coordinator, - participants, - NUM_PARTICIPANTS, - clients, - client_aggregator, - ); -} - -#[test] -fn two_pc_partition_coordinator() { - let builder = FlowBuilder::new(); - let coordinator = builder.process(); - let partitioned_coordinator = builder.cluster::<()>(); - let participants = builder.cluster(); - let clients = builder.cluster(); - let client_aggregator = builder.process(); - - create_two_pc(&coordinator, &participants, &clients, &client_aggregator); - - let mut cycle_data = HashMap::new(); - let built = builder - .optimize_with(|ir| { - inject_id(ir); - cycle_data = cycle_source_to_sink_input(ir); - inject_location(ir, &cycle_data); - }) - .into_deploy::(); - let mut ir = deep_clone(built.ir()); - - // Coordinator - let coordinator_partitioning = partitioning_analysis(&mut ir, &coordinator.id(), &cycle_data); - let name_to_id = name_to_id_map(&mut ir); - let c_prepare_id = *name_to_id.get("c_prepare").unwrap(); - let c_votes_id = *name_to_id.get("c_votes").unwrap(); - let c_commits_id = *name_to_id.get("c_commits").unwrap(); - // 1 is the partitioning index of those inputs. Specifically, given the client sends (sender_id, payload) to the coordinator, we can partition on the entire payload - let expected_coordinator_partitioning = vec![BTreeMap::from([ - (c_votes_id - 1, vec!["1".to_string()]), - (c_commits_id - 1, vec!["1".to_string()]), - ])]; - let expected_coordinator_input_parents = BTreeMap::from([ - (c_prepare_id - 2, c_prepare_id - 3), - (c_votes_id - 1, c_votes_id - 2), - (c_commits_id - 1, c_commits_id - 2), - ]); - assert_eq!( - coordinator_partitioning, - Some(( - expected_coordinator_partitioning, - expected_coordinator_input_parents - )) - ); - let coordinator_nodes_to_partition = nodes_to_partition(coordinator_partitioning).unwrap(); - let coordinator_partitioner = Partitioner { - nodes_to_partition: coordinator_nodes_to_partition, - num_partitions: 3, - location_id: coordinator.id().raw_id(), - new_cluster_id: Some(partitioned_coordinator.id().raw_id()), - }; - partition(&mut ir, &coordinator_partitioner); - - insta::assert_debug_snapshot!(&ir); -} - -#[test] -fn two_pc_partition_participant() { - let builder = FlowBuilder::new(); - let coordinator = builder.process(); - let participants = builder.cluster(); - let clients = builder.cluster(); - let client_aggregator = builder.process(); - - create_two_pc(&coordinator, &participants, &clients, &client_aggregator); - - let mut cycle_data = HashMap::new(); - let built = builder - .optimize_with(|ir| { - inject_id(ir); - cycle_data = cycle_source_to_sink_input(ir); - inject_location(ir, &cycle_data); - }) - .into_deploy::(); - let mut ir = deep_clone(built.ir()); - - let participant_partitioning = partitioning_analysis(&mut ir, &participants.id(), &cycle_data); - // Recalculate node IDs since they've changed as well - let name_to_id = name_to_id_map(&mut ir); - let p_prepare_id = *name_to_id.get("p_prepare").unwrap(); - let p_commits_id = *name_to_id.get("p_commits").unwrap(); - // Participants can partition on ANYTHING, since they only execute maps - let expected_participant_partitionings = vec![]; - let expected_participant_input_parents = BTreeMap::from([ - (p_prepare_id, p_prepare_id - 1), - (p_commits_id, p_commits_id - 1), - ]); - assert_eq!( - participant_partitioning, - Some(( - expected_participant_partitionings, - expected_participant_input_parents - )) - ); - let participant_nodes_to_partition = nodes_to_partition(participant_partitioning).unwrap(); - let participant_partitioner = Partitioner { - nodes_to_partition: participant_nodes_to_partition, - num_partitions: 3, - location_id: participants.id().raw_id(), - new_cluster_id: None, - }; - partition(&mut ir, &participant_partitioner); - - insta::assert_debug_snapshot!(&ir); -} diff --git a/hydro_optimize_examples/Cargo.toml b/hydro_optimize_examples/Cargo.toml index 342f76c..c7017dc 100644 --- a/hydro_optimize_examples/Cargo.toml +++ b/hydro_optimize_examples/Cargo.toml @@ -8,6 +8,7 @@ edition = "2024" all-features = true [dependencies] +hdrhistogram = "7.5.4" hydro_lang.workspace = true hydro_std.workspace = true hydro_test.workspace = true @@ -22,7 +23,7 @@ clap.workspace = true dfir_lang.workspace = true hydro_build_utils.workspace = true hydro_deploy.workspace = true -hydro_lang = { workspace = true, features = ["deploy", "viz"] } +hydro_lang = { workspace = true, features = ["deploy", "viz", "sim"] } hydro_optimize = { path = "../hydro_optimize" } regex.workspace = true diff --git a/hydro_optimize_examples/examples/benchmark_paxos.rs b/hydro_optimize_examples/examples/benchmark_paxos.rs index f2bdd50..2a79862 100644 --- a/hydro_optimize_examples/examples/benchmark_paxos.rs +++ b/hydro_optimize_examples/examples/benchmark_paxos.rs @@ -1,13 +1,11 @@ -use std::cell::RefCell; - use clap::{ArgAction, Parser}; use hydro_deploy::Deployment; -use hydro_lang::location::Location; use hydro_optimize::deploy::{HostType, ReusableHosts}; -use hydro_optimize::deploy_and_analyze::deploy_and_analyze; -use hydro_test::cluster::kv_replica::Replica; -use hydro_test::cluster::paxos::{Acceptor, CorePaxos, PaxosConfig, Proposer}; -use hydro_test::cluster::paxos_bench::{Aggregator, Client}; +use hydro_optimize::deploy_and_analyze::{ + Optimizations, ReusableClusters, ReusableProcesses, deploy_and_optimize, +}; +use hydro_optimize_examples::print_parseable_bench_results; +use hydro_test::cluster::paxos::{CorePaxos, PaxosConfig}; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None, group( @@ -28,6 +26,119 @@ struct BenchmarkArgs { aws: bool, } +/// Result of a single benchmark run +struct BenchResult { + virtual_clients: usize, + throughput_mean: f64, + p99_latency: f64, +} + +/// Runs a single Paxos benchmark with the given parameters +async fn run_benchmark( + reusable_hosts: &mut ReusableHosts, + deployment: &mut Deployment, + num_clients: usize, + num_clients_per_node: usize, + run_seconds: usize, +) -> BenchResult { + let f = 1; + let checkpoint_frequency = 1000; + let i_am_leader_send_timeout = 5; + let i_am_leader_check_timeout = 10; + let i_am_leader_check_timeout_delay_multiplier = 15; + let print_result_frequency = 1000; + + println!( + "Running Paxos with {} clients and {} virtual clients per node for {} seconds", + num_clients, num_clients_per_node, run_seconds + ); + + let mut builder = hydro_lang::compile::builder::FlowBuilder::new(); + let proposers = builder.cluster(); + let acceptors = builder.cluster(); + let clients = builder.cluster(); + let client_aggregator = builder.process(); + let replicas = builder.cluster(); + + hydro_test::cluster::paxos_bench::paxos_bench( + num_clients_per_node, + checkpoint_frequency, + f, + f + 1, + CorePaxos { + proposers: proposers.clone(), + acceptors: acceptors.clone(), + paxos_config: PaxosConfig { + f, + i_am_leader_send_timeout, + i_am_leader_check_timeout, + i_am_leader_check_timeout_delay_multiplier, + }, + }, + &clients, + &client_aggregator, + &replicas, + print_result_frequency, + print_parseable_bench_results, + ); + + let run_metadata = deploy_and_optimize( + reusable_hosts, + deployment, + builder.finalize(), + ReusableClusters::default() + .with_cluster(proposers, f + 1) + .with_cluster(acceptors, 2 * f + 1) + .with_cluster(clients, num_clients) + .with_cluster(replicas, f + 1), + ReusableProcesses::default().with_process(client_aggregator), + Optimizations::default(), + Some(run_seconds), + ) + .await; + + let (throughput_lower, throughput_mean, throughput_upper) = run_metadata.throughput; + let (p50_latency, p99_latency, p999_latency, latency_samples) = run_metadata.latencies; + + println!( + "Throughput: {:.2} - {:.2} - {:.2} requests/s", + throughput_lower, throughput_mean, throughput_upper + ); + println!( + "Latency: p50: {:.3} | p99 {:.3} | p999 {:.3} ms ({:} samples)", + p50_latency, p99_latency, p999_latency, latency_samples + ); + run_metadata + .total_usage + .iter() + .for_each(|(location, usage)| println!("{:?} CPU: {:.2}%", location, usage * 100.0)); + + // Print network stats summary + for (location, stats) in &run_metadata.network_stats { + let tx_packets = stats.tx_packets_per_sec.p50; + let rx_packets = stats.rx_packets_per_sec.p50; + let tx_bytes = stats.tx_bytes_per_sec.p50; + let rx_bytes = stats.rx_bytes_per_sec.p50; + + println!( + "{:?} Network: msgs sent={:.0}, recv={:.0}, total={:.0} | GB sent={:.3}, recv={:.3}, total={:.3}", + location, + tx_packets, + rx_packets, + tx_packets + rx_packets, + tx_bytes / 1e9, + rx_bytes / 1e9, + (tx_bytes + rx_bytes) / 1e9 + ); + } + + BenchResult { + virtual_clients: num_clients_per_node, + throughput_mean, + p99_latency, + } +} + #[tokio::main] async fn main() { let args = BenchmarkArgs::parse(); @@ -43,106 +154,75 @@ async fn main() { let mut reusable_hosts = ReusableHosts::new(host_type); - let f = 1; - let checkpoint_frequency = 1000; // Num log entries - let i_am_leader_send_timeout = 5; // Sec - let i_am_leader_check_timeout = 10; // Sec - let i_am_leader_check_timeout_delay_multiplier = 15; - - // Benchmark parameters - let num_clients = [1, 2]; - let num_clients_per_node = vec![1, 500, 1000, 2000, 3000]; - let run_seconds = 60; - - let multi_run_metadata = RefCell::new(vec![]); - let mut iteration = 0; - let max_num_clients_per_node = num_clients_per_node.iter().max().unwrap(); - for (i, num_clients) in num_clients.iter().enumerate() { - // For the 1st client, test a variable number of virtual clients. For the rest, use the max number. - let virtual_clients = if i == 0 { - &num_clients_per_node + // Fixed parameters + const NUM_CLIENTS: usize = 3; + const RUN_SECONDS: usize = 30; + const LATENCY_SPIKE_THRESHOLD: f64 = 2.0; // p99 latency spike = 2x baseline + + // Binary search for optimal virtual clients + let mut low = 1usize; + let mut high = 200usize; + let mut results: Vec = Vec::new(); + + // First run at low to establish baseline latency + let baseline = run_benchmark( + &mut reusable_hosts, + &mut deployment, + NUM_CLIENTS, + low, + RUN_SECONDS, + ) + .await; + let baseline_p99 = baseline.p99_latency.max(0.001); // Avoid division by zero + results.push(baseline); + + // Binary search to find the point where p99 latency spikes + while high - low > 10 { + let mid = (low + high) / 2; + let result = run_benchmark( + &mut reusable_hosts, + &mut deployment, + NUM_CLIENTS, + mid, + RUN_SECONDS, + ) + .await; + + let latency_ratio = result.p99_latency / baseline_p99; + println!( + "virtual_clients={}, latency_ratio={:.2}x baseline", + mid, latency_ratio + ); + + if latency_ratio > LATENCY_SPIKE_THRESHOLD { + // Latency spiked, search lower + high = mid; } else { - &vec![*max_num_clients_per_node] - }; - - for num_clients_per_node in virtual_clients { - println!( - "Running Paxos with {} clients and {} virtual clients per node for {} seconds", - num_clients, num_clients_per_node, run_seconds - ); - - let builder = hydro_lang::compile::builder::FlowBuilder::new(); - let proposers = builder.cluster(); - let acceptors = builder.cluster(); - let clients = builder.cluster(); - let client_aggregator = builder.process(); - let replicas = builder.cluster(); - - hydro_test::cluster::paxos_bench::paxos_bench( - *num_clients_per_node, - checkpoint_frequency, - f, - f + 1, - CorePaxos { - proposers: proposers.clone(), - acceptors: acceptors.clone(), - paxos_config: PaxosConfig { - f, - i_am_leader_send_timeout, - i_am_leader_check_timeout, - i_am_leader_check_timeout_delay_multiplier, - }, - }, - &clients, - &client_aggregator, - &replicas, - ); - - let clusters = vec![ - ( - proposers.id().raw_id(), - std::any::type_name::().to_string(), - f + 1, - ), - ( - acceptors.id().raw_id(), - std::any::type_name::().to_string(), - 2 * f + 1, - ), - ( - clients.id().raw_id(), - std::any::type_name::().to_string(), - *num_clients, - ), - ( - replicas.id().raw_id(), - std::any::type_name::().to_string(), - f + 1, - ), - ]; - let processes = vec![( - client_aggregator.id().raw_id(), - std::any::type_name::().to_string(), - )]; - - let (rewritten_ir_builder, ir, _, _, _) = deploy_and_analyze( - &mut reusable_hosts, - &mut deployment, - builder.finalize(), - &clusters, - &processes, - vec![], - Some(run_seconds), - &multi_run_metadata, - iteration, - ) - .await; - - // Cleanup and generate graphs if requested - let built = rewritten_ir_builder.build_with(|_| ir).finalize(); - _ = built.generate_graph_with_config(&args.graph, None); - - iteration += 1; + // Latency acceptable, search higher + low = mid; } + results.push(result); + } + + // Final run at the converged value + let optimal = run_benchmark( + &mut reusable_hosts, + &mut deployment, + NUM_CLIENTS, + low, + RUN_SECONDS, + ) + .await; + results.push(optimal); + + // Print summary + println!("\n=== Benchmark Summary ==="); + println!("Optimal virtual clients: {}", low); + println!("\nAll results:"); + for r in &results { + println!( + " virtual_clients={:3}, throughput={:8.2} req/s, p99={:6.3} ms", + r.virtual_clients, r.throughput_mean, r.p99_latency + ); } } diff --git a/hydro_optimize_examples/examples/decouple_compute_pi.rs b/hydro_optimize_examples/examples/decouple_compute_pi.rs deleted file mode 100644 index 9ad4c73..0000000 --- a/hydro_optimize_examples/examples/decouple_compute_pi.rs +++ /dev/null @@ -1,97 +0,0 @@ -use std::cell::RefCell; - -use clap::{ArgAction, Parser}; -use hydro_deploy::Deployment; -use hydro_lang::location::Location; -use hydro_lang::viz::config::GraphConfig; -use hydro_optimize::debug; -use hydro_optimize::decoupler::{self, Decoupler}; -use hydro_optimize::deploy::{HostType, ReusableHosts}; -use hydro_optimize::deploy_and_analyze::deploy_and_analyze; -use hydro_test::cluster::compute_pi::{Leader, Worker}; - -#[derive(Parser, Debug)] -#[command(author, version, about, long_about = None, group( - clap::ArgGroup::new("cloud") - .args(&["gcp", "aws"]) - .multiple(false) -))] -struct Args { - #[command(flatten)] - graph: GraphConfig, - - /// Use Gcp for deployment (provide project name) - #[arg(long)] - gcp: Option, - - /// Use Aws, make sure credentials are set up - #[arg(long, action = ArgAction::SetTrue)] - aws: bool, -} - -struct DecoupledCluster {} - -#[tokio::main] -async fn main() { - let args = Args::parse(); - let mut deployment = Deployment::new(); - - let host_type: HostType = if let Some(project) = args.gcp { - HostType::Gcp { project } - } else if args.aws { - HostType::Aws - } else { - HostType::Localhost - }; - - let mut reusable_hosts = ReusableHosts::new(host_type); - - let builder = hydro_lang::compile::builder::FlowBuilder::new(); - let num_cluster_nodes = 8; - let (cluster, leader) = hydro_test::cluster::compute_pi::compute_pi(&builder, 8192); - - let clusters = vec![( - cluster.id().raw_id(), - std::any::type_name::().to_string(), - num_cluster_nodes, - )]; - let decoupled_cluster = builder.cluster::(); - let processes = vec![( - leader.id().raw_id(), - std::any::type_name::().to_string(), - )]; - - let decoupler = Decoupler { - // Decouple between these operators: - // .map(q!(|_| rand::random::<(f64, f64)>())) - // .map(q!(|(x, y)| x * x + y * y < 1.0)) - output_to_decoupled_machine_after: vec![4], - output_to_original_machine_after: vec![], - place_on_decoupled_machine: vec![], - orig_location: cluster.id().clone(), - decoupled_location: decoupled_cluster.id().clone(), - }; - - let multi_run_metadata = RefCell::new(vec![]); - let built = builder - .optimize_with(|roots| decoupler::decouple(roots, &decoupler, &multi_run_metadata, 0)) - .optimize_with(debug::print_id); - - let (rewritten_ir_builder, ir, _, _, _) = deploy_and_analyze( - &mut reusable_hosts, - &mut deployment, - built, - &clusters, - &processes, - vec![], - None, - &multi_run_metadata, - 0, - ) - .await; - - let built = rewritten_ir_builder.build_with(|_| ir).finalize(); - - // Generate graphs if requested - let _ = built.generate_graph_with_config(&args.graph, None); -} diff --git a/hydro_optimize_examples/examples/network_calibrator.rs b/hydro_optimize_examples/examples/network_calibrator.rs new file mode 100644 index 0000000..d59e016 --- /dev/null +++ b/hydro_optimize_examples/examples/network_calibrator.rs @@ -0,0 +1,84 @@ +use clap::{ArgAction, Parser}; +use hydro_deploy::Deployment; +use hydro_lang::prelude::FlowBuilder; +use hydro_lang::viz::config::GraphConfig; +use hydro_optimize::deploy::{HostType, ReusableHosts}; +use hydro_optimize::deploy_and_analyze::{ + Optimizations, ReusableClusters, ReusableProcesses, deploy_and_optimize, +}; +use hydro_optimize_examples::network_calibrator::{Aggregator, Client, network_calibrator}; + +#[derive(Parser, Debug)] +#[command(author, version, about, long_about = None, group( + clap::ArgGroup::new("cloud") + .args(&["gcp", "aws"]) + .multiple(false) +))] +struct Args { + #[command(flatten)] + graph: GraphConfig, + + /// Use Gcp for deployment (provide project name) + #[arg(long)] + gcp: Option, + + /// Use Aws, make sure credentials are set up + #[arg(long, action = ArgAction::SetTrue)] + aws: bool, +} + +#[tokio::main] +async fn main() { + let args = Args::parse(); + + let mut deployment = Deployment::new(); + let host_type: HostType = if let Some(project) = args.gcp { + HostType::Gcp { project } + } else if args.aws { + HostType::Aws + } else { + HostType::Localhost + }; + let mut reusable_hosts = ReusableHosts::new(host_type); + + let num_clients = 10; // >1 clients so it doesn't become the bottleneck + let num_clients_per_node = 1000; + let message_sizes = vec![1, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192]; + let num_seconds_to_profile = Some(60); + let interval_millis = 1000; + + for message_size in message_sizes { + let mut builder = FlowBuilder::new(); + let server = builder.cluster(); + let clients = builder.cluster(); + let client_aggregator = builder.process(); + + println!( + "Running network calibrator with message size: {} bytes, num clients: {}", + message_size, num_clients + ); + network_calibrator( + num_clients_per_node, + message_size, + &server, + &clients, + &client_aggregator, + interval_millis, + ); + + deploy_and_optimize( + &mut reusable_hosts, + &mut deployment, + builder.finalize(), + ReusableClusters::default() + .with_cluster(server, 1) + .with_cluster(clients, num_clients), + ReusableProcesses::default().with_process(client_aggregator), + Optimizations::default() + .excluding::() + .excluding::(), + num_seconds_to_profile, + ) + .await; + } +} diff --git a/hydro_optimize_examples/examples/partition_simple_cluster.rs b/hydro_optimize_examples/examples/partition_simple_cluster.rs deleted file mode 100644 index 20e9079..0000000 --- a/hydro_optimize_examples/examples/partition_simple_cluster.rs +++ /dev/null @@ -1,80 +0,0 @@ -use std::cell::RefCell; - -use clap::{ArgAction, Parser}; -use hydro_deploy::Deployment; -use hydro_lang::location::Location; -use hydro_lang::viz::config::GraphConfig; -use hydro_optimize::deploy::{HostType, ReusableHosts}; -use hydro_optimize::deploy_and_analyze::deploy_and_analyze; - -#[derive(Parser, Debug)] -#[command(author, version, about, long_about = None, group( - clap::ArgGroup::new("cloud") - .args(&["gcp", "aws"]) - .multiple(false) -))] -struct Args { - #[command(flatten)] - graph: GraphConfig, - - /// Use Gcp for deployment (provide project name) - #[arg(long)] - gcp: Option, - - /// Use Aws, make sure credentials are set up - #[arg(long, action = ArgAction::SetTrue)] - aws: bool, -} - -struct Process {} -struct Cluster {} - -#[tokio::main] -async fn main() { - let args = Args::parse(); - let mut deployment = Deployment::new(); - - let host_type: HostType = if let Some(project) = args.gcp { - HostType::Gcp { project } - } else if args.aws { - HostType::Aws - } else { - HostType::Localhost - }; - - let mut reusable_hosts = ReusableHosts::new(host_type); - - let builder = hydro_lang::compile::builder::FlowBuilder::new(); - let num_cluster_nodes = 2; - let (process, cluster) = hydro_test::cluster::simple_cluster::simple_cluster(&builder); - - let clusters = vec![( - cluster.id().raw_id(), - std::any::type_name::().to_string(), - num_cluster_nodes, - )]; - let processes = vec![( - process.id().raw_id(), - std::any::type_name::().to_string(), - )]; - - let multi_run_metadata = RefCell::new(vec![]); - - let (rewritten_ir_builder, ir, _, _, _) = deploy_and_analyze( - &mut reusable_hosts, - &mut deployment, - builder.finalize(), - &clusters, - &processes, - vec![std::any::type_name::().to_string()], - None, - &multi_run_metadata, - 0, - ) - .await; - - let built = rewritten_ir_builder.build_with(|_| ir).finalize(); - - // Generate graphs if requested - _ = built.generate_graph_with_config(&args.graph, None); -} diff --git a/hydro_optimize_examples/examples/partition_two_pc.rs b/hydro_optimize_examples/examples/partition_two_pc.rs index d793bae..71b76e7 100644 --- a/hydro_optimize_examples/examples/partition_two_pc.rs +++ b/hydro_optimize_examples/examples/partition_two_pc.rs @@ -1,12 +1,11 @@ -use std::cell::RefCell; - use clap::{ArgAction, Parser}; use hydro_deploy::Deployment; -use hydro_lang::location::Location; use hydro_lang::viz::config::GraphConfig; use hydro_optimize::deploy::{HostType, ReusableHosts}; -use hydro_optimize::deploy_and_analyze::deploy_and_analyze; -use hydro_test::cluster::two_pc::{Coordinator, Participant}; +use hydro_optimize::deploy_and_analyze::{ + Optimizations, ReusableClusters, ReusableProcesses, deploy_and_optimize, +}; +use hydro_optimize_examples::print_parseable_bench_results; use hydro_test::cluster::two_pc_bench::{Aggregator, Client}; #[derive(Parser, Debug)] @@ -43,10 +42,11 @@ async fn main() { let mut reusable_hosts = ReusableHosts::new(host_type); - let builder = hydro_lang::compile::builder::FlowBuilder::new(); + let mut builder = hydro_lang::compile::builder::FlowBuilder::new(); let num_participants = 3; let num_clients = 3; let num_clients_per_node = 100; + let print_result_frequency = 1000; // Millis let coordinator = builder.process(); let participants = builder.cluster(); @@ -60,51 +60,25 @@ async fn main() { num_participants, &clients, &client_aggregator, + print_result_frequency, + print_parseable_bench_results, ); - let clusters = vec![ - ( - participants.id().raw_id(), - std::any::type_name::().to_string(), - num_participants, - ), - ( - clients.id().raw_id(), - std::any::type_name::().to_string(), - num_clients, - ), - ]; - let processes = vec![ - ( - coordinator.id().raw_id(), - std::any::type_name::().to_string(), - ), - ( - client_aggregator.id().raw_id(), - std::any::type_name::().to_string(), - ), - ]; - - let multi_run_metadata = RefCell::new(vec![]); - - let (rewritten_ir_builder, ir, _, _, _) = deploy_and_analyze( + deploy_and_optimize( &mut reusable_hosts, &mut deployment, builder.finalize(), - &clusters, - &processes, - vec![ - std::any::type_name::().to_string(), - std::any::type_name::().to_string(), - ], + ReusableClusters::default() + .with_cluster(participants, num_participants) + .with_cluster(clients, num_clients), + ReusableProcesses::default() + .with_process(coordinator) + .with_process(client_aggregator), + Optimizations::default() + .with_partitioning() + .excluding::() + .excluding::(), None, - &multi_run_metadata, - 0, ) .await; - - let built = rewritten_ir_builder.build_with(|_| ir).finalize(); - - // Generate graphs if requested - _ = built.generate_graph_with_config(&args.graph, None); } diff --git a/hydro_optimize_examples/examples/perf_paxos.rs b/hydro_optimize_examples/examples/perf_paxos.rs index 545e17f..1d37e36 100644 --- a/hydro_optimize_examples/examples/perf_paxos.rs +++ b/hydro_optimize_examples/examples/perf_paxos.rs @@ -1,14 +1,12 @@ -use std::cell::RefCell; - use clap::{ArgAction, Parser}; use hydro_deploy::Deployment; -use hydro_lang::location::Location; use hydro_lang::viz::config::GraphConfig; -use hydro_optimize::decoupler; use hydro_optimize::deploy::{HostType, ReusableHosts}; -use hydro_optimize::deploy_and_analyze::deploy_and_analyze; -use hydro_test::cluster::kv_replica::Replica; -use hydro_test::cluster::paxos::{Acceptor, CorePaxos, PaxosConfig, Proposer}; +use hydro_optimize::deploy_and_analyze::{ + Optimizations, ReusableClusters, ReusableProcesses, deploy_and_optimize, +}; +use hydro_std::bench_client::pretty_print_bench_results; +use hydro_test::cluster::paxos::{CorePaxos, PaxosConfig}; use hydro_test::cluster::paxos_bench::{Aggregator, Client}; #[derive(Parser, Debug)] @@ -46,11 +44,12 @@ async fn main() { let mut builder = hydro_lang::compile::builder::FlowBuilder::new(); let f = 1; let num_clients = 3; - let num_clients_per_node = 500; // Change based on experiment between 1, 50, 100. + let num_clients_per_node = 100; // Change based on experiment between 1, 50, 100. let checkpoint_frequency = 1000; // Num log entries let i_am_leader_send_timeout = 5; // Sec let i_am_leader_check_timeout = 10; // Sec let i_am_leader_check_timeout_delay_multiplier = 15; + let print_result_frequency = 1000; // Millis let proposers = builder.cluster(); let acceptors = builder.cluster(); @@ -76,80 +75,31 @@ async fn main() { &clients, &client_aggregator, &replicas, + print_result_frequency, + pretty_print_bench_results, // Note: Throughput/latency numbers won't be accessible to deploy_and_optimize ); - let mut clusters = vec![ - ( - proposers.id().raw_id(), - std::any::type_name::().to_string(), - f + 1, - ), - ( - acceptors.id().raw_id(), - std::any::type_name::().to_string(), - 2 * f + 1, - ), - ( - clients.id().raw_id(), - std::any::type_name::().to_string(), - num_clients, - ), - ( - replicas.id().raw_id(), - std::any::type_name::().to_string(), - f + 1, - ), - ]; - let processes = vec![( - client_aggregator.id().raw_id(), - std::any::type_name::().to_string(), - )]; - // Deploy let mut reusable_hosts = ReusableHosts::new(host_type); - - let multi_run_metadata = RefCell::new(vec![]); let num_times_to_optimize = 2; - - for i in 0..num_times_to_optimize { - let (rewritten_ir_builder, mut ir, mut decoupler, bottleneck_name, bottleneck_num_nodes) = - deploy_and_analyze( - &mut reusable_hosts, - &mut deployment, - builder.finalize(), - &clusters, - &processes, - vec![ - std::any::type_name::().to_string(), - std::any::type_name::().to_string(), - ], - None, - &multi_run_metadata, - i, - ) - .await; - - // Apply decoupling - let mut decoupled_cluster = None; - builder = rewritten_ir_builder.build_with(|builder| { - let new_cluster = builder.cluster::<()>(); - decoupler.decoupled_location = new_cluster.id().clone(); - decoupler::decouple(&mut ir, &decoupler, &multi_run_metadata, i); - decoupled_cluster = Some(new_cluster); - - ir - }); - if let Some(new_cluster) = decoupled_cluster { - clusters.push(( - new_cluster.id().raw_id(), - format!("{}-decouple-{}", bottleneck_name, i), - bottleneck_num_nodes, - )); - } - } - - let built = builder.finalize(); - - // Generate graphs if requested - _ = built.generate_graph_with_config(&args.graph, None); + let run_seconds = 30; + + deploy_and_optimize( + &mut reusable_hosts, + &mut deployment, + builder.finalize(), + ReusableClusters::default() + .with_cluster(proposers, f + 1) + .with_cluster(acceptors, 2 * f + 1) + .with_cluster(clients, num_clients) + .with_cluster(replicas, f + 1), + ReusableProcesses::default().with_process(client_aggregator), + Optimizations::default() + .with_decoupling() + .excluding::() + .excluding::() + .with_iterations(num_times_to_optimize), + Some(run_seconds), + ) + .await; } diff --git a/hydro_optimize_examples/src/lib.rs b/hydro_optimize_examples/src/lib.rs index 09bf34a..d059e8a 100644 --- a/hydro_optimize_examples/src/lib.rs +++ b/hydro_optimize_examples/src/lib.rs @@ -1,9 +1,63 @@ -stageleft::stageleft_no_entry_crate!(); - -#[cfg(test)] -mod test_init { - #[ctor::ctor] - fn init() { - hydro_lang::deploy::init_test(); - } +#[cfg(stageleft_runtime)] +hydro_lang::setup!(); + +pub mod lock_server; +pub mod network_calibrator; +pub mod simple_kv_bench; +// pub mod lobsters; +// pub mod web_submit; + +use hdrhistogram::Histogram; +use hydro_std::bench_client::{AggregateBenchResult, rolling_average::RollingAverage}; +use stageleft::q; +use std::time::Duration; + +/// Note: Must remain synchronized with definitions in hydro_optimize/deploy_and_analyze. +/// Redefined here because we don't want to import hydro_optimize as a dependency. +pub(crate) const LATENCY_PREFIX: &str = "HYDRO_OPTIMIZE_LAT:"; +pub(crate) const THROUGHPUT_PREFIX: &str = "HYDRO_OPTIMIZE_THR:"; + +pub fn print_parseable_bench_results<'a, Aggregator>( + aggregate_results: AggregateBenchResult<'a, Aggregator>, + interval_millis: u64, +) { + aggregate_results + .throughput + .filter_map(q!(move |(throughputs, num_client_machines): ( + RollingAverage, + usize + )| { + if let Some((lower, upper)) = throughputs.confidence_interval_99() { + Some(( + lower * num_client_machines as f64, + throughputs.sample_mean() * num_client_machines as f64, + upper * num_client_machines as f64, + )) + } else { + None + } + })) + .for_each(q!(move |(lower, mean, upper)| { + println!( + "{} {:.2} - {:.2} - {:.2} requests/s", + THROUGHPUT_PREFIX, lower, mean, upper, + ); + })); + aggregate_results + .latency + .map(q!(move |latencies: Histogram| ( + Duration::from_nanos(latencies.value_at_quantile(0.5)).as_micros() as f64 + / interval_millis as f64, + Duration::from_nanos(latencies.value_at_quantile(0.99)).as_micros() as f64 + / interval_millis as f64, + Duration::from_nanos(latencies.value_at_quantile(0.999)).as_micros() as f64 + / interval_millis as f64, + latencies.len(), + ))) + .for_each(q!(move |(p50, p99, p999, num_samples)| { + println!( + "{} p50: {:.3} | p99 {:.3} | p999 {:.3} ms ({:} samples)", + LATENCY_PREFIX, p50, p99, p999, num_samples + ); + })); } diff --git a/hydro_optimize_examples/src/lobsters.rs b/hydro_optimize_examples/src/lobsters.rs new file mode 100644 index 0000000..e72eb3f --- /dev/null +++ b/hydro_optimize_examples/src/lobsters.rs @@ -0,0 +1,182 @@ +use hydro_lang::{ + live_collections::{ + sliced::sliced, + stream::{NoOrder, TotalOrder}, + }, + location::{Location, MemberId}, + nondet::nondet, + prelude::{Bounded, KeyedSingleton, KeyedStream, Process, Singleton, Stream, Unbounded}, +}; +use serde::{Deserialize, Serialize}; +use sha2::{Digest, Sha256}; +use stageleft::q; +use std::{collections::HashMap, hash::Hash}; +use tokio::time::Instant; + +pub struct Server {} + +#[derive(Serialize, Deserialize, PartialEq, Eq, Clone, Debug)] +pub struct Story { + pub title: String, + pub epoch_time: u128, + pub id: u32, +} + +impl PartialOrd for Story { + fn partial_cmp(&self, other: &Self) -> Option { + Some(self.epoch_time.cmp(&other.epoch_time)) + } +} + +/// Implementation of Lobsters, roughly based on API calls exposed here: https://lobste.rs/s/cqnzl5/lobste_rs_access_pattern_statistics_for#c_2op8by +/// We expose the following APIs: +/// - add_user (takes username, returns api_key. Rejects if the user already exists (returns None)) +/// - get_users (returns usernames) +/// - add_story (takes api_key, title, timestamp, returns story_id) +/// - add_comment (takes api_key, story_id, comment, timestamp, returns comment_id) +/// - upvote_story (takes api_key, story_id) +/// - upvote_comment (takes api_key, comment_id) +/// - get_stories (returns the 20 stories with the latest timestamps) +/// - get_comments (returns the 20 comments with the latest timestamps) +/// - get_story_comments (takes story_id, returns the comments for that story) +/// +/// Any call with an invalid API key (either it does not exist or does not have the privileges required) will not receive a response. +#[expect( + clippy::too_many_arguments, + clippy::type_complexity, + reason = "internal Lobsters code // TODO" +)] +pub fn lobsters<'a, Client>( + server: &Process<'a, Server>, + add_user: KeyedStream, Unbounded, NoOrder>, + get_users: Stream, Unbounded, NoOrder>, + add_story: KeyedStream< + Client, + (String, String, Instant), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + _add_comment: KeyedStream< + Client, + (String, u32, String, Instant), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + upvote_story: KeyedStream, Unbounded, NoOrder>, + _upvote_comment: KeyedStream, Unbounded, NoOrder>, + get_stories: Stream, Unbounded, NoOrder>, + _get_comments: Stream, Unbounded, NoOrder>, + _get_story_comments: KeyedStream, Unbounded, NoOrder>, +) -> ( + KeyedStream, Process<'a, Server>, Unbounded, NoOrder>, // add_user response + KeyedStream, Process<'a, Server>, Unbounded, NoOrder>, // get_users response +) +where + Client: Eq + Hash + Clone, +{ + let user_auth_tick = server.tick(); + let stories_tick = server.tick(); + + // Add users + let atomic_add_user = add_user.atomic(&user_auth_tick); + let user_key_add_user = atomic_add_user + .clone() + .entries() + .map(q!(|(client, username)| ( + username.clone(), + (self::generate_api_key(username), client,) + ))) + .into_keyed(); + + // Add story + let api_key_add_story = add_story + .entries() + .map(q!(|(client, (api_key, title, timestamp))| ( + api_key, + (client, title, timestamp) + ))) + .into_keyed(); + + // Persisted users + let curr_users = user_key_add_user + .assume_ordering(nondet!(/** First user wins */)) + .first(); + // Anything to do with persisted users + let (add_user_response, get_users_response, add_story_valid_api_key) = sliced! { + let add_user = use::atomic(atomic_add_user, nondet!(/** New users requests this tick */)); + let get_users = use(get_users, nondet!(/** Order of processing affects which users will be retrieved */)); + let add_story = use(api_key_add_story, nondet!(/** Add story requests sent before user's creation will fail */)); + + let curr_users = use::atomic(curr_users, nondet!(/** Current users this tick */)); + let curr_api_keys = curr_users.entries().map(q!(|(_username, (api_key, _client))| (api_key, ()))).into_keyed().assume_ordering(nondet!(/** Actually KeyedSingleton, assuming API key generation is unique */)).first(); + + let add_users_response = add_user.lookup_keyed_singleton(curr_users); + let get_users_response = get_users.cross_singleton(curr_users.into_singleton()); + let add_story_valid_api_key = add_story.join_keyed_singleton(curr_api_keys); + (add_users_response, get_users_response, add_story_valid_api_key) + }; + + let valid_add_story = + add_story_valid_api_key + .entries() + .map(q!(|(_api_key, ((client, title, timestamp), _))| ( + client, title, timestamp + ))); + // Anything to do with persisted stories + let (add_story_with_id, upvote_story_response, get_stories_response) = sliced! { + let add_story = use(valid_add_story, nondet!(/** Add new incoming story requests this tick */)); + let get_stories = use(get_stories, nondet!(/** Order of processing affects which stories will be retrieved */)); + let upvote_story = use(upvote_story, nondet!(/** If a story didn't exist when the upvote was sent, it will fail */)); + // TODO: Replace with KeyedSingleton once that is supported + // ID, client, virtual_client, title, timestamp + let mut stories = use::state_null::>(); + let mut next_story_id = use::state::>(|l| l.singleton(q!(0))); + + let new_stories = add_story.clone().assume_ordering(nondet!(/** Stories are assigned an ID in arbitrary order */)) + .enumerate() + .cross_singleton(next_story_id) + .map(q!(|((index, (client, title, timestamp)), curr_id)| (index as u32 + curr_id, client, title, timestamp))); + next_story_id = next_story_id.zip(add_story.count()).map(q!(|(curr_id, count)| curr_id + count as u32)); + + stories = stories.chain(new_stories); + + (new_stories, ) + }; + + let _top_stories = curr_stories.clone().persist().fold_commutative_idempotent( + q!(|| vec![]), + q!( + |vec, (_api_key, ((_client, _req_id, title, timestamp), username))| { + let new_elem = (title, timestamp, username); + // TODO: Use a binary heap + // TODO: Create a struct that is ordered by timestamp + let pos = vec.binary_search(&new_elem).unwrap_or_else(|e| e); + vec.insert(pos, new_elem); + vec.truncate(20); + } + ), + ); + + ( + add_user_response.map_with_key(q!(|(client, (username, user_with_that_name))| { + let (api_key, client_with_that_name) = user_with_that_name.unwrap(); + if client == client_with_that_name { + Some(api_key) + } else { + None + } + })), + get_users_response.into_keyed(), + ) +} + +fn generate_api_key(email: String) -> String { + let secret = "There is no secret ingredient"; + let mut hasher = Sha256::new(); + hasher.update(email.as_bytes()); + hasher.update(secret.as_bytes()); + let hash = hasher.finalize(); + format!("{:x}", hash) +} diff --git a/hydro_optimize_examples/src/lock_server.rs b/hydro_optimize_examples/src/lock_server.rs new file mode 100644 index 0000000..6e010c6 --- /dev/null +++ b/hydro_optimize_examples/src/lock_server.rs @@ -0,0 +1,150 @@ +use hydro_lang::{ + live_collections::{sliced::sliced, stream::NoOrder}, + location::Location, + nondet::nondet, + prelude::{KeyedStream, Process, Stream, Unbounded}, +}; +use stageleft::q; +use std::hash::Hash; + +pub struct Server {} + +/// Lock server implementation as described in https://dl.acm.org/doi/pdf/10.1145/3341301.3359651, with the difference being that each server can hold multiple locks. +/// * `acquires`: Stream of (client, lock_id), requesting a lock from the server. If the server currently holds the lock, it returns (client, lock_id, true). Otherwise, it returns (client, lock_id, false). +/// * `releases`: Stream of (client, lock_id), releasing a lock back to the server. Returns (client, lock_id). +/// +/// Assumptions: +/// - No client will send a release message before it knows it has acquired the lock. +/// - Clients block on ACKs for outgoing messages; no client has 2 in-flight messages. +/// +#[expect(clippy::type_complexity, reason = "internal Lock Server code // TODO")] +pub fn lock_server<'a, Client>( + server: &Process<'a, Server>, + acquires: KeyedStream, Unbounded, NoOrder>, + releases: KeyedStream, Unbounded, NoOrder>, +) -> ( + KeyedStream, Unbounded, NoOrder>, + KeyedStream, Unbounded, NoOrder>, +) +where + Client: Eq + Hash + Clone, +{ + let server_tick = server.tick(); + let mapped_acquires = acquires + .clone() + .entries() + .map(q!(|(client, lock_id)| (lock_id, client))) + .into_keyed(); + let atomic_releases = releases.atomic(&server_tick); + let mapped_releases = atomic_releases.clone().values(); + + let acquire_results = sliced! { + let mapped_acquires = use(mapped_acquires, nondet!(/** For each lock, pick a random acquire as the winner */)); + let mapped_releases = use::atomic(mapped_releases, nondet!(/** For each lock, only one release should succeed (the owner of the lock) */)); + + // lock_id + // TODO: Replace with KeyedSingleton when support is added + // (lock_id, (client_id, virtual_client_id)) + let mut acquired_locks = use::state_null::>(); + let keyed_acquired_locks = acquired_locks.into_keyed().assume_ordering(nondet!(/** Actually KeyedSingleton */)).first(); + + // Always process releases first. Find out which locks still can't be acquired + let curr_acquired_locks = keyed_acquired_locks + .clone() + .filter_key_not_in(mapped_releases); // Only correct if non-lock holders don't release locks they don't own + + // For each lock, pick a random acquire as the winner + let winning_acquires = mapped_acquires.clone().assume_ordering(nondet!(/** Randomly pick one acquire to be the winner */)).first(); + + // Acquires win for all non-acquired locks, even ones that don't exist yet + let newly_acquired_locks = winning_acquires.filter_key_not_in(curr_acquired_locks.clone().keys()); + acquired_locks = curr_acquired_locks.entries().chain(newly_acquired_locks.clone().entries()); + + let acquire_requests = mapped_acquires.entries().map(q!(|(lock_id, client)| (client, lock_id))).into_keyed(); + acquire_requests.lookup_keyed_singleton(newly_acquired_locks) + } + .entries() + .map(q!(|(client, (lock_id, curr_holder))| { + let lock_acquired = curr_holder.is_some_and(|curr_client| client == curr_client); + (client, (lock_id, lock_acquired)) + })) + .into_keyed(); + + (acquire_results, atomic_releases.end_atomic()) +} + +/// Lock server implementation as described in https://dl.acm.org/doi/pdf/10.1145/3341301.3359651, with the difference being that each server can hold multiple locks. +/// * `acquires`: Stream of (client, lock_id), requesting a lock from the server. If the server currently holds the lock, it returns (client, lock_id, true). Otherwise, it returns (client, lock_id, false). +/// * `releases`: Stream of (client, lock_id), releasing a lock back to the server. Returns (client, lock_id). +/// +/// Assumptions: +/// - No client will send a release message before it knows it has acquired the lock. +/// - Clients block on ACKs for outgoing messages; no client has 2 in-flight messages. +/// +/// This version iterates through each request in order, as one might on a single-threaded server. +#[expect(clippy::type_complexity, reason = "internal Lock Server code // TODO")] +pub fn assume_order_lock_server<'a, Client>( + server: &Process<'a, Server>, + acquires: KeyedStream, Unbounded, NoOrder>, + releases: KeyedStream, Unbounded, NoOrder>, +) -> ( + KeyedStream, Unbounded, NoOrder>, + KeyedStream, Unbounded, NoOrder>, +) +where + Client: Eq + Hash + Clone, +{ + let server_tick = server.tick(); + let atomic_acquires = acquires.atomic(&server_tick); + let lock_id_acquires = atomic_acquires + .entries() + .map(q!(|(client, lock_id)| (lock_id, (client, true)))) + .into_keyed(); + let atomic_releases = releases.atomic(&server_tick); + let lock_id_releases = atomic_releases + .clone() + .entries() + .map(q!(|(client, lock_id)| (lock_id, (client, false)))) + .into_keyed(); + + let lock_state = lock_id_acquires + .clone() + .interleave(lock_id_releases) + .assume_ordering(nondet!(/** Process in arrival order */)) + .fold( + q!(|| None), + q!(|curr_holder, (client, acquire)| { + if acquire { + // If the lock is currently held by the server, give the client the lock + if curr_holder.is_none() { + *curr_holder = Some(client.clone()); + } + } else { + // If the client is releasing the lock and it holds it, give the lock back to the server + if curr_holder + .as_ref() + .is_some_and(|curr_client| client == *curr_client) + { + *curr_holder = None; + } + } + }), + ); + + // Check if acquires succeeded + let acquire_results = sliced! { + let acquires = use::atomic(lock_id_acquires, nondet!(/** Payloads at this tick */)); + let locks_snapshot = use::atomic(lock_state, nondet!(/** Snapshot of lock state at this tick */)); + + // Note: join_keyed_singleton is guaranteed to not miss, since an acquire/release must've been processed first + acquires.join_keyed_singleton(locks_snapshot) + } + .entries() + .map(q!(|(lock_id, ((client, _acquire), curr_holder))| { + let lock_acquired = curr_holder.is_some_and(|curr_client| client == curr_client); + (client, (lock_id, lock_acquired)) + })) + .into_keyed(); + + (acquire_results, atomic_releases.end_atomic()) +} diff --git a/hydro_optimize_examples/src/network_calibrator.rs b/hydro_optimize_examples/src/network_calibrator.rs new file mode 100644 index 0000000..4cf09a0 --- /dev/null +++ b/hydro_optimize_examples/src/network_calibrator.rs @@ -0,0 +1,70 @@ +use hydro_lang::{ + live_collections::stream::NoOrder, + nondet::nondet, + prelude::{Cluster, KeyedStream, Process, TCP, Unbounded}, +}; +use hydro_std::bench_client::{aggregate_bench_results, bench_client, compute_throughput_latency}; + +use stageleft::q; + +use crate::print_parseable_bench_results; + +pub struct Client; +pub struct Server; +pub struct Aggregator; + +pub fn network_calibrator<'a>( + num_clients_per_node: usize, + message_size: usize, + server: &Cluster<'a, Server>, + clients: &Cluster<'a, Client>, + client_aggregator: &Process<'a, Aggregator>, + interval_millis: u64, +) { + let latencies = bench_client( + clients, + num_clients_per_node, + |ids_and_prev_payloads| size_based_workload_generator(message_size, ids_and_prev_payloads), + |payloads| { + // Server just echoes the payload + payloads + .entries() + .broadcast(server, TCP.bincode(), nondet!(/** Test */)) + .demux(clients, TCP.bincode()) + .values() + .into_keyed() + }, + ) + .values() + .map(q!(|(_client_id, latency)| latency)); + + let bench_results = compute_throughput_latency(clients, latencies, nondet!(/** bench */)); + let aggregate_results = + aggregate_bench_results(bench_results, client_aggregator, clients, interval_millis); + print_parseable_bench_results(aggregate_results, interval_millis); +} + +/// Generates an incrementing u32 for each virtual client ID, starting at 0 +pub fn size_based_workload_generator<'a, Client>( + message_size: usize, + ids_and_prev_payloads: KeyedStream< + u32, + Option>, + Cluster<'a, Client>, + Unbounded, + NoOrder, + >, +) -> KeyedStream, Cluster<'a, Client>, Unbounded, NoOrder> { + ids_and_prev_payloads.map(q!(move |payload| { + if let Some(mut payload) = payload + && let Some(last) = payload.last_mut() + { + *last += 1; + return payload; + } + + // Temp fix for macro stuff that isn't supported by stageleft I guess + let msg_size = message_size; + vec![0; msg_size] + })) +} diff --git a/hydro_optimize_examples/src/simple_kv_bench.rs b/hydro_optimize_examples/src/simple_kv_bench.rs new file mode 100644 index 0000000..5384d14 --- /dev/null +++ b/hydro_optimize_examples/src/simple_kv_bench.rs @@ -0,0 +1,129 @@ +use hydro_lang::{ + location::Location, + nondet::nondet, + prelude::{Cluster, Process, TCP}, +}; +use hydro_std::bench_client::{aggregate_bench_results, bench_client, compute_throughput_latency}; + +use hydro_test::cluster::paxos_bench::inc_i32_workload_generator; +use stageleft::q; + +use crate::print_parseable_bench_results; + +pub struct Kv; +pub struct Client; +pub struct Aggregator; + +pub fn simple_kv_bench<'a>( + num_clients_per_node: usize, + kv: &Process<'a, Kv>, + clients: &Cluster<'a, Client>, + client_aggregator: &Process<'a, Aggregator>, + interval_millis: u64, +) { + let latencies = bench_client( + clients, + num_clients_per_node, + inc_i32_workload_generator, + |input| { + let k_tick = kv.tick(); + // Use atomic to prevent outputting to the client before values are inserted to the KV store + let k_payloads = input.send(kv, TCP.bincode()).atomic(&k_tick); + + let for_each_tick = kv.tick(); + // Insert each payload into the KV store + k_payloads + .clone() + .assume_ordering(nondet!(/** Last writer wins per key. */)) + // Persist state across ticks + .reduce(q!(|prev, new| { + *prev = new; + })) + .end_atomic() + .snapshot( + &for_each_tick, + nondet!(/** for_each does nothing, just need to end on a HydroRoot */), + ) + .entries() + .all_ticks() + .assume_ordering( + nondet!(/** for_each does nothing, just need to end on a HydroRoot */), + ) + .assume_retries( + nondet!(/** for_each does nothing, just need to end on a HydroRoot */), + ) + .for_each(q!(|_| {})); // Do nothing, just need to end on a HydroRoot + + // Send committed requests back to the original client + k_payloads.end_atomic().demux(clients, TCP.bincode()) + }, + ) + .values() + .map(q!(|(_value, latency)| latency)); + + let bench_results = compute_throughput_latency(clients, latencies, nondet!(/** bench */)); + let aggregate_results = + aggregate_bench_results(bench_results, client_aggregator, clients, interval_millis); + print_parseable_bench_results(aggregate_results, interval_millis); +} + +#[cfg(test)] +mod tests { + use hydro_deploy::Deployment; + use hydro_lang::{ + deploy::{DeployCrateWrapper, TrybuildHost}, + prelude::FlowBuilder, + }; + use std::str::FromStr; + + use regex::Regex; + + use crate::THROUGHPUT_PREFIX; + #[cfg(stageleft_runtime)] + use crate::simple_kv_bench::simple_kv_bench; + + #[tokio::test] + async fn simple_kv_some_throughput() { + let mut builder = FlowBuilder::new(); + let kv = builder.process(); + let clients = builder.cluster(); + let client_aggregator = builder.process(); + let interval_millis = 1000; + + simple_kv_bench(1, &kv, &clients, &client_aggregator, interval_millis); + let mut deployment = Deployment::new(); + + let nodes = builder + .with_process(&kv, TrybuildHost::new(deployment.Localhost())) + .with_cluster(&clients, vec![TrybuildHost::new(deployment.Localhost())]) + .with_process( + &client_aggregator, + TrybuildHost::new(deployment.Localhost()), + ) + .deploy(&mut deployment); + + deployment.deploy().await.unwrap(); + + let client_node = &nodes.get_process(&client_aggregator); + let client_out = client_node.stdout_filter(THROUGHPUT_PREFIX); + + deployment.start().await.unwrap(); + + let re = + Regex::new(r"(\d+\.?\d*)\s*-\s*(\d+\.?\d*)\s*-\s*(\d+\.?\d*)\s*requests/s").unwrap(); + let mut found = 0; + let mut client_out = client_out; + while let Some(line) = client_out.recv().await { + if let Some(caps) = re.captures(&line) + && let Ok(lower) = f64::from_str(&caps[1]) + && lower > 0.0 + { + println!("Found throughput lower-bound: {}", lower); + found += 1; + if found == 2 { + break; + } + } + } + } +} diff --git a/hydro_optimize_examples/src/web_submit.rs b/hydro_optimize_examples/src/web_submit.rs new file mode 100644 index 0000000..2ba935b --- /dev/null +++ b/hydro_optimize_examples/src/web_submit.rs @@ -0,0 +1,406 @@ +use std::collections::{HashMap, HashSet}; + +use hydro_lang::{ + live_collections::stream::NoOrder, + location::{Location, MemberId}, + nondet::nondet, + prelude::{Process, Stream, Unbounded}, +}; +use sha2::{Digest, Sha256}; +use stageleft::q; + +pub struct Server {} + +/// Implementation of WebSubmit https://github.com/ms705/websubmit-rs/tree/master. +/// We expose the following APIs: +/// - add_lecture (takes api_key, lecture_id, lecture, only approves if user is admin) +/// - add_question (takes api_key, question, question_id, lecture_id, only approves if user is admin) +/// - add_user (takes user_email, is_admin, hashes user's email + secret, stores API key in table, emails them the key, should only approve if user is admin but it's tautological so just approve everyone) +/// - get_users (takes api_key, only approves if caller is admin, returns user_id, user_email, user_is_admin) +/// - list_lectures (takes api_key, returns lecture_id, lecture) +/// - list_lecture_questions_all (takes api_key & lecture_id, returns question, question_id, optional answer joining on answer_id = question_id, only approves if user is admin) +/// - list_lecture_questions_user (takes api_key & lecture_id, returns question, question_id, optional answer joining on answer_id = question_id if this user wrote the answer) +/// - add_answer (takes api_key, question_id, answer) +/// +/// Any call with an invalid API key (either it does not exist or does not have the privileges required) will not receive a response. +#[expect( + clippy::too_many_arguments, + clippy::type_complexity, + reason = "internal Web Submit code // TODO" +)] +pub fn web_submit<'a, Client>( + server: &Process<'a, Server>, + add_lecture: Stream< + (MemberId, (String, u32, String)), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + add_question: Stream< + (MemberId, (String, String, u32, u32)), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + add_user: Stream<(MemberId, (String, bool)), Process<'a, Server>, Unbounded, NoOrder>, + get_users: Stream<(MemberId, String), Process<'a, Server>, Unbounded, NoOrder>, + list_lectures: Stream<(MemberId, String), Process<'a, Server>, Unbounded, NoOrder>, + list_lecture_questions_all: Stream< + (MemberId, (String, u32)), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + list_lecture_questions_user: Stream< + (MemberId, (String, u32)), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + add_answer: Stream< + (MemberId, (String, u32, String)), + Process<'a, Server>, + Unbounded, + NoOrder, + >, +) -> ( + Stream<(MemberId, ()), Process<'a, Server>, Unbounded, NoOrder>, + Stream<(MemberId, ()), Process<'a, Server>, Unbounded, NoOrder>, + Stream<(MemberId, ()), Process<'a, Server>, Unbounded, NoOrder>, + Stream<(MemberId, HashMap), Process<'a, Server>, Unbounded, NoOrder>, + Stream<(MemberId, HashMap), Process<'a, Server>, Unbounded, NoOrder>, + Stream< + (MemberId, HashMap)>), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + Stream< + (MemberId, HashMap)>), + Process<'a, Server>, + Unbounded, + NoOrder, + >, + Stream<(MemberId, ()), Process<'a, Server>, Unbounded, NoOrder>, +) { + let user_auth_tick = server.tick(); + let lectures_tick = server.tick(); + let question_answer_tick = server.tick(); + + // Add user + let add_user_with_api_key = add_user.map(q!(|(client_id, (email, is_admin))| { + let api_key = self::generate_api_key(email.clone()); + (client_id, (email, is_admin, api_key)) + })); + let users_this_tick_with_api_key = add_user_with_api_key.batch( + &user_auth_tick, + nondet!(/** Snapshot current users to approve/deny access */), + ); + // Persisted users + let curr_users = users_this_tick_with_api_key + .clone() + .map(q!(|(_client_id, (email, is_admin, api_key))| ( + api_key, + (email, is_admin) + ))) + .persist(); + let curr_users_hashmap = curr_users.clone().fold_commutative_idempotent( + q!(|| HashMap::new()), + q!(|map, (_api_key, (email, is_admin))| { + map.insert(email, is_admin); + }), + ); + // Email the API key. Only done after the tick to ensure that once the client gets the email, the user has been added + users_this_tick_with_api_key + .clone() + .all_ticks() + .assume_ordering(nondet!(/** Email order doesn't matter */)) + .assume_retries(nondet!(/** At least once delivery is fine */)) + .for_each(q!(|(_client_id, (email, _is_admin, api_key))| { + self::send_email(api_key, email) + })); + // Send response back to client. Only done after the tick to ensure that once the client gets the response, the user has been added + let add_user_response = + users_this_tick_with_api_key.all_ticks().map(q!(|( + client_id, + (_email, _is_admin, _api_key), + )| (client_id, ()))); + + // Add lecture + let add_lecture_pre_join = + add_lecture.map(q!(|(client_id, (api_key, lecture_id, lecture))| { + (api_key, (client_id, lecture_id, lecture)) + })); + let lectures = add_lecture_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .all_ticks() + .filter(q!(|( + _api_key, + ((_client_id, _lecture_id, _lecture), (_email, is_admin)), + )| *is_admin)); + let curr_lectures = + lectures.batch(&lectures_tick, nondet!(/** Snapshot of current lectures */)); + let curr_lectures_hashmap = curr_lectures.clone().persist().fold_commutative_idempotent( + q!(|| HashMap::new()), + q!( + |map, (_api_key, ((_client_id, lecture_id, lecture), (_email, _is_admin)))| { + map.insert(lecture_id, lecture); + } + ), + ); + // Only done after the lectures_tick to ensure that once the client gets the response, the lecture has been added + let add_lecture_response = curr_lectures.all_ticks().map(q!(|( + _api_key, + ((client_id, _lecture_id, _lecture), (_email, _is_admin)), + )| (client_id, ()))); + + // Add question + let add_question_pre_join = add_question.map(q!(|( + client_id, + (api_key, question, question_id, lecture_id), + )| { + (api_key, (client_id, question, question_id, lecture_id)) + })); + let add_question_auth = add_question_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .all_ticks() + .filter(q!(|( + _api_key, + ((_client_id, _question, _question_id, _lecture_id), (_email, is_admin)), + )| *is_admin)); + let add_question_this_tick = add_question_auth.batch( + &question_answer_tick, + nondet!(/** Snapshot of current questions */), + ); + let curr_questions = add_question_this_tick + .clone() + .map(q!(|( + _api_key, + ((_client_id, question, question_id, lecture_id), (_email, _is_admin)), + )| (lecture_id, (question_id, question)))) + .persist(); + // Only done after the question_answer_tick to ensure that once the client gets the response, the question has been added + let add_question_response = add_question_this_tick.all_ticks().map(q!(|( + _api_key, + ((client_id, _question, _question_id, _lecture_id), (_email, _is_admin)), + )| (client_id, ()))); + + // Get users + let get_users_pre_join = get_users.map(q!(|(client_id, api_key)| (api_key, client_id))); + let get_users_response = get_users_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .filter_map(q!(|(_api_key, (client_id, (_email, is_admin)))| { + if is_admin { Some(client_id) } else { None } + })) + .cross_singleton(curr_users_hashmap) + .all_ticks(); + + // List lectures + let list_lectures_pre_join = list_lectures.map(q!(|(client_id, api_key)| (api_key, client_id))); + let list_lectures_auth = list_lectures_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .all_ticks() + .map(q!(|(_api_key, (client_id, (_email, _is_admin)))| client_id)); + let list_lectures_response = list_lectures_auth + .batch( + &lectures_tick, + nondet!(/** Join with snapshot of current lectures */), + ) + .cross_singleton(curr_lectures_hashmap) + .all_ticks(); + + // Add answer + let add_answer_pre_join = add_answer.map(q!(|(client_id, (api_key, question_id, answer))| { + (api_key, (client_id, question_id, answer)) + })); + let add_answer_auth = add_answer_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .all_ticks(); + let add_answer_this_tick = add_answer_auth.batch( + &question_answer_tick, + nondet!(/** Snapshot of current answers */), + ); + let curr_answers = add_answer_this_tick + .clone() + .map(q!(|( + api_key, + ((_client_id, question_id, answer), (_email, _is_admin)), + )| ((question_id, api_key), answer))) + .persist(); + // Only done after the question_answer_tick to ensure that once the client gets the response, the answer has been added + let add_answer_response = add_answer_this_tick.all_ticks().map(q!(|( + _api_key, + ((client_id, _question_id, _answer), (_email, _is_admin)), + )| (client_id, ()))); + + // List lecture questions all + let list_lecture_questions_all_pre_join = + list_lecture_questions_all.map(q!(|(client_id, (api_key, lecture_id))| { + (api_key, (client_id, lecture_id)) + })); + let list_lecture_questions_all_auth = list_lecture_questions_all_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .all_ticks() + .filter_map(q!(|( + _api_key, + ((client_id, lecture_id), (_email, is_admin)), + )| { + if is_admin { + Some((lecture_id, client_id)) + } else { + None + } + })); + // Find all questions with that ID + let list_lecture_questions_all_question_only = list_lecture_questions_all_auth + .batch( + &question_answer_tick, + nondet!(/** Join with snapshot of current questions */), + ) + .join(curr_questions.clone()) + .map(q!(|(_lecture_id, (client_id, (question_id, question)))| ( + question_id, + (client_id, question) + ))); + // Don't need to join on api_key since we're getting all answers, regardless of who wrote them + let curr_answers_no_api_key = + curr_answers + .clone() + .map(q!(|((question_id, _api_key), answer)| ( + question_id, + answer + ))); + // Find all answers with the question ID + let list_lecture_questions_all_with_answer = list_lecture_questions_all_question_only + .clone() + .join(curr_answers_no_api_key.clone()) + .map(q!(|(question_id, ((client_id, question), answer))| { + (client_id, (question_id, question, Some(answer))) + })); + // Find all questions without answers + let list_lecture_questions_all_no_answer = list_lecture_questions_all_question_only + .anti_join(curr_answers_no_api_key.map(q!(|(question_id, _answer)| question_id))) + .map(q!(|(question_id, (client_id, question))| ( + client_id, + (question_id, question, None) + ))); + let list_lecture_questions_all_response = list_lecture_questions_all_with_answer + .chain(list_lecture_questions_all_no_answer) + .into_keyed() + .fold_commutative_idempotent( + q!(|| HashMap::new()), + q!(|map, (question_id, question, answer)| { + let (_question, set_of_answers) = + map.entry(question_id).or_insert((question, HashSet::new())); + if let Some(answer) = answer { + set_of_answers.insert(answer); + } + }), + ) + .entries() + .all_ticks(); + + // List lecture questions user + let list_lecture_questions_user_pre_join = + list_lecture_questions_user.map(q!(|(client_id, (api_key, lecture_id))| { + (api_key, (client_id, lecture_id)) + })); + let list_lecture_questions_user_auth = list_lecture_questions_user_pre_join + .batch( + &user_auth_tick, + nondet!(/** Compare against current users to approve/deny access */), + ) + .join(curr_users.clone()) + .all_ticks() + .map(q!(|( + api_key, + ((client_id, lecture_id), (_email, _is_admin)), + )| (lecture_id, (client_id, api_key)))); + let list_lecture_questions_user_question_only = list_lecture_questions_user_auth + .batch( + &question_answer_tick, + nondet!(/** Join with snapshot of current questions */), + ) + .join(curr_questions) + .map(q!(|( + _lecture_id, + ((client_id, api_key), (question_id, question)), + )| ( + (question_id, api_key), + (client_id, question) + ))); + // Find all answers with the question ID + let list_lecture_questions_user_with_answer = list_lecture_questions_user_question_only + .clone() + .join(curr_answers.clone()) + .map(q!(|( + (question_id, _api_key), + ((client_id, question), answer), + )| { + (client_id, (question_id, question, Some(answer))) + })); + // Find all questions without answers + let list_lecture_questions_user_no_answer = list_lecture_questions_user_question_only + .anti_join(curr_answers.map(q!(|(k, _)| k))) + .map(q!(|((question_id, _api_key), (client_id, question))| ( + client_id, + (question_id, question, None) + ))); + let list_lecture_questions_user_response = list_lecture_questions_user_with_answer + .chain(list_lecture_questions_user_no_answer) + .into_keyed() + .fold_commutative_idempotent( + q!(|| HashMap::new()), + q!(|map, (question_id, question, answer)| { + map.insert(question_id, (question, answer)); + }), + ) + .entries() + .all_ticks(); + + ( + add_lecture_response, + add_question_response, + add_user_response, + get_users_response, + list_lectures_response, + list_lecture_questions_all_response, + list_lecture_questions_user_response, + add_answer_response, + ) +} + +fn generate_api_key(email: String) -> String { + let secret = "There is no secret ingredient"; + let mut hasher = Sha256::new(); + hasher.update(email.as_bytes()); + hasher.update(secret.as_bytes()); + let hash = hasher.finalize(); + format!("{:x}", hash) +} + +fn send_email(_api_key: String, _email: String) {}