File tree 1 file changed +11
-3
lines changed
1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,11 @@ void smt2_solvert::command(const std::string &c)
126
126
if (c==" assert" )
127
127
{
128
128
exprt e=expression ();
129
- if (e.is_not_nil ())
129
+ if (!ok)
130
+ {
131
+ ok = true ;
132
+ }
133
+ else if (e.is_not_nil ())
130
134
{
131
135
expand_function_applications (e);
132
136
define_constants (e);
@@ -157,7 +161,9 @@ void smt2_solvert::command(const std::string &c)
157
161
{
158
162
// this is a command that Z3 appears to implement
159
163
exprt e=expression ();
160
- if (e.is_not_nil ())
164
+ if (!ok)
165
+ ok = true ;
166
+ else if (e.is_not_nil ())
161
167
{
162
168
std::cout << e.pretty () << ' \n ' ; // need to do an 'smt2_format'
163
169
}
@@ -166,7 +172,9 @@ void smt2_solvert::command(const std::string &c)
166
172
{
167
173
// this is a command that Z3 appears to implement
168
174
exprt e=expression ();
169
- if (e.is_not_nil ())
175
+ if (!ok)
176
+ ok = true ;
177
+ else if (e.is_not_nil ())
170
178
{
171
179
const symbol_tablet symbol_table;
172
180
const namespacet ns (symbol_table);
You can’t perform that action at this time.
0 commit comments