Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
26 changes: 26 additions & 0 deletions regression/cbmc-java/LocalVarTable3/live_range_with_holes.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

public class live_range_with_holes {

public static void main(int arg) {

int x;
int y;
switch(arg) {
case 1:
x = 1;
y = 1;
break;
case 2:
x = 2;
y = 2;
break;
default:
x = 0;
y = 0;
break;
}
assert(x >= 0 && x <= 2);

}

}
7 changes: 7 additions & 0 deletions regression/cbmc-java/LocalVarTable3/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CORE
live_range_with_holes.class
--function live_range_with_holes.main
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
--
Binary file not shown.
18 changes: 18 additions & 0 deletions regression/cbmc-java/LocalVarTable4/live_range_exception.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

public class live_range_exception {
public static void main() {
int x;
int y;
try
{
x = 0;
y = 0;
}
catch(Exception e)
{
x = 1;
y = 1;
}
assert(x==0 || x==1);
}
}
7 changes: 7 additions & 0 deletions regression/cbmc-java/LocalVarTable4/test.desc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CORE
live_range_exception.class
--function live_range_exception.main
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
--