Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avm): integrate new range and cmp gadgets (#8165)
``` time AVM_ENABLE_FULL_PROVING=1 ./bb avm_prove --avm-bytecode /tmp/bb-dY93DM/tmp-ygXEjA/avm_bytecode.bin --avm-calldata /tmp/bb-dY93DM/tmp-ygXEjA/avm_calldata.bin --avm-public-inputs /tmp/bb-dY93DM/tmp-ygXEjA/avm_public_inputs.bin --avm-hints /tmp/bb-dY93DM/tmp-ygXEjA/avm_hints.bin -o /tmp/bb-dY93DM/tmp-ygXEjA/ -v bb command is: avm_prove bytecode size: 38126 calldata size: 6 public_inputs size: 691 hints.storage_value_hints size: 2 hints.note_hash_exists_hints size: 0 hints.nullifier_exists_hints size: 1 hints.l1_to_l2_message_exists_hints size: 0 hints.externalcall_hints size: 0 hints.contract_instance_hints size: 0 initializing crs with size: 1048576 using cached crs of size 33554433 at "/mnt/user-data/ilyas/.bb-crs/bn254_g1.dat" Deserialized 3322 instructions ------- GENERATING TRACE ------- Trace sizes before padding: main_trace_size: 65535 mem_trace_size: 2084 alu_trace_size: 410 range_check_size: 65536 conv_trace_size: 1 bin_trace_size: 0 sha256_trace_size: 0 poseidon2_trace_size: 0 pedersen_trace_size: 4 gas_trace_size: 890 fixed_gas_table_size: 66 slice_trace_size: 7 range_check_trace_size: 4266 cmp_trace_size: 39 Built trace size: 65536 Number of columns: 696 Number of non-zero elements: 236111/45613056 (0%) Relation degrees: alu: [5°: 2, 4°: 6, 3°: 11, 2°: 24, 1°: 5] binary: [3°: 1, 2°: 9] cmp: [4°: 3, 3°: 1, 2°: 21, 1°: 2] conversion: [2°: 1] gas: [4°: 2, 3°: 2, 2°: 2] keccakf1600: [2°: 1] kernel: [3°: 3, 2°: 41] main: [4°: 3, 3°: 7, 2°: 101, 1°: 3] mem: [5°: 1, 3°: 8, 2°: 41, 1°: 2] mem_slice: [3°: 3, 2°: 7, 1°: 1] pedersen: [2°: 1] poseidon2: [6°: 256, 2°: 17] range_check: [3°: 1, 2°: 15, 1°: 9] sha256: [2°: 1] Trace size after padding: 2^16 ------- PROVING EXECUTION ------- vk fields size: 66 circuit size: 0x0000000000000000000000000000000000000000000000000000000000010000 num of pub inputs: 0x0000000000000000000000000000000000000000000000000000000000000000 proof written to: "/tmp/bb-dY93DM/tmp-ygXEjA/proof" vk written to: "/tmp/bb-dY93DM/tmp-ygXEjA/vk" vk as fields written to: "/tmp/bb-dY93DM/tmp-ygXEjA/vk_fields.json" ------- STATS ------- prove/all_ms: 6953 prove/create_composer_ms: 0 prove/create_prover_ms: 1988 prove/create_verifier_ms: 41 prove/execute_log_derivative_inverse_commitments_round_ms: 344 prove/execute_log_derivative_inverse_round_ms: 205 prove/execute_pcs_rounds_ms: 760 prove/execute_relation_check_rounds_ms: 727 prove/execute_wire_commitments_round_ms: 616 prove/gen_trace_ms: 2150 AVM_ENABLE_FULL_PROVING=1 ./bb avm_prove --avm-bytecode --avm-calldata 71.13s user 69.17s system 1579% cpu 8.882 total ```
- Loading branch information