@@ -110,10 +110,6 @@ class real_typet:public typet
110
110
class symbol_typet :public typet
111
111
{
112
112
public:
113
- symbol_typet ():typet(ID_symbol)
114
- {
115
- }
116
-
117
113
explicit symbol_typet (const irep_idt &identifier):typet(ID_symbol)
118
114
{
119
115
set_identifier (identifier);
@@ -492,10 +488,6 @@ inline union_typet &to_union_type(typet &type)
492
488
class tag_typet :public typet
493
489
{
494
490
public:
495
- explicit tag_typet (const irep_idt &_id):typet(_id)
496
- {
497
- }
498
-
499
491
explicit tag_typet (
500
492
const irep_idt &_id,
501
493
const irep_idt &identifier):typet(_id)
@@ -980,10 +972,6 @@ inline code_typet &to_code_type(typet &type)
980
972
class array_typet :public type_with_subtypet
981
973
{
982
974
public:
983
- array_typet ():type_with_subtypet(ID_array)
984
- {
985
- }
986
-
987
975
array_typet (
988
976
const typet &_subtype,
989
977
const exprt &_size):type_with_subtypet(ID_array, _subtype)
@@ -1575,10 +1563,6 @@ inline const string_typet &to_string_type(const typet &type)
1575
1563
class range_typet :public typet
1576
1564
{
1577
1565
public:
1578
- range_typet ():typet(ID_range)
1579
- {
1580
- }
1581
-
1582
1566
range_typet (const mp_integer &_from, const mp_integer &_to)
1583
1567
{
1584
1568
set_from (_from);
@@ -1613,10 +1597,6 @@ inline const range_typet &to_range_type(const typet &type)
1613
1597
class vector_typet :public type_with_subtypet
1614
1598
{
1615
1599
public:
1616
- vector_typet ():type_with_subtypet(ID_vector)
1617
- {
1618
- }
1619
-
1620
1600
vector_typet (
1621
1601
const typet &_subtype,
1622
1602
const exprt &_size):type_with_subtypet(ID_vector, _subtype)
@@ -1706,11 +1686,6 @@ inline complex_typet &to_complex_type(typet &type)
1706
1686
class mathematical_function_typet :public typet
1707
1687
{
1708
1688
public:
1709
- mathematical_function_typet ():typet(ID_mathematical_function)
1710
- {
1711
- subtypes ().resize (2 );
1712
- }
1713
-
1714
1689
// the domain of the function is composed of zero, one, or
1715
1690
// many variables
1716
1691
class variablet :public irept
@@ -1740,6 +1715,14 @@ class mathematical_function_typet:public typet
1740
1715
1741
1716
using domaint=std::vector<variablet>;
1742
1717
1718
+ mathematical_function_typet (const domaint &_domain, const typet &_codomain)
1719
+ : typet(ID_mathematical_function)
1720
+ {
1721
+ subtypes ().resize (2 );
1722
+ domain () = _domain;
1723
+ codomain () = _codomain;
1724
+ }
1725
+
1743
1726
domaint &domain ()
1744
1727
{
1745
1728
return (domaint &)subtypes ()[0 ].subtypes ();
0 commit comments