2017-07-13 16:22:51 +00:00
|
|
|
/*
|
|
|
|
This file is part of solidity.
|
|
|
|
|
|
|
|
solidity is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
solidity is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with solidity. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2019-08-22 13:44:30 +00:00
|
|
|
#include <libsolidity/ast/Types.h>
|
2017-07-13 16:22:51 +00:00
|
|
|
#include <libsolidity/interface/ReadFile.h>
|
2018-12-17 17:26:10 +00:00
|
|
|
#include <liblangutil/Exceptions.h>
|
2017-07-13 16:22:51 +00:00
|
|
|
#include <libdevcore/Common.h>
|
2017-07-13 19:06:29 +00:00
|
|
|
#include <libdevcore/Exceptions.h>
|
2017-07-13 16:22:51 +00:00
|
|
|
|
|
|
|
#include <boost/noncopyable.hpp>
|
2018-12-17 17:26:10 +00:00
|
|
|
#include <cstdio>
|
2017-07-13 16:22:51 +00:00
|
|
|
#include <map>
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
namespace dev
|
|
|
|
{
|
|
|
|
namespace solidity
|
|
|
|
{
|
|
|
|
namespace smt
|
|
|
|
{
|
|
|
|
|
2019-12-03 13:39:47 +00:00
|
|
|
struct SMTSolverChoice
|
|
|
|
{
|
|
|
|
bool cvc4 = false;
|
|
|
|
bool z3 = false;
|
|
|
|
|
|
|
|
static constexpr SMTSolverChoice All() { return {true, true}; }
|
|
|
|
static constexpr SMTSolverChoice CVC4() { return {true, false}; }
|
|
|
|
static constexpr SMTSolverChoice Z3() { return {false, true}; }
|
|
|
|
static constexpr SMTSolverChoice None() { return {false, false}; }
|
|
|
|
|
|
|
|
bool none() { return !some(); }
|
|
|
|
bool some() { return cvc4 || z3; }
|
|
|
|
bool all() { return cvc4 && z3; }
|
|
|
|
};
|
|
|
|
|
2017-07-13 16:22:51 +00:00
|
|
|
enum class CheckResult
|
|
|
|
{
|
2018-06-26 10:41:26 +00:00
|
|
|
SATISFIABLE, UNSATISFIABLE, UNKNOWN, CONFLICTING, ERROR
|
2017-07-13 16:22:51 +00:00
|
|
|
};
|
|
|
|
|
2018-11-21 14:13:50 +00:00
|
|
|
enum class Kind
|
2017-07-13 16:22:51 +00:00
|
|
|
{
|
2017-11-22 16:12:22 +00:00
|
|
|
Int,
|
2018-11-21 15:57:02 +00:00
|
|
|
Bool,
|
2018-11-22 10:24:12 +00:00
|
|
|
Function,
|
2019-08-22 13:44:30 +00:00
|
|
|
Array,
|
|
|
|
Sort
|
2017-07-13 16:22:51 +00:00
|
|
|
};
|
|
|
|
|
2018-11-21 14:13:50 +00:00
|
|
|
struct Sort
|
|
|
|
{
|
|
|
|
Sort(Kind _kind):
|
|
|
|
kind(_kind) {}
|
|
|
|
virtual ~Sort() = default;
|
2018-11-28 12:16:35 +00:00
|
|
|
virtual bool operator==(Sort const& _other) const { return kind == _other.kind; }
|
2018-11-22 19:51:40 +00:00
|
|
|
|
|
|
|
Kind const kind;
|
2018-11-21 14:13:50 +00:00
|
|
|
};
|
|
|
|
using SortPointer = std::shared_ptr<Sort>;
|
|
|
|
|
2018-11-21 15:57:02 +00:00
|
|
|
struct FunctionSort: public Sort
|
|
|
|
{
|
|
|
|
FunctionSort(std::vector<SortPointer> _domain, SortPointer _codomain):
|
|
|
|
Sort(Kind::Function), domain(std::move(_domain)), codomain(std::move(_codomain)) {}
|
2018-11-28 12:16:35 +00:00
|
|
|
bool operator==(Sort const& _other) const override
|
2018-11-21 15:57:02 +00:00
|
|
|
{
|
2018-11-28 12:16:35 +00:00
|
|
|
if (!Sort::operator==(_other))
|
|
|
|
return false;
|
|
|
|
auto _otherFunction = dynamic_cast<FunctionSort const*>(&_other);
|
|
|
|
solAssert(_otherFunction, "");
|
|
|
|
if (domain.size() != _otherFunction->domain.size())
|
|
|
|
return false;
|
2018-11-21 15:57:02 +00:00
|
|
|
if (!std::equal(
|
|
|
|
domain.begin(),
|
|
|
|
domain.end(),
|
2018-11-28 12:16:35 +00:00
|
|
|
_otherFunction->domain.begin(),
|
2018-11-21 15:57:02 +00:00
|
|
|
[&](SortPointer _a, SortPointer _b) { return *_a == *_b; }
|
2018-11-22 19:51:40 +00:00
|
|
|
))
|
2018-11-21 15:57:02 +00:00
|
|
|
return false;
|
2018-11-09 16:06:30 +00:00
|
|
|
solAssert(codomain, "");
|
|
|
|
solAssert(_otherFunction->codomain, "");
|
2018-11-28 12:16:35 +00:00
|
|
|
return *codomain == *_otherFunction->codomain;
|
2018-11-21 15:57:02 +00:00
|
|
|
}
|
2018-11-22 19:51:40 +00:00
|
|
|
|
|
|
|
std::vector<SortPointer> domain;
|
|
|
|
SortPointer codomain;
|
2018-11-21 15:57:02 +00:00
|
|
|
};
|
2018-11-21 14:13:50 +00:00
|
|
|
|
2018-11-22 10:24:12 +00:00
|
|
|
struct ArraySort: public Sort
|
|
|
|
{
|
|
|
|
/// _domain is the sort of the indices
|
|
|
|
/// _range is the sort of the values
|
|
|
|
ArraySort(SortPointer _domain, SortPointer _range):
|
|
|
|
Sort(Kind::Array), domain(std::move(_domain)), range(std::move(_range)) {}
|
2018-11-28 12:16:35 +00:00
|
|
|
bool operator==(Sort const& _other) const override
|
2018-11-22 10:24:12 +00:00
|
|
|
{
|
2018-11-28 12:16:35 +00:00
|
|
|
if (!Sort::operator==(_other))
|
|
|
|
return false;
|
|
|
|
auto _otherArray = dynamic_cast<ArraySort const*>(&_other);
|
|
|
|
solAssert(_otherArray, "");
|
2018-11-09 16:06:30 +00:00
|
|
|
solAssert(_otherArray->domain, "");
|
|
|
|
solAssert(_otherArray->range, "");
|
|
|
|
solAssert(domain, "");
|
|
|
|
solAssert(range, "");
|
2018-11-28 12:16:35 +00:00
|
|
|
return *domain == *_otherArray->domain && *range == *_otherArray->range;
|
2018-11-22 10:24:12 +00:00
|
|
|
}
|
2018-11-22 19:51:40 +00:00
|
|
|
|
|
|
|
SortPointer domain;
|
|
|
|
SortPointer range;
|
2018-11-22 10:24:12 +00:00
|
|
|
};
|
|
|
|
|
2019-08-22 13:44:30 +00:00
|
|
|
struct SortSort: public Sort
|
|
|
|
{
|
|
|
|
SortSort(SortPointer _inner): Sort(Kind::Sort), inner(std::move(_inner)) {}
|
|
|
|
bool operator==(Sort const& _other) const override
|
|
|
|
{
|
|
|
|
if (!Sort::operator==(_other))
|
|
|
|
return false;
|
|
|
|
auto _otherSort = dynamic_cast<SortSort const*>(&_other);
|
|
|
|
solAssert(_otherSort, "");
|
|
|
|
solAssert(_otherSort->inner, "");
|
|
|
|
solAssert(inner, "");
|
|
|
|
return *inner == *_otherSort->inner;
|
|
|
|
}
|
|
|
|
|
|
|
|
SortPointer inner;
|
|
|
|
};
|
|
|
|
|
|
|
|
// Forward declaration.
|
|
|
|
SortPointer smtSort(solidity::Type const& _type);
|
|
|
|
|
2017-07-13 16:22:51 +00:00
|
|
|
/// C++ representation of an SMTLIB2 expression.
|
|
|
|
class Expression
|
|
|
|
{
|
|
|
|
friend class SolverInterface;
|
|
|
|
public:
|
2018-11-21 14:13:50 +00:00
|
|
|
explicit Expression(bool _v): Expression(_v ? "true" : "false", Kind::Bool) {}
|
2019-08-22 13:44:30 +00:00
|
|
|
explicit Expression(solidity::TypePointer _type): Expression(_type->toString(), {}, std::make_shared<SortSort>(smtSort(*_type))) {}
|
2018-11-21 14:13:50 +00:00
|
|
|
Expression(size_t _number): Expression(std::to_string(_number), Kind::Int) {}
|
|
|
|
Expression(u256 const& _number): Expression(_number.str(), Kind::Int) {}
|
2019-03-11 10:56:08 +00:00
|
|
|
Expression(s256 const& _number): Expression(_number.str(), Kind::Int) {}
|
2018-11-21 14:13:50 +00:00
|
|
|
Expression(bigint const& _number): Expression(_number.str(), Kind::Int) {}
|
2017-07-13 16:22:51 +00:00
|
|
|
|
2017-08-31 10:16:41 +00:00
|
|
|
Expression(Expression const&) = default;
|
|
|
|
Expression(Expression&&) = default;
|
2018-10-17 14:46:18 +00:00
|
|
|
Expression& operator=(Expression const&) = default;
|
|
|
|
Expression& operator=(Expression&&) = default;
|
2017-07-13 16:22:51 +00:00
|
|
|
|
2018-04-06 16:01:40 +00:00
|
|
|
bool hasCorrectArity() const
|
|
|
|
{
|
|
|
|
static std::map<std::string, unsigned> const operatorsArity{
|
|
|
|
{"ite", 3},
|
|
|
|
{"not", 1},
|
|
|
|
{"and", 2},
|
|
|
|
{"or", 2},
|
2019-06-04 12:23:44 +00:00
|
|
|
{"implies", 2},
|
2018-04-06 16:01:40 +00:00
|
|
|
{"=", 2},
|
|
|
|
{"<", 2},
|
|
|
|
{"<=", 2},
|
|
|
|
{">", 2},
|
|
|
|
{">=", 2},
|
|
|
|
{"+", 2},
|
|
|
|
{"-", 2},
|
|
|
|
{"*", 2},
|
2018-11-22 10:24:12 +00:00
|
|
|
{"/", 2},
|
2019-01-22 13:34:29 +00:00
|
|
|
{"mod", 2},
|
2018-11-22 10:24:12 +00:00
|
|
|
{"select", 2},
|
2019-08-22 13:44:30 +00:00
|
|
|
{"store", 3},
|
|
|
|
{"const_array", 2}
|
2018-04-06 16:01:40 +00:00
|
|
|
};
|
|
|
|
return operatorsArity.count(name) && operatorsArity.at(name) == arguments.size();
|
|
|
|
}
|
|
|
|
|
2017-07-14 09:49:27 +00:00
|
|
|
static Expression ite(Expression _condition, Expression _trueValue, Expression _falseValue)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
solAssert(*_trueValue.sort == *_falseValue.sort, "");
|
2018-11-29 14:32:38 +00:00
|
|
|
SortPointer sort = _trueValue.sort;
|
2017-07-14 09:49:27 +00:00
|
|
|
return Expression("ite", std::vector<Expression>{
|
|
|
|
std::move(_condition), std::move(_trueValue), std::move(_falseValue)
|
2018-11-29 14:32:38 +00:00
|
|
|
}, std::move(sort));
|
2017-07-14 09:49:27 +00:00
|
|
|
}
|
|
|
|
|
2017-12-11 19:09:17 +00:00
|
|
|
static Expression implies(Expression _a, Expression _b)
|
|
|
|
{
|
2019-06-04 12:23:44 +00:00
|
|
|
return Expression(
|
|
|
|
"implies",
|
|
|
|
std::move(_a),
|
|
|
|
std::move(_b),
|
|
|
|
Kind::Bool
|
|
|
|
);
|
2017-12-11 19:09:17 +00:00
|
|
|
}
|
|
|
|
|
2018-11-22 10:24:12 +00:00
|
|
|
/// select is the SMT representation of an array index access.
|
|
|
|
static Expression select(Expression _array, Expression _index)
|
|
|
|
{
|
|
|
|
solAssert(_array.sort->kind == Kind::Array, "");
|
2018-11-09 16:06:30 +00:00
|
|
|
std::shared_ptr<ArraySort> arraySort = std::dynamic_pointer_cast<ArraySort>(_array.sort);
|
2018-11-22 10:24:12 +00:00
|
|
|
solAssert(arraySort, "");
|
2018-11-09 16:06:30 +00:00
|
|
|
solAssert(_index.sort, "");
|
2018-11-22 10:24:12 +00:00
|
|
|
solAssert(*arraySort->domain == *_index.sort, "");
|
|
|
|
return Expression(
|
|
|
|
"select",
|
|
|
|
std::vector<Expression>{std::move(_array), std::move(_index)},
|
|
|
|
arraySort->range
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// store is the SMT representation of an assignment to array index.
|
|
|
|
/// The function is pure and returns the modified array.
|
|
|
|
static Expression store(Expression _array, Expression _index, Expression _element)
|
|
|
|
{
|
|
|
|
solAssert(_array.sort->kind == Kind::Array, "");
|
2018-11-09 16:06:30 +00:00
|
|
|
std::shared_ptr<ArraySort> arraySort = std::dynamic_pointer_cast<ArraySort>(_array.sort);
|
2018-11-22 10:24:12 +00:00
|
|
|
solAssert(arraySort, "");
|
2018-11-09 16:06:30 +00:00
|
|
|
solAssert(_index.sort, "");
|
|
|
|
solAssert(_element.sort, "");
|
2018-11-22 10:24:12 +00:00
|
|
|
solAssert(*arraySort->domain == *_index.sort, "");
|
|
|
|
solAssert(*arraySort->range == *_element.sort, "");
|
|
|
|
return Expression(
|
|
|
|
"store",
|
|
|
|
std::vector<Expression>{std::move(_array), std::move(_index), std::move(_element)},
|
2018-11-09 16:06:30 +00:00
|
|
|
arraySort
|
2018-11-22 10:24:12 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2019-08-22 13:44:30 +00:00
|
|
|
static Expression const_array(Expression _sort, Expression _value)
|
|
|
|
{
|
|
|
|
solAssert(_sort.sort->kind == Kind::Sort, "");
|
|
|
|
auto sortSort = std::dynamic_pointer_cast<SortSort>(_sort.sort);
|
|
|
|
auto arraySort = std::dynamic_pointer_cast<ArraySort>(sortSort->inner);
|
|
|
|
solAssert(sortSort && arraySort, "");
|
|
|
|
solAssert(_value.sort, "");
|
|
|
|
solAssert(*arraySort->range == *_value.sort, "");
|
|
|
|
return Expression(
|
|
|
|
"const_array",
|
|
|
|
std::vector<Expression>{std::move(_sort), std::move(_value)},
|
|
|
|
arraySort
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2017-07-13 16:22:51 +00:00
|
|
|
friend Expression operator!(Expression _a)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("not", std::move(_a), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator&&(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("and", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator||(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("or", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator==(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("=", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator!=(Expression _a, Expression _b)
|
|
|
|
{
|
|
|
|
return !(std::move(_a) == std::move(_b));
|
|
|
|
}
|
|
|
|
friend Expression operator<(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("<", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator<=(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("<=", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator>(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression(">", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator>=(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression(">=", std::move(_a), std::move(_b), Kind::Bool);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator+(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("+", std::move(_a), std::move(_b), Kind::Int);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator-(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("-", std::move(_a), std::move(_b), Kind::Int);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
friend Expression operator*(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("*", std::move(_a), std::move(_b), Kind::Int);
|
2017-10-05 13:23:25 +00:00
|
|
|
}
|
|
|
|
friend Expression operator/(Expression _a, Expression _b)
|
|
|
|
{
|
2018-11-21 14:13:50 +00:00
|
|
|
return Expression("/", std::move(_a), std::move(_b), Kind::Int);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
2019-01-22 13:34:29 +00:00
|
|
|
friend Expression operator%(Expression _a, Expression _b)
|
|
|
|
{
|
|
|
|
return Expression("mod", std::move(_a), std::move(_b), Kind::Int);
|
|
|
|
}
|
2018-10-25 14:00:09 +00:00
|
|
|
Expression operator()(std::vector<Expression> _arguments) const
|
2017-07-13 16:22:51 +00:00
|
|
|
{
|
2017-11-22 16:12:22 +00:00
|
|
|
solAssert(
|
2018-11-21 15:57:02 +00:00
|
|
|
sort->kind == Kind::Function,
|
2017-11-22 16:12:22 +00:00
|
|
|
"Attempted function application to non-function."
|
|
|
|
);
|
2018-11-21 15:57:02 +00:00
|
|
|
auto fSort = dynamic_cast<FunctionSort const*>(sort.get());
|
|
|
|
solAssert(fSort, "");
|
|
|
|
return Expression(name, std::move(_arguments), fSort->codomain);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
|
2018-10-17 14:46:18 +00:00
|
|
|
std::string name;
|
|
|
|
std::vector<Expression> arguments;
|
2018-11-21 14:13:50 +00:00
|
|
|
SortPointer sort;
|
2017-07-13 16:22:51 +00:00
|
|
|
|
|
|
|
private:
|
2018-11-21 14:13:50 +00:00
|
|
|
/// Manual constructors, should only be used by SolverInterface and this class itself.
|
|
|
|
Expression(std::string _name, std::vector<Expression> _arguments, SortPointer _sort):
|
|
|
|
name(std::move(_name)), arguments(std::move(_arguments)), sort(std::move(_sort)) {}
|
|
|
|
Expression(std::string _name, std::vector<Expression> _arguments, Kind _kind):
|
|
|
|
Expression(std::move(_name), std::move(_arguments), std::make_shared<Sort>(_kind)) {}
|
|
|
|
|
|
|
|
explicit Expression(std::string _name, Kind _kind):
|
|
|
|
Expression(std::move(_name), std::vector<Expression>{}, _kind) {}
|
|
|
|
Expression(std::string _name, Expression _arg, Kind _kind):
|
|
|
|
Expression(std::move(_name), std::vector<Expression>{std::move(_arg)}, _kind) {}
|
|
|
|
Expression(std::string _name, Expression _arg1, Expression _arg2, Kind _kind):
|
|
|
|
Expression(std::move(_name), std::vector<Expression>{std::move(_arg1), std::move(_arg2)}, _kind) {}
|
2017-07-13 16:22:51 +00:00
|
|
|
};
|
|
|
|
|
2017-07-13 19:06:29 +00:00
|
|
|
DEV_SIMPLE_EXCEPTION(SolverError);
|
|
|
|
|
2017-07-13 16:22:51 +00:00
|
|
|
class SolverInterface
|
|
|
|
{
|
|
|
|
public:
|
2018-05-02 11:29:16 +00:00
|
|
|
virtual ~SolverInterface() = default;
|
2017-07-13 16:22:51 +00:00
|
|
|
virtual void reset() = 0;
|
|
|
|
|
|
|
|
virtual void push() = 0;
|
|
|
|
virtual void pop() = 0;
|
|
|
|
|
2019-09-24 15:35:31 +00:00
|
|
|
virtual void declareVariable(std::string const& _name, SortPointer const& _sort) = 0;
|
|
|
|
Expression newVariable(std::string _name, SortPointer const& _sort)
|
2017-07-13 16:22:51 +00:00
|
|
|
{
|
|
|
|
// Subclasses should do something here
|
2019-04-12 12:44:18 +00:00
|
|
|
solAssert(_sort, "");
|
2019-09-24 15:35:31 +00:00
|
|
|
declareVariable(_name, _sort);
|
|
|
|
return Expression(std::move(_name), {}, _sort);
|
2017-07-13 16:22:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
virtual void addAssertion(Expression const& _expr) = 0;
|
|
|
|
|
2017-07-13 19:06:29 +00:00
|
|
|
/// Checks for satisfiability, evaluates the expressions if a model
|
|
|
|
/// is available. Throws SMTSolverError on error.
|
2017-07-13 16:22:51 +00:00
|
|
|
virtual std::pair<CheckResult, std::vector<std::string>>
|
|
|
|
check(std::vector<Expression> const& _expressionsToEvaluate) = 0;
|
|
|
|
|
2017-10-13 13:19:53 +00:00
|
|
|
/// @returns a list of queries that the system was not able to respond to.
|
|
|
|
virtual std::vector<std::string> unhandledQueries() { return {}; }
|
|
|
|
|
2019-01-23 10:22:38 +00:00
|
|
|
/// @returns how many SMT solvers this interface has.
|
|
|
|
virtual unsigned solvers() { return 1; }
|
2018-07-27 07:14:50 +00:00
|
|
|
};
|
2017-07-13 16:22:51 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|