-
Notifications
You must be signed in to change notification settings - Fork 6k
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
SMTChecker triggers an ICE by not reporting Arithmetic error when computing constant value
fatal error caused by constant negation
#15600
Comments
Note that the fact that this runs into I just pushed #15807, which makes the output in such cases more infomative and shows the original error as well:
|
The repro can also be minimized to something like this: contract C {
uint256 constant N = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF;
function f() public {
~N;
}
} I see that it's already included in the linked #15709. Perhaps we should close this one in favor of it? |
Arithmetic error when computing constant value
FatalError caused by negating a constant
Arithmetic error when computing constant value
FatalError caused by negating a constantArithmetic error when computing constant value
fatal error caused by negating a constant
Arithmetic error when computing constant value
fatal error caused by negating a constantArithmetic error when computing constant value
fatal error caused by constant negation
Environment
Steps to Reproduce
However, the program can be successfully compiled into bytecode.
The text was updated successfully, but these errors were encountered: