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
FIxed offset and wrong bool exp for null
  • Loading branch information
cheestree committed Mar 30, 2026
commit aafcd38d7eb7329175c7e422e10b0d1476f62057
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public SMTResult verifySMTSubtype(Predicate expected, Predicate found, SourcePos
if (CommandLineLauncher.cmdArgs.debugMode) {
String exp = Utils.getExpressionFromPosition(position);
System.out.println(String.format("%s <: %s %s at %s", expected, found,
exp == null ? String.format("on expression '%s'", exp) : "",
exp != null ? String.format("on expression '%s'", exp) : "",
position.getFile().getName() + ":" + position.getLine()));
}
return new SMTEvaluator().verifySubtype(found, expected, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public static String getExpressionFromPosition(SourcePosition position) {
while (scanner.hasNextLine()) {
String line = scanner.nextLine();
if (currentLine == position.getLine()) {
return line.substring(position.getColumn() - 1).trim();
return line.substring(position.getColumn() - 2).trim();
}
currentLine++;
}
Expand Down
Loading