Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleans up the log a little bit, moving some logs to trace level. Especially related to JIT, which fails quite frequently still. For example, this exposes the issue fixed by #2322: ``` $ RUST_LOG=debug cargo run pil test_data/std/binary_large_test.asm -o output -f --linker-mode bus ... [00:00:00 (ETA: 00:00:00)] ░░░░░░░░░░░░░░░░░░░░ 0% - Starting... Compiling JIT function for Machine: Secondary machine 0: main_binary (BlockMachine) Identity: main::instr_and $ [0, main::X0, main::X1, main::X2] is main_binary::latch * main_binary::sel[0] $ [main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C] Known args: 1110 => Error generating JIT code: Code generation failed: Incomplete machine calls: Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row -1) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 0) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 1) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 2) ... Compiling JIT function for Machine: Secondary machine 0: main_binary (BlockMachine) Identity: main::instr_or $ [1, main::X0, main::X1, main::X2] is main_binary::latch * main_binary::sel[1] $ [main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C] Known args: 1110 => Error generating JIT code: Code generation failed: Incomplete machine calls: Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row -1) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 0) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 1) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 2) ... Compiling JIT function for Machine: Secondary machine 0: main_binary (BlockMachine) Identity: main::instr_xor $ [2, main::X0, main::X1, main::X2] is main_binary::latch * main_binary::sel[2] $ [main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C] Known args: 1110 => Error generating JIT code: Code generation failed: Incomplete machine calls: Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row -1) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 0) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 1) Constr::PhantomBusInteraction(18446744069414584320 * (main_binary::latch * main_binary::sel[0]), [1, main_binary::operation_id, main_binary::A, main_binary::B, main_binary::C], main_binary::latch); (row 2) ... Found loop with period 1 starting at row 100 101 of 128 rows are used in machine 'Main machine (Dynamic)'. Looping failed. Trying to generate regularly again. (Use RUST_LOG=debug to see whether this happens more often.) 128 / 129 [00:00:00 (ETA: 00:00:00)] ████████████████████ 100% - Starting... Finalizing VM: Main machine (Dynamic) Secondary machine 0: main_binary (BlockMachine): 0 / 18 blocks computed via JIT. 72 of 128 rows are used in machine 'Secondary machine 0: main_binary (BlockMachine)'. == Witgen profile (570 events) 45.5% ( 975.3ms): Secondary machine 0: main_binary (BlockMachine) 44.6% ( 956.3ms): FixedLookup 6.1% ( 131.3ms): multiplicity witgen 3.5% ( 75.7ms): witgen (outer code) 0.2% ( 4.2ms): Main machine (Dynamic) --------------------------- ==> Total: 2.142724334s ``` --------- Co-authored-by: chriseth <[email protected]>
- Loading branch information