Skip to content

Commit 02a1b95

Browse files
author
Daniel Kroening
committed
mathematical_function_typet has subtypes
1 parent cf16b67 commit 02a1b95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util/mathematical_types.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class real_typet : public typet
5555

5656
/// A type for mathematical functions (do not confuse with functions/methods
5757
/// in code)
58-
class mathematical_function_typet : public typet
58+
class mathematical_function_typet : public type_with_subtypest
5959
{
6060
public:
6161
// the domain of the function is composed of zero, one, or
@@ -88,7 +88,7 @@ class mathematical_function_typet : public typet
8888
using domaint = std::vector<variablet>;
8989

9090
mathematical_function_typet(const domaint &_domain, const typet &_codomain)
91-
: typet(ID_mathematical_function)
91+
: type_with_subtypest(ID_mathematical_function)
9292
{
9393
subtypes().resize(2);
9494
domain() = _domain;
@@ -97,12 +97,12 @@ class mathematical_function_typet : public typet
9797

9898
domaint &domain()
9999
{
100-
return (domaint &)subtypes()[0].subtypes();
100+
return (domaint &)to_type_with_subtypes(subtypes()[0]).subtypes();
101101
}
102102

103103
const domaint &domain() const
104104
{
105-
return (const domaint &)subtypes()[0].subtypes();
105+
return (const domaint &)to_type_with_subtypes(subtypes()[0]).subtypes();
106106
}
107107

108108
variablet &add_variable()

0 commit comments

Comments
 (0)