File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/solvers/smt2_incremental Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,17 @@ void smt_piped_solver_processt::send(const smt_commandt &smt_command)
2828 const std::string command_string = smt_to_smt2_string (smt_command);
2929 log.debug () << " Sending command to SMT2 solver - " << command_string
3030 << messaget::eom;
31- process.send (command_string + " \n " );
31+ const auto response = process.send (command_string + " \n " );
32+ switch (response)
33+ {
34+ case piped_processt::send_responset::SUCCEEDED:
35+ return ;
36+ case piped_processt::send_responset::FAILED:
37+ throw analysis_exceptiont{" Sending to SMT solver sub process failed." };
38+ case piped_processt::send_responset::ERRORED:
39+ throw analysis_exceptiont{" SMT solver sub process is in error state." };
40+ }
41+ UNREACHABLE;
3242}
3343
3444// / Log messages and throw exception.
You can’t perform that action at this time.
0 commit comments