-
Notifications
You must be signed in to change notification settings - Fork 14
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
solc-verify reports mismatched types #147
Comments
Thanks for reporting! To me it seems like this is related to #123, namely not handling strings properly when passed around or returned. |
#123 is related to string literals (which are not arrays). The issue here is that the getter function |
Is this likely to be fixed at some point? We're doing a smart contract verification case study. For some parts, solc-verify would be the obvious choice and should work very well (judging from my experience), but at present this bug prevents us from using it. |
@zhao-nan I will check. I think we need to do some conversion around here
|
Fixed on |
Everything working now. Great, thanks! |
Description
When calling solc-verify.py on the example code below, it gives an error message:
out/Err.sol.bpl(37,1): Error: mismatched types in assignment command (cannot assign int_arr_type to int_arr_ptr)
The solc compiler does not give any errors or warnings. Therefore, I think this is a bug.
I also came across the very similar
Error: invalid type for argument 0 in map select: int_arr_type (expected: int_arr_ptr)
Environment
The text was updated successfully, but these errors were encountered: