Conversation
|
@jwiesler Sources of key-javaparser are now available via maven. |
|
About Edit: Took a look around and I didn't find any usages outside of the XX2KeY-converters. |
e9e9885 to
b2bd6c5
Compare
|
contraposition loads again. Syntax changes to |
|
@wadoon tests are not able to resolve Edit: This seems to be the issue everywhere. I'm not sure how to fix this or continue with this error. |
Is this the error message of This is not caused by unresolving And this is correct as |
|
Nope, what I meant is this one (thrown by most tests): However, I did see the one you mentioned and thought it would be the same error. |
|
I am stuck at the circular problem:
During the pre-transformation in (2), we resolve Options:
|
Could you point me to one test case? |
|
E.g. But you're right the remaining tests have the problem with |
|
We have an error in the pre-transformation pipeline. Complete: package java.lang;
public class ArithmeticException extends java.lang.RuntimeException {
public ArithmeticException() {
super();
}
public ArithmeticException(java.lang.String arg0) {
super(arg0);
}
@javax.annotation.processing.Generated()
static private boolean $classInitializationInProgress;
@javax.annotation.processing.Generated()
static private boolean $classErroneous;
@javax.annotation.processing.Generated()
static private boolean $classInitialized;
@javax.annotation.processing.Generated()
static private boolean $classPrepared;
static private void $clprepare() {
}
static public void $clinit() {
if (!@($classInitialized)) {
if (!@($classInitializationInProgress)) {
if (!@(this.$classPrepared)) {
//Created by ClassInitializeMethodBuilder.java:213
@($clprepare());
}
if (@($classErroneous)) {
throw new java.lang.NoClassDefFoundError();
}
//Created by ClassInitializeMethodBuilder.java:237
@($classInitializationInProgress) = true;
try {
@(java.lang.RuntimeException.$clinit());
{
super();
}
{
super(arg0);
}
}//Created by ClassInitializeMethodBuilder.java:188
catch (java.lang.Error err) {
//Created by ClassInitializeMethodBuilder.java:148
@($classInitializationInProgress) = true;
//Created by ClassInitializeMethodBuilder.java:149
@($classErroneous) = true;
throw err;
} catch (java.lang.Throwable twa) {
//Created by ClassInitializeMethodBuilder.java:148
@($classInitializationInProgress) = true;
//Created by ClassInitializeMethodBuilder.java:149
@($classErroneous) = true;
throw new java.lang.ExceptionInInitializerError(twa);
}
//Created by ClassInitializeMethodBuilder.java:243
@($classInitializationInProgress) = false;
//Created by ClassInitializeMethodBuilder.java:245
@($classErroneous) = false;
//Created by ClassInitializeMethodBuilder.java:247
@($classInitialized) = true;
}
}
}
protected void $prepare() {
}
private void $prepareEnter() {
}
public ArithmeticException $create() {
//Created by CreateBuilder.java:53
this.$initialized = false;
$prepareEnter();
return this;
}
public static ArithmeticException $createObject() {
ArithmeticException __NEW__;
//Created by CreateObjectBuilder.java:67
__NEW__ = ArithmeticException.$allocate();
__NEW__.$create()@ArithmeticException
return __NEW__;
}
} |
|
@wadoon fixed it. New issues are:
|
This may arise by two things: (1) I believe that the SchemaJavaParser has not used Recoder2KeY mapping, (2) there might be differences in |
Test case fails, as it is expected that Unknown if this is really required. |
There are some simple checks inside JavaParser, look into Case fixed with parenthesis. |
|
Progress on in On this corner, the KeY-Java-AST is broken. @unp1 @mattulbrich |
The KeY file loads The loaded proof looks as follows: Originally, it is The double type declaration is problem of |
No. The patched The problem is that not everything that is visited by jp2key converter is stored in the conversion map. FIXED |
|
Converting |
|
Furthermore, javaparser does not associate a type to |
Concentrate on the possible things. We do not want to repair the KeY-Java-AST. I am not sure on the type resolution.
|
|
Nope, it was the first case (typed array initialization). The code for I made possible what was before by unwrapping the element type recursively for all recursive array initializations to provide a type to the ast. |
- assertion used wrong method to check for ghost flag
When determining whether a static final field is initialized with a compile-time constant we need to detect cyclic initialization
…les): make sure that Java files are always read through FileRepo, set bcp/cp earlier, remove String.key from bundle
method 'private void de.uka.ilkd.key.logic.TestVariableNamer.testTemporaryNames(de.uka.ilkd.key.logic.VariableNamer)' must not be private
# By Drodt (29) and others # Via Drodt (5) and GitHub (5) * origin/main: (32 commits) Add containsGenerics method to sort Simplify Remove tokens file Fix inst with sort depending fn Fix parsing of proof files Fix proof loading/storing when generics are instantiated in NoFindTaclets Some documentation Fix test classes Slightly improve error messages Fix taclets for datatypes w/ polymorphic params Prepare datatype handling Spotless Finish example; slight fixes Fix fns and preds parsing; add test Fix SortDepFn and add test Start on polymorphic sorts and functions directly creating issues in Github inside KeY Bump the gradle-deps group across 1 directory with 9 updates Bump actions/upload-artifact in the github-actions-deps group Fix inst with sort depending fn ... # Conflicts: # build.gradle # key.core/src/main/java/de/uka/ilkd/key/nparser/builder/DeclarationBuilder.java # key.core/src/main/java/de/uka/ilkd/key/rule/inst/GenericSortInstantiations.java
This PR replaces recoder by javaparser, or more precisely by key-javaparser.
The special version has support for
ProofJava,SchemaJavaand Java 17+, all in one grammar.Notes on the grammar can be found in the key-docs
This MR requires a complete overhaul of the KeY-Infrastructure.
Status:
JavaInfofor unused methods and delete themTestProofJavaParserandTestSchemaJavaParser?TestKeYRecoderMapping