Skip to content

Commit ca038c6

Browse files
committed
External SAT back-end: handle whitespace at end of line gracefully
CryptoMiniSat produces assignment output that includes whitespace at the end of the line. Strip such (empty) elements before evaluating entries as literals. Fixes: diffblue#7164
1 parent 53e448b commit ca038c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/solvers/sat/external_sat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ external_satt::resultt external_satt::parse_result(std::string solver_output)
109109

110110
if(line[0] == 'v')
111111
{
112-
auto assignments = split_string(line, ' ');
112+
auto assignments = split_string(line, ' ', false, true);
113113

114114
// remove the first element which should be 'v' identifying
115115
// the line as the satisfying assignments

0 commit comments

Comments
 (0)