Skip to content

Commit

Permalink
Merge pull request #14566 from MinaProtocol/fix/lookup-tables
Browse files Browse the repository at this point in the history
Deduplicate lookup tables
  • Loading branch information
dannywillems authored Nov 16, 2023
2 parents 3e99d52 + f60f1f4 commit 5ea4bd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/lib/crypto/proof-systems
7 changes: 2 additions & 5 deletions src/lib/pickles/fix_domains.ml
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,11 @@ let domains (type field gates) ?feature_flags
feature_flags
in
let combined_lookup_table_length =
let range_check_table_used = 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
let range_check_table_used =
range_check0 || range_check1 || foreign_field_mul || rot
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 5ea4bd1

Please sign in to comment.