Skip to content

Commit 228ba05

Browse files
committed
Avoid catching well-formedness exception in Inox
1 parent 3c6bf30 commit 228ba05

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/main/scala/inox/solvers/unrolling/UnrollingSolver.scala

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,15 +164,8 @@ trait AbstractUnrollingSolver extends Solver { self =>
164164

165165
def assertCnstr(expression: Expr): Unit = context.timers.solvers.assert.run(try {
166166
context.timers.solvers.assert.sanity.run {
167-
try {
168-
symbols.ensureWellFormed // make sure that the current program is well-formed
169-
typeCheck(expression, BooleanType()) // make sure we've asserted a boolean-typed expression
170-
} catch {
171-
case _: Throwable =>
172-
context.reporter.internalError(
173-
"Error while ensuring well-formedness of symbols and expression in `assertCnstr` in `UnrollingSolver`"
174-
)
175-
}
167+
symbols.ensureWellFormed // make sure that the current program is well-formed
168+
typeCheck(expression, BooleanType()) // make sure we've asserted a boolean-typed expression
176169
}
177170

178171
// Multiple calls to registerForInterrupts are (almost) idempotent and acceptable

0 commit comments

Comments
 (0)