forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test verifying that the cproverNondetInitialize method is always …
…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
Showing
6 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+478 Bytes
jbmc/regression/jbmc/cprover-always-load-nondet-initialize/ObjectWithNondetInitialize.class
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
jbmc/regression/jbmc/cprover-always-load-nondet-initialize/ObjectWithNondetInitialize.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_; | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
jbmc/regression/jbmc/cprover-always-load-nondet-initialize/Opaque.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+363 Bytes
jbmc/regression/jbmc/cprover-always-load-nondet-initialize/Test.class
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
jbmc/regression/jbmc/cprover-always-load-nondet-initialize/Test.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
jbmc/regression/jbmc/cprover-always-load-nondet-initialize/test.desc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |