File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ class real_typet : public typet
55
55
56
56
// / A type for mathematical functions (do not confuse with functions/methods
57
57
// / in code)
58
- class mathematical_function_typet : public typet
58
+ class mathematical_function_typet : public type_with_subtypest
59
59
{
60
60
public:
61
61
// the domain of the function is composed of zero, one, or
@@ -88,7 +88,7 @@ class mathematical_function_typet : public typet
88
88
using domaint = std::vector<variablet>;
89
89
90
90
mathematical_function_typet (const domaint &_domain, const typet &_codomain)
91
- : typet (ID_mathematical_function)
91
+ : type_with_subtypest (ID_mathematical_function)
92
92
{
93
93
subtypes ().resize (2 );
94
94
domain () = _domain;
@@ -97,12 +97,12 @@ class mathematical_function_typet : public typet
97
97
98
98
domaint &domain ()
99
99
{
100
- return (domaint &)subtypes ()[0 ].subtypes ();
100
+ return (domaint &)to_type_with_subtypes ( subtypes ()[0 ]) .subtypes ();
101
101
}
102
102
103
103
const domaint &domain () const
104
104
{
105
- return (const domaint &)subtypes ()[0 ].subtypes ();
105
+ return (const domaint &)to_type_with_subtypes ( subtypes ()[0 ]) .subtypes ();
106
106
}
107
107
108
108
variablet &add_variable ()
You can’t perform that action at this time.
0 commit comments