Skip to content

Commit

Permalink
applied formatting style
Browse files Browse the repository at this point in the history
  • Loading branch information
WolframPfeifer committed Dec 5, 2024
1 parent 9556c88 commit eded0d9
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class TestSymbolicExecutionUtil extends AbstractSymbolicExecutionTestCase
public void test1ImproveReadability() throws ProblemLoaderException {
File location = new File(testCaseDirectory,
"/readability/InnerAndAnonymousTypeTest/InnerAndAnonymousTypeTest.java")
.getAbsoluteFile();
.getAbsoluteFile();
assertTrue(location.exists(), "Could not find required resource: " + location);

KeYEnvironment<?> environment = KeYEnvironment.load(location, null, null, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public static PosInOccurrence extractMatchingPio(final Sequent sequent, final St
for (int i = 1; i < sequent.size() + 1; i++) {
final boolean matchesRegex = formatTermString(
LogicPrinter.quickPrintTerm(sequent.getFormulabyNr(i).formula(), services))
.matches(".*" + matchRegEx + ".*");
.matches(".*" + matchRegEx + ".*");
if (matchesRegex) {
if (matched) {
throw new ScriptException("More than one occurrence of a matching term.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,9 @@ public void beginExpr(ProofElementID eid, String str) {
errors.add(e);
}
}
case MERGE_ABSTRACTION_PREDICATES -> ((BuiltinRuleInformation) ruleInfo).currAbstractionPredicates =
str;
case MERGE_ABSTRACTION_PREDICATES ->
((BuiltinRuleInformation) ruleInfo).currAbstractionPredicates =
str;
case MERGE_USER_CHOICES -> ((BuiltinRuleInformation) ruleInfo).currUserChoices = str;
case NOTES -> {
ruleInfo.notes = str;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ public SVInstantiations addInteresting(SchemaVariable sv, InstantiationEntry<?>
Services services) {
return new SVInstantiations(map.put(sv, entry), interesting().put(sv, entry),
getUpdateContext(), getGenericSortInstantiations(), getGenericSortConditions())
.checkSorts(sv, entry, false, services);
.checkSorts(sv, entry, false, services);
}


Expand Down Expand Up @@ -653,7 +653,7 @@ public String toString() {
public SVInstantiations add(GenericSortCondition p_c, Services services) throws SortException {
return new SVInstantiations(map, interesting(), getUpdateContext(),
getGenericSortInstantiations(), getGenericSortConditions().prepend(p_c))
.checkCondition(p_c, false, services);
.checkCondition(p_c, false, services);
}

public ExecutionContext getExecutionContext() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ public ImmutableSet<LoopContract> createJMLLoopContracts(final IProgramMethod me
clauses.continues, clauses.returns, clauses.signals, clauses.signalsOnly,
clauses.diverges, clauses.assignables, clauses.assignablesFree, clauses.hasAssignable,
clauses.hasFreeAssignable, clauses.decreases, services)
.create();
.create();
}

/**
Expand Down Expand Up @@ -1463,7 +1463,7 @@ public ImmutableSet<LoopContract> createJMLLoopContracts(IProgramMethod method,
clauses.continues, clauses.returns, clauses.signals, clauses.signalsOnly,
clauses.diverges, clauses.assignables, clauses.assignablesFree, clauses.hasAssignable,
clauses.hasFreeAssignable, clauses.decreases, services)
.create();
.create();
}

private ProgramVariableCollection createProgramVariablesForStatement(Statement statement,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public Variable getVariable(String name, ProgramElement context) {
*/
EnumConstantSpecification ecs = (EnumConstantSpecification) ((EnumDeclaration) getType(
((Case) context.getASTParent()).getParent().getExpression()))
.getVariableInScope(name);
.getVariableInScope(name);
// must not resolve! qualifying enum constant in case-statements is forbidden!
return ecs;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public void testListReplaceAddRedundantList() {
// [exp.: p,q,a,b,c,r]
Semisequent expected = extract(extract(
extract(extract(origin.insertLast(con[4])).insertLast(con[5])).insertLast(con[6]))
.insertLast(con[2]));
.insertLast(con[2]));
// insert:[a,b,c,r,r,q,p]
ImmutableList<SequentFormula> insertionList =
ImmutableSLList.<SequentFormula>nil().prepend(con[0]).prepend(con[1]).prepend(con[2])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private static ApplyStrategyInfo applyStrategy(Proof proof, Strategy strategy) {
proof.setActiveStrategy(strategy);
return new ApplyStrategy(
proof.getInitConfig().getProfile().getSelectedGoalChooserBuilder().create())
.start(proof, proof.openGoals().head());
.start(proof, proof.openGoals().head());
}

public final ProfilingDirectories getProfileDirectories() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void appendDataToZipOutputStream(ZipOutputStream stream) throws IOException {
zipEntryFileName += ".exception";
data = (e.getClass().getSimpleName() + " occured while trying to read data.\n"
+ e.getMessage() + "\n" + serializeStackTrace(e))
.getBytes(StandardCharsets.UTF_8);
.getBytes(StandardCharsets.UTF_8);
}
stream.putNextEntry(new ZipEntry(zipEntryFileName));
stream.write(data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,8 @@ private void processChar(char strChar) throws BadLocationException {

// case '*':
// case '/':
case '(', ')', '[', ']', '{', '}', '%', '!', '^', '~', '&', '|', '.', ':', ';', '?', '<', '>', '=', '\'' ->
case '(', ')', '[', ']', '{', '}', '%', '!', '^', '~', '&', '|', '.', ':', ';', '?', '<',
'>', '=', '\'' ->
// case ' ':
// case '"':
// case '\'':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ public Variable getVariable(String name, ProgramElement context) {
*/
EnumConstantSpecification ecs = (EnumConstantSpecification) ((EnumDeclaration) getType(
((Case) context.getASTParent()).getParent().getExpression()))
.getVariableInScope(name);
.getVariableInScope(name);
// must not resolve! qualifying enum constant in case-statements is forbidden!
return ecs;
}
Expand Down

0 comments on commit eded0d9

Please sign in to comment.