forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#1469 from antlechner/antonia/fix/ci_lazy_…
…method_exception_types Lazy methods: mark JVM-generated exceptions as always available (fixes TG-774)
- Loading branch information
Showing
46 changed files
with
179 additions
and
3 deletions.
There are no files selected for viewing
Binary file added
BIN
+619 Bytes
regression/cbmc-java/ArithmeticException7/ArithmeticExceptionTest.class
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
regression/cbmc-java/ArithmeticException7/ArithmeticExceptionTest.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 @@ | ||
public class ArithmeticExceptionTest { | ||
public static void main(String args[]) { | ||
try { | ||
int i=0; | ||
int j=10/i; | ||
} | ||
catch(Exception exc) { | ||
assert false; | ||
} | ||
} | ||
} |
Binary file added
BIN
+232 Bytes
regression/cbmc-java/ArithmeticException7/java/lang/ArithmeticException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/ArithmeticException7/java/lang/ArithmeticException.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,4 @@ | ||
package java.lang; | ||
|
||
public class ArithmeticException extends RuntimeException { | ||
} |
Binary file added
BIN
+219 Bytes
regression/cbmc-java/ArithmeticException7/java/lang/RuntimeException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/ArithmeticException7/java/lang/RuntimeException.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,4 @@ | ||
package java.lang; | ||
|
||
public class RuntimeException extends Exception { | ||
} |
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,9 @@ | ||
CORE | ||
ArithmeticExceptionTest.class | ||
--java-throw-runtime-exceptions | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^.*assertion at file ArithmeticExceptionTest.java line 8 function.*: FAILURE$ | ||
^VERIFICATION FAILED | ||
-- | ||
^warning: ignoring |
Binary file added
BIN
+642 Bytes
...ession/cbmc-java/ArrayIndexOutOfBoundsException3/ArrayIndexOutOfBoundsExceptionTest.class
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
regression/cbmc-java/ArrayIndexOutOfBoundsException3/ArrayIndexOutOfBoundsExceptionTest.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 @@ | ||
public class ArrayIndexOutOfBoundsExceptionTest { | ||
public static void main(String args[]) { | ||
try { | ||
int[] a=new int[4]; | ||
a[4]=0; | ||
} | ||
catch (Exception exc) { | ||
assert false; | ||
} | ||
} | ||
} |
Binary file added
BIN
+263 Bytes
.../cbmc-java/ArrayIndexOutOfBoundsException3/java/lang/ArrayIndexOutOfBoundsException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
...n/cbmc-java/ArrayIndexOutOfBoundsException3/java/lang/ArrayIndexOutOfBoundsException.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,4 @@ | ||
package java.lang; | ||
|
||
public class ArrayIndexOutOfBoundsException extends IndexOutOfBoundsException { | ||
} |
Binary file added
BIN
+244 Bytes
...ssion/cbmc-java/ArrayIndexOutOfBoundsException3/java/lang/IndexOutOfBoundsException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
...ession/cbmc-java/ArrayIndexOutOfBoundsException3/java/lang/IndexOutOfBoundsException.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,4 @@ | ||
package java.lang; | ||
|
||
public class IndexOutOfBoundsException extends RuntimeException { | ||
} |
Binary file added
BIN
+219 Bytes
regression/cbmc-java/ArrayIndexOutOfBoundsException3/java/lang/RuntimeException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/ArrayIndexOutOfBoundsException3/java/lang/RuntimeException.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,4 @@ | ||
package java.lang; | ||
|
||
public class RuntimeException extends Exception { | ||
} |
9 changes: 9 additions & 0 deletions
9
regression/cbmc-java/ArrayIndexOutOfBoundsException3/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,9 @@ | ||
CORE | ||
ArrayIndexOutOfBoundsExceptionTest.class | ||
--java-throw-runtime-exceptions | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^.*assertion at file ArrayIndexOutOfBoundsExceptionTest.java line 8 function.*: FAILURE$ | ||
^VERIFICATION FAILED$ | ||
-- | ||
^warning: ignoring |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+642 Bytes
regression/cbmc-java/ClassCastException3/ClassCastExceptionTest.class
Binary file not shown.
15 changes: 15 additions & 0 deletions
15
regression/cbmc-java/ClassCastException3/ClassCastExceptionTest.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,15 @@ | ||
class A {} | ||
|
||
class B {} | ||
|
||
public class ClassCastExceptionTest { | ||
public static void main(String args[]) { | ||
try { | ||
Object a = new A(); | ||
B b = (B)a; | ||
} | ||
catch (Exception exc) { | ||
assert false; | ||
} | ||
} | ||
} |
Binary file added
BIN
+230 Bytes
regression/cbmc-java/ClassCastException3/java/lang/ClassCastException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/ClassCastException3/java/lang/ClassCastException.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,4 @@ | ||
package java.lang; | ||
|
||
public class ClassCastException extends RuntimeException { | ||
} |
Binary file added
BIN
+219 Bytes
regression/cbmc-java/ClassCastException3/java/lang/RuntimeException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/ClassCastException3/java/lang/RuntimeException.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,4 @@ | ||
package java.lang; | ||
|
||
public class RuntimeException extends Exception { | ||
} |
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,9 @@ | ||
CORE | ||
ClassCastExceptionTest.class | ||
--java-throw-runtime-exceptions | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^.*assertion at file ClassCastExceptionTest.java line 12 function.*: FAILURE$ | ||
^VERIFICATION FAILED$ | ||
-- | ||
^warning: ignoring |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added
BIN
+626 Bytes
regression/cbmc-java/NegativeArraySizeException2/NegativeArraySizeExceptionTest.class
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
regression/cbmc-java/NegativeArraySizeException2/NegativeArraySizeExceptionTest.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,10 @@ | ||
public class NegativeArraySizeExceptionTest { | ||
public static void main(String args[]) { | ||
try { | ||
int a[]=new int[-1]; | ||
} | ||
catch (Exception exc) { | ||
assert false; | ||
} | ||
} | ||
} |
Binary file added
BIN
+246 Bytes
regression/cbmc-java/NegativeArraySizeException2/java/lang/NegativeArraySizeException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/NegativeArraySizeException2/java/lang/NegativeArraySizeException.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,4 @@ | ||
package java.lang; | ||
|
||
public class NegativeArraySizeException extends RuntimeException { | ||
} |
Binary file added
BIN
+219 Bytes
regression/cbmc-java/NegativeArraySizeException2/java/lang/RuntimeException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/NegativeArraySizeException2/java/lang/RuntimeException.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,4 @@ | ||
package java.lang; | ||
|
||
public class RuntimeException extends Exception { | ||
} |
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,9 @@ | ||
CORE | ||
NegativeArraySizeExceptionTest.class | ||
--java-throw-runtime-exceptions | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^.*assertion at file NegativeArraySizeExceptionTest.java line 7 function.*: FAILURE$ | ||
^VERIFICATION FAILED$ | ||
-- | ||
^warning: ignoring |
Binary file not shown.
Binary file not shown.
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,15 @@ | ||
class A { | ||
int i; | ||
} | ||
|
||
public class Test { | ||
public static void main(String args[]) { | ||
A a=null; | ||
try { | ||
a.i=0; | ||
} | ||
catch (Exception exc) { | ||
assert false; | ||
} | ||
} | ||
} |
Binary file added
BIN
+234 Bytes
regression/cbmc-java/NullPointerException4/java/lang/NullPointerException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/NullPointerException4/java/lang/NullPointerException.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,4 @@ | ||
package java.lang; | ||
|
||
public class NullPointerException extends RuntimeException { | ||
} |
Binary file added
BIN
+219 Bytes
regression/cbmc-java/NullPointerException4/java/lang/RuntimeException.class
Binary file not shown.
4 changes: 4 additions & 0 deletions
4
regression/cbmc-java/NullPointerException4/java/lang/RuntimeException.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,4 @@ | ||
package java.lang; | ||
|
||
public class RuntimeException extends Exception { | ||
} |
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,9 @@ | ||
CORE | ||
Test.class | ||
--java-throw-runtime-exceptions | ||
^EXIT=10$ | ||
^SIGNAL=0$ | ||
^.*assertion at file Test.java line 12 function.*: FAILURE$ | ||
^VERIFICATION FAILED$ | ||
-- | ||
^warning: ignoring |
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
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
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