@@ -75,7 +75,7 @@ external_satt::resultt external_satt::parse_result(std::string solver_output)
75
75
std::string line;
76
76
external_satt::resultt result = resultt::P_ERROR;
77
77
std::vector<bool > assigned_variables (no_variables (), false );
78
- assignment.insert (assignment.begin (), no_variables (), tvt ( false ));
78
+ assignment.insert (assignment.begin (), no_variables (), tvt::unknown ( ));
79
79
80
80
while (getline (response_istream, line))
81
81
{
@@ -146,16 +146,19 @@ external_satt::resultt external_satt::parse_result(std::string solver_output)
146
146
147
147
if (result == resultt::P_SATISFIABLE)
148
148
{
149
- // We don't need to check zero
150
- for (size_t index = 1 ; index < no_variables (); index++)
151
- {
152
- if (!assigned_variables[index])
153
- {
154
- log.error () << " No assignment was found for literal: " << index
149
+ log.conditional_output (
150
+ log.debug (), [this , &assigned_variables](messaget::mstreamt &mstream) {
151
+ // We don't need to check zero
152
+ for (size_t index = 1 ; index < no_variables (); index++)
153
+ {
154
+ // this may happen when a variable does not appear in any clause
155
+ if (!assigned_variables[index])
156
+ {
157
+ mstream << " No assignment was found for literal: " << index
155
158
<< messaget::eom;
156
- return resultt::P_ERROR;
157
- }
158
- }
159
+ }
160
+ }
161
+ });
159
162
return resultt::P_SATISFIABLE;
160
163
}
161
164
0 commit comments