@@ -72,8 +72,8 @@ symbol_exprt timeframe_symbol(const mp_integer &timeframe, symbol_exprt src)
7272class wl_instantiatet
7373{
7474public:
75- wl_instantiatet (const mp_integer &_no_timeframes, const namespacet &_ns )
76- : no_timeframes(_no_timeframes), ns(_ns)
75+ explicit wl_instantiatet (const mp_integer &_no_timeframes)
76+ : no_timeframes(_no_timeframes)
7777 {
7878 }
7979
@@ -86,7 +86,6 @@ class wl_instantiatet
8686
8787protected:
8888 const mp_integer &no_timeframes;
89- const namespacet &ns;
9089
9190 [[nodiscard]] std::pair<mp_integer, exprt>
9291 instantiate_rec (exprt, const mp_integer &t) const ;
@@ -145,7 +144,7 @@ wl_instantiatet::instantiate_rec(exprt expr, const mp_integer &t) const
145144 {
146145 // sequence expressions -- these may have multiple potential
147146 // match points, and evaluate to true if any of them matches
148- const auto match_points = instantiate_sequence (expr, t, no_timeframes, ns );
147+ const auto match_points = instantiate_sequence (expr, t, no_timeframes);
149148 exprt::operandst disjuncts;
150149 disjuncts.reserve (match_points.size ());
151150 mp_integer max = t;
@@ -228,10 +227,9 @@ Function: instantiate
228227exprt instantiate (
229228 const exprt &expr,
230229 const mp_integer &t,
231- const mp_integer &no_timeframes,
232- const namespacet &ns)
230+ const mp_integer &no_timeframes)
233231{
234- wl_instantiatet wl_instantiate (no_timeframes, ns );
232+ wl_instantiatet wl_instantiate (no_timeframes);
235233 return wl_instantiate (expr, t).second ;
236234}
237235
@@ -250,9 +248,8 @@ Function: instantiate_property
250248std::pair<mp_integer, exprt> instantiate_property (
251249 const exprt &expr,
252250 const mp_integer ¤t,
253- const mp_integer &no_timeframes,
254- const namespacet &ns)
251+ const mp_integer &no_timeframes)
255252{
256- wl_instantiatet wl_instantiate (no_timeframes, ns );
253+ wl_instantiatet wl_instantiate (no_timeframes);
257254 return wl_instantiate (expr, current);
258255}
0 commit comments