Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
rcosta358 committed Feb 11, 2026
commit ea87100fbf60b1e9d14a4d5bcf2ad2a2b4b4d06c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public String getDetails() {
.reduce((a, b) -> a + " && " + b).orElse("");

// check if counterexample is trivial (same as the found value)
if (counterexampleExp.equals(found.getValue().toSimplifiedString()))
if (counterexampleExp.equals(found.getValue().toString()))
return "";
return "Counterexample: " + counterexampleExp;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ public Expr<?> makeFunctionInvocation(String name, Expr<?>[] params) throws LJEr
}

/**
* Gets function declarations when an exact qualified name lookup fails. Tries to match by simple
* name and number of parameters, preferring an exact qualified-name match if found among candidates; otherwise
* returns the first compatible candidate and relies on later coercion via var supertypes.
* Gets function declarations when an exact qualified name lookup fails. Tries to match by simple name and number of
* parameters, preferring an exact qualified-name match if found among candidates; otherwise returns the first
* compatible candidate and relies on later coercion via var supertypes.
*/
private FuncDecl<?> resolveFunctionDecl(String name, Expr<?>[] params) throws LJError {
String simple = Utils.getSimpleName(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ private static boolean isLiquidJavaAnnotation(CtAnnotation<?> annotation) {

private static boolean hasRefinementValue(CtAnnotation<?> annotation, String refinement) {
Map<String, ?> values = annotation.getValues();
return Stream.of("value", "to", "from")
.anyMatch(key -> refinement.equals(String.valueOf(values.get(key))));
return Stream.of("value", "to", "from").anyMatch(key -> refinement.equals(String.valueOf(values.get(key))));
}
}