ezsat: Fix handling of error codes

This commit is contained in:
Gabriel Gouvine 2024-04-09 15:56:36 +01:00
parent e16cf967fd
commit ccf04533e6
1 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,8 @@ bool ezCmdlineSAT::solver(const std::vector<int> &modelExpressions, std::vector<
}
}
};
if (Yosys::run_command(sat_command, line_callback) != 0) {
int return_code = Yosys::run_command(sat_command, line_callback);
if (return_code != 0 && return_code != 10 && return_code != 20) {
Yosys::log_cmd_error("Shell command failed!\n");
}