Skip to content

More fixes for real applications #283

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
Tmp commit
  • Loading branch information
CaelmBleidd committed Jun 18, 2025
commit 51f5b9fa49fbbc4661efde086f8bcfd2db74abe6
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ class TsInterpreter(
is EtsCallStmt -> visitCallStmt(scope, stmt)
is EtsThrowStmt -> visitThrowStmt(scope, stmt)
is EtsNopStmt -> visitNopStmt(scope, stmt)
else -> error("Unknown stmt: $stmt")
else -> {
logger.error { "Unknown stmt: $stmt" }
scope.doWithState {
newStmt(graph.successors(stmt).single())
}
}
}
} catch (e: Exception) {
logger.error {
Expand Down Expand Up @@ -515,12 +520,14 @@ class TsInterpreter(
expr.extractBool(scope)
}
}

is EtsNumberType -> {
scope.calcOnState {
pathConstraints += expr.getFakeType(scope).fpTypeExpr
expr.extractFp(scope)
}
}

else -> {
scope.calcOnState {
pathConstraints += expr.getFakeType(scope).refTypeExpr
Expand Down