Skip to content

CVC5 timeout implementation #419

Open
@Avgor46

Description

@Avgor46

Hi!

I am trying to implement timeout on query to CVC5 solver. I am aware of non-existence of such interface in library (there is ShutdownManager, but it does not implement timeout by itself). If I want to timeout solver, I need to run it in separate thread. So, according to the description of SolverContext, I have to create new SolverContext and transfer formulas from original context to the new one using translateFrom method. This method uses parse method which it is not implemented for CVC5...

I also tried to pass formulas to new context prover without conversion and got error io.github.cvc5.CVC5ApiException: Given term is not associated with the term manager of this solver. And also tried to call isUnsat from old context in new thread which resulted in error in native code.

So, is it real to implement timeout for CVC5 solver? Maybe I am missing something...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions