File tree Expand file tree Collapse file tree 9 files changed +81
-1
lines changed Expand file tree Collapse file tree 9 files changed +81
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,15 @@ ci_lazy_methodst::ci_lazy_methodst(
65
65
// / class
66
66
static bool references_class_model (const exprt &expr)
67
67
{
68
+ #ifdef _MSC_VER
69
+ #include < util/pragma_push.def>
70
+ #pragma warning(disable:4640)
71
+ // construction of local static object is not thread-safe
72
+ #endif
68
73
static const struct_tag_typet class_type (" java::java.lang.Class" );
74
+ #ifdef _MSC_VER
75
+ #include < util/pragma_pop.def>
76
+ #endif
69
77
70
78
for (auto it = expr.depth_begin (); it != expr.depth_end (); ++it)
71
79
{
Original file line number Diff line number Diff line change @@ -89,9 +89,17 @@ static bool should_init_symbol(const symbolt &sym)
89
89
// / \return Class initializer method's symbol name.
90
90
irep_idt get_java_class_literal_initializer_signature ()
91
91
{
92
- static irep_idt signature =
92
+ #ifdef _MSC_VER
93
+ #include < util/pragma_push.def>
94
+ #pragma warning(disable:4640)
95
+ // construction of local static object is not thread-safe
96
+ #endif
97
+ static const irep_idt signature =
93
98
" java::java.lang.Class.cproverInitializeClassLiteral:"
94
99
" (Ljava/lang/String;ZZZZZZZ)V" ;
100
+ #ifdef _MSC_VER
101
+ #include < util/pragma_pop.def>
102
+ #endif
95
103
return signature;
96
104
}
97
105
Original file line number Diff line number Diff line change @@ -407,9 +407,17 @@ get_inherited_component(
407
407
// / \return true if this static field is known never to be null
408
408
bool is_non_null_library_global (const irep_idt &symbolid)
409
409
{
410
+ #ifdef _MSC_VER
411
+ #include < util/pragma_push.def>
412
+ #pragma warning(disable:4640)
413
+ // construction of local static object is not thread-safe
414
+ #endif
410
415
static const irep_idt in = " java::java.lang.System.in" ;
411
416
static const irep_idt out = " java::java.lang.System.out" ;
412
417
static const irep_idt err = " java::java.lang.System.err" ;
418
+ #ifdef _MSC_VER
419
+ #include < util/pragma_pop.def>
420
+ #endif
413
421
return symbolid == in || symbolid == out || symbolid == err;
414
422
}
415
423
Original file line number Diff line number Diff line change @@ -1049,7 +1049,15 @@ bool jbmc_parse_optionst::process_goto_functions(
1049
1049
1050
1050
bool jbmc_parse_optionst::can_generate_function_body (const irep_idt &name)
1051
1051
{
1052
+ #ifdef _MSC_VER
1053
+ #include < util/pragma_push.def>
1054
+ #pragma warning(disable:4640)
1055
+ // construction of local static object is not thread-safe
1056
+ #endif
1052
1057
static const irep_idt initialize_id = INITIALIZE_FUNCTION;
1058
+ #ifdef _MSC_VER
1059
+ #include < util/pragma_pop.def>
1060
+ #endif
1053
1061
1054
1062
return name != goto_functionst::entry_point () && name != initialize_id;
1055
1063
}
Original file line number Diff line number Diff line change @@ -734,7 +734,15 @@ const rd_range_domaint::ranges_at_loct &rd_range_domaint::get(
734
734
{
735
735
populate_cache (identifier);
736
736
737
+ #ifdef _MSC_VER
738
+ #include < util/pragma_push.def>
739
+ #pragma warning(disable:4640)
740
+ // construction of local static object is not thread-safe
741
+ #endif
737
742
static ranges_at_loct empty;
743
+ #ifdef _MSC_VER
744
+ #include < util/pragma_pop.def>
745
+ #endif
738
746
739
747
export_cachet::const_iterator entry=export_cache.find (identifier);
740
748
Original file line number Diff line number Diff line change @@ -349,7 +349,15 @@ class event_grapht
349
349
350
350
std::list<event_idt>* initial_filtering (std::list<event_idt>* order)
351
351
{
352
+ #ifdef _MSC_VER
353
+ #include < util/pragma_push.def>
354
+ #pragma warning(disable:4640)
355
+ // construction of local static object is not thread-safe
356
+ #endif
352
357
static std::list<event_idt> new_order;
358
+ #ifdef _MSC_VER
359
+ #include < util/pragma_pop.def>
360
+ #endif
353
361
354
362
/* intersection */
355
363
for (const auto &evt : *order)
Original file line number Diff line number Diff line change 20
20
#include < util/invariant.h>
21
21
#include < util/threeval.h>
22
22
23
+ #include < util/pragma_push.def>
24
+ #ifdef _MSC_VER
25
+ #pragma warning(disable:4640)
26
+ // construction of local static object is not thread-safe
27
+ #endif
23
28
#include < minisat/core/Solver.h>
24
29
#include < minisat/simp/SimpSolver.h>
30
+ #include < util/pragma_pop.def>
25
31
26
32
#ifndef HAVE_MINISAT2
27
33
#error "Expected HAVE_MINISAT2"
Original file line number Diff line number Diff line change @@ -209,15 +209,33 @@ const irep_idt &irept::get(const irep_namet &name) const
209
209
if (it==s.end () ||
210
210
it->first !=name)
211
211
{
212
+ #ifdef _MSC_VER
213
+ #include < util/pragma_push.def>
214
+ #pragma warning(disable:4640)
215
+ // construction of local static object is not thread-safe
216
+ #endif
212
217
static const irep_idt empty;
218
+ #ifdef _MSC_VER
219
+ #include < util/pragma_pop.def>
220
+ #endif
213
221
return empty;
214
222
}
215
223
#else
216
224
named_subt::const_iterator it=s.find (name);
217
225
218
226
if (it==s.end ())
219
227
{
228
+ #ifdef _MSC_VER
229
+ // NOLINTNEXTLINE(build/include)
230
+ #include < util/pragma_push.def>
231
+ #pragma warning(disable:4640)
232
+ // construction of local static object is not thread-safe
233
+ #endif
220
234
static const irep_idt empty;
235
+ #ifdef _MSC_VER
236
+ // NOLINTNEXTLINE(build/include)
237
+ #include < util/pragma_pop.def>
238
+ #endif
221
239
return empty;
222
240
}
223
241
#endif
Original file line number Diff line number Diff line change @@ -92,7 +92,15 @@ class string_containert
92
92
// / Get a reference to the global string container.
93
93
inline string_containert &get_string_container ()
94
94
{
95
+ #ifdef _MSC_VER
96
+ #include < util/pragma_push.def>
97
+ #pragma warning(disable:4640)
98
+ // construction of local static object is not thread-safe
99
+ #endif
95
100
static string_containert ret;
101
+ #ifdef _MSC_VER
102
+ #include < util/pragma_pop.def>
103
+ #endif
96
104
return ret;
97
105
}
98
106
You can’t perform that action at this time.
0 commit comments