Skip to content

Commit

Permalink
Update examples/java/get.saw to use jvm_modifies declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Huffman committed May 14, 2021
1 parent cc21d43 commit 81564ec
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/java/get.saw
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ jvm_verify c "get" [] false
j <- jvm_fresh_var "j" java_int;
jvm_precond {{ j <= 3 }};
jvm_execute_func [this, a, jvm_term j];
// TODO: Update spec to say `a` is modified but not specified
// TODO: Add declaration to say that the entire array is modified.
jvm_modifies_elem a 0;
jvm_modifies_elem a 1;
jvm_modifies_elem a 2;
jvm_modifies_elem a 3;
jvm_return (jvm_term {{ j }});
}
abc;

0 comments on commit 81564ec

Please sign in to comment.