Bug Summary

File:OMCompiler/Compiler/boot/build/GC.c
Warning:line 239, column 5
Value stored to 'tmp4_1' is never read

Annotated Source Code

[?] Use j/k keys for keyboard navigation

1#ifdef OMC_BASE_FILE
2 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c" OMC_BASE_FILE
3#else
4 #define OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c" "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c"
5#endif
6#include "omc_simulation_settings.h"
7#include "GC.h"
8#define _OMC_LIT0_data"GC Profiling Stats: " "GC Profiling Stats: "
9static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT0,20,_OMC_LIT0_data)struct { mmc_uint_t header; const char data[(20)+1]; } _OMC_LIT_STRUCT0
= { ((((mmc_uint_t)20)<<(3))+((1<<(3+3))+5)), "GC Profiling Stats: "
}
;
10#define _OMC_LIT0((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT0)((void*)((char*)(&(_OMC_LIT_STRUCT0).header) + 3))
11#define _OMC_LIT1_data"\n " "\n "
12static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT1,3,_OMC_LIT1_data)struct { mmc_uint_t header; const char data[(3)+1]; } _OMC_LIT_STRUCT1
= { ((((mmc_uint_t)3)<<(3))+((1<<(3+3))+5)), "\n "
}
;
13#define _OMC_LIT1((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT1)((void*)((char*)(&(_OMC_LIT_STRUCT1).header) + 3))
14#define _OMC_LIT2_data"heapsize_full: " "heapsize_full: "
15static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT2,15,_OMC_LIT2_data)struct { mmc_uint_t header; const char data[(15)+1]; } _OMC_LIT_STRUCT2
= { ((((mmc_uint_t)15)<<(3))+((1<<(3+3))+5)), "heapsize_full: "
}
;
16#define _OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT2)((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3))
17#define _OMC_LIT3_data"free_bytes_full: " "free_bytes_full: "
18static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT3,17,_OMC_LIT3_data)struct { mmc_uint_t header; const char data[(17)+1]; } _OMC_LIT_STRUCT3
= { ((((mmc_uint_t)17)<<(3))+((1<<(3+3))+5)), "free_bytes_full: "
}
;
19#define _OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT3)((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3))
20#define _OMC_LIT4_data"unmapped_bytes: " "unmapped_bytes: "
21static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT4,16,_OMC_LIT4_data)struct { mmc_uint_t header; const char data[(16)+1]; } _OMC_LIT_STRUCT4
= { ((((mmc_uint_t)16)<<(3))+((1<<(3+3))+5)), "unmapped_bytes: "
}
;
22#define _OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT4)((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3))
23#define _OMC_LIT5_data"bytes_allocd_since_gc: " "bytes_allocd_since_gc: "
24static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT5,23,_OMC_LIT5_data)struct { mmc_uint_t header; const char data[(23)+1]; } _OMC_LIT_STRUCT5
= { ((((mmc_uint_t)23)<<(3))+((1<<(3+3))+5)), "bytes_allocd_since_gc: "
}
;
25#define _OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT5)((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3))
26#define _OMC_LIT6_data"allocd_bytes_before_gc: " "allocd_bytes_before_gc: "
27static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT6,24,_OMC_LIT6_data)struct { mmc_uint_t header; const char data[(24)+1]; } _OMC_LIT_STRUCT6
= { ((((mmc_uint_t)24)<<(3))+((1<<(3+3))+5)), "allocd_bytes_before_gc: "
}
;
28#define _OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT6)((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3))
29#define _OMC_LIT7_data"total_allocd_bytes: " "total_allocd_bytes: "
30static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT7,20,_OMC_LIT7_data)struct { mmc_uint_t header; const char data[(20)+1]; } _OMC_LIT_STRUCT7
= { ((((mmc_uint_t)20)<<(3))+((1<<(3+3))+5)), "total_allocd_bytes: "
}
;
31#define _OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT7)((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3))
32#define _OMC_LIT8_data"non_gc_bytes: " "non_gc_bytes: "
33static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT8,14,_OMC_LIT8_data)struct { mmc_uint_t header; const char data[(14)+1]; } _OMC_LIT_STRUCT8
= { ((((mmc_uint_t)14)<<(3))+((1<<(3+3))+5)), "non_gc_bytes: "
}
;
34#define _OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT8)((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3))
35#define _OMC_LIT9_data"gc_no: " "gc_no: "
36static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT9,7,_OMC_LIT9_data)struct { mmc_uint_t header; const char data[(7)+1]; } _OMC_LIT_STRUCT9
= { ((((mmc_uint_t)7)<<(3))+((1<<(3+3))+5)), "gc_no: "
}
;
37#define _OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT9)((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3))
38#define _OMC_LIT10_data"markers_m1: " "markers_m1: "
39static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT10,12,_OMC_LIT10_data)struct { mmc_uint_t header; const char data[(12)+1]; } _OMC_LIT_STRUCT10
= { ((((mmc_uint_t)12)<<(3))+((1<<(3+3))+5)), "markers_m1: "
}
;
40#define _OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT10)((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3))
41#define _OMC_LIT11_data"bytes_reclaimed_since_gc: " "bytes_reclaimed_since_gc: "
42static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT11,26,_OMC_LIT11_data)struct { mmc_uint_t header; const char data[(26)+1]; } _OMC_LIT_STRUCT11
= { ((((mmc_uint_t)26)<<(3))+((1<<(3+3))+5)), "bytes_reclaimed_since_gc: "
}
;
43#define _OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT11)((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3))
44#define _OMC_LIT12_data"reclaimed_bytes_before_gc: " "reclaimed_bytes_before_gc: "
45static const MMC_DEFSTRINGLIT(_OMC_LIT_STRUCT12,27,_OMC_LIT12_data)struct { mmc_uint_t header; const char data[(27)+1]; } _OMC_LIT_STRUCT12
= { ((((mmc_uint_t)27)<<(3))+((1<<(3+3))+5)), "reclaimed_bytes_before_gc: "
}
;
46#define _OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)) MMC_REFSTRINGLIT(_OMC_LIT_STRUCT12)((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3))
47#include "util/modelica.h"
48
49#include "GC_includes.h"
50
51
52/* default, do not make protected functions static */
53#if !defined(PROTECTED_FUNCTION_STATIC)
54#define PROTECTED_FUNCTION_STATIC
55#endif
56PROTECTED_FUNCTION_STATIC modelica_metatype omc_GC_getProfStats_GC__get__prof__stats__modelica(threadData_t *threadData);
57static const MMC_DEFSTRUCTLIT(boxvar_lit_GC_getProfStats_GC__get__prof__stats__modelica,2,0)struct { mmc_uint_t header; const void *data[2]; } boxvar_lit_GC_getProfStats_GC__get__prof__stats__modelica
= { (((2) << 10) + (((0) & 255) << 2)),
{(void*) boxptr_GC_getProfStats_GC__get__prof__stats__modelicaomc_GC_getProfStats_GC__get__prof__stats__modelica,0}};
58#define boxvar_GC_getProfStats_GC__get__prof__stats__modelica((void*)((char*)(&(boxvar_lit_GC_getProfStats_GC__get__prof__stats__modelica
).header) + 3))
MMC_REFSTRUCTLIT(boxvar_lit_GC_getProfStats_GC__get__prof__stats__modelica)((void*)((char*)(&(boxvar_lit_GC_getProfStats_GC__get__prof__stats__modelica
).header) + 3))
59
60PROTECTED_FUNCTION_STATIC modelica_metatype omc_GC_getProfStats_GC__get__prof__stats__modelica(threadData_t *threadData)
61{
62 modelica_metatype _stats_ext;
63 modelica_metatype _stats = NULL((void*)0);
64#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
65 // _stats has no default value.
66#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
67 _stats_ext = GC_get_prof_stats_modelica();
68#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
69 _stats = (modelica_metatype)_stats_ext;
70#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
71 return _stats;
72#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
73}
74#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
75
76#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
77DLLExport
78#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
79modelica_metatype omc_GC_getProfStats(threadData_t *threadData)
80#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
81{
82#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
83 modelica_metatype _stats = NULL((void*)0);
84#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
85 modelica_integer _heapsize_full;
86#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
87 modelica_integer _free_bytes_full;
88#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
89 modelica_integer _unmapped_bytes;
90#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
91 modelica_integer _bytes_allocd_since_gc;
92#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
93 modelica_integer _allocd_bytes_before_gc;
94#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
95 modelica_integer _non_gc_bytes;
96#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
97 modelica_integer _gc_no;
98#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
99 modelica_integer _markers_m1;
100#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
101 modelica_integer _bytes_reclaimed_since_gc;
102#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
103 modelica_integer _reclaimed_bytes_before_gc;
104#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
105 modelica_integer tmp1;
106#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
107 modelica_integer tmp2;
108#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
109 modelica_integer tmp3;
110#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
111 modelica_integer tmp4;
112#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
113 modelica_integer tmp5;
114#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
115 modelica_integer tmp6;
116#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
117 modelica_integer tmp7;
118#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
119 modelica_integer tmp8;
120#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
121 modelica_integer tmp9;
122#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
123 modelica_integer tmp10;
124#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
125 modelica_metatype tmpMeta[11] __attribute__((unused)) = {0};
126#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
127 MMC_SO()mmc_check_stackoverflow(threadData);
128#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
129 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
130#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
131 // _stats has no default value.
132#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
133 // _heapsize_full has no default value.
134#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
135 // _free_bytes_full has no default value.
136#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
137 // _unmapped_bytes has no default value.
138#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
139 // _bytes_allocd_since_gc has no default value.
140#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
141 // _allocd_bytes_before_gc has no default value.
142#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
143 // _non_gc_bytes has no default value.
144#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
145 // _gc_no has no default value.
146#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
147 // _markers_m1 has no default value.
148#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
149 // _bytes_reclaimed_since_gc has no default value.
150#line 132 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
151 // _reclaimed_bytes_before_gc has no default value.
152#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
153 /* Pattern-matching assignment */
154#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
155 tmpMeta[0] = omc_GC_getProfStats_GC__get__prof__stats__modelica(threadData);
156#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
157 tmpMeta[1] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 1))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (1)))))
;
158#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
159 tmp1 = mmc_unbox_integer(tmpMeta[1])(((mmc_sint_t) (tmpMeta[1])) >> 1);
160#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
161 tmpMeta[2] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 2))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (2)))))
;
162#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
163 tmp2 = mmc_unbox_integer(tmpMeta[2])(((mmc_sint_t) (tmpMeta[2])) >> 1);
164#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
165 tmpMeta[3] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 3))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (3)))))
;
166#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
167 tmp3 = mmc_unbox_integer(tmpMeta[3])(((mmc_sint_t) (tmpMeta[3])) >> 1);
168#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
169 tmpMeta[4] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 4))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (4)))))
;
170#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
171 tmp4 = mmc_unbox_integer(tmpMeta[4])(((mmc_sint_t) (tmpMeta[4])) >> 1);
172#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
173 tmpMeta[5] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 5))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (5)))))
;
174#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
175 tmp5 = mmc_unbox_integer(tmpMeta[5])(((mmc_sint_t) (tmpMeta[5])) >> 1);
176#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
177 tmpMeta[6] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 6))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (6)))))
;
178#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
179 tmp6 = mmc_unbox_integer(tmpMeta[6])(((mmc_sint_t) (tmpMeta[6])) >> 1);
180#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
181 tmpMeta[7] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 7))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (7)))))
;
182#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
183 tmp7 = mmc_unbox_integer(tmpMeta[7])(((mmc_sint_t) (tmpMeta[7])) >> 1);
184#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
185 tmpMeta[8] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 8))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (8)))))
;
186#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
187 tmp8 = mmc_unbox_integer(tmpMeta[8])(((mmc_sint_t) (tmpMeta[8])) >> 1);
188#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
189 tmpMeta[9] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 9))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (9)))))
;
190#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
191 tmp9 = mmc_unbox_integer(tmpMeta[9])(((mmc_sint_t) (tmpMeta[9])) >> 1);
192#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
193 tmpMeta[10] = MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(tmpMeta[0]), 10))(*(void**)(((void*)((void**)(((void*)((char*)(tmpMeta[0]) - 3
))) + (10)))))
;
194#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
195 tmp10 = mmc_unbox_integer(tmpMeta[10])(((mmc_sint_t) (tmpMeta[10])) >> 1);
196#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
197 _heapsize_full = tmp1 /* pattern as ty=Integer */;
198#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
199 _free_bytes_full = tmp2 /* pattern as ty=Integer */;
200#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
201 _unmapped_bytes = tmp3 /* pattern as ty=Integer */;
202#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
203 _bytes_allocd_since_gc = tmp4 /* pattern as ty=Integer */;
204#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
205 _allocd_bytes_before_gc = tmp5 /* pattern as ty=Integer */;
206#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
207 _non_gc_bytes = tmp6 /* pattern as ty=Integer */;
208#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
209 _gc_no = tmp7 /* pattern as ty=Integer */;
210#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
211 _markers_m1 = tmp8 /* pattern as ty=Integer */;
212#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
213 _bytes_reclaimed_since_gc = tmp9 /* pattern as ty=Integer */;
214#line 172 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
215 _reclaimed_bytes_before_gc = tmp10 /* pattern as ty=Integer */;
216#line 216 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c"
217
218#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
219 tmpMeta[0] = mmc_mk_box11(3, &GC_ProfStats_PROFSTATS__desc, mmc_mk_integermmc_mk_icon(_heapsize_full), mmc_mk_integermmc_mk_icon(_free_bytes_full), mmc_mk_integermmc_mk_icon(_unmapped_bytes), mmc_mk_integermmc_mk_icon(_bytes_allocd_since_gc), mmc_mk_integermmc_mk_icon(_allocd_bytes_before_gc), mmc_mk_integermmc_mk_icon(_non_gc_bytes), mmc_mk_integermmc_mk_icon(_gc_no), mmc_mk_integermmc_mk_icon(_markers_m1), mmc_mk_integermmc_mk_icon(_bytes_reclaimed_since_gc), mmc_mk_integermmc_mk_icon(_reclaimed_bytes_before_gc));
220#line 173 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
221 _stats = tmpMeta[0];
222#line 222 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c"
223 _return: OMC_LABEL_UNUSED__attribute__((unused))
224 return _stats;
225}
226
227DLLExport
228modelica_string omc_GC_profStatsStr(threadData_t *threadData, modelica_metatype _stats, modelica_string _head, modelica_string _delimiter)
229{
230 modelica_string _str = NULL((void*)0);
231 modelica_string tmp1 = 0;
232 modelica_metatype tmpMeta[33] __attribute__((unused)) = {0};
233 MMC_SO()mmc_check_stackoverflow(threadData);
234 _tailrecursive: OMC_LABEL_UNUSED__attribute__((unused))
235 // _str has no default value.
236#line 236 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c"
237 { /* match expression */
238 modelica_metatype tmp4_1;
239 tmp4_1 = _stats;
Value stored to 'tmp4_1' is never read
240 {
241 volatile mmc_switch_type tmp4;
242 int tmp5;
243 tmp4 = 0;
244 for (; tmp4 < 1; tmp4++) {
245 switch (MMC_SWITCH_CAST(tmp4)(tmp4)) {
246 case 0: {
247
248 /* Pattern matching succeeded */
249#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
250 tmpMeta[0] = stringAppend(_head,_delimiter);
251#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
252 tmpMeta[1] = stringAppend(tmpMeta[0],_OMC_LIT2((void*)((char*)(&(_OMC_LIT_STRUCT2).header) + 3)));
253#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
254 tmpMeta[2] = stringAppend(tmpMeta[1],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 2))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (2)))))))) >> 1)
));
255#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
256 tmpMeta[3] = stringAppend(tmpMeta[2],_delimiter);
257#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
258 tmpMeta[4] = stringAppend(tmpMeta[3],_OMC_LIT3((void*)((char*)(&(_OMC_LIT_STRUCT3).header) + 3)));
259#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
260 tmpMeta[5] = stringAppend(tmpMeta[4],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 3))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (3)))))))) >> 1)
));
261#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
262 tmpMeta[6] = stringAppend(tmpMeta[5],_delimiter);
263#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
264 tmpMeta[7] = stringAppend(tmpMeta[6],_OMC_LIT4((void*)((char*)(&(_OMC_LIT_STRUCT4).header) + 3)));
265#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
266 tmpMeta[8] = stringAppend(tmpMeta[7],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 4))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (4)))))))) >> 1)
));
267#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
268 tmpMeta[9] = stringAppend(tmpMeta[8],_delimiter);
269#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
270 tmpMeta[10] = stringAppend(tmpMeta[9],_OMC_LIT5((void*)((char*)(&(_OMC_LIT_STRUCT5).header) + 3)));
271#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
272 tmpMeta[11] = stringAppend(tmpMeta[10],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (5)))))))) >> 1)
));
273#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
274 tmpMeta[12] = stringAppend(tmpMeta[11],_delimiter);
275#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
276 tmpMeta[13] = stringAppend(tmpMeta[12],_OMC_LIT6((void*)((char*)(&(_OMC_LIT_STRUCT6).header) + 3)));
277#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
278 tmpMeta[14] = stringAppend(tmpMeta[13],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (6)))))))) >> 1)
));
279#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
280 tmpMeta[15] = stringAppend(tmpMeta[14],_delimiter);
281#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
282 tmpMeta[16] = stringAppend(tmpMeta[15],_OMC_LIT7((void*)((char*)(&(_OMC_LIT_STRUCT7).header) + 3)));
283#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
284 tmpMeta[17] = stringAppend(tmpMeta[16],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 5))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (5)))))))) >> 1)
+ mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 6))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (6)))))))) >> 1)
));
285#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
286 tmpMeta[18] = stringAppend(tmpMeta[17],_delimiter);
287#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
288 tmpMeta[19] = stringAppend(tmpMeta[18],_OMC_LIT8((void*)((char*)(&(_OMC_LIT_STRUCT8).header) + 3)));
289#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
290 tmpMeta[20] = stringAppend(tmpMeta[19],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 7))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (7)))))))) >> 1)
));
291#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
292 tmpMeta[21] = stringAppend(tmpMeta[20],_delimiter);
293#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
294 tmpMeta[22] = stringAppend(tmpMeta[21],_OMC_LIT9((void*)((char*)(&(_OMC_LIT_STRUCT9).header) + 3)));
295#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
296 tmpMeta[23] = stringAppend(tmpMeta[22],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 8))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (8)))))))) >> 1)
));
297#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
298 tmpMeta[24] = stringAppend(tmpMeta[23],_delimiter);
299#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
300 tmpMeta[25] = stringAppend(tmpMeta[24],_OMC_LIT10((void*)((char*)(&(_OMC_LIT_STRUCT10).header) + 3)));
301#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
302 tmpMeta[26] = stringAppend(tmpMeta[25],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 9))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (9)))))))) >> 1)
));
303#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
304 tmpMeta[27] = stringAppend(tmpMeta[26],_delimiter);
305#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
306 tmpMeta[28] = stringAppend(tmpMeta[27],_OMC_LIT11((void*)((char*)(&(_OMC_LIT_STRUCT11).header) + 3)));
307#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
308 tmpMeta[29] = stringAppend(tmpMeta[28],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 10))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (10)))))))) >> 1)
));
309#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
310 tmpMeta[30] = stringAppend(tmpMeta[29],_delimiter);
311#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
312 tmpMeta[31] = stringAppend(tmpMeta[30],_OMC_LIT12((void*)((char*)(&(_OMC_LIT_STRUCT12).header) + 3)));
313#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
314 tmpMeta[32] = stringAppend(tmpMeta[31],intString(mmc_unbox_integer((MMC_FETCH(MMC_OFFSET(MMC_UNTAGPTR(_stats), 11))))(((mmc_sint_t) (((*(void**)(((void*)((void**)(((void*)((char*
)(_stats) - 3))) + (11)))))))) >> 1)
));
315#line 111 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
316 tmp1 = tmpMeta[32];
317#line 317 OMC_FILE"/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/boot/build/tmp/GC.c"
318 goto tmp3_done;
319 }
320 }
321 goto tmp3_end;
322 tmp3_end: ;
323 }
324 goto goto_2;
325 goto_2:;
326 MMC_THROW_INTERNAL(){longjmp(*threadData->mmc_jumper,1);};
327 goto tmp3_done;
328 tmp3_done:;
329 }
330 }
331 _str = tmp1;
332 _return: OMC_LABEL_UNUSED__attribute__((unused))
333 return _str;
334}
335
336void omc_GC_setMaxHeapSize(threadData_t *threadData, modelica_real _sz)
337{
338 double _sz_ext;
339#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
340 _sz_ext = (double)_sz;
341#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
342 GC_set_max_heap_size_dbl(_sz_ext)omc_GC_set_max_heap_size((size_t)_sz_ext);
343#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
344 return;
345#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
346}
347#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
348void boxptr_GC_setMaxHeapSize(threadData_t *threadData, modelica_metatype _sz)
349#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
350{
351#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
352 modelica_real tmp1;
353#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
354 tmp1 = mmc_unbox_real(_sz)mmc_prim_get_real(_sz);
355#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
356 omc_GC_setMaxHeapSize(threadData, tmp1);
357#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
358 return;
359#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
360}
361#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
362
363#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
364void omc_GC_setForceUnmapOnGcollect(threadData_t *threadData, modelica_boolean _forceUnmap)
365#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
366{
367#line 93 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
368 int _forceUnmap_ext;
369#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
370 _forceUnmap_ext = (int)_forceUnmap;
371#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
372 GC_set_force_unmap_on_gcollect(_forceUnmap_ext);
373#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
374 return;
375#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
376}
377#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
378void boxptr_GC_setForceUnmapOnGcollect(threadData_t *threadData, modelica_metatype _forceUnmap)
379#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
380{
381#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
382 modelica_integer tmp1;
383#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
384 tmp1 = mmc_unbox_integer(_forceUnmap)(((mmc_sint_t) (_forceUnmap)) >> 1);
385#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
386 omc_GC_setForceUnmapOnGcollect(threadData, tmp1);
387#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
388 return;
389#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
390}
391#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
392
393#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
394modelica_boolean omc_GC_getForceUnmapOnGcollect(threadData_t *threadData)
395#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
396{
397#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
398 int _res_ext;
399#line 88 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
400 modelica_boolean _res;
401#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
402 // _res has no default value.
403#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
404 _res_ext = GC_get_force_unmap_on_gcollect();
405#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
406 _res = (modelica_boolean)_res_ext;
407#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
408 return _res;
409#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
410}
411#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
412modelica_metatype boxptr_GC_getForceUnmapOnGcollect(threadData_t *threadData)
413#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
414{
415#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
416 modelica_boolean _res;
417#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
418 modelica_metatype out_res;
419#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
420 _res = omc_GC_getForceUnmapOnGcollect(threadData);
421#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
422 out_res = mmc_mk_icon(_res);
423#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
424 return out_res;
425#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
426}
427#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
428
429#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
430void omc_GC_setFreeSpaceDivisor(threadData_t *threadData, modelica_integer _divisor)
431#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
432{
433#line 83 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
434 int _divisor_ext;
435#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
436 _divisor_ext = (int)_divisor;
437#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
438 GC_set_free_space_divisor(_divisor_ext);
439#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
440 return;
441#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
442}
443#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
444void boxptr_GC_setFreeSpaceDivisor(threadData_t *threadData, modelica_metatype _divisor)
445#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
446{
447#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
448 modelica_integer tmp1;
449#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
450 tmp1 = mmc_unbox_integer(_divisor)(((mmc_sint_t) (_divisor)) >> 1);
451#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
452 omc_GC_setFreeSpaceDivisor(threadData, tmp1);
453#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
454 return;
455#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
456}
457#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
458
459#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
460modelica_boolean omc_GC_expandHeap(threadData_t *threadData, modelica_real _sz)
461#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
462{
463#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
464 double _sz_ext;
465#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
466 int _success_ext;
467#line 76 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
468 modelica_boolean _success;
469#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
470 // _success has no default value.
471#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
472 _sz_ext = (double)_sz;
473#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
474 _success_ext = GC_expand_hp_dbl(_sz_ext)GC_expand_hp(_sz_ext);
475#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
476 _success = (modelica_boolean)_success_ext;
477#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
478 return _success;
479#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
480}
481#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
482modelica_metatype boxptr_GC_expandHeap(threadData_t *threadData, modelica_metatype _sz)
483#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
484{
485#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
486 modelica_real tmp1;
487#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
488 modelica_boolean _success;
489#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
490 modelica_metatype out_success;
491#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
492 tmp1 = mmc_unbox_real(_sz)mmc_prim_get_real(_sz);
493#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
494 _success = omc_GC_expandHeap(threadData, tmp1);
495#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
496 out_success = mmc_mk_icon(_success);
497#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
498 return out_success;
499#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
500}
501#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
502
503#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
504void omc_GC_free(threadData_t *threadData, modelica_metatype _data)
505#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
506{
507#line 70 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
508 modelica_metatype _data_ext;
509#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
510 _data_ext = (modelica_metatype)_data;
511#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
512 omc_GC_free_ext(_data_ext);
513#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
514 return;
515#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
516}
517#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
518
519#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
520void omc_GC_disable(threadData_t *threadData)
521#line 50 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
522{
523#line 46 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
524 GC_disable();
525#line 46 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
526 return;
527#line 46 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
528}
529#line 46 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
530
531#line 46 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
532void omc_GC_enable(threadData_t *threadData)
533#line 46 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
534{
535#line 42 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
536 GC_enable();
537#line 42 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
538 return;
539#line 42 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
540}
541#line 42 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
542
543#line 42 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
544void omc_GC_gcollectAndUnmap(threadData_t *threadData)
545#line 42 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
546{
547#line 38 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
548 GC_gcollect_and_unmap();
549#line 38 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
550 return;
551#line 38 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
552}
553#line 38 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
554
555#line 38 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
556void omc_GC_gcollect(threadData_t *threadData)
557#line 38 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
558{
559#line 34 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
560 GC_gcollect();
561#line 34 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
562 return;
563#line 34 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
564}
565#line 34 "/var/lib/jenkins1/ws/ins.slow_JKRT-OMSens-minor-fixes/OMCompiler/Compiler/Util/GC.mo"
566