-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement structures #448
Implement structures #448
Conversation
…absy and typed_absy
…nt check to function check
Break current preliminary impl. as they have spec character.
@@ -1035,6 +1232,9 @@ impl<'ast, T: Field> Flattener<'ast, T> { | |||
assert!(exprs_flattened.expressions.len() == 1); // outside of MultipleDefinition, FunctionCalls must return a single value | |||
exprs_flattened.expressions[0].clone() | |||
} | |||
FieldElementExpression::Member(box s, id) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no change but on line 1147 there is the following TODO:
// we require from the base to be linear
// TODO change that
this origins from this commit:
0b83db9
something we want to fix?
mod variable; | ||
|
||
pub use crate::typed_absy::parameter::Parameter; | ||
pub use crate::typed_absy::variable::Variable; | ||
use crate::types::{FunctionKey, Signature, Type}; | ||
|
||
use crate::typed_absy::types::{FunctionKey, MemberId, Signature, Type}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 77: Delete or add comment
@@ -0,0 +1,120 @@ | |||
//! Add runtime boolean checks on user inputs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That means we now check for all Boolean inputs strictly.
Eg in that example code:
struct A {
bool b
}
def main(A a) -> (field):
field dummy = 12
return dummy
we will add boolean checks for the input a
.
Co-Authored-By: Stefan <stefandeml@gmail.com>
Implement structures in ZoKrates:
Changes
from PATH import SYMBOL as ALIAS
, we have backward compatibility by aliasingimport PATH
tofrom PATH import main as PATH.FILENAME