File tree 9 files changed +73
-1
lines changed
9 files changed +73
-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 @@ -76,9 +76,17 @@ static bool should_init_symbol(const symbolt &sym)
76
76
77
77
irep_idt get_java_class_literal_initializer_signature ()
78
78
{
79
- static irep_idt signature =
79
+ #ifdef _MSC_VER
80
+ #include < util/pragma_push.def>
81
+ #pragma warning(disable:4640)
82
+ // construction of local static object is not thread-safe
83
+ #endif
84
+ static const irep_idt signature =
80
85
" java::java.lang.Class.cproverInitializeClassLiteral:"
81
86
" (Ljava/lang/String;ZZZZZZZ)V" ;
87
+ #ifdef _MSC_VER
88
+ #include < util/pragma_pop.def>
89
+ #endif
82
90
return signature;
83
91
}
84
92
Original file line number Diff line number Diff line change @@ -519,9 +519,17 @@ get_inherited_component(
519
519
// / \return true if this static field is known never to be null
520
520
bool is_non_null_library_global (const irep_idt &symbolid)
521
521
{
522
+ #ifdef _MSC_VER
523
+ #include < util/pragma_push.def>
524
+ #pragma warning(disable:4640)
525
+ // construction of local static object is not thread-safe
526
+ #endif
522
527
static const irep_idt in = " java::java.lang.System.in" ;
523
528
static const irep_idt out = " java::java.lang.System.out" ;
524
529
static const irep_idt err = " java::java.lang.System.err" ;
530
+ #ifdef _MSC_VER
531
+ #include < util/pragma_pop.def>
532
+ #endif
525
533
return symbolid == in || symbolid == out || symbolid == err;
526
534
}
527
535
Original file line number Diff line number Diff line change @@ -917,7 +917,15 @@ bool jbmc_parse_optionst::process_goto_functions(
917
917
918
918
bool jbmc_parse_optionst::can_generate_function_body (const irep_idt &name)
919
919
{
920
+ #ifdef _MSC_VER
921
+ #include < util/pragma_push.def>
922
+ #pragma warning(disable:4640)
923
+ // construction of local static object is not thread-safe
924
+ #endif
920
925
static const irep_idt initialize_id = INITIALIZE_FUNCTION;
926
+ #ifdef _MSC_VER
927
+ #include < util/pragma_pop.def>
928
+ #endif
921
929
922
930
return name != goto_functionst::entry_point () && name != initialize_id;
923
931
}
Original file line number Diff line number Diff line change @@ -723,7 +723,15 @@ const rd_range_domaint::ranges_at_loct &rd_range_domaint::get(
723
723
{
724
724
populate_cache (identifier);
725
725
726
+ #ifdef _MSC_VER
727
+ #include < util/pragma_push.def>
728
+ #pragma warning(disable:4640)
729
+ // construction of local static object is not thread-safe
730
+ #endif
726
731
static ranges_at_loct empty;
732
+ #ifdef _MSC_VER
733
+ #include < util/pragma_pop.def>
734
+ #endif
727
735
728
736
export_cachet::const_iterator entry=export_cache.find (identifier);
729
737
Original file line number Diff line number Diff line change @@ -348,7 +348,15 @@ class event_grapht
348
348
349
349
std::list<event_idt>* initial_filtering (std::list<event_idt>* order)
350
350
{
351
+ #ifdef _MSC_VER
352
+ #include < util/pragma_push.def>
353
+ #pragma warning(disable:4640)
354
+ // construction of local static object is not thread-safe
355
+ #endif
351
356
static std::list<event_idt> new_order;
357
+ #ifdef _MSC_VER
358
+ #include < util/pragma_pop.def>
359
+ #endif
352
360
353
361
/* intersection */
354
362
for (const auto &evt : *order)
Original file line number Diff line number Diff line change 18
18
#include < util/invariant.h>
19
19
#include < util/threeval.h>
20
20
21
+ #include < util/pragma_push.def>
22
+ #ifdef _MSC_VER
23
+ #pragma warning(disable:4640)
24
+ // construction of local static object is not thread-safe
25
+ #endif
21
26
#include < minisat/core/Solver.h>
22
27
#include < minisat/simp/SimpSolver.h>
28
+ #include < util/pragma_pop.def>
23
29
24
30
#ifndef l_False
25
31
# define l_False Minisat::l_False
Original file line number Diff line number Diff line change @@ -48,7 +48,17 @@ const irep_idt &irept::get(const irep_idt &name) const
48
48
49
49
if (it==s.end ())
50
50
{
51
+ #ifdef _MSC_VER
52
+ // NOLINTNEXTLINE(build/include)
53
+ #include < util/pragma_push.def>
54
+ #pragma warning(disable:4640)
55
+ // construction of local static object is not thread-safe
56
+ #endif
51
57
static const irep_idt empty;
58
+ #ifdef _MSC_VER
59
+ // NOLINTNEXTLINE(build/include)
60
+ #include < util/pragma_pop.def>
61
+ #endif
52
62
return empty;
53
63
}
54
64
return it->second .id ();
Original file line number Diff line number Diff line change @@ -110,7 +110,15 @@ class string_containert
110
110
// / Get a reference to the global string container.
111
111
inline string_containert &get_string_container ()
112
112
{
113
+ #ifdef _MSC_VER
114
+ #include < util/pragma_push.def>
115
+ #pragma warning(disable:4640)
116
+ // construction of local static object is not thread-safe
117
+ #endif
113
118
static string_containert ret;
119
+ #ifdef _MSC_VER
120
+ #include < util/pragma_pop.def>
121
+ #endif
114
122
return ret;
115
123
}
116
124
You can’t perform that action at this time.
0 commit comments