@@ -15,14 +15,13 @@ Author: Daniel Kroening, kroening@kroening.com
1515#include < cassert>
1616#include < limits>
1717
18+ #include < util/base_exceptions.h>
1819#include < util/std_expr.h>
1920
2021#include " loc_ref.h"
2122
2223class path_symex_stept ;
2324
24- #define nullptr_exceptiont (str ) str
25-
2625// This is a reference to a path_symex_stept,
2726// and is really cheap to copy. These references are stable,
2827// even though the underlying vector is not.
@@ -48,7 +47,8 @@ class path_symex_step_reft
4847
4948 path_symex_historyt &get_history () const
5049 {
51- INVARIANT (history!=nullptr , nullptr_exceptiont (" history is null" ));
50+ INVARIANT_STRUCTURED (
51+ history!=nullptr , nullptr_exceptiont, " history is null" );
5252 return *history;
5353 }
5454
@@ -156,7 +156,8 @@ class path_symex_historyt
156156
157157inline void path_symex_step_reft::generate_successor ()
158158{
159- INVARIANT (history!=nullptr , nullptr_exceptiont (" history is null" ));
159+ INVARIANT_STRUCTURED (
160+ history!=nullptr , nullptr_exceptiont, " history is null" );
160161 path_symex_step_reft old=*this ;
161162 index=history->step_container .size ();
162163 history->step_container .push_back (path_symex_stept ());
@@ -171,7 +172,8 @@ inline path_symex_step_reft &path_symex_step_reft::operator--()
171172
172173inline path_symex_stept &path_symex_step_reft::get () const
173174{
174- INVARIANT (history!=nullptr , nullptr_exceptiont (" history is null" ));
175+ INVARIANT_STRUCTURED (
176+ history!=nullptr , nullptr_exceptiont, " history is null" );
175177 assert (!is_nil ());
176178 return history->step_container [index];
177179}
0 commit comments