1#ifndef STORM_SOLVER_SMT2SMTSOLVER
2#define STORM_SOLVER_SMT2SMTSOLVER
7#include "storm-config.h"
28 virtual std::string
toString()
const override;
40 virtual void push()
override;
42 virtual void pop()
override;
44 virtual void pop(uint_fast64_t n)
override;
46 virtual void reset()
override;
92 void writeCommand(std::string smt2Command,
bool expectSuccess);
99 std::vector<std::string> readSolverOutput(
bool waitForOutput =
true);
110 void checkForErrorMessage(
const std::string message);
117 pid_t processIdOfSolver;
121 std::ofstream commandFile;
123 bool isCommandFileOpen;
126 std::unique_ptr<storm::adapters::Smt2ExpressionAdapter> expressionAdapter;
135 bool useCarlExpressions;
138 bool useReadableVarNames =
true;
141 bool needsRestart =
false;
This class is responsible for managing a set of typed variables and all expressions using these varia...
The base class for all model references.
An interface that captures the functionality of an SMT solver.
CheckResult
possible check results
virtual bool getBooleanValue(storm::expressions::Variable const &variable) const override
virtual std::string toString() const override
virtual int_fast64_t getIntegerValue(storm::expressions::Variable const &variable) const override
virtual double getRationalValue(storm::expressions::Variable const &variable) const override
This class represents an SMT-LIBv2 conforming solver.
virtual ~SmtlibSmtSolver()
virtual CheckResult check() override
Checks whether the conjunction of assertions that are currently on the solver's stack is satisfiable.
virtual void push() override
Pushes a backtracking point on the solver's stack.
virtual void reset() override
Removes all assertions from the solver's stack.
virtual void add(storm::expressions::Expression const &assertion) override
Adds an assertion to the solver's stack.
virtual CheckResult checkWithAssumptions(std::set< storm::expressions::Expression > const &assumptions) override
Checks whether the conjunction of assertions that are currently on the solver's stack together with t...
bool isNeedsRestart() const
virtual void pop() override
Pops a backtracking point from the solver's stack.
carl::Relation CompareRelation
carl::Variable RationalFunctionVariable