@@ -213,7 +213,7 @@ namespace smt {
213
213
return false ; // get_some_value failed... giving up
214
214
}
215
215
TRACE (" model_checker" , tout << " Got some value " << sk_value << " \n " ;);
216
-
216
+
217
217
if (use_inv) {
218
218
unsigned sk_term_gen;
219
219
expr * sk_term = m_model_finder.get_inv (q, i, sk_value, sk_term_gen);
@@ -337,18 +337,18 @@ namespace smt {
337
337
flet<bool > l (m_aux_context->get_fparams ().m_array_fake_support , true );
338
338
lbool r = m_aux_context->check ();
339
339
TRACE (" model_checker" , tout << " [complete] model-checker result: " << to_sat_str (r) << " \n " ;);
340
- if (r != l_true) {
340
+ if (r != l_true) {
341
341
return r == l_false; // quantifier is satisfied by m_curr_model
342
342
}
343
343
344
344
model_ref complete_cex;
345
345
m_aux_context->get_model (complete_cex);
346
-
346
+
347
347
// try to find new instances using instantiation sets.
348
348
m_model_finder.restrict_sks_to_inst_set (m_aux_context.get (), q, sks);
349
-
349
+
350
350
unsigned num_new_instances = 0 ;
351
-
351
+
352
352
while (true ) {
353
353
flet<bool > l (m_aux_context->get_fparams ().m_array_fake_support , true );
354
354
lbool r = m_aux_context->check ();
@@ -400,7 +400,7 @@ namespace smt {
400
400
add_instance (q, args, 0 , nullptr );
401
401
return false ;
402
402
}
403
- TRACE (" model_checker" , tout << tmp << " \n evaluates to:\n " << result << " \n " ;);
403
+ TRACE (" model_checker" , tout << tmp << " \n evaluates to:\n " << result << " \n " ;);
404
404
}
405
405
}
406
406
return true ;
@@ -501,29 +501,29 @@ namespace smt {
501
501
for (quantifier * q : *m_qm) {
502
502
if (m.is_rec_fun_def (q)) {
503
503
rec_funs.insert (m.get_rec_fun_decl (q));
504
- }
504
+ }
505
505
}
506
506
expr_fast_mark1 visited;
507
507
has_rec_fun_proc proc (rec_funs);
508
508
for (quantifier * q : *m_qm) {
509
509
if (!m.is_rec_fun_def (q)) {
510
510
quick_for_each_expr (proc, visited, q);
511
511
if (proc.has_rec_fun ()) return true ;
512
- }
512
+ }
513
513
}
514
514
return false ;
515
515
}
516
516
517
- //
517
+ //
518
518
// (repeated from defined_names.cpp)
519
519
// NB. The pattern for lambdas is incomplete.
520
520
// consider store(a, i, v) == \lambda j . if i = j then v else a[j]
521
521
// the instantiation rules for store(a, i, v) are:
522
522
// sotre(a, i, v)[j] = if i = j then v else a[j] with patterns {a[j], store(a, i, v)} { store(a, i, v)[j] }
523
523
// The first pattern is not included.
524
- // TBD use a model-based scheme for exracting instantiations instead of
524
+ // TBD use a model-based scheme for extracting instantiations instead of
525
525
// using multi-patterns.
526
- //
526
+ //
527
527
528
528
void model_checker::check_quantifiers (bool strict_rec_fun, bool & found_relevant, unsigned & num_failures) {
529
529
for (quantifier * q : *m_qm) {
@@ -607,7 +607,7 @@ namespace smt {
607
607
if (inst.m_def ) {
608
608
m_context->internalize_assertion (inst.m_def , nullptr , gen);
609
609
}
610
-
610
+
611
611
TRACE (" model_checker_bug_detail" , tout << " instantiating... q:\n " << mk_pp (q, m) << " \n " ;
612
612
tout << " inconsistent: " << m_context->inconsistent () << " \n " ;
613
613
tout << " bindings:\n " << expr_ref_vector (m, num_decls, m_pinned_exprs.c_ptr () + offset) << " \n " ;);
0 commit comments