Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
emmorais committed Aug 18, 2023
1 parent ef37caa commit e0d2f81
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/lem/circuit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ use bellpepper_core::{
use crate::circuit::gadgets::{
constraints::{
add, alloc_equal, alloc_equal_const, alloc_is_zero, allocate_is_negative, and,
boolean_to_num, div, enforce_pack, enforce_selector_with_premise, implies_equal,
implies_u64, enforce_product_and_sum, mul, pick, sub,
boolean_to_num, div, enforce_pack, enforce_product_and_sum, enforce_selector_with_premise,
implies_equal, implies_u64, mul, pick, sub,
},
data::{allocate_constant, hash_poseidon},
pointer::AllocatedPtr,
Expand Down Expand Up @@ -736,7 +736,14 @@ impl Func {
implies_u64(cs.namespace(|| "rem_u64"), not_dummy, &rem)?;
implies_u64(cs.namespace(|| "diff_u64"), not_dummy, &diff)?;

enforce_product_and_sum(cs, || "enforce a = b * div + rem", b, &div, &rem, a);
enforce_product_and_sum(
cs,
|| "enforce a = b * div + rem",
b,
&div,
&rem,
a,
);
let tag = g
.global_allocator
.get_or_alloc_const(cs, Tag::Expr(Num).to_field())?;
Expand Down

0 comments on commit e0d2f81

Please sign in to comment.