Skip to content

Commit

Permalink
Hack around edge-case in proof-systems temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmr1993 authored and mitschabaude committed Nov 3, 2023
1 parent a83df4a commit 5a97274
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/pickles/fix_domains.ml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ let domains (type field gates) ?feature_flags
in
let combined_lookup_table_length =
let range_check_table_used =
range_check0 || range_check1 || foreign_field_mul || rot
range_check0 || range_check1 || rot
in
let range_check_table_used_again =
(* FIXME: This is a hack around a bug in proof-systems. *)
foreign_field_mul
in
let xor_table_used = xor in
(if range_check_table_used then Int.pow 2 12 else 0)
+ (if range_check_table_used_again then Int.pow 2 12 else 0)
+ (if xor_table_used then Int.pow 2 8 else 0)
+ ( if lookup then (
Kimchi_backend_common.Plonk_constraint_system
Expand Down

0 comments on commit 5a97274

Please sign in to comment.