Skip to content
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

Yices #46

Merged
merged 13 commits into from
Feb 14, 2023
Prev Previous commit
Next Next commit
Fix timeout and java compile version
  • Loading branch information
Bupaheh committed Feb 13, 2023
commit cd994311e838f14f9800273d617cb7323e03a182
Binary file modified ksmt-yices/dist/com.sri.yices.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ class KYicesSolver(private val ctx: KContext) : KSolver<KYicesSolverConfiguratio
}

private inline fun <T> withTimer(timeout: Duration, body: () -> T): T {
val delay = if (timeout.isFinite()) timeout.inWholeMilliseconds else Long.MAX_VALUE
val task = StopSearchTask()

timer.schedule(task, delay)
if (timeout.isFinite())
timer.schedule(task, timeout.inWholeMilliseconds)

return try {
body()
Expand Down