ROSE  0.10.7.0
SourceAstSemantics2.h
1 // Turn instruction semantics into a C source AST
2 #ifndef Rose_SourceAstSemantics2_H
3 #define Rose_SourceAstSemantics2_H
4 #include <rosePublicConfig.h>
5 #ifdef ROSE_BUILD_BINARY_ANALYSIS_SUPPORT
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->get_width())
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  // These are not needed since this domain never tries to compare semantic values.
141  virtual bool may_equal(const BaseSemantics::SValuePtr &other,
142  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
143  ASSERT_not_reachable("no implementation necessary");
144  }
145 
146  virtual bool must_equal(const BaseSemantics::SValuePtr &other,
147  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
148  ASSERT_not_reachable("no implementation necessary");
149  }
150 
151  virtual void set_width(size_t nbits) ROSE_OVERRIDE {
152  ASSERT_not_reachable("no implementation necessary");
153  }
154 
155  virtual bool isBottom() const ROSE_OVERRIDE {
156  return false;
157  }
158 
159  virtual bool is_number() const ROSE_OVERRIDE {
160  return false;
161  }
162 
163  virtual uint64_t get_number() const ROSE_OVERRIDE {
164  ASSERT_not_reachable("no implementation necessary");
165  }
166 
167  virtual void print(std::ostream&, BaseSemantics::Formatter&) const ROSE_OVERRIDE;
168 
169 public:
173  static std::string unsignedTypeNameForSize(size_t nbits);
174  static std::string signedTypeNameForSize(size_t nbits);
177 public:
181  virtual const std::string& ctext() const {
182  return ctext_;
183  }
184  virtual void ctext(const std::string &s) {
185  ctext_ = s;
186  }
188 };
189 
191 // State
193 
194 // No state is necessary for this domain because all instruction side effects are immediately attached to the AST that's
195 // being generated rather than being stored in some state.
196 
203 typedef BaseSemantics::State State;
207 // RiscOperators
210 
212 typedef boost::shared_ptr<class RiscOperators> RiscOperatorsPtr;
213 
223 
224 public:
226  struct SideEffect {
231  // Default constructor. Not normally used, but needed by <code>std::vector</code>. (DON'T DOCUMENT)
232  SideEffect() {}
233 
234  // Used internally, not neede by users since data members are public.
235  SideEffect(const BaseSemantics::SValuePtr &location, const BaseSemantics::SValuePtr &temporary,
236  const BaseSemantics::SValuePtr &expression)
237  : location(location), temporary(temporary), expression(expression) {}
238 
240  bool isValid() const { return expression != NULL; }
241 
245  bool isSubstitution() const {
246  return isValid() && location==NULL && temporary!=NULL;
247  }
248  };
249 
251  typedef std::vector<SideEffect> SideEffects;
252 
253 private:
254  SideEffects sideEffects_; // Side effects, including substitutions
255  bool executionHalted_; // Stop adding inputs and outputs?
256 
257 protected:
259  : BaseSemantics::RiscOperators(protoval, solver), executionHalted_(false) {
260  name("SourceAstSemantics");
261  (void) SValue::promote(protoval); // make sure its dynamic type is a SourceAstSemantics::SValue
262  }
263 
265  : BaseSemantics::RiscOperators(state, solver), executionHalted_(false) {
266  name("SourceAstSemantics");
267  (void) SValue::promote(state->protoval()); // values must have SourceAstSemantics::SValue dynamic type
268  }
269 
270 public:
273  static RiscOperatorsPtr instance(const RegisterDictionary *regdict, const SmtSolverPtr &solver = SmtSolverPtr()) {
275  RegisterStatePtr registers = RegisterState::instance(protoval, regdict);
276  BaseSemantics::MemoryStatePtr memory = MemoryState::instance(protoval, protoval);
277  BaseSemantics::StatePtr state = State::instance(registers, memory);
278  RiscOperatorsPtr ops = RiscOperatorsPtr(new RiscOperators(state, solver));
279  ops->resetState();
280  return ops;
281  }
282 
286  static RiscOperatorsPtr instance(const BaseSemantics::SValuePtr &protoval, const SmtSolverPtr &solver = SmtSolverPtr()) {
287  return RiscOperatorsPtr(new RiscOperators(protoval, solver));
288  }
289 
292  static RiscOperatorsPtr instance(const BaseSemantics::StatePtr &state, const SmtSolverPtr &solver = SmtSolverPtr()) {
293  return RiscOperatorsPtr(new RiscOperators(state, solver));
294  }
295 
297  // Virtual constructors
298 public:
300  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
301  return instance(protoval, solver);
302  }
303 
305  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
306  return instance(state, solver);
307  }
308 
310  // Dynamic pointer casts
311 public:
314  static RiscOperatorsPtr promote(const BaseSemantics::RiscOperatorsPtr &x) {
315  RiscOperatorsPtr retval = boost::dynamic_pointer_cast<RiscOperators>(x);
316  ASSERT_not_null(retval);
317  return retval;
318  }
319 
321  // Supporting functions
322 public:
324  BaseSemantics::SValuePtr makeSValue(size_t nbits, SgNode*, const std::string &ctext = "");
325 
333 
340 
344  const SideEffects& sideEffects() const {
345  return sideEffects_;
346  }
347 
349  void resetState();
350 
356 
358  void reset() {
359  sideEffects_.clear();
360  executionHalted_ = false;
361  resetState();
362  }
363 
370  void haltExecution() { executionHalted_ = true; }
371 
377  BaseSemantics::SValuePtr makeMask(size_t nBits, size_t nSet, size_t sa=0);
378 
380  // Override all operator methods from base class. These are the RISC operators that are invoked by a Dispatcher.
381 public:
382  virtual BaseSemantics::SValuePtr unspecified_(size_t nbits) ROSE_OVERRIDE;
383  virtual void hlt() ROSE_OVERRIDE;
384  virtual void cpuid() ROSE_OVERRIDE;
385  virtual BaseSemantics::SValuePtr rdtsc() ROSE_OVERRIDE;
386  virtual BaseSemantics::SValuePtr and_(const BaseSemantics::SValuePtr &a_,
387  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
388  virtual BaseSemantics::SValuePtr or_(const BaseSemantics::SValuePtr &a_,
389  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
390  virtual BaseSemantics::SValuePtr xor_(const BaseSemantics::SValuePtr &a_,
391  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
392  virtual BaseSemantics::SValuePtr invert(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
393  virtual BaseSemantics::SValuePtr extract(const BaseSemantics::SValuePtr &a_,
394  size_t begin_bit, size_t end_bit) ROSE_OVERRIDE;
395  virtual BaseSemantics::SValuePtr concat(const BaseSemantics::SValuePtr &a_,
396  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
397  virtual BaseSemantics::SValuePtr leastSignificantSetBit(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
398  virtual BaseSemantics::SValuePtr mostSignificantSetBit(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
399  virtual BaseSemantics::SValuePtr rotateLeft(const BaseSemantics::SValuePtr &a_,
400  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
401  virtual BaseSemantics::SValuePtr rotateRight(const BaseSemantics::SValuePtr &a_,
402  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
403  virtual BaseSemantics::SValuePtr shiftLeft(const BaseSemantics::SValuePtr &a_,
404  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
405  virtual BaseSemantics::SValuePtr shiftRight(const BaseSemantics::SValuePtr &a_,
406  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
407  virtual BaseSemantics::SValuePtr shiftRightArithmetic(const BaseSemantics::SValuePtr &a_,
408  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
409  virtual BaseSemantics::SValuePtr equalToZero(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
410  virtual BaseSemantics::SValuePtr ite(const BaseSemantics::SValuePtr &sel_,
411  const BaseSemantics::SValuePtr &a_,
412  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
413  virtual BaseSemantics::SValuePtr unsignedExtend(const BaseSemantics::SValuePtr &a_, size_t new_width) ROSE_OVERRIDE;
414  virtual BaseSemantics::SValuePtr signExtend(const BaseSemantics::SValuePtr &a_, size_t new_width) ROSE_OVERRIDE;
415  virtual BaseSemantics::SValuePtr add(const BaseSemantics::SValuePtr &a_,
416  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
417  virtual BaseSemantics::SValuePtr addWithCarries(const BaseSemantics::SValuePtr &a_,
418  const BaseSemantics::SValuePtr &b_,
419  const BaseSemantics::SValuePtr &c_,
420  BaseSemantics::SValuePtr &carry_out/*out*/) ROSE_OVERRIDE;
421  virtual BaseSemantics::SValuePtr negate(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
422  virtual BaseSemantics::SValuePtr signedDivide(const BaseSemantics::SValuePtr &a_,
423  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
424  virtual BaseSemantics::SValuePtr signedModulo(const BaseSemantics::SValuePtr &a_,
425  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
426  virtual BaseSemantics::SValuePtr signedMultiply(const BaseSemantics::SValuePtr &a_,
427  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
428  virtual BaseSemantics::SValuePtr unsignedDivide(const BaseSemantics::SValuePtr &a_,
429  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
430  virtual BaseSemantics::SValuePtr unsignedModulo(const BaseSemantics::SValuePtr &a_,
431  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
432  virtual BaseSemantics::SValuePtr unsignedMultiply(const BaseSemantics::SValuePtr &a_,
433  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
434  virtual void interrupt(int majr, int minr) ROSE_OVERRIDE;
435  virtual BaseSemantics::SValuePtr readRegister(RegisterDescriptor reg,
436  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
437  virtual BaseSemantics::SValuePtr peekRegister(RegisterDescriptor reg,
438  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
439  virtual void writeRegister(RegisterDescriptor reg, const BaseSemantics::SValuePtr &a) ROSE_OVERRIDE;
440  virtual BaseSemantics::SValuePtr readMemory(RegisterDescriptor segreg,
441  const BaseSemantics::SValuePtr &addr,
442  const BaseSemantics::SValuePtr &dflt,
443  const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE;
444  virtual BaseSemantics::SValuePtr peekMemory(RegisterDescriptor segreg,
445  const BaseSemantics::SValuePtr &addr,
446  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
447  virtual void writeMemory(RegisterDescriptor segreg,
448  const BaseSemantics::SValuePtr &addr,
449  const BaseSemantics::SValuePtr &data,
450  const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE;
451 };
452 
453 
454 } // namespace
455 } // namespace
456 } // namespace
457 } // namespace
458 
459 #endif
460 #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.
boost::shared_ptr< class RegisterStateGeneric > RegisterStateGenericPtr
Shared-ownership pointer to generic register states.
virtual bool is_number() const ROSE_OVERRIDE
Determines if the value is a concrete number.
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.
STL namespace.
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
Returns true if two values could be equal.
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.
Sawyer::SharedPointer< class SmtSolver > SmtSolverPtr
Reference-counting pointer for SMT solvers.
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
Accessor for value width.
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:9247
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.
virtual bool must_equal(const BaseSemantics::SValuePtr &other, const SmtSolverPtr &solver=SmtSolverPtr()) const ROSE_OVERRIDE
Returns true if two values must be equal.
virtual uint64_t get_number() const ROSE_OVERRIDE
Return the concrete number for this value.