You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the expression is moved to a variable everything is fine:
pub fn main(input : Field) -> pub bool {
let var : Field = (((((((((((((((((1)))))))))))))))));
nput.lt(var)
}
I would be interested to know:
Is this a known limitation of the lt function?
Are there other limitations like this?
Expected Behavior
I expected expressions to behave similar everywhere in code, no matter if present in an assignment or as an argument to lt( ... ). Additionally, the expression depth limit seems very small in this particular case.
Bug
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
Aborted
To Reproduce
create a noir / nargo project with the given content
nargo execute
Workaround
None
Workaround Description
Assigning the expression to a variable before passing it to the lt function as argument.
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.34.0 noirc version = 0.34.0+e3cdebe515e4dc4ee6e16e01bd8af25135939798 (git version hash: e3cdebe, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Aim
I want to executing following (already minimized) program:
If the expression is moved to a variable everything is fine:
I would be interested to know:
lt
function?Expected Behavior
I expected expressions to behave similar everywhere in code, no matter if present in an assignment or as an argument to
lt( ... )
. Additionally, the expression depth limit seems very small in this particular case.Bug
To Reproduce
noir
/nargo
project with the given contentnargo execute
Workaround
None
Workaround Description
Assigning the expression to a variable before passing it to the
lt
function as argument.Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
nargo version = 0.34.0 noirc version = 0.34.0+e3cdebe515e4dc4ee6e16e01bd8af25135939798 (git version hash: e3cdebe, is dirty: false)
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: