File tree 2 files changed +16
-4
lines changed
2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,19 @@ class goto_functionst
130
130
131
131
std::vector<function_mapt::const_iterator> sorted () const ;
132
132
std::vector<function_mapt::iterator> sorted ();
133
+
134
+ // / Check that the goto functions are well-formed
135
+ // /
136
+ // / The validation mode indicates whether well-formedness check failures are
137
+ // / reported via DATA_INVARIANT violations or exceptions.
138
+ void validate (const namespacet &ns, const validation_modet vm) const
139
+ {
140
+ for (const auto &entry : function_map)
141
+ {
142
+ const goto_functiont &goto_function = entry.second ;
143
+ goto_function.validate (ns, vm);
144
+ }
145
+ }
133
146
};
134
147
135
148
#define Forall_goto_functions (it, functions ) \
Original file line number Diff line number Diff line change @@ -118,10 +118,9 @@ incorrect_goto_program_exceptiont::incorrect_goto_program_exceptiont(
118
118
Diagnostic &&diagnostic,
119
119
Diagnostics &&... diagnostics)
120
120
: message(std::move(message)),
121
- diagnostics(
122
- detail::assemble_diagnostics (
123
- std::forward (diagnostic),
124
- std::forward<Diagnostics>(diagnostics)...))
121
+ diagnostics(detail::assemble_diagnostics(
122
+ std::forward (diagnostic),
123
+ std::forward<Diagnostics>(diagnostics)...))
125
124
{
126
125
}
127
126
You can’t perform that action at this time.
0 commit comments