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

Log level affects Z3 behavior #246

Open
s0mark opened this issue Nov 22, 2023 · 0 comments
Open

Log level affects Z3 behavior #246

s0mark opened this issue Nov 22, 2023 · 0 comments
Labels

Comments

@s0mark
Copy link
Contributor

s0mark commented Nov 22, 2023

Running Theta in different log level configurations leads to Z3Exception for certain log levels, while resulting in successful verification for others.

Theta version: b56a6ac
Input task: recursive-simple/id2_b3_o2.c
Configuration: --domain PRED_CART --refinement BW_BIN_ITP --search BFS --lbe NO_LBE
Platform: MacOS 10.15

Results based on log level setting:

loglevel verification result
RESULT unsafe
MAINSTEP unsafe
SUBSTEP unsafe
INFO unsafe
DETAIL Z3Exception
VERBOSE Z3Exception

Stack trace:

com.microsoft.z3.Z3Exception: not an inequality
	at com.microsoft.z3.Native.getInterpolant(Native.java:5468)
	at com.microsoft.z3.InterpolationContext.GetInterpolant(InterpolationContext.java:91)
	at hu.bme.mit.theta.solver.z3.Z3ItpSolver.getInterpolant(Z3ItpSolver.java:105)
	at hu.bme.mit.theta.analysis.expr.refinement.ExprTraceBwBinItpChecker.check(ExprTraceBwBinItpChecker.java:125)
	at hu.bme.mit.theta.analysis.expr.refinement.SingleExprTraceRefiner.refine(SingleExprTraceRefiner.java:94)
	at hu.bme.mit.theta.xcfa.analysis.XcfaSingleExprTraceRefiner.refine(XcfaSingeExprTraceRefiner.kt:73)
	at hu.bme.mit.theta.analysis.algorithm.cegar.CegarChecker.check(CegarChecker.java:106)
	at hu.bme.mit.theta.xcfa.cli.XcfaCegarConfig.check(XcfaCegarConfig.kt:188)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli$runDirect$1.invoke(XcfaCli.kt:311)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli$runDirect$1.invoke(XcfaCli.kt:311)
	at hu.bme.mit.theta.xcfa.cli.ExitCodesKt.exitOnError(ExitCodes.kt:56)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli.runDirect(XcfaCli.kt:311)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli.run(XcfaCli.kt:263)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli.access$run(XcfaCli.kt:83)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli$Companion.main(XcfaCli.kt:615)
	at hu.bme.mit.theta.xcfa.cli.XcfaCli.main(XcfaCli.kt)
Process failed! (hu.bme.mit.theta.solver.z3.Z3ItpSolver.getInterpolant(Z3ItpSolver.java:105), com.microsoft.z3.Z3Exception: not an inequality)
@s0mark s0mark added the bug label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant