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

No effect setting the 'debug_interaction' option in the SmtLibSolver #615

Closed
smover opened this issue Dec 31, 2019 · 1 comment
Closed

Comments

@smover
Copy link

smover commented Dec 31, 2019

When setting the debug_interaction option on a SmtLibSolver I get no output of the interaction with the solver. The code I use to reporduce the issue is (substitute the path to mathsat):

from pysmt.logics import QF_LRA
from pysmt.shortcuts import (
    Solver,
    LT,
    Real,
    get_env
)

name = "mathsat-smtlib"
path = [<path to mathsat>]
logics = [QF_LRA]
env = get_env()
env.factory.add_generic_solver(name, path, logics)
solver = Solver(name=name, logic=logics[0], solver_options={'debug_interaction':True})
solver.is_valid(LT(Real(3),Real(5)))

The test case in (test_generic_wrapper.py)[https://github.com/pysmt/pysmt/blob/451c1bb5f0162963a09298e2b1f29eb93939cdeb/pysmt/test/smtlib/test_generic_wrapper.py] does not seem to test if the debug really generates the output.

It seems that the option is set in a map but then removed immediately from the map:

self.debug_interaction = self.solver_options

mikand added a commit that referenced this issue Jan 7, 2020
@mikand
Copy link
Contributor

mikand commented Jan 7, 2020

See #619

@mikand mikand closed this as completed Jan 7, 2020
marcogario pushed a commit that referenced this issue Jan 7, 2020
This was referenced Apr 12, 2020
nbailluet pushed a commit to nbailluet/pysmt that referenced this issue Mar 14, 2024
nbailluet pushed a commit to nbailluet/pysmt that referenced this issue Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants