@@ -20,7 +20,6 @@ Author: Daniel Kroening, kroening@kroening.com
2020#include < util/cprover_prefix.h>
2121#include < util/expr_util.h>
2222#include < util/find_symbols.h>
23- #include < util/guard.h>
2423#include < util/ieee_float.h>
2524#include < util/invariant.h>
2625#include < util/make_unique.h>
@@ -36,6 +35,7 @@ Author: Daniel Kroening, kroening@kroening.com
3635
3736#include < goto-programs/remove_skip.h>
3837
38+ #include " guard.h"
3939#include " local_bitvector_analysis.h"
4040
4141class goto_checkt
@@ -84,6 +84,7 @@ class goto_checkt
8484 const namespacet &ns;
8585 std::unique_ptr<local_bitvector_analysist> local_bitvector_analysis;
8686 goto_programt::const_targett current_target;
87+ guard_managert guard_manager;
8788
8889 void check_rec (
8990 const exprt &expr,
@@ -1650,7 +1651,7 @@ void goto_checkt::check_rec(const exprt &expr, guardt &guard, bool address)
16501651
16511652void goto_checkt::check (const exprt &expr)
16521653{
1653- guardt guard{true_exprt{}};
1654+ guardt guard{true_exprt{}, guard_manager };
16541655 check_rec (expr, guard, false );
16551656}
16561657
@@ -1782,7 +1783,7 @@ void goto_checkt::goto_check(
17821783 " pointer dereference" ,
17831784 i.source_location ,
17841785 pointer,
1785- guardt (true_exprt ()));
1786+ guardt (true_exprt (), guard_manager ));
17861787 }
17871788 }
17881789
@@ -1820,7 +1821,7 @@ void goto_checkt::goto_check(
18201821 " pointer dereference" ,
18211822 i.source_location ,
18221823 pointer,
1823- guardt (true_exprt ()));
1824+ guardt (true_exprt (), guard_manager ));
18241825 }
18251826
18261827 // this has no successor
@@ -1897,7 +1898,7 @@ void goto_checkt::goto_check(
18971898 " memory-leak" ,
18981899 source_location,
18991900 eq,
1900- guardt (true_exprt ()));
1901+ guardt (true_exprt (), guard_manager ));
19011902 }
19021903 }
19031904
0 commit comments