File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -4679,16 +4679,19 @@ void Executor::initialSeed(ExecutionState &initialState,
4679
4679
4680
4680
bool Executor::storeState (const ExecutionState &state, bool isCompleted,
4681
4681
ExecutingSeed &res) {
4682
- solver->setTimeout (coreSolverTimeout);
4683
- auto arrays = state.constraints .cs ().gatherArrays ();
4684
- std::vector<SparseStorageImpl<unsigned char >> values;
4685
- bool success = solver->getInitialValues (state.constraints .cs (), arrays,
4686
- values, state.queryMetaData );
4682
+ ref<SolverResponse> response;
4683
+ bool success =
4684
+ solver->getResponse (state.constraints .cs (), Expr::createFalse (), response,
4685
+ state.queryMetaData );
4687
4686
if (!success) {
4688
4687
klee_warning (" unable to get symbolic solution, losing test case" );
4689
4688
return false ;
4690
4689
}
4691
- Assignment assignment (arrays, values);
4690
+ Assignment assignment;
4691
+ if (!response->tryGetInitialValues (assignment.bindings )) {
4692
+ assert (false && " terminated state must have an assignment" );
4693
+ return false ;
4694
+ }
4692
4695
ExecutingSeed seed (assignment, state.steppedInstructions , isCompleted,
4693
4696
state.coveredNew , state.coveredNewError );
4694
4697
res = seed;
You can’t perform that action at this time.
0 commit comments