@@ -73,86 +73,6 @@ std::ostream &operator<<(std::ostream &out,
73
73
return out;
74
74
}
75
75
76
- irept symbolt::to_irep () const
77
- {
78
- irept dest;
79
-
80
- dest.clear ();
81
- dest.add (ID_type)=type;
82
- dest.add (ID_value)=value;
83
- dest.add (ID_location)=location;
84
- dest.set (ID_name, name);
85
- dest.set (ID_module, module);
86
- dest.set (ID_base_name, base_name);
87
- dest.set (ID_mode, mode);
88
- dest.set (ID_pretty_name, pretty_name);
89
-
90
- if (is_type)
91
- dest.set (" is_type" , true );
92
- if (is_macro)
93
- dest.set (" is_macro" , true );
94
- if (is_exported)
95
- dest.set (" is_exported" , true );
96
- if (is_input)
97
- dest.set (" is_input" , true );
98
- if (is_output)
99
- dest.set (" is_output" , true );
100
- if (is_state_var)
101
- dest.set (" is_statevar" , true );
102
- if (is_parameter)
103
- dest.set (" is_parameter" , true );
104
- if (is_auxiliary)
105
- dest.set (" is_auxiliary" , true );
106
- if (is_weak)
107
- dest.set (" is_weak" , true );
108
- if (is_property)
109
- dest.set (" is_property" , true );
110
- if (is_lvalue)
111
- dest.set (" is_lvalue" , true );
112
- if (is_static_lifetime)
113
- dest.set (" is_static_lifetime" , true );
114
- if (is_thread_local)
115
- dest.set (" is_thread_local" , true );
116
- if (is_file_local)
117
- dest.set (" is_file_local" , true );
118
- if (is_extern)
119
- dest.set (" is_extern" , true );
120
- if (is_volatile)
121
- dest.set (" is_volatile" , true );
122
-
123
- return dest;
124
- }
125
-
126
- void symbolt::from_irep (const irept &src)
127
- {
128
- type=static_cast <const typet &>(src.find (ID_type));
129
- value=static_cast <const exprt &>(src.find (ID_value));
130
- location=static_cast <const source_locationt &>(src.find (ID_location));
131
-
132
- name=src.get (ID_name);
133
- module=src.get (ID_module);
134
- base_name=src.get (ID_base_name);
135
- mode=src.get (ID_mode);
136
- pretty_name=src.get (ID_pretty_name);
137
-
138
- is_type=src.get_bool (" is_type" );
139
- is_macro=src.get_bool (" is_macro" );
140
- is_exported=src.get_bool (" is_exported" );
141
- is_input=src.get_bool (" is_input" );
142
- is_output=src.get_bool (" is_output" );
143
- is_state_var=src.get_bool (" is_state_var" );
144
- is_parameter=src.get_bool (" is_parameter" );
145
- is_auxiliary=src.get_bool (" is_auxiliary" );
146
- is_weak=src.get_bool (" is_weak" );
147
- is_property=src.get_bool (" property" );
148
- is_lvalue=src.get_bool (" lvalue" );
149
- is_static_lifetime=src.get_bool (" static_lifetime" );
150
- is_thread_local=src.get_bool (" thread_local" );
151
- is_file_local=src.get_bool (" file_local" );
152
- is_extern=src.get_bool (" is_extern" );
153
- is_volatile=src.get_bool (" is_volatile" );
154
- }
155
-
156
76
void symbolt::swap (symbolt &b)
157
77
{
158
78
#define SYM_SWAP1 (x ) x.swap(b.x)
0 commit comments