31 if (std::string(obj->
name) == mo->
name)
32 if (
used.insert(obj).second)
41 if (i<input->numObjects) {
74 std::set< std::pair<const Array*, unsigned> > directReads;
75 std::vector< ref<ReadExpr> > reads;
77 for (std::vector<
ref<ReadExpr> >::iterator it = reads.begin(),
78 ie = reads.end(); it != ie; ++it) {
82 (
unsigned) CE->getZExtValue(32)));
86 for (std::set< std::pair<const Array*, unsigned> >::iterator
87 it = directReads.begin(), ie = directReads.end(); it != ie; ++it) {
88 const Array *array = it->first;
89 unsigned i = it->second;
102 assert(success &&
"FIXME: Unhandled solver failure");
108 assert(success &&
"FIXME: Unhandled solver failure");
110 it2->second[i] = value->getZExtValue(8);
123 assert(success &&
"FIXME: Unhandled solver failure");
132 const Array *array = it->first;
133 for (
unsigned i=0; i<array->
size; ++i) {
142 assert(success &&
"FIXME: Unhandled solver failure");
148 assert(success &&
"FIXME: Unhandled solver failure");
150 it->second[i] = value->getZExtValue(8);
165 assert(success &&
"FIXME: Unhandled solver failure");
167 assert(res &&
"seed patching failed");
ref< Expr > evaluate(const Array *mo, unsigned index) const
static ref< ConstantExpr > alloc(const llvm::APInt &v)
Manages constraints, e.g. optimisation.
void addConstraint(const ref< Expr > &constraint)
ExecutionState representing a path under exploration.
SolverQueryMetaData queryMetaData
Statistics and information.
ConstraintSet constraints
Constraints collected so far.
unsigned size
size in bytes
Class representing a one byte read from an array.
static ref< Expr > create(const UpdateList &updates, ref< Expr > i)
std::set< struct KTestObject * > used
void patchSeed(const ExecutionState &state, ref< Expr > condition, TimingSolver *solver)
bool getValue(const ConstraintSet &, ref< Expr > expr, ref< ConstantExpr > &result, SolverQueryMetaData &metaData)
bool mustBeFalse(const ConstraintSet &, ref< Expr >, bool &result, SolverQueryMetaData &metaData)
bool mayBeTrue(const ConstraintSet &, ref< Expr >, bool &result, SolverQueryMetaData &metaData)
Class representing a complete list of updates into an array.
void findReads(ref< Expr > e, bool visitUpdates, std::vector< ref< ReadExpr > > &result)
void void void void klee_warning_once(const void *id, const char *msg,...) __attribute__((format(printf