Skip to content

Commit 50cf074

Browse files
committed
Fix Merge
1 parent 4bcc2cf commit 50cf074

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

liquidjava-verifier/src/main/java/liquidjava/processor/refinement_checker/VCChecker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public void processSubtyping(Predicate expectedType, List<GhostState> list, CtEl
5252
}
5353
boolean isSubtype = smtChecks(expected, premises, element.getPosition());
5454
if (!isSubtype)
55-
throw new RefinementError(element.getPosition(), expectedType.getExpression(),
56-
premisesBeforeChange.simplify(), map);
55+
throw new RefinementError(element.getPosition(), expectedType.simplify(), premisesBeforeChange.simplify(),
56+
map);
5757
}
5858

5959
/**
@@ -263,7 +263,7 @@ protected void throwRefinementError(SourcePosition position, Predicate expected,
263263
gatherVariables(found, lrv, mainVars);
264264
TranslationTable map = new TranslationTable();
265265
Predicate premises = joinPredicates(expected, mainVars, lrv, map).toConjunctions();
266-
throw new RefinementError(position, expected.getExpression(), premises.simplify(), map);
266+
throw new RefinementError(position, expected.simplify(), premises.simplify(), map);
267267
}
268268

269269
protected void throwStateRefinementError(SourcePosition position, Predicate found, Predicate expected)

liquidjava-verifier/src/main/java/liquidjava/rj_language/ast/Expression.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public void validateGhostInvocations(Context ctx, Factory f) throws LJError {
271271
if (this instanceof FunctionInvocation fi) {
272272
// get all ghosts with the matching name
273273
List<GhostFunction> candidates = ctx.getGhosts().stream().filter(g -> g.matches(fi.name)).toList();
274-
if (candidates.isEmpty())
274+
if (candidates.isEmpty())
275275
return; // not found error is thrown elsewhere
276276

277277
// find matching overload

0 commit comments

Comments
 (0)