-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: Fix arb circuit test/constructor to account for constant-folding
The result of `let c = b_constant(5) + b_constant(4);` is not a `BinOp` expression but rather a constant expression, as the constant folding happens at the time of node-insertion and not at a later stage. So we need two "do-while" loops to account for this possibility, one in the "arbitrary" implementation and one in the proptest.
- Loading branch information
1 parent
e117c84
commit 63001bd
Showing
1 changed file
with
71 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters