ROSE  0.11.31.0
SourceAstSemantics2.h
1 // Turn instruction semantics into a C source AST
2 #ifndef Rose_SourceAstSemantics2_H
3 #define Rose_SourceAstSemantics2_H
4 #include <featureTests.h>
5 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
6 
7 #include "Disassembler.h"
8 #include "RegisterStateGeneric.h"
9 #include "NullSemantics2.h"
10 
11 namespace Rose {
12 namespace BinaryAnalysis { // documented elsewhere
13 namespace InstructionSemantics2 { // documented elsewhere
14 
50 namespace SourceAstSemantics {
51 
53 // Value type
55 
58 
69 protected:
70  static size_t nVariables_;
71  std::string ctext_;
72 
73 protected:
74  // An undefined or unspecified value is a C variable that's not initialized.
75  explicit SValue(size_t nbits);
76 
77  // An integer value, various types depending on width
78  SValue(size_t nbits, uint64_t number);
79 
80  // Copy constructor deep-copies the AST.
81  SValue(const SValue &other);
82 
83 public:
87  static SValuePtr instance() {
88  return SValuePtr(new SValue(1));
89  }
90 
94  static SValuePtr instance_undefined(size_t nbits) {
95  return SValuePtr(new SValue(nbits));
96  }
97 
99  static SValuePtr instance_integer(size_t nbits, uint64_t value) {
100  return SValuePtr(new SValue(nbits, value));
101  }
102 
103 public:
104  virtual BaseSemantics::SValuePtr bottom_(size_t nbits) const ROSE_OVERRIDE {
105  return instance_undefined(nbits);
106  }
107  virtual BaseSemantics::SValuePtr undefined_(size_t nbits) const ROSE_OVERRIDE {
108  return instance_undefined(nbits);
109  }
110  virtual BaseSemantics::SValuePtr unspecified_(size_t nbits) const ROSE_OVERRIDE {
111  return instance_undefined(nbits);
112  }
113  virtual BaseSemantics::SValuePtr number_(size_t nbits, uint64_t value) const ROSE_OVERRIDE {
114  return instance_integer(nbits, value);
115  }
116  virtual BaseSemantics::SValuePtr boolean_(bool value) const ROSE_OVERRIDE {
117  return instance_integer(1, value ? 1 : 0);
118  }
119  virtual BaseSemantics::SValuePtr copy(size_t new_width=0) const ROSE_OVERRIDE {
120  SValuePtr retval(new SValue(*this));
121  if (new_width!=0 && new_width!=retval->nBits())
122  retval->set_width(new_width);
123  return retval;
124  }
127  const SmtSolverPtr&) const ROSE_OVERRIDE {
128  throw BaseSemantics::NotImplemented("SourceAstSemantics is not suitable for dataflow analysis", NULL);
129  }
130 
131 public:
133  static SValuePtr promote(const BaseSemantics::SValuePtr &v) { // hot
134  SValuePtr retval = v.dynamicCast<SValue>();
135  ASSERT_not_null(retval);
136  return retval;
137  }
138 
139 public:
140  virtual bool isBottom() const ROSE_OVERRIDE {
141  return false;
142  }
143 
144  virtual void hash(Combinatorics::Hasher&) const override;
145  virtual void print(std::ostream&, BaseSemantics::Formatter&) const ROSE_OVERRIDE;
146 
147 public:
148  // These are not needed since this domain never tries to compare semantic values.
149  virtual bool may_equal(const BaseSemantics::SValuePtr &other,
150  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
151  ASSERT_not_reachable("no implementation necessary");
152  }
153 
154  virtual bool must_equal(const BaseSemantics::SValuePtr &other,
155  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
156  ASSERT_not_reachable("no implementation necessary");
157  }
158 
159  virtual void set_width(size_t nbits) ROSE_OVERRIDE {
160  ASSERT_not_reachable("no implementation necessary");
161  }
162 
163  virtual bool is_number() const ROSE_OVERRIDE {
164  return false;
165  }
166 
167  virtual uint64_t get_number() const ROSE_OVERRIDE {
168  ASSERT_not_reachable("no implementation necessary");
169  }
170 
171 public:
175  static std::string unsignedTypeNameForSize(size_t nbits);
176  static std::string signedTypeNameForSize(size_t nbits);
179 public:
183  virtual const std::string& ctext() const {
184  return ctext_;
185  }
186  virtual void ctext(const std::string &s) {
187  ctext_ = s;
188  }
190 };
191 
193 // State
195 
196 // No state is necessary for this domain because all instruction side effects are immediately attached to the AST that's
197 // being generated rather than being stored in some state.
198 
205 typedef BaseSemantics::State State;
209 // RiscOperators
212 
214 typedef boost::shared_ptr<class RiscOperators> RiscOperatorsPtr;
215 
225 
226 public:
228  struct SideEffect {
233  // Default constructor. Not normally used, but needed by <code>std::vector</code>. (DON'T DOCUMENT)
234  SideEffect() {}
235 
236  // Used internally, not neede by users since data members are public.
237  SideEffect(const BaseSemantics::SValuePtr &location, const BaseSemantics::SValuePtr &temporary,
238  const BaseSemantics::SValuePtr &expression)
239  : location(location), temporary(temporary), expression(expression) {}
240 
242  bool isValid() const { return expression != NULL; }
243 
247  bool isSubstitution() const {
248  return isValid() && location==NULL && temporary!=NULL;
249  }
250  };
251 
253  typedef std::vector<SideEffect> SideEffects;
254 
255 private:
256  SideEffects sideEffects_; // Side effects, including substitutions
257  bool executionHalted_; // Stop adding inputs and outputs?
258 
259 protected:
261  : BaseSemantics::RiscOperators(protoval, solver), executionHalted_(false) {
262  name("SourceAstSemantics");
263  (void) SValue::promote(protoval); // make sure its dynamic type is a SourceAstSemantics::SValue
264  }
265 
267  : BaseSemantics::RiscOperators(state, solver), executionHalted_(false) {
268  name("SourceAstSemantics");
269  (void) SValue::promote(state->protoval()); // values must have SourceAstSemantics::SValue dynamic type
270  }
271 
272 public:
275  static RiscOperatorsPtr instance(const RegisterDictionary *regdict, const SmtSolverPtr &solver = SmtSolverPtr()) {
277  RegisterStatePtr registers = RegisterState::instance(protoval, regdict);
278  BaseSemantics::MemoryStatePtr memory = MemoryState::instance(protoval, protoval);
279  BaseSemantics::StatePtr state = State::instance(registers, memory);
280  RiscOperatorsPtr ops = RiscOperatorsPtr(new RiscOperators(state, solver));
281  ops->resetState();
282  return ops;
283  }
284 
288  static RiscOperatorsPtr instance(const BaseSemantics::SValuePtr &protoval, const SmtSolverPtr &solver = SmtSolverPtr()) {
289  return RiscOperatorsPtr(new RiscOperators(protoval, solver));
290  }
291 
294  static RiscOperatorsPtr instance(const BaseSemantics::StatePtr &state, const SmtSolverPtr &solver = SmtSolverPtr()) {
295  return RiscOperatorsPtr(new RiscOperators(state, solver));
296  }
297 
299  // Virtual constructors
300 public:
302  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
303  return instance(protoval, solver);
304  }
305 
307  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
308  return instance(state, solver);
309  }
310 
312  // Dynamic pointer casts
313 public:
316  static RiscOperatorsPtr promote(const BaseSemantics::RiscOperatorsPtr &x) {
317  RiscOperatorsPtr retval = boost::dynamic_pointer_cast<RiscOperators>(x);
318  ASSERT_not_null(retval);
319  return retval;
320  }
321 
323  // Supporting functions
324 public:
326  BaseSemantics::SValuePtr makeSValue(size_t nbits, SgNode*, const std::string &ctext = "");
327 
335 
342 
346  const SideEffects& sideEffects() const {
347  return sideEffects_;
348  }
349 
351  void resetState();
352 
358 
360  void reset() {
361  sideEffects_.clear();
362  executionHalted_ = false;
363  resetState();
364  }
365 
372  void haltExecution() { executionHalted_ = true; }
373 
379  BaseSemantics::SValuePtr makeMask(size_t nBits, size_t nSet, size_t sa=0);
380 
382  // Override all operator methods from base class. These are the RISC operators that are invoked by a Dispatcher.
383 public:
384  virtual BaseSemantics::SValuePtr unspecified_(size_t nbits) ROSE_OVERRIDE;
385  virtual void hlt() ROSE_OVERRIDE;
386  virtual void cpuid() ROSE_OVERRIDE;
387  virtual BaseSemantics::SValuePtr rdtsc() ROSE_OVERRIDE;
388  virtual BaseSemantics::SValuePtr and_(const BaseSemantics::SValuePtr &a_,
389  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
390  virtual BaseSemantics::SValuePtr or_(const BaseSemantics::SValuePtr &a_,
391  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
392  virtual BaseSemantics::SValuePtr xor_(const BaseSemantics::SValuePtr &a_,
393  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
394  virtual BaseSemantics::SValuePtr invert(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
395  virtual BaseSemantics::SValuePtr extract(const BaseSemantics::SValuePtr &a_,
396  size_t begin_bit, size_t end_bit) ROSE_OVERRIDE;
397  virtual BaseSemantics::SValuePtr concat(const BaseSemantics::SValuePtr &a_,
398  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
399  virtual BaseSemantics::SValuePtr leastSignificantSetBit(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
400  virtual BaseSemantics::SValuePtr mostSignificantSetBit(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
401  virtual BaseSemantics::SValuePtr rotateLeft(const BaseSemantics::SValuePtr &a_,
402  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
403  virtual BaseSemantics::SValuePtr rotateRight(const BaseSemantics::SValuePtr &a_,
404  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
405  virtual BaseSemantics::SValuePtr shiftLeft(const BaseSemantics::SValuePtr &a_,
406  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
407  virtual BaseSemantics::SValuePtr shiftRight(const BaseSemantics::SValuePtr &a_,
408  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
409  virtual BaseSemantics::SValuePtr shiftRightArithmetic(const BaseSemantics::SValuePtr &a_,
410  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
411  virtual BaseSemantics::SValuePtr equalToZero(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
412  virtual BaseSemantics::SValuePtr ite(const BaseSemantics::SValuePtr &sel_,
413  const BaseSemantics::SValuePtr &a_,
414  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
415  virtual BaseSemantics::SValuePtr unsignedExtend(const BaseSemantics::SValuePtr &a_, size_t new_width) ROSE_OVERRIDE;
416  virtual BaseSemantics::SValuePtr signExtend(const BaseSemantics::SValuePtr &a_, size_t new_width) ROSE_OVERRIDE;
417  virtual BaseSemantics::SValuePtr add(const BaseSemantics::SValuePtr &a_,
418  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
419  virtual BaseSemantics::SValuePtr addWithCarries(const BaseSemantics::SValuePtr &a_,
420  const BaseSemantics::SValuePtr &b_,
421  const BaseSemantics::SValuePtr &c_,
422  BaseSemantics::SValuePtr &carry_out/*out*/) ROSE_OVERRIDE;
423  virtual BaseSemantics::SValuePtr negate(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
424  virtual BaseSemantics::SValuePtr signedDivide(const BaseSemantics::SValuePtr &a_,
425  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
426  virtual BaseSemantics::SValuePtr signedModulo(const BaseSemantics::SValuePtr &a_,
427  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
428  virtual BaseSemantics::SValuePtr signedMultiply(const BaseSemantics::SValuePtr &a_,
429  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
430  virtual BaseSemantics::SValuePtr unsignedDivide(const BaseSemantics::SValuePtr &a_,
431  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
432  virtual BaseSemantics::SValuePtr unsignedModulo(const BaseSemantics::SValuePtr &a_,
433  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
434  virtual BaseSemantics::SValuePtr unsignedMultiply(const BaseSemantics::SValuePtr &a_,
435  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
436  virtual void interrupt(int majr, int minr) ROSE_OVERRIDE;
437  virtual BaseSemantics::SValuePtr readRegister(RegisterDescriptor reg,
438  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
439  virtual BaseSemantics::SValuePtr peekRegister(RegisterDescriptor reg,
440  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
441  virtual void writeRegister(RegisterDescriptor reg, const BaseSemantics::SValuePtr &a) ROSE_OVERRIDE;
442  virtual BaseSemantics::SValuePtr readMemory(RegisterDescriptor segreg,
443  const BaseSemantics::SValuePtr &addr,
444  const BaseSemantics::SValuePtr &dflt,
445  const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE;
446  virtual BaseSemantics::SValuePtr peekMemory(RegisterDescriptor segreg,
447  const BaseSemantics::SValuePtr &addr,
448  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
449  virtual void writeMemory(RegisterDescriptor segreg,
450  const BaseSemantics::SValuePtr &addr,
451  const BaseSemantics::SValuePtr &data,
452  const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE;
453 };
454 
455 
456 } // namespace
457 } // namespace
458 } // namespace
459 } // namespace
460 
461 #endif
462 #endif
static std::string unsignedTypeNameForSize(size_t nbits)
Name of integer type used for value.
static RegisterStateGenericPtr instance(const SValuePtr &protoval, const RegisterDictionary *regdict)
Instantiate a new register state.
boost::shared_ptr< RiscOperators > RiscOperatorsPtr
Shared-ownership pointer to a RISC operators object.
virtual BaseSemantics::SValuePtr readMemory(RegisterDescriptor segreg, const BaseSemantics::SValuePtr &addr, const BaseSemantics::SValuePtr &dflt, const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE
Reads a value from memory.
static std::string signedTypeNameForSize(size_t nbits)
Name of integer type used for value.
virtual void hash(Combinatorics::Hasher &) const override
Hash this semantic value.
boost::shared_ptr< class RegisterStateGeneric > RegisterStateGenericPtr
Shared-ownership pointer to generic register states.
static SValuePtr instance_undefined(size_t nbits)
Instantiate an undefined value.
virtual BaseSemantics::SValuePtr number_(size_t nbits, uint64_t value) const ROSE_OVERRIDE
Create a new concrete semantic value.
static RiscOperatorsPtr instance(const BaseSemantics::StatePtr &state, const SmtSolverPtr &solver=SmtSolverPtr())
Instantiates a new RiscOperators object with specified state.
BaseSemantics::RegisterStateGenericPtr RegisterStatePtr
Pointer to register states used by this domain.
static RiscOperatorsPtr instance(const RegisterDictionary *regdict, const SmtSolverPtr &solver=SmtSolverPtr())
Instantiates a new RiscOperators object and configures it to use semantic values and states that are ...
Sawyer::SharedPointer< class SValue > SValuePtr
Shared-ownership pointer for a binary-to-source semantic value.
boost::shared_ptr< MemoryState > MemoryStatePtr
Shared-ownership pointer to a memory state.
boost::shared_ptr< State > StatePtr
Shared-ownership pointer to a semantic state.
NullSemantics::MemoryState MemoryState
Memory state used by this domain.
virtual void ctext(const std::string &s)
C source text associated with this semantic value.
virtual BaseSemantics::SValuePtr signedMultiply(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE
Multiplies two signed values.
Holds a value or nothing.
Definition: Optional.h:49
virtual BaseSemantics::RiscOperatorsPtr create(const BaseSemantics::StatePtr &state, const SmtSolverPtr &solver=SmtSolverPtr()) const ROSE_OVERRIDE
Virtual allocating constructor.
std::string registerVariableName(RegisterDescriptor)
Global variable name for a register.
BaseSemantics::SValuePtr makeMask(size_t nBits, size_t nSet, size_t sa=0)
Return a bit mask.
virtual SValuePtr protoval() const
Property: Prototypical semantic value.
boost::shared_ptr< class MemoryState > MemoryStatePtr
Shared-ownership pointer to null register state.
virtual void interrupt(int majr, int minr) ROSE_OVERRIDE
Invoked for instructions that cause an interrupt.
Main namespace for the ROSE library.
BaseSemantics::SValuePtr makeSValue(size_t nbits, SgNode *, const std::string &ctext="")
Create a new SValue.
virtual BaseSemantics::SValuePtr copy(size_t new_width=0) const ROSE_OVERRIDE
Create a new value from an existing value, changing the width if new_width is non-zero.
NullSemantics::MemoryStatePtr MemoryStatePtr
Pointer to memory states used by this domain.
BaseSemantics::StatePtr StatePtr
Pointer to states used by this domain.
virtual bool may_equal(const BaseSemantics::SValuePtr &other, const SmtSolverPtr &solver=SmtSolverPtr()) const ROSE_OVERRIDE
Virtual API.
Reference-counting intrusive smart pointer.
Definition: SharedPointer.h:68
static SValuePtr instance()
Instantiate a prototypical SValue.
virtual BaseSemantics::SValuePtr peekMemory(RegisterDescriptor segreg, const BaseSemantics::SValuePtr &addr, const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE
Read memory without side effects.
virtual BaseSemantics::SValuePtr unsignedModulo(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE
Calculates modulo with unsigned values.
virtual BaseSemantics::SValuePtr signedDivide(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE
Divides two signed values.
static SValuePtr promote(const BaseSemantics::SValuePtr &v)
Promote a base instance to an instance of this class.
std::vector< SideEffect > SideEffects
Side effects in the order they occur.
virtual void set_width(size_t nbits) ROSE_OVERRIDE
Virtual API.
Describes (part of) a physical CPU register.
virtual bool isBottom() const ROSE_OVERRIDE
Determines whether a value is a data-flow bottom.
This class represents the base class for all IR nodes within Sage III.
Definition: Cxx_Grammar.h:9451
virtual BaseSemantics::SValuePtr addWithCarries(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_, const BaseSemantics::SValuePtr &c_, BaseSemantics::SValuePtr &carry_out) ROSE_OVERRIDE
Used for printing RISC operators with formatting.
static RiscOperatorsPtr promote(const BaseSemantics::RiscOperatorsPtr &x)
Run-time promotion of a base RiscOperators instance to an instance of this semantic domain's operator...
virtual BaseSemantics::SValuePtr readRegister(RegisterDescriptor reg, const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE
Reads a value from a register.
virtual const std::string & ctext() const
C source text associated with this semantic value.
static RiscOperatorsPtr instance(const BaseSemantics::SValuePtr &protoval, const SmtSolverPtr &solver=SmtSolverPtr())
Instantiates a new RiscOperators object with specified prototypical values.
static SValuePtr instance_integer(size_t nbits, uint64_t value)
Instantiate an integer constant.
BaseSemantics::SValuePtr saveSideEffect(const BaseSemantics::SValuePtr &expression, const BaseSemantics::SValuePtr &location=BaseSemantics::SValuePtr())
Save a side effect.
SharedPointer< U > dynamicCast() const
Dynamic cast.
Base class for most instruction semantics RISC operators.
virtual BaseSemantics::SValuePtr undefined_(size_t nbits) const ROSE_OVERRIDE
Create a new undefined semantic value.
BaseSemantics::State State
State used by this domain.
virtual void print(std::ostream &, BaseSemantics::Formatter &) const ROSE_OVERRIDE
Print a value to a stream using default format.
virtual BaseSemantics::SValuePtr unspecified_(size_t nbits) const ROSE_OVERRIDE
Create a new unspecified semantic value.
boost::shared_ptr< class RiscOperators > RiscOperatorsPtr
Shared-ownership pointer for basic semantic operations.
virtual BaseSemantics::SValuePtr peekRegister(RegisterDescriptor reg, const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE
Obtain a register value without side effects.
virtual BaseSemantics::SValuePtr boolean_(bool value) const ROSE_OVERRIDE
Create a new, Boolean value.
virtual Sawyer::Optional< BaseSemantics::SValuePtr > createOptionalMerge(const BaseSemantics::SValuePtr &, const BaseSemantics::MergerPtr &, const SmtSolverPtr &) const ROSE_OVERRIDE
Possibly create a new value by merging two existing values.
virtual BaseSemantics::SValuePtr unsignedMultiply(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE
Multiply two unsigned values.
virtual void writeMemory(RegisterDescriptor segreg, const BaseSemantics::SValuePtr &addr, const BaseSemantics::SValuePtr &data, const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE
Writes a value to memory.
virtual void writeRegister(RegisterDescriptor reg, const BaseSemantics::SValuePtr &a) ROSE_OVERRIDE
Writes a value to a register.
virtual BaseSemantics::SValuePtr negate(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE
Two's complement.
bool isSubstitution() const
Predicate to determine whether side effect is rather a substitution.
virtual BaseSemantics::SValuePtr unsignedDivide(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE
Divides two unsigned values.
BaseSemantics::SValuePtr substitute(const BaseSemantics::SValuePtr &expression)
Save input value.
virtual BaseSemantics::SValuePtr signedModulo(const BaseSemantics::SValuePtr &a_, const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE
Calculates modulo with signed values.
Defines registers available for a particular architecture.
Definition: Registers.h:38
virtual SmtSolverPtr solver() const
Property: Satisfiability module theory (SMT) solver.
virtual const std::string & name() const
Property: Name used for debugging.
virtual BaseSemantics::SValuePtr bottom_(size_t nbits) const ROSE_OVERRIDE
Data-flow bottom value.
bool isValid() const
Predicate to determine whether side effect is valid.
const SideEffects & sideEffects() const
Accumulated side effects and substitutions.
virtual BaseSemantics::RiscOperatorsPtr create(const BaseSemantics::SValuePtr &protoval, const SmtSolverPtr &solver=SmtSolverPtr()) const ROSE_OVERRIDE
Virtual allocating constructor.
BaseSemantics::RegisterStateGeneric RegisterState
Register state used by this domain.
std::shared_ptr< class SmtSolver > SmtSolverPtr
Reference-counting pointer for SMT solvers.
virtual bool must_equal(const BaseSemantics::SValuePtr &other, const SmtSolverPtr &solver=SmtSolverPtr()) const ROSE_OVERRIDE
Virtual API.
virtual uint64_t get_number() const ROSE_OVERRIDE
Virtual API.