Skip to content

Commit

Permalink
range_check
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofneto committed Jan 12, 2024
1 parent a07fcd2 commit 556725f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/air/public_input.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -172,5 +172,10 @@ impl PublicInputImpl of PublicInputTrait {
- *self.segments.at(constants::segments::PEDERSEN).begin_addr)
/ 3;
assert_range_u128_le(pedersen_uses, pedersen_copies);

let range_check_copies = n_steps / constants::RC_BUILTIN_RATIO;
let range_check_uses = *self.segments.at(constants::segments::RANGE_CHECK).stop_ptr
- *self.segments.at(constants::segments::RANGE_CHECK).begin_addr;
assert_range_u128_le(range_check_uses, range_check_copies);
}
}

0 comments on commit 556725f

Please sign in to comment.