Skip to content

Commit

Permalink
Compile jbmc/class-literals test sources
Browse files Browse the repository at this point in the history
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
  • Loading branch information
peterschrammel committed Jan 5, 2025
1 parent 678ee8f commit 2cd16d8
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 26 deletions.
Binary file not shown.
Binary file removed jbmc/regression/jbmc/class-literals/ExampleEnum.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed jbmc/regression/jbmc/class-literals/Test.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 0 additions & 15 deletions jbmc/regression/jbmc/class-literals/org/cprover/CProver.java

This file was deleted.

Binary file not shown.

This file was deleted.

41 changes: 41 additions & 0 deletions jbmc/regression/jbmc/class-literals/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.jbmc.class-literals</artifactId>
<version>1.0-SNAPSHOT</version>

<parent>
<groupId>org.cprover.regression</groupId>
<artifactId>regression.jbmc</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.cprover.util</groupId>
<artifactId>cprover-api</artifactId>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>default-jar</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.github.abextm</groupId>
<artifactId>jasmin-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package java.lang;

public class Class {
public class Class <T> {

private String name;

Expand Down Expand Up @@ -43,4 +43,6 @@ public void cproverInitializeClassLiteral(
public boolean isLocalClass() { return isLocalClass; }
public boolean isMemberClass() { return isMemberClass; }
public boolean isEnum() { return isEnum; }

public boolean desiredAssertionStatus() { return true; }
}
2 changes: 1 addition & 1 deletion jbmc/regression/jbmc/class-literals/test.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE bdd-expected-timeout
Test
--function Test.main
--function Test.main -cp target/classes
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
Expand Down
2 changes: 1 addition & 1 deletion jbmc/regression/jbmc/class-literals/test_lazy.desc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CORE symex-driven-lazy-loading-expected-failure
Test
--function Test.main
--function Test.main -cp target/classes
^EXIT=0$
^SIGNAL=0$
^VERIFICATION SUCCESSFUL$
Expand Down
1 change: 1 addition & 0 deletions jbmc/regression/jbmc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
<module>catch1</module>
<module>char1</module>
<module>class-fields</module>
<module>class-literals</module>
<module>classpath-jar-load-whole-jar</module>
</modules>

Expand Down

0 comments on commit 2cd16d8

Please sign in to comment.