Compile Java regression test sources (5/n)#8556
Merged
tautschnig merged 10 commits intodiffblue:developfrom May 5, 2026
Merged
Compile Java regression test sources (5/n)#8556tautschnig merged 10 commits intodiffblue:developfrom
tautschnig merged 10 commits intodiffblue:developfrom
Conversation
2cd16d8 to
2fa26a9
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #8556 +/- ##
========================================
Coverage 80.52% 80.52%
========================================
Files 1705 1705
Lines 188927 188927
Branches 73 73
========================================
+ Hits 152127 152136 +9
+ Misses 36800 36791 -9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
some_exception1 and some_exception2 classes were missing, leading to wrong results. Changed to test to check in heritance behavior on catching exception classes.
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files. Add missing desiredAssertionStatus method to local java.lang.Class model.
For compilation of .j Java assembler files.
Add pom.xml for compilation, move sources, remove obsolete pre-compiled class files.
9039561 to
8e2f57f
Compare
2cb0a06 to
85fbeda
Compare
Add pom.xml for compilation, move sources to src/main/java/, remove obsolete pre-compiled class files, and update test descriptors to use -cp target/classes (with core-models.jar and cprover-api.jar on the classpath where needed). This converts all remaining test directories that have Java or Jasmin source files. Special handling for: - Tests with opaque/stub classes (NondetEnumOpaqueReturn, cprover-always-load-nondet-initialize, lazyloading_opaquereturn): Opaque.class is deleted after compilation so JBMC treats it as a stub and nondet-initializes return values. - Tests with ASM-generated bytecode (swap1, tableswitch2): Use exec-maven-plugin to run ASM generators that produce bytecode patterns no Java compiler can emit. - Tests with multiple compilations of the same class (classpath-class-with-one-dir, inherited_static_field9/10, overlay-class): Use maven-antrun-plugin for multi-phase compilation. - Tests with deliberately malformed artifacts (classpath-*-incorrect-package): Use antrun to place class files in wrong locations or build malformed jars. - Tests with pre-compiled third-party/Kotlin class files (lambda2, parameter-annotation-not-null): Keep pre-compiled class files that cannot be compiled from Java source. - Groovy test (swap2): Compiled with gmavenplus-plugin using Gradle API as dependency. - lvt-groovy: Kept as pre-compiled class file (Groovy bytecode varies by JDK version). - jsr1: Documented as not compilable (JSR/RET bytecodes removed in Java 7). Update test expectations for JDK 11+ bytecode (stable across JDK 11, 17, and 21): line numbers, bytecode-index values, class loading paths, parameter names, destructor patterns. Add Makefile cleanup rules for generated files outside target/. Mark 3 NondetEnumOpaqueReturn tests as KNOWNBUG (genuine JBMC unsoundness with enum nondet initialization from opaque returns with JDK 11+ bytecode). Co-authored-by: Kiro <kiro-agent@users.noreply.github.com>
c5d2e02 to
a124dc7
Compare
tautschnig
approved these changes
May 5, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
of
jbmc/(c.*|d.*) JBMC regression testsCf. #8487