profiling

This commit is contained in:
Daniel Lubarov 2022-07-28 14:11:06 -07:00
parent 431bb5e66e
commit 55d0eddecb

View File

@ -71,46 +71,66 @@ pub fn verify_proof_circuit<
&nums_permutation_zs, &nums_permutation_zs,
); );
verify_stark_proof_with_challenges_circuit::<F, C, _, D>( with_context!(
builder, builder,
cpu_stark, "verify CPU proof",
&all_proof.stark_proofs[Table::Cpu as usize], verify_stark_proof_with_challenges_circuit::<F, C, _, D>(
&stark_challenges[Table::Cpu as usize], builder,
&ctl_vars_per_table[Table::Cpu as usize], cpu_stark,
inner_config, &all_proof.stark_proofs[Table::Cpu as usize],
&stark_challenges[Table::Cpu as usize],
&ctl_vars_per_table[Table::Cpu as usize],
inner_config,
)
); );
verify_stark_proof_with_challenges_circuit::<F, C, _, D>( with_context!(
builder, builder,
keccak_stark, "verify Keccak proof",
&all_proof.stark_proofs[Table::Keccak as usize], verify_stark_proof_with_challenges_circuit::<F, C, _, D>(
&stark_challenges[Table::Keccak as usize], builder,
&ctl_vars_per_table[Table::Keccak as usize], keccak_stark,
inner_config, &all_proof.stark_proofs[Table::Keccak as usize],
&stark_challenges[Table::Keccak as usize],
&ctl_vars_per_table[Table::Keccak as usize],
inner_config,
)
); );
verify_stark_proof_with_challenges_circuit::<F, C, _, D>( with_context!(
builder, builder,
logic_stark, "verify logic proof",
&all_proof.stark_proofs[Table::Logic as usize], verify_stark_proof_with_challenges_circuit::<F, C, _, D>(
&stark_challenges[Table::Logic as usize], builder,
&ctl_vars_per_table[Table::Logic as usize], logic_stark,
inner_config, &all_proof.stark_proofs[Table::Logic as usize],
&stark_challenges[Table::Logic as usize],
&ctl_vars_per_table[Table::Logic as usize],
inner_config,
)
); );
verify_stark_proof_with_challenges_circuit::<F, C, _, D>( with_context!(
builder, builder,
memory_stark, "verify memory proof",
&all_proof.stark_proofs[Table::Memory as usize], verify_stark_proof_with_challenges_circuit::<F, C, _, D>(
&stark_challenges[Table::Memory as usize], builder,
&ctl_vars_per_table[Table::Memory as usize], memory_stark,
inner_config, &all_proof.stark_proofs[Table::Memory as usize],
&stark_challenges[Table::Memory as usize],
&ctl_vars_per_table[Table::Memory as usize],
inner_config,
)
); );
verify_cross_table_lookups_circuit::<F, C, D>( with_context!(
builder, builder,
cross_table_lookups, "verify cross-table lookups",
&all_proof.stark_proofs, verify_cross_table_lookups_circuit::<F, C, D>(
ctl_challenges, builder,
inner_config, cross_table_lookups,
) &all_proof.stark_proofs,
ctl_challenges,
inner_config,
)
);
} }
/// Recursively verifies an inner proof. /// Recursively verifies an inner proof.