cprover
Toggle main menu visibility
Loading...
Searching...
No Matches
smt2_dec.h
Go to the documentation of this file.
1
/*******************************************************************\
2
3
Module:
4
5
Author: Daniel Kroening, kroening@kroening.com
6
7
\*******************************************************************/
8
9
10
#ifndef CPROVER_SOLVERS_SMT2_SMT2_DEC_H
11
#define CPROVER_SOLVERS_SMT2_SMT2_DEC_H
12
13
#include "
smt2_conv.h
"
14
15
class
message_handlert
;
16
17
class
smt2_stringstreamt
18
{
19
protected
:
20
std::stringstream
stringstream
;
21
};
22
25
class
smt2_dect
:
protected
smt2_stringstreamt
,
public
smt2_convt
26
{
27
public
:
28
smt2_dect
(
29
const
namespacet
&_ns,
30
const
std::string &_benchmark,
31
const
std::string &_notes,
32
const
std::string &_logic,
33
solvert
_solver,
34
const
std::string &_solver_binary_or_empty,
35
message_handlert
&_message_handler)
36
:
smt2_convt
(_ns, _benchmark, _notes, _logic, _solver,
stringstream
),
37
solver_binary_or_empty
(_solver_binary_or_empty),
38
message_handler
(_message_handler)
39
{
40
}
41
42
std::string
decision_procedure_text
()
const override
;
43
44
protected
:
45
std::string
solver_binary_or_empty
;
46
message_handlert
&
message_handler
;
47
resultt
dec_solve
(
const
exprt
&)
override
;
48
51
std::stringstream
cached_output
;
52
53
resultt
read_result
(std::istream &in);
54
};
55
56
#endif
// CPROVER_SOLVERS_SMT2_SMT2_DEC_H
decision_proceduret::resultt
resultt
Result of running the decision procedure.
Definition
decision_procedure.h:45
exprt
Base class for all expressions.
Definition
expr.h:57
message_handlert
Definition
message.h:27
namespacet
A namespacet is essentially one or two symbol tables bound together, to allow for symbol lookups in t...
Definition
namespace.h:91
smt2_convt::smt2_convt
smt2_convt(const namespacet &_ns, const std::string &_benchmark, const std::string &_notes, const std::string &_logic, solvert _solver, std::ostream &_out)
Definition
smt2_conv.cpp:59
smt2_convt::solvert
solvert
Definition
smt2_conv.h:45
smt2_dect::message_handler
message_handlert & message_handler
Definition
smt2_dec.h:46
smt2_dect::decision_procedure_text
std::string decision_procedure_text() const override
Return a textual description of the decision procedure.
Definition
smt2_dec.cpp:20
smt2_dect::solver_binary_or_empty
std::string solver_binary_or_empty
Definition
smt2_dec.h:45
smt2_dect::smt2_dect
smt2_dect(const namespacet &_ns, const std::string &_benchmark, const std::string &_notes, const std::string &_logic, solvert _solver, const std::string &_solver_binary_or_empty, message_handlert &_message_handler)
Definition
smt2_dec.h:28
smt2_dect::dec_solve
resultt dec_solve(const exprt &) override
Implementation of the decision procedure.
Definition
smt2_dec.cpp:38
smt2_dect::read_result
resultt read_result(std::istream &in)
Definition
smt2_dec.cpp:176
smt2_dect::cached_output
std::stringstream cached_output
Everything except the footer is cached, so that output files can be rewritten with varying footers.
Definition
smt2_dec.h:51
smt2_stringstreamt
Definition
smt2_dec.h:18
smt2_stringstreamt::stringstream
std::stringstream stringstream
Definition
smt2_dec.h:20
smt2_conv.h
solvers
smt2
smt2_dec.h
Generated by
1.17.0