Skip to content

Commit 1436e39

Browse files
cristina-davidpeterschrammel
authored andcommitted
Regression tests for Java assume
1 parent 0cf34af commit 1436e39

File tree

9 files changed

+54
-0
lines changed

9 files changed

+54
-0
lines changed
660 Bytes
Binary file not shown.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import org.cprover.CProver;
2+
3+
class Assume1
4+
{
5+
static void foo(int x)
6+
{
7+
CProver.assume(x>3);
8+
assert x>0;
9+
}
10+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Assume1.class
3+
--function Assume1.foo
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring
661 Bytes
Binary file not shown.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import org.cprover.CProver;
2+
3+
class Assume2
4+
{
5+
static void foo(int x)
6+
{
7+
CProver.assume(x>3);
8+
assert x>4;
9+
}
10+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Assume2.class
3+
--function Assume2.foo
4+
^EXIT=10$
5+
^SIGNAL=0$
6+
^VERIFICATION FAILED$
7+
--
8+
^warning: ignoring
684 Bytes
Binary file not shown.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import org.cprover.CProver;
2+
3+
class Assume3
4+
{
5+
public static void main(String[] args)
6+
{
7+
CProver.assume(false);
8+
assert false;
9+
}
10+
}
+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
CORE
2+
Assume3.class
3+
4+
^EXIT=0$
5+
^SIGNAL=0$
6+
^VERIFICATION SUCCESSFUL$
7+
--
8+
^warning: ignoring

0 commit comments

Comments
 (0)