Skip to content

Commit

Permalink
Add test verifying that the cproverNondetInitialize method is always …
Browse files Browse the repository at this point in the history
…loaded

Test is disabled because of test-runner problems described in the
following issue: diffblue#2267
  • Loading branch information
Lukasz A.J. Wrona committed Jun 4, 2018
1 parent 971a34b commit a673e5d
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import org.cprover.CProver;

class ObjectWithNondetInitialize {
private int value_;
public void cproverNondetInitialize() {
CProver.assume(value_ == 13);
}
public int value() {
return value_;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import org.cprover.CProver;

public class Opaque {
public ObjectWithNondetInitialize get() {
return new ObjectWithNondetInitialize();
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
public class Test {
public int test() {
return (new Opaque()).get().value();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
KNOWNBUG
Test.class
--function Test.test --show-goto-functions --lazy-methods
EXIT=0
SIGNAL=0
ObjectWithNondetInitialize\.cproverNondetInitialize\(\)
--
--
Check if cproverNondetInitialize method is loaded in an object
returned from an opaque method
https://github.com/diffblue/cbmc/issues/2273

0 comments on commit a673e5d

Please sign in to comment.