File tree 2 files changed +10
-7
lines changed
2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -1028,7 +1028,7 @@ typet smt2_parsert::function_signature_definition()
1028
1028
return sort ();
1029
1029
}
1030
1030
1031
- mathematical_function_typet result;
1031
+ mathematical_function_typet result ({}, nil_typet ()) ;
1032
1032
1033
1033
while (peek ()!=CLOSE)
1034
1034
{
@@ -1081,7 +1081,7 @@ typet smt2_parsert::function_signature_declaration()
1081
1081
return sort ();
1082
1082
}
1083
1083
1084
- mathematical_function_typet result;
1084
+ mathematical_function_typet result ({}, nil_typet ()) ;
1085
1085
1086
1086
while (peek ()!=CLOSE)
1087
1087
{
Original file line number Diff line number Diff line change @@ -1686,11 +1686,6 @@ inline complex_typet &to_complex_type(typet &type)
1686
1686
class mathematical_function_typet :public typet
1687
1687
{
1688
1688
public:
1689
- mathematical_function_typet ():typet(ID_mathematical_function)
1690
- {
1691
- subtypes ().resize (2 );
1692
- }
1693
-
1694
1689
// the domain of the function is composed of zero, one, or
1695
1690
// many variables
1696
1691
class variablet :public irept
@@ -1720,6 +1715,14 @@ class mathematical_function_typet:public typet
1720
1715
1721
1716
using domaint=std::vector<variablet>;
1722
1717
1718
+ mathematical_function_typet (
1719
+ const domaint &_domain, const typet &_codomain):typet(ID_mathematical_function)
1720
+ {
1721
+ subtypes ().resize (2 );
1722
+ domain ()=_domain;
1723
+ codomain ()=_codomain;
1724
+ }
1725
+
1723
1726
domaint &domain ()
1724
1727
{
1725
1728
return (domaint &)subtypes ()[0 ].subtypes ();
You can’t perform that action at this time.
0 commit comments