-
Notifications
You must be signed in to change notification settings - Fork 273
object reference for static methods in Java #104
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
Labels
Comments
I have turned this into regression/cbmc-java/static_method1 |
Can you take another look? Both f and g now fail verification. |
Yes, both fail now with div-by-zero checks. The name for methods for |
ok, I just saw the commit message for 5b67c01 for the prefix. For me this issue is resolved. |
smowton
pushed a commit
to smowton/cbmc
that referenced
this issue
May 9, 2018
…lity Made compile with G++ 5.4.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When checking for division by zero, the following shows different results when analyzing the static method
f
(passes the verification) andg
(fails verification), although non-deterministic choice for the input integer should allow fora = -1
in the first case, too.The problem seems to be that the first parameter that is passed to the static method is the result of a malloc, i.e., the memory allocated for a
StaticMethod
object instance. Whereas, in the function it is treated as aNONDET(int)
.The text was updated successfully, but these errors were encountered: