6
6
7
7
\*******************************************************************/
8
8
9
-
10
9
#ifndef CPROVER_UTIL_CONFIG_H
11
10
#define CPROVER_UTIL_CONFIG_H
12
11
@@ -125,12 +124,29 @@ class configt
125
124
bool ts_18661_3_Floatn_types; // ISO/IEC TS 18661-3:2015
126
125
bool gcc__float128_type; // __float128, a gcc extension since 4.3/4.5
127
126
bool single_precision_constant;
128
- enum class c_standardt { C89, C99, C11 } c_standard;
127
+ enum class c_standardt
128
+ {
129
+ C89,
130
+ C99,
131
+ C11
132
+ } c_standard;
129
133
static c_standardt default_c_standard ();
130
134
131
- void set_c89 () { c_standard=c_standardt::C89; for_has_scope=false ; }
132
- void set_c99 () { c_standard=c_standardt::C99; for_has_scope=true ; }
133
- void set_c11 () { c_standard=c_standardt::C11; for_has_scope=true ; }
135
+ void set_c89 ()
136
+ {
137
+ c_standard = c_standardt::C89;
138
+ for_has_scope = false ;
139
+ }
140
+ void set_c99 ()
141
+ {
142
+ c_standard = c_standardt::C99;
143
+ for_has_scope = true ;
144
+ }
145
+ void set_c11 ()
146
+ {
147
+ c_standard = c_standardt::C11;
148
+ for_has_scope = true ;
149
+ }
134
150
135
151
ieee_floatt::rounding_modet rounding_mode;
136
152
@@ -152,10 +168,21 @@ class configt
152
168
// instruction (in bytes)
153
169
std::size_t memory_operand_size;
154
170
155
- enum class endiannesst { NO_ENDIANNESS, IS_LITTLE_ENDIAN, IS_BIG_ENDIAN };
171
+ enum class endiannesst
172
+ {
173
+ NO_ENDIANNESS,
174
+ IS_LITTLE_ENDIAN,
175
+ IS_BIG_ENDIAN
176
+ };
156
177
endiannesst endianness;
157
178
158
- enum class ost { NO_OS, OS_LINUX, OS_MACOS, OS_WIN };
179
+ enum class ost
180
+ {
181
+ NO_OS,
182
+ OS_LINUX,
183
+ OS_MACOS,
184
+ OS_WIN
185
+ };
159
186
ost os;
160
187
161
188
static std::string os_to_string (ost);
@@ -194,8 +221,15 @@ class configt
194
221
};
195
222
flavourt mode; // the syntax of source files
196
223
197
- enum class preprocessort { NONE, GCC, CLANG, VISUAL_STUDIO,
198
- CODEWARRIOR, ARM };
224
+ enum class preprocessort
225
+ {
226
+ NONE,
227
+ GCC,
228
+ CLANG,
229
+ VISUAL_STUDIO,
230
+ CODEWARRIOR,
231
+ ARM
232
+ };
199
233
preprocessort preprocessor; // the preprocessor to use
200
234
201
235
std::list<std::string> defines;
@@ -204,7 +238,11 @@ class configt
204
238
std::list<std::string> include_paths;
205
239
std::list<std::string> include_files;
206
240
207
- enum class libt { LIB_NONE, LIB_FULL };
241
+ enum class libt
242
+ {
243
+ LIB_NONE,
244
+ LIB_FULL
245
+ };
208
246
libt lib;
209
247
210
248
bool string_abstraction;
@@ -219,21 +257,43 @@ class configt
219
257
220
258
malloc_failure_modet malloc_failure_mode = malloc_failure_mode_none;
221
259
222
- static const std::size_t default_object_bits= 8 ;
260
+ static const std::size_t default_object_bits = 8 ;
223
261
} ansi_c;
224
262
225
263
struct cppt
226
264
{
227
- enum class cpp_standardt { CPP98, CPP03, CPP11, CPP14, CPP17 } cpp_standard;
265
+ enum class cpp_standardt
266
+ {
267
+ CPP98,
268
+ CPP03,
269
+ CPP11,
270
+ CPP14,
271
+ CPP17
272
+ } cpp_standard;
228
273
static cpp_standardt default_cpp_standard ();
229
274
230
- void set_cpp98 () { cpp_standard=cpp_standardt::CPP98; }
231
- void set_cpp03 () { cpp_standard=cpp_standardt::CPP03; }
232
- void set_cpp11 () { cpp_standard=cpp_standardt::CPP11; }
233
- void set_cpp14 () { cpp_standard=cpp_standardt::CPP14; }
234
- void set_cpp17 () { cpp_standard=cpp_standardt::CPP17; }
275
+ void set_cpp98 ()
276
+ {
277
+ cpp_standard = cpp_standardt::CPP98;
278
+ }
279
+ void set_cpp03 ()
280
+ {
281
+ cpp_standard = cpp_standardt::CPP03;
282
+ }
283
+ void set_cpp11 ()
284
+ {
285
+ cpp_standard = cpp_standardt::CPP11;
286
+ }
287
+ void set_cpp14 ()
288
+ {
289
+ cpp_standard = cpp_standardt::CPP14;
290
+ }
291
+ void set_cpp17 ()
292
+ {
293
+ cpp_standard = cpp_standardt::CPP17;
294
+ }
235
295
236
- static const std::size_t default_object_bits= 8 ;
296
+ static const std::size_t default_object_bits = 8 ;
237
297
} cpp;
238
298
239
299
struct verilogt
@@ -247,7 +307,7 @@ class configt
247
307
classpatht classpath;
248
308
irep_idt main_class;
249
309
250
- static const std::size_t default_object_bits= 16 ;
310
+ static const std::size_t default_object_bits = 16 ;
251
311
} java;
252
312
253
313
struct bv_encodingt
0 commit comments