Skip to content
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

Multiple jvm_field_is declarations on same field are not detected #937

Closed
brianhuffman opened this issue Nov 25, 2020 · 0 comments · Fixed by #948
Closed

Multiple jvm_field_is declarations on same field are not detected #937

brianhuffman opened this issue Nov 25, 2020 · 0 comments · Fixed by #948
Assignees
Labels
subsystem: crucible-jvm Issues related to Java verification with crucible-jvm

Comments

@brianhuffman
Copy link
Contributor

Using this java source file:

class Test
{
    long val;
    long get () {
        return val;
    }
    void set (long x) {
        val = x;
    }
}

and this .saw file:

crucible_jvm_verify test "get" [] false
  do {
    this <- jvm_alloc_object "Test";
    val <- jvm_fresh_var "val" java_long;
    jvm_field_is this "val" (jvm_term val);
    jvm_field_is this "val" (jvm_term {{ 0 : [64] }});
    jvm_execute_func [this];
    jvm_return (jvm_term val);
  } z3;

the proof succeeds, even though it should fail with an error about multiple points-to constraints on the same field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subsystem: crucible-jvm Issues related to Java verification with crucible-jvm
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant