Skip to content

Commit 57ee67f

Browse files
committed
f
1 parent 75f357a commit 57ee67f

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/Core/Executor.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4679,16 +4679,19 @@ void Executor::initialSeed(ExecutionState &initialState,
46794679

46804680
bool Executor::storeState(const ExecutionState &state, bool isCompleted,
46814681
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);
46874686
if (!success) {
46884687
klee_warning("unable to get symbolic solution, losing test case");
46894688
return false;
46904689
}
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+
}
46924695
ExecutingSeed seed(assignment, state.steppedInstructions, isCompleted,
46934696
state.coveredNew, state.coveredNewError);
46944697
res = seed;

0 commit comments

Comments
 (0)