ROSE  0.11.50.0
SourceAstSemantics.h
1 // Turn instruction semantics into a C source AST
2 #ifndef ROSE_BinaryAnalysis_InstructionSemantics2_SourceAstSemantics_H
3 #define ROSE_BinaryAnalysis_InstructionSemantics2_SourceAstSemantics_H
4 #include <featureTests.h>
5 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
6 
7 #include <Rose/BinaryAnalysis/Disassembler.h>
8 #include <Rose/BinaryAnalysis/InstructionSemantics2/BaseSemantics/RegisterStateGeneric.h>
9 #include <Rose/BinaryAnalysis/InstructionSemantics2/NullSemantics.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 public:
72 
74  using Ptr = SValuePtr;
75 
76 protected:
77  static size_t nVariables_;
78  std::string ctext_;
79 
80 protected:
81  // An undefined or unspecified value is a C variable that's not initialized.
82  explicit SValue(size_t nbits);
83 
84  // An integer value, various types depending on width
85  SValue(size_t nbits, uint64_t number);
86 
87  // Copy constructor deep-copies the AST.
88  SValue(const SValue &other);
89 
90 public:
94  static SValuePtr instance() {
95  return SValuePtr(new SValue(1));
96  }
97 
101  static SValuePtr instance_undefined(size_t nbits) {
102  return SValuePtr(new SValue(nbits));
103  }
104 
106  static SValuePtr instance_integer(size_t nbits, uint64_t value) {
107  return SValuePtr(new SValue(nbits, value));
108  }
109 
110 public:
111  virtual BaseSemantics::SValuePtr bottom_(size_t nbits) const ROSE_OVERRIDE {
112  return instance_undefined(nbits);
113  }
114  virtual BaseSemantics::SValuePtr undefined_(size_t nbits) const ROSE_OVERRIDE {
115  return instance_undefined(nbits);
116  }
117  virtual BaseSemantics::SValuePtr unspecified_(size_t nbits) const ROSE_OVERRIDE {
118  return instance_undefined(nbits);
119  }
120  virtual BaseSemantics::SValuePtr number_(size_t nbits, uint64_t value) const ROSE_OVERRIDE {
121  return instance_integer(nbits, value);
122  }
123  virtual BaseSemantics::SValuePtr boolean_(bool value) const ROSE_OVERRIDE {
124  return instance_integer(1, value ? 1 : 0);
125  }
126  virtual BaseSemantics::SValuePtr copy(size_t new_width=0) const ROSE_OVERRIDE {
127  SValuePtr retval(new SValue(*this));
128  if (new_width!=0 && new_width!=retval->nBits())
129  retval->set_width(new_width);
130  return retval;
131  }
134  const SmtSolverPtr&) const ROSE_OVERRIDE {
135  throw BaseSemantics::NotImplemented("SourceAstSemantics is not suitable for dataflow analysis", NULL);
136  }
137 
138 public:
140  static SValuePtr promote(const BaseSemantics::SValuePtr &v) { // hot
141  SValuePtr retval = v.dynamicCast<SValue>();
142  ASSERT_not_null(retval);
143  return retval;
144  }
145 
146 public:
147  virtual bool isBottom() const ROSE_OVERRIDE {
148  return false;
149  }
150 
151  virtual void hash(Combinatorics::Hasher&) const override;
152  virtual void print(std::ostream&, BaseSemantics::Formatter&) const ROSE_OVERRIDE;
153 
154 public:
155  // These are not needed since this domain never tries to compare semantic values.
156  virtual bool may_equal(const BaseSemantics::SValuePtr &other,
157  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
158  ASSERT_not_reachable("no implementation necessary");
159  }
160 
161  virtual bool must_equal(const BaseSemantics::SValuePtr &other,
162  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
163  ASSERT_not_reachable("no implementation necessary");
164  }
165 
166  virtual void set_width(size_t nbits) ROSE_OVERRIDE {
167  ASSERT_not_reachable("no implementation necessary");
168  }
169 
170  virtual bool is_number() const ROSE_OVERRIDE {
171  return false;
172  }
173 
174  virtual uint64_t get_number() const ROSE_OVERRIDE {
175  ASSERT_not_reachable("no implementation necessary");
176  }
177 
178 public:
182  static std::string unsignedTypeNameForSize(size_t nbits);
183  static std::string signedTypeNameForSize(size_t nbits);
186 public:
190  virtual const std::string& ctext() const {
191  return ctext_;
192  }
193  virtual void ctext(const std::string &s) {
194  ctext_ = s;
195  }
197 };
198 
200 // State
202 
203 // No state is necessary for this domain because all instruction side effects are immediately attached to the AST that's
204 // being generated rather than being stored in some state.
205 
212 typedef BaseSemantics::State State;
216 // RiscOperators
219 
221 typedef boost::shared_ptr<class RiscOperators> RiscOperatorsPtr;
222 
231 public:
234 
237 
238 public:
240  struct SideEffect {
245  // Default constructor. Not normally used, but needed by <code>std::vector</code>. (DON'T DOCUMENT)
246  SideEffect() {}
247 
248  // Used internally, not neede by users since data members are public.
249  SideEffect(const BaseSemantics::SValuePtr &location, const BaseSemantics::SValuePtr &temporary,
250  const BaseSemantics::SValuePtr &expression)
251  : location(location), temporary(temporary), expression(expression) {}
252 
254  bool isValid() const { return expression != NULL; }
255 
259  bool isSubstitution() const {
260  return isValid() && location==NULL && temporary!=NULL;
261  }
262  };
263 
265  typedef std::vector<SideEffect> SideEffects;
266 
267 private:
268  SideEffects sideEffects_; // Side effects, including substitutions
269  bool executionHalted_; // Stop adding inputs and outputs?
270 
271 protected:
273  : BaseSemantics::RiscOperators(protoval, solver), executionHalted_(false) {
274  name("SourceAstSemantics");
275  (void) SValue::promote(protoval); // make sure its dynamic type is a SourceAstSemantics::SValue
276  }
277 
279  : BaseSemantics::RiscOperators(state, solver), executionHalted_(false) {
280  name("SourceAstSemantics");
281  (void) SValue::promote(state->protoval()); // values must have SourceAstSemantics::SValue dynamic type
282  }
283 
284 public:
287  static RiscOperatorsPtr instance(const RegisterDictionary *regdict, const SmtSolverPtr &solver = SmtSolverPtr()) {
289  RegisterStatePtr registers = RegisterState::instance(protoval, regdict);
290  BaseSemantics::MemoryStatePtr memory = MemoryState::instance(protoval, protoval);
291  BaseSemantics::StatePtr state = State::instance(registers, memory);
292  RiscOperatorsPtr ops = RiscOperatorsPtr(new RiscOperators(state, solver));
293  ops->resetState();
294  return ops;
295  }
296 
300  static RiscOperatorsPtr instance(const BaseSemantics::SValuePtr &protoval, const SmtSolverPtr &solver = SmtSolverPtr()) {
301  return RiscOperatorsPtr(new RiscOperators(protoval, solver));
302  }
303 
306  static RiscOperatorsPtr instance(const BaseSemantics::StatePtr &state, const SmtSolverPtr &solver = SmtSolverPtr()) {
307  return RiscOperatorsPtr(new RiscOperators(state, solver));
308  }
309 
311  // Virtual constructors
312 public:
314  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
315  return instance(protoval, solver);
316  }
317 
319  const SmtSolverPtr &solver = SmtSolverPtr()) const ROSE_OVERRIDE {
320  return instance(state, solver);
321  }
322 
324  // Dynamic pointer casts
325 public:
328  static RiscOperatorsPtr promote(const BaseSemantics::RiscOperatorsPtr &x) {
329  RiscOperatorsPtr retval = boost::dynamic_pointer_cast<RiscOperators>(x);
330  ASSERT_not_null(retval);
331  return retval;
332  }
333 
335  // Supporting functions
336 public:
338  BaseSemantics::SValuePtr makeSValue(size_t nbits, SgNode*, const std::string &ctext = "");
339 
347 
354 
358  const SideEffects& sideEffects() const {
359  return sideEffects_;
360  }
361 
363  void resetState();
364 
370 
372  void reset() {
373  sideEffects_.clear();
374  executionHalted_ = false;
375  resetState();
376  }
377 
384  void haltExecution() { executionHalted_ = true; }
385 
391  BaseSemantics::SValuePtr makeMask(size_t nBits, size_t nSet, size_t sa=0);
392 
394  // Override all operator methods from base class. These are the RISC operators that are invoked by a Dispatcher.
395 public:
396  virtual BaseSemantics::SValuePtr unspecified_(size_t nbits) ROSE_OVERRIDE;
397  virtual void hlt() ROSE_OVERRIDE;
398  virtual void cpuid() ROSE_OVERRIDE;
399  virtual BaseSemantics::SValuePtr rdtsc() ROSE_OVERRIDE;
400  virtual BaseSemantics::SValuePtr and_(const BaseSemantics::SValuePtr &a_,
401  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
402  virtual BaseSemantics::SValuePtr or_(const BaseSemantics::SValuePtr &a_,
403  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
404  virtual BaseSemantics::SValuePtr xor_(const BaseSemantics::SValuePtr &a_,
405  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
406  virtual BaseSemantics::SValuePtr invert(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
407  virtual BaseSemantics::SValuePtr extract(const BaseSemantics::SValuePtr &a_,
408  size_t begin_bit, size_t end_bit) ROSE_OVERRIDE;
409  virtual BaseSemantics::SValuePtr concat(const BaseSemantics::SValuePtr &a_,
410  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
411  virtual BaseSemantics::SValuePtr leastSignificantSetBit(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
412  virtual BaseSemantics::SValuePtr mostSignificantSetBit(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
413  virtual BaseSemantics::SValuePtr rotateLeft(const BaseSemantics::SValuePtr &a_,
414  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
415  virtual BaseSemantics::SValuePtr rotateRight(const BaseSemantics::SValuePtr &a_,
416  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
417  virtual BaseSemantics::SValuePtr shiftLeft(const BaseSemantics::SValuePtr &a_,
418  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
419  virtual BaseSemantics::SValuePtr shiftRight(const BaseSemantics::SValuePtr &a_,
420  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
421  virtual BaseSemantics::SValuePtr shiftRightArithmetic(const BaseSemantics::SValuePtr &a_,
422  const BaseSemantics::SValuePtr &sa_) ROSE_OVERRIDE;
423  virtual BaseSemantics::SValuePtr equalToZero(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
424  virtual BaseSemantics::SValuePtr ite(const BaseSemantics::SValuePtr &sel_,
425  const BaseSemantics::SValuePtr &a_,
426  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
427  virtual BaseSemantics::SValuePtr unsignedExtend(const BaseSemantics::SValuePtr &a_, size_t new_width) ROSE_OVERRIDE;
428  virtual BaseSemantics::SValuePtr signExtend(const BaseSemantics::SValuePtr &a_, size_t new_width) ROSE_OVERRIDE;
429  virtual BaseSemantics::SValuePtr add(const BaseSemantics::SValuePtr &a_,
430  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
431  virtual BaseSemantics::SValuePtr addWithCarries(const BaseSemantics::SValuePtr &a_,
432  const BaseSemantics::SValuePtr &b_,
433  const BaseSemantics::SValuePtr &c_,
434  BaseSemantics::SValuePtr &carry_out/*out*/) ROSE_OVERRIDE;
435  virtual BaseSemantics::SValuePtr negate(const BaseSemantics::SValuePtr &a_) ROSE_OVERRIDE;
436  virtual BaseSemantics::SValuePtr signedDivide(const BaseSemantics::SValuePtr &a_,
437  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
438  virtual BaseSemantics::SValuePtr signedModulo(const BaseSemantics::SValuePtr &a_,
439  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
440  virtual BaseSemantics::SValuePtr signedMultiply(const BaseSemantics::SValuePtr &a_,
441  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
442  virtual BaseSemantics::SValuePtr unsignedDivide(const BaseSemantics::SValuePtr &a_,
443  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
444  virtual BaseSemantics::SValuePtr unsignedModulo(const BaseSemantics::SValuePtr &a_,
445  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
446  virtual BaseSemantics::SValuePtr unsignedMultiply(const BaseSemantics::SValuePtr &a_,
447  const BaseSemantics::SValuePtr &b_) ROSE_OVERRIDE;
448  virtual void interrupt(int majr, int minr) ROSE_OVERRIDE;
449  virtual BaseSemantics::SValuePtr readRegister(RegisterDescriptor reg,
450  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
451  virtual BaseSemantics::SValuePtr peekRegister(RegisterDescriptor reg,
452  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
453  virtual void writeRegister(RegisterDescriptor reg, const BaseSemantics::SValuePtr &a) ROSE_OVERRIDE;
454  virtual BaseSemantics::SValuePtr readMemory(RegisterDescriptor segreg,
455  const BaseSemantics::SValuePtr &addr,
456  const BaseSemantics::SValuePtr &dflt,
457  const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE;
458  virtual BaseSemantics::SValuePtr peekMemory(RegisterDescriptor segreg,
459  const BaseSemantics::SValuePtr &addr,
460  const BaseSemantics::SValuePtr &dflt) ROSE_OVERRIDE;
461  virtual void writeMemory(RegisterDescriptor segreg,
462  const BaseSemantics::SValuePtr &addr,
463  const BaseSemantics::SValuePtr &data,
464  const BaseSemantics::SValuePtr &cond) ROSE_OVERRIDE;
465 };
466 
467 
468 } // namespace
469 } // namespace
470 } // namespace
471 } // namespace
472 
473 #endif
474 #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:9555
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.
Definition: RiscOperators.h:48
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.
Semantic values for generating C source code ASTs.
Defines registers available for a particular architecture.
Definition: Registers.h:37
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.
Definition: SmtSolver.h:25
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.