Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-ambrona committed Dec 18, 2024
1 parent c3661b8 commit 27d5037
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion halo2_frontend/src/dev/cost_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,13 @@ pub fn compute_min_k<F: Ord + Field + FromUniformBytes<64>, C: Circuit<F>>(circu
// TODO: We could optimize the order here.
let (_, _, cs) = (5..25)
.find_map(|k| {
panic::catch_unwind(AssertUnwindSafe(|| compile_circuit(k, circuit, false))).ok()
match panic::catch_unwind(AssertUnwindSafe(|| compile_circuit(k, circuit, false))) {
Ok(a) => Some(a),
Err(e) => {
dbg!(e);
None
}
}
})
.expect("A circuit which can be implemented with at most 2^24 rows.")
.ok()
Expand Down

0 comments on commit 27d5037

Please sign in to comment.