-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Fix E2E tests for IR. #734
Conversation
It previously didn't bother to special-case `B256` literals, and initialised only the first word, using `SW`. We now use `MCPI` and produce identical code as the original codegen.
They can be `TypedVariableDeclaration`s as well as `TypedConstantDeclaration`s now, but to distinguish between var decls which were originally const decls or not a new marker `const_decl_origin` has been added to `TypedVariableDeclaration`.
We don't have an efficient way to check if a value has zero uses and is safe to remove, so until then, unless we're very careful, removing values should be avoided.
After 8fe74e0 we let `TypeInfo::Numeric` stay in the AST post-typecheck, so we need to support them in IR generation.
…viously disabled tests.
…roneous recursive calls. This edge case will go away when we stop inlining calls in the AST.
("aliased_imports", ProgramState::Return(42)), | ||
("empty_method_initializer", ProgramState::Return(1)), // true | ||
("b512_struct_alignment", ProgramState::Return(1)), // true | ||
("generic_structs", ProgramState::Return(1)), // true | ||
("generic_functions", ProgramState::Return(1)), // true | ||
("generic_enum", ProgramState::Return(1)), // true | ||
("import_method_from_other_file", ProgramState::Return(10)), // true | ||
("b512_test", ProgramState::Return(1)), // true |
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.
would you rather comment these out instead of deleting them so they aren't forgotten?
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.
They were all duplicates. This is what prompted me to create #723
A new version of |
These are some relatively minor fixes for bugs which accrued while I was away. The E2E tests were failing sometimes when using IR, these changes fix that.
The
ec_recover_test
still fails with IR but will be resolved when the newB512
code insway-lib-std
is released.Closes #709