heap_4.c.077i.pure-const 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428
  1. local analysis of vPortGetHeapStats
  2. scanning: vTaskSuspendAll ();
  3. scanning: pxBlock_17 = xStart.pxNextFreeBlock;
  4. scanning: if (pxBlock_17 != 0B)
  5. scanning: xBlocks_18 = xBlocks_9 + 1;
  6. scanning: _1 = pxBlock_8->xBlockSize;
  7. Indirect ref read is not const
  8. scanning: xMaxSize_2 = MAX_EXPR <_1, xMaxSize_11>;
  9. scanning: xMinSize_19 = MIN_EXPR <_1, xMinSize_13>;
  10. scanning: pxBlock_20 = pxBlock_8->pxNextFreeBlock;
  11. Indirect ref read is not const
  12. scanning: pxEnd.26_3 = pxEnd;
  13. scanning: if (pxEnd.26_3 != pxBlock_20)
  14. scanning: xTaskResumeAll ();
  15. scanning: pxHeapStats_22(D)->xSizeOfLargestFreeBlockInBytes = xMaxSize_12;
  16. Indirect ref write is not const/pure
  17. scanning: pxHeapStats_22(D)->xSizeOfSmallestFreeBlockInBytes = xMinSize_14;
  18. Indirect ref write is not const/pure
  19. scanning: pxHeapStats_22(D)->xNumberOfFreeBlocks = xBlocks_10;
  20. Indirect ref write is not const/pure
  21. scanning: vPortEnterCritical ();
  22. scanning: xFreeBytesRemaining.27_4 = xFreeBytesRemaining;
  23. scanning: pxHeapStats_22(D)->xAvailableHeapSpaceInBytes = xFreeBytesRemaining.27_4;
  24. Indirect ref write is not const/pure
  25. scanning: xNumberOfSuccessfulAllocations.28_5 = xNumberOfSuccessfulAllocations;
  26. scanning: pxHeapStats_22(D)->xNumberOfSuccessfulAllocations = xNumberOfSuccessfulAllocations.28_5;
  27. Indirect ref write is not const/pure
  28. scanning: xNumberOfSuccessfulFrees.29_6 = xNumberOfSuccessfulFrees;
  29. scanning: pxHeapStats_22(D)->xNumberOfSuccessfulFrees = xNumberOfSuccessfulFrees.29_6;
  30. Indirect ref write is not const/pure
  31. scanning: xMinimumEverFreeBytesRemaining.30_7 = xMinimumEverFreeBytesRemaining;
  32. scanning: pxHeapStats_22(D)->xMinimumEverFreeBytesRemaining = xMinimumEverFreeBytesRemaining.30_7;
  33. Indirect ref write is not const/pure
  34. scanning: vPortExitCritical ();
  35. scanning: return;
  36. local analysis of prvInsertBlockIntoFreeList
  37. scanning: _1 = pxIterator_14->pxNextFreeBlock;
  38. Indirect ref read is not const
  39. scanning: if (_1 < pxBlockToInsert_19(D))
  40. scanning: _2 = pxIterator_4->xBlockSize;
  41. Indirect ref read is not const
  42. scanning: _3 = pxIterator_4 + _2;
  43. scanning: if (_3 == pxBlockToInsert_19(D))
  44. scanning: _5 = pxBlockToInsert_19(D)->xBlockSize;
  45. Indirect ref read is not const
  46. scanning: _6 = _2 + _5;
  47. scanning: pxIterator_4->xBlockSize = _6;
  48. Indirect ref write is not const/pure
  49. scanning: _7 = pxBlockToInsert_13->xBlockSize;
  50. Indirect ref read is not const
  51. scanning: _8 = pxBlockToInsert_13 + _7;
  52. scanning: if (_8 == _20)
  53. scanning: pxEnd.19_9 = pxEnd;
  54. scanning: if (pxEnd.19_9 != _20)
  55. scanning: _10 = _20->xBlockSize;
  56. Indirect ref read is not const
  57. scanning: _11 = _7 + _10;
  58. scanning: pxBlockToInsert_13->xBlockSize = _11;
  59. Indirect ref write is not const/pure
  60. scanning: _12 = _20->pxNextFreeBlock;
  61. Indirect ref read is not const
  62. scanning: pxBlockToInsert_13->pxNextFreeBlock = _12;
  63. Indirect ref write is not const/pure
  64. scanning: pxBlockToInsert_13->pxNextFreeBlock = pxEnd.19_9;
  65. Indirect ref write is not const/pure
  66. scanning: pxBlockToInsert_13->pxNextFreeBlock = _20;
  67. Indirect ref write is not const/pure
  68. scanning: if (pxIterator_4 != pxBlockToInsert_13)
  69. scanning: pxIterator_4->pxNextFreeBlock = pxBlockToInsert_13;
  70. Indirect ref write is not const/pure
  71. scanning: return;
  72. local analysis of prvHeapInit
  73. scanning: uxAddress_7 = (size_t) &ucHeap;
  74. scanning: _1 = uxAddress_7 & 7;
  75. scanning: if (_1 != 0)
  76. scanning: uxAddress_8 = uxAddress_7 + 7;
  77. scanning: uxAddress_9 = uxAddress_8 & 4294967288;
  78. scanning: _2 = 8192 - uxAddress_9;
  79. scanning: xTotalHeapSize_10 = _2 + uxAddress_7;
  80. scanning: pucAlignedHeap_11 = (uint8_t *) uxAddress_5;
  81. scanning: xStart.pxNextFreeBlock = pucAlignedHeap_11;
  82. scanning: xStart.xBlockSize = 0;
  83. scanning: uxAddress_15 = uxAddress_5 + xTotalHeapSize_6;
  84. scanning: uxAddress_16 = uxAddress_15 + 4294967288;
  85. scanning: uxAddress_17 = uxAddress_16 & 4294967288;
  86. scanning: uxAddress.14_3 = (struct BlockLink_t *) uxAddress_17;
  87. scanning: pxEnd = uxAddress.14_3;
  88. scanning: uxAddress.14_3->xBlockSize = 0;
  89. Indirect ref write is not const/pure
  90. scanning: uxAddress.14_3->pxNextFreeBlock = 0B;
  91. Indirect ref write is not const/pure
  92. scanning: _4 = uxAddress_17 - uxAddress_5;
  93. scanning: MEM[(struct BlockLink_t *)pucAlignedHeap_11].xBlockSize = _4;
  94. Indirect ref write is not const/pure
  95. scanning: MEM[(struct BlockLink_t *)pucAlignedHeap_11].pxNextFreeBlock = uxAddress.14_3;
  96. Indirect ref write is not const/pure
  97. scanning: xMinimumEverFreeBytesRemaining = _4;
  98. scanning: xFreeBytesRemaining = _4;
  99. scanning: xBlockAllocatedBit = 2147483648;
  100. scanning: return;
  101. local analysis of vPortInitialiseBlocks
  102. scanning: return;
  103. Function is locally const.
  104. local analysis of xPortGetMinimumEverFreeHeapSize
  105. scanning: _2 = xMinimumEverFreeBytesRemaining;
  106. scanning: return _2;
  107. Function is locally const.
  108. local analysis of xPortGetFreeHeapSize
  109. scanning: _2 = xFreeBytesRemaining;
  110. scanning: return _2;
  111. Function is locally const.
  112. local analysis of vPortFree
  113. scanning: if (pv_13(D) != 0B)
  114. scanning: puc_15 = pv_13(D) + 4294967288;
  115. scanning: _1 = MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].xBlockSize;
  116. Indirect ref read is not const
  117. scanning: xBlockAllocatedBit.21_2 = xBlockAllocatedBit;
  118. scanning: _3 = _1 & xBlockAllocatedBit.21_2;
  119. scanning: if (_3 == 0)
  120. scanning: __asm__ __volatile__(" mov %0, %1
  121. msr basepri, %0
  122. isb
  123. dsb
  124. " : "=r" ulNewBASEPRI_22 : "i" 16 : "memory");
  125. memory asm clobber is not const/pure
  126. volatile is not const/pure
  127. scanning: _4 = MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].pxNextFreeBlock;
  128. Indirect ref read is not const
  129. scanning: if (_4 != 0B)
  130. scanning: __asm__ __volatile__(" mov %0, %1
  131. msr basepri, %0
  132. isb
  133. dsb
  134. " : "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
  135. memory asm clobber is not const/pure
  136. volatile is not const/pure
  137. scanning: _5 = ~xBlockAllocatedBit.21_2;
  138. scanning: _6 = _1 & _5;
  139. scanning: MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].xBlockSize = _6;
  140. Indirect ref write is not const/pure
  141. scanning: vTaskSuspendAll ();
  142. scanning: _7 = MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].xBlockSize;
  143. Indirect ref read is not const
  144. scanning: xFreeBytesRemaining.24_8 = xFreeBytesRemaining;
  145. scanning: _9 = _7 + xFreeBytesRemaining.24_8;
  146. scanning: xFreeBytesRemaining = _9;
  147. scanning: prvInsertBlockIntoFreeList (puc_15);
  148. scanning: xNumberOfSuccessfulFrees.25_10 = xNumberOfSuccessfulFrees;
  149. scanning: _11 = xNumberOfSuccessfulFrees.25_10 + 1;
  150. scanning: xNumberOfSuccessfulFrees = _11;
  151. scanning: xTaskResumeAll ();
  152. scanning: return;
  153. Function is locally looping.
  154. Function can locally free.
  155. local analysis of pvPortMalloc
  156. scanning: vTaskSuspendAll ();
  157. scanning: pxEnd.0_1 = pxEnd;
  158. scanning: if (pxEnd.0_1 == 0B)
  159. scanning: prvHeapInit ();
  160. scanning: xBlockAllocatedBit.1_2 = xBlockAllocatedBit;
  161. scanning: _3 = xBlockAllocatedBit.1_2 & xWantedSize_39(D);
  162. scanning: if (_3 == 0)
  163. scanning: _4 = xWantedSize_39(D) + 4294967295;
  164. scanning: if (_4 <= 4294967286)
  165. scanning: xWantedSize_40 = xWantedSize_39(D) + 8;
  166. scanning: _5 = xWantedSize_40 & 7;
  167. scanning: if (_5 != 0)
  168. scanning: _6 = xWantedSize_40 & 4294967288;
  169. scanning: _7 = _6 + 8;
  170. scanning: if (_7 > xWantedSize_40)
  171. scanning: if (xWantedSize_28 != 0)
  172. scanning: xFreeBytesRemaining.2_9 = xFreeBytesRemaining;
  173. scanning: if (xFreeBytesRemaining.2_9 >= xWantedSize_28)
  174. scanning: pxBlock_41 = xStart.pxNextFreeBlock;
  175. scanning: _10 = pxBlock_29->xBlockSize;
  176. Indirect ref read is not const
  177. scanning: if (_10 < xWantedSize_28)
  178. scanning: _11 = pxBlock_29->pxNextFreeBlock;
  179. Indirect ref read is not const
  180. scanning: if (_11 != 0B)
  181. scanning: pxEnd.3_12 = pxEnd;
  182. scanning: if (pxEnd.3_12 != pxBlock_54)
  183. scanning: _13 = pxPreviousBlock_8->pxNextFreeBlock;
  184. Indirect ref read is not const
  185. scanning: pvReturn_42 = _13 + 8;
  186. scanning: _14 = pxBlock_54->pxNextFreeBlock;
  187. Indirect ref read is not const
  188. scanning: pxPreviousBlock_8->pxNextFreeBlock = _14;
  189. Indirect ref write is not const/pure
  190. scanning: _15 = _57 - xWantedSize_28;
  191. scanning: if (_15 > 16)
  192. scanning: pxNewBlockLink_44 = pxBlock_54 + xWantedSize_28;
  193. scanning: pxNewBlockLink.4_16 = (unsigned int) pxNewBlockLink_44;
  194. scanning: _17 = pxNewBlockLink.4_16 & 7;
  195. scanning: if (_17 != 0)
  196. scanning: __asm__ __volatile__(" mov %0, %1
  197. msr basepri, %0
  198. isb
  199. dsb
  200. " : "=r" ulNewBASEPRI_55 : "i" 16 : "memory");
  201. memory asm clobber is not const/pure
  202. volatile is not const/pure
  203. scanning: pxNewBlockLink_44->xBlockSize = _15;
  204. Indirect ref write is not const/pure
  205. scanning: pxBlock_54->xBlockSize = xWantedSize_28;
  206. Indirect ref write is not const/pure
  207. scanning: prvInsertBlockIntoFreeList (pxNewBlockLink_44);
  208. scanning: xFreeBytesRemaining.5_18 = xFreeBytesRemaining;
  209. scanning: _19 = pxBlock_54->xBlockSize;
  210. Indirect ref read is not const
  211. scanning: _20 = xFreeBytesRemaining.5_18 - _19;
  212. scanning: xFreeBytesRemaining = _20;
  213. scanning: xMinimumEverFreeBytesRemaining.7_21 = xMinimumEverFreeBytesRemaining;
  214. scanning: if (_20 < xMinimumEverFreeBytesRemaining.7_21)
  215. scanning: xMinimumEverFreeBytesRemaining = _20;
  216. scanning: xBlockAllocatedBit.9_22 = xBlockAllocatedBit;
  217. scanning: _23 = _19 | xBlockAllocatedBit.9_22;
  218. scanning: pxBlock_54->xBlockSize = _23;
  219. Indirect ref write is not const/pure
  220. scanning: pxBlock_54->pxNextFreeBlock = 0B;
  221. Indirect ref write is not const/pure
  222. scanning: xNumberOfSuccessfulAllocations.10_24 = xNumberOfSuccessfulAllocations;
  223. scanning: _25 = xNumberOfSuccessfulAllocations.10_24 + 1;
  224. scanning: xNumberOfSuccessfulAllocations = _25;
  225. scanning: xTaskResumeAll ();
  226. scanning: pvReturn.11_26 = (unsigned int) pvReturn_31;
  227. scanning: _27 = pvReturn.11_26 & 7;
  228. scanning: if (_27 != 0)
  229. scanning: __asm__ __volatile__(" mov %0, %1
  230. msr basepri, %0
  231. isb
  232. dsb
  233. " : "=r" ulNewBASEPRI_56 : "i" 16 : "memory");
  234. memory asm clobber is not const/pure
  235. volatile is not const/pure
  236. scanning: return pvReturn_31;
  237. Function is locally looping.
  238. Function can locally free.
  239. callgraph:
  240. vPortExitCritical/24 (vPortExitCritical) @06ad4e00
  241. Type: function
  242. Visibility: external public
  243. References:
  244. Referring:
  245. Availability: not_available
  246. Function flags: optimize_size
  247. Called by: vPortGetHeapStats/20 (168730858 (estimated locally),1.00 per call)
  248. Calls:
  249. vPortEnterCritical/23 (vPortEnterCritical) @06ad4c40
  250. Type: function
  251. Visibility: external public
  252. References:
  253. Referring:
  254. Availability: not_available
  255. Function flags: optimize_size
  256. Called by: vPortGetHeapStats/20 (168730858 (estimated locally),1.00 per call)
  257. Calls:
  258. xTaskResumeAll/22 (xTaskResumeAll) @06ad42a0
  259. Type: function
  260. Visibility: external public
  261. References:
  262. Referring:
  263. Availability: not_available
  264. Function flags: optimize_size
  265. Called by: vPortGetHeapStats/20 (168730858 (estimated locally),1.00 per call) vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (214748 (estimated locally),0.93 per call)
  266. Calls:
  267. vTaskSuspendAll/21 (vTaskSuspendAll) @06ad40e0
  268. Type: function
  269. Visibility: external public
  270. References:
  271. Referring:
  272. Availability: not_available
  273. Function flags: optimize_size
  274. Called by: vPortGetHeapStats/20 (168730857 (estimated locally),1.00 per call) vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (231566 (estimated locally),1.00 per call)
  275. Calls:
  276. vPortGetHeapStats/20 (vPortGetHeapStats) @06ac60e0
  277. Type: function definition analyzed
  278. Visibility: externally_visible public
  279. Aux: @04b945b0
  280. References: xStart/6 (read)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulFrees/11 (read)xMinimumEverFreeBytesRemaining/9 (read)
  281. Referring:
  282. Availability: available
  283. Function flags: count:168730857 (estimated locally) body optimize_size
  284. Called by:
  285. Calls: vPortExitCritical/24 (168730858 (estimated locally),1.00 per call) vPortEnterCritical/23 (168730858 (estimated locally),1.00 per call) xTaskResumeAll/22 (168730858 (estimated locally),1.00 per call) vTaskSuspendAll/21 (168730857 (estimated locally),1.00 per call)
  286. prvInsertBlockIntoFreeList/19 (prvInsertBlockIntoFreeList) @06ac6d20
  287. Type: function definition analyzed
  288. Visibility: prevailing_def_ironly
  289. Aux: @04b94610
  290. References: xStart/6 (addr)pxEnd/7 (read)
  291. Referring:
  292. Availability: local
  293. Function flags: count:118111600 (estimated locally) body local optimize_size
  294. Called by: vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (8283 (estimated locally),0.04 per call)
  295. Calls:
  296. prvHeapInit/18 (prvHeapInit) @06ac6a80
  297. Type: function definition analyzed
  298. Visibility: prevailing_def_ironly
  299. Aux: @04b94630
  300. References: ucHeap/4 (addr)xStart/6 (write)xStart/6 (write)pxEnd/7 (write)xMinimumEverFreeBytesRemaining/9 (write)xFreeBytesRemaining/8 (write)xBlockAllocatedBit/12 (write)
  301. Referring:
  302. Function prvHeapInit/18 is inline copy in pvPortMalloc/13
  303. Availability: local
  304. Function flags: count:40362 (estimated locally) body local optimize_size
  305. Called by: pvPortMalloc/13 (inlined) (40362 (estimated locally),0.17 per call)
  306. Calls:
  307. vPortInitialiseBlocks/17 (vPortInitialiseBlocks) @06ac67e0
  308. Type: function definition analyzed
  309. Visibility: externally_visible public
  310. Aux: @04b946d0
  311. References:
  312. Referring:
  313. Availability: available
  314. Function flags: count:1073741824 (estimated locally) body optimize_size
  315. Called by:
  316. Calls:
  317. xPortGetMinimumEverFreeHeapSize/16 (xPortGetMinimumEverFreeHeapSize) @06ac6540
  318. Type: function definition analyzed
  319. Visibility: externally_visible public
  320. Aux: @04b944d0
  321. References: xMinimumEverFreeBytesRemaining/9 (read)
  322. Referring:
  323. Availability: available
  324. Function flags: count:1073741824 (estimated locally) body optimize_size
  325. Called by:
  326. Calls:
  327. xPortGetFreeHeapSize/15 (xPortGetFreeHeapSize) @06ac62a0
  328. Type: function definition analyzed
  329. Visibility: externally_visible public
  330. Aux: @04b94430
  331. References: xFreeBytesRemaining/8 (read)
  332. Referring:
  333. Availability: available
  334. Function flags: count:1073741824 (estimated locally) body optimize_size
  335. Called by:
  336. Calls:
  337. vPortFree/14 (vPortFree) @06ac6000
  338. Type: function definition analyzed
  339. Visibility: externally_visible public
  340. Aux: @04b946f0
  341. References: xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xNumberOfSuccessfulFrees/11 (read)xNumberOfSuccessfulFrees/11 (write)
  342. Referring:
  343. Availability: available
  344. Function flags: count:306783 (estimated locally) body optimize_size
  345. Called by:
  346. Calls: xTaskResumeAll/22 (18715 (estimated locally),0.06 per call) prvInsertBlockIntoFreeList/19 (18715 (estimated locally),0.06 per call) vTaskSuspendAll/21 (18715 (estimated locally),0.06 per call)
  347. pvPortMalloc/13 (pvPortMalloc) @06abeee0
  348. Type: function definition analyzed
  349. Visibility: externally_visible public
  350. Aux: @04b94370
  351. References: pxEnd/7 (read)xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xStart/6 (read)xStart/6 (addr)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xMinimumEverFreeBytesRemaining/9 (read)xMinimumEverFreeBytesRemaining/9 (write)xBlockAllocatedBit/12 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulAllocations/10 (write)
  352. Referring:
  353. Availability: available
  354. Function flags: count:231566 (estimated locally) body optimize_size
  355. Called by:
  356. Calls: xTaskResumeAll/22 (214748 (estimated locally),0.93 per call) prvInsertBlockIntoFreeList/19 (8283 (estimated locally),0.04 per call) prvHeapInit/18 (inlined) (40362 (estimated locally),0.17 per call) vTaskSuspendAll/21 (231566 (estimated locally),1.00 per call)
  357. ordered call graph: reduced for nothrow
  358. vPortGetHeapStats/20 (vPortGetHeapStats) @06ac60e0
  359. Type: function definition analyzed
  360. Visibility: externally_visible public
  361. Aux: @04b945b0
  362. References: xStart/6 (read)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulFrees/11 (read)xMinimumEverFreeBytesRemaining/9 (read)
  363. Referring:
  364. Availability: available
  365. Function flags: count:168730857 (estimated locally) body optimize_size
  366. Called by:
  367. Calls: vPortExitCritical/24 (168730858 (estimated locally),1.00 per call) vPortEnterCritical/23 (168730858 (estimated locally),1.00 per call) xTaskResumeAll/22 (168730858 (estimated locally),1.00 per call) vTaskSuspendAll/21 (168730857 (estimated locally),1.00 per call)
  368. prvInsertBlockIntoFreeList/19 (prvInsertBlockIntoFreeList) @06ac6d20
  369. Type: function definition analyzed
  370. Visibility: prevailing_def_ironly
  371. Aux: @04b94610
  372. References: xStart/6 (addr)pxEnd/7 (read)
  373. Referring:
  374. Availability: local
  375. Function flags: count:118111600 (estimated locally) body local optimize_size
  376. Called by: vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (8283 (estimated locally),0.04 per call)
  377. Calls:
  378. prvHeapInit/18 (prvHeapInit) @06ac6a80
  379. Type: function definition analyzed
  380. Visibility: prevailing_def_ironly
  381. Aux: @04b94630
  382. References: ucHeap/4 (addr)xStart/6 (write)xStart/6 (write)pxEnd/7 (write)xMinimumEverFreeBytesRemaining/9 (write)xFreeBytesRemaining/8 (write)xBlockAllocatedBit/12 (write)
  383. Referring:
  384. Function prvHeapInit/18 is inline copy in pvPortMalloc/13
  385. Availability: local
  386. Function flags: count:40362 (estimated locally) body local optimize_size
  387. Called by: pvPortMalloc/13 (inlined) (40362 (estimated locally),0.17 per call)
  388. Calls:
  389. vPortInitialiseBlocks/17 (vPortInitialiseBlocks) @06ac67e0
  390. Type: function definition analyzed
  391. Visibility: externally_visible public
  392. Aux: @04b946d0
  393. References:
  394. Referring:
  395. Availability: available
  396. Function flags: count:1073741824 (estimated locally) body optimize_size
  397. Called by:
  398. Calls:
  399. xPortGetMinimumEverFreeHeapSize/16 (xPortGetMinimumEverFreeHeapSize) @06ac6540
  400. Type: function definition analyzed
  401. Visibility: externally_visible public
  402. Aux: @04b944d0
  403. References: xMinimumEverFreeBytesRemaining/9 (read)
  404. Referring:
  405. Availability: available
  406. Function flags: count:1073741824 (estimated locally) body optimize_size
  407. Called by:
  408. Calls:
  409. xPortGetFreeHeapSize/15 (xPortGetFreeHeapSize) @06ac62a0
  410. Type: function definition analyzed
  411. Visibility: externally_visible public
  412. Aux: @04b94430
  413. References: xFreeBytesRemaining/8 (read)
  414. Referring:
  415. Availability: available
  416. Function flags: count:1073741824 (estimated locally) body optimize_size
  417. Called by:
  418. Calls:
  419. vPortFree/14 (vPortFree) @06ac6000
  420. Type: function definition analyzed
  421. Visibility: externally_visible public
  422. Aux: @04b946f0
  423. References: xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xNumberOfSuccessfulFrees/11 (read)xNumberOfSuccessfulFrees/11 (write)
  424. Referring:
  425. Availability: available
  426. Function flags: count:306783 (estimated locally) body optimize_size
  427. Called by:
  428. Calls: xTaskResumeAll/22 (18715 (estimated locally),0.06 per call) prvInsertBlockIntoFreeList/19 (18715 (estimated locally),0.06 per call) vTaskSuspendAll/21 (18715 (estimated locally),0.06 per call)
  429. pvPortMalloc/13 (pvPortMalloc) @06abeee0
  430. Type: function definition analyzed
  431. Visibility: externally_visible public
  432. Aux: @04b94370
  433. References: pxEnd/7 (read)xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xStart/6 (read)xStart/6 (addr)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xMinimumEverFreeBytesRemaining/9 (read)xMinimumEverFreeBytesRemaining/9 (write)xBlockAllocatedBit/12 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulAllocations/10 (write)
  434. Referring:
  435. Availability: available
  436. Function flags: count:231566 (estimated locally) body optimize_size
  437. Called by:
  438. Calls: xTaskResumeAll/22 (214748 (estimated locally),0.93 per call) prvInsertBlockIntoFreeList/19 (8283 (estimated locally),0.04 per call) prvHeapInit/18 (inlined) (40362 (estimated locally),0.17 per call) vTaskSuspendAll/21 (231566 (estimated locally),1.00 per call)
  439. MALLOC LATTICE Initial:
  440. vPortGetHeapStats: malloc_bottom
  441. prvInsertBlockIntoFreeList: malloc_bottom
  442. prvHeapInit: malloc_bottom
  443. vPortInitialiseBlocks: malloc_bottom
  444. xPortGetMinimumEverFreeHeapSize: malloc_bottom
  445. xPortGetFreeHeapSize: malloc_bottom
  446. vPortFree: malloc_bottom
  447. pvPortMalloc: malloc_bottom
  448. MALLOC LATTICE after propagation:
  449. vPortGetHeapStats: malloc_bottom
  450. prvInsertBlockIntoFreeList: malloc_bottom
  451. prvHeapInit: malloc_bottom
  452. vPortInitialiseBlocks: malloc_bottom
  453. xPortGetMinimumEverFreeHeapSize: malloc_bottom
  454. xPortGetFreeHeapSize: malloc_bottom
  455. vPortFree: malloc_bottom
  456. pvPortMalloc: malloc_bottom
  457. callgraph:
  458. vPortExitCritical/24 (vPortExitCritical) @06ad4e00
  459. Type: function
  460. Visibility: external public
  461. References:
  462. Referring:
  463. Availability: not_available
  464. Function flags: optimize_size
  465. Called by: vPortGetHeapStats/20 (168730858 (estimated locally),1.00 per call)
  466. Calls:
  467. vPortEnterCritical/23 (vPortEnterCritical) @06ad4c40
  468. Type: function
  469. Visibility: external public
  470. References:
  471. Referring:
  472. Availability: not_available
  473. Function flags: optimize_size
  474. Called by: vPortGetHeapStats/20 (168730858 (estimated locally),1.00 per call)
  475. Calls:
  476. xTaskResumeAll/22 (xTaskResumeAll) @06ad42a0
  477. Type: function
  478. Visibility: external public
  479. References:
  480. Referring:
  481. Availability: not_available
  482. Function flags: optimize_size
  483. Called by: vPortGetHeapStats/20 (168730858 (estimated locally),1.00 per call) vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (214748 (estimated locally),0.93 per call)
  484. Calls:
  485. vTaskSuspendAll/21 (vTaskSuspendAll) @06ad40e0
  486. Type: function
  487. Visibility: external public
  488. References:
  489. Referring:
  490. Availability: not_available
  491. Function flags: optimize_size
  492. Called by: vPortGetHeapStats/20 (168730857 (estimated locally),1.00 per call) vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (231566 (estimated locally),1.00 per call)
  493. Calls:
  494. vPortGetHeapStats/20 (vPortGetHeapStats) @06ac60e0
  495. Type: function definition analyzed
  496. Visibility: externally_visible public
  497. Aux: @04b945b0
  498. References: xStart/6 (read)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulFrees/11 (read)xMinimumEverFreeBytesRemaining/9 (read)
  499. Referring:
  500. Availability: available
  501. Function flags: count:168730857 (estimated locally) body optimize_size
  502. Called by:
  503. Calls: vPortExitCritical/24 (168730858 (estimated locally),1.00 per call) vPortEnterCritical/23 (168730858 (estimated locally),1.00 per call) xTaskResumeAll/22 (168730858 (estimated locally),1.00 per call) vTaskSuspendAll/21 (168730857 (estimated locally),1.00 per call)
  504. prvInsertBlockIntoFreeList/19 (prvInsertBlockIntoFreeList) @06ac6d20
  505. Type: function definition analyzed
  506. Visibility: prevailing_def_ironly
  507. Aux: @04b946d0
  508. References: xStart/6 (addr)pxEnd/7 (read)
  509. Referring:
  510. Availability: local
  511. Function flags: count:118111600 (estimated locally) body local optimize_size
  512. Called by: vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (8283 (estimated locally),0.04 per call)
  513. Calls:
  514. prvHeapInit/18 (prvHeapInit) @06ac6a80
  515. Type: function definition analyzed
  516. Visibility: prevailing_def_ironly
  517. Aux: @04b94370
  518. References: ucHeap/4 (addr)xStart/6 (write)xStart/6 (write)pxEnd/7 (write)xMinimumEverFreeBytesRemaining/9 (write)xFreeBytesRemaining/8 (write)xBlockAllocatedBit/12 (write)
  519. Referring:
  520. Function prvHeapInit/18 is inline copy in pvPortMalloc/13
  521. Availability: local
  522. Function flags: count:40362 (estimated locally) body local optimize_size
  523. Called by: pvPortMalloc/13 (inlined) (40362 (estimated locally),0.17 per call)
  524. Calls:
  525. vPortInitialiseBlocks/17 (vPortInitialiseBlocks) @06ac67e0
  526. Type: function definition analyzed
  527. Visibility: externally_visible public
  528. Aux: @04b94610
  529. References:
  530. Referring:
  531. Availability: available
  532. Function flags: count:1073741824 (estimated locally) body optimize_size
  533. Called by:
  534. Calls:
  535. xPortGetMinimumEverFreeHeapSize/16 (xPortGetMinimumEverFreeHeapSize) @06ac6540
  536. Type: function definition analyzed
  537. Visibility: externally_visible public
  538. Aux: @04b94430
  539. References: xMinimumEverFreeBytesRemaining/9 (read)
  540. Referring:
  541. Availability: available
  542. Function flags: count:1073741824 (estimated locally) body optimize_size
  543. Called by:
  544. Calls:
  545. xPortGetFreeHeapSize/15 (xPortGetFreeHeapSize) @06ac62a0
  546. Type: function definition analyzed
  547. Visibility: externally_visible public
  548. Aux: @04b94630
  549. References: xFreeBytesRemaining/8 (read)
  550. Referring:
  551. Availability: available
  552. Function flags: count:1073741824 (estimated locally) body optimize_size
  553. Called by:
  554. Calls:
  555. vPortFree/14 (vPortFree) @06ac6000
  556. Type: function definition analyzed
  557. Visibility: externally_visible public
  558. Aux: @04b946f0
  559. References: xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xNumberOfSuccessfulFrees/11 (read)xNumberOfSuccessfulFrees/11 (write)
  560. Referring:
  561. Availability: available
  562. Function flags: count:306783 (estimated locally) body optimize_size
  563. Called by:
  564. Calls: xTaskResumeAll/22 (18715 (estimated locally),0.06 per call) prvInsertBlockIntoFreeList/19 (18715 (estimated locally),0.06 per call) vTaskSuspendAll/21 (18715 (estimated locally),0.06 per call)
  565. pvPortMalloc/13 (pvPortMalloc) @06abeee0
  566. Type: function definition analyzed
  567. Visibility: externally_visible public
  568. Aux: @04b94490
  569. References: pxEnd/7 (read)xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xStart/6 (read)xStart/6 (addr)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xMinimumEverFreeBytesRemaining/9 (read)xMinimumEverFreeBytesRemaining/9 (write)xBlockAllocatedBit/12 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulAllocations/10 (write)
  570. Referring:
  571. Availability: available
  572. Function flags: count:231566 (estimated locally) body optimize_size
  573. Called by:
  574. Calls: xTaskResumeAll/22 (214748 (estimated locally),0.93 per call) prvInsertBlockIntoFreeList/19 (8283 (estimated locally),0.04 per call) prvHeapInit/18 (inlined) (40362 (estimated locally),0.17 per call) vTaskSuspendAll/21 (231566 (estimated locally),1.00 per call)
  575. ordered call graph: reduced
  576. vPortGetHeapStats/20 (vPortGetHeapStats) @06ac60e0
  577. Type: function definition analyzed
  578. Visibility: externally_visible public
  579. Aux: @04b945b0
  580. References: xStart/6 (read)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulFrees/11 (read)xMinimumEverFreeBytesRemaining/9 (read)
  581. Referring:
  582. Availability: available
  583. Function flags: count:168730857 (estimated locally) body optimize_size
  584. Called by:
  585. Calls: vPortExitCritical/24 (168730858 (estimated locally),1.00 per call) vPortEnterCritical/23 (168730858 (estimated locally),1.00 per call) xTaskResumeAll/22 (168730858 (estimated locally),1.00 per call) vTaskSuspendAll/21 (168730857 (estimated locally),1.00 per call)
  586. vPortInitialiseBlocks/17 (vPortInitialiseBlocks) @06ac67e0
  587. Type: function definition analyzed
  588. Visibility: externally_visible public
  589. Aux: @04b94610
  590. References:
  591. Referring:
  592. Availability: available
  593. Function flags: count:1073741824 (estimated locally) body optimize_size
  594. Called by:
  595. Calls:
  596. xPortGetMinimumEverFreeHeapSize/16 (xPortGetMinimumEverFreeHeapSize) @06ac6540
  597. Type: function definition analyzed
  598. Visibility: externally_visible public
  599. Aux: @04b94430
  600. References: xMinimumEverFreeBytesRemaining/9 (read)
  601. Referring:
  602. Availability: available
  603. Function flags: count:1073741824 (estimated locally) body optimize_size
  604. Called by:
  605. Calls:
  606. xPortGetFreeHeapSize/15 (xPortGetFreeHeapSize) @06ac62a0
  607. Type: function definition analyzed
  608. Visibility: externally_visible public
  609. Aux: @04b94630
  610. References: xFreeBytesRemaining/8 (read)
  611. Referring:
  612. Availability: available
  613. Function flags: count:1073741824 (estimated locally) body optimize_size
  614. Called by:
  615. Calls:
  616. vPortFree/14 (vPortFree) @06ac6000
  617. Type: function definition analyzed
  618. Visibility: externally_visible public
  619. Aux: @04b946f0
  620. References: xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xNumberOfSuccessfulFrees/11 (read)xNumberOfSuccessfulFrees/11 (write)
  621. Referring:
  622. Availability: available
  623. Function flags: count:306783 (estimated locally) body optimize_size
  624. Called by:
  625. Calls: xTaskResumeAll/22 (18715 (estimated locally),0.06 per call) prvInsertBlockIntoFreeList/19 (18715 (estimated locally),0.06 per call) vTaskSuspendAll/21 (18715 (estimated locally),0.06 per call)
  626. pvPortMalloc/13 (pvPortMalloc) @06abeee0
  627. Type: function definition analyzed
  628. Visibility: externally_visible public
  629. Aux: @04b94490
  630. References: pxEnd/7 (read)xBlockAllocatedBit/12 (read)xFreeBytesRemaining/8 (read)xStart/6 (read)xStart/6 (addr)pxEnd/7 (read)xFreeBytesRemaining/8 (read)xFreeBytesRemaining/8 (write)xMinimumEverFreeBytesRemaining/9 (read)xMinimumEverFreeBytesRemaining/9 (write)xBlockAllocatedBit/12 (read)xNumberOfSuccessfulAllocations/10 (read)xNumberOfSuccessfulAllocations/10 (write)
  631. Referring:
  632. Availability: available
  633. Function flags: count:231566 (estimated locally) body optimize_size
  634. Called by:
  635. Calls: xTaskResumeAll/22 (214748 (estimated locally),0.93 per call) prvInsertBlockIntoFreeList/19 (8283 (estimated locally),0.04 per call) prvHeapInit/18 (inlined) (40362 (estimated locally),0.17 per call) vTaskSuspendAll/21 (231566 (estimated locally),1.00 per call)
  636. prvHeapInit/18 (prvHeapInit) @06ac6a80
  637. Type: function definition analyzed
  638. Visibility: prevailing_def_ironly
  639. Aux: @04b94370
  640. References: ucHeap/4 (addr)xStart/6 (write)xStart/6 (write)pxEnd/7 (write)xMinimumEverFreeBytesRemaining/9 (write)xFreeBytesRemaining/8 (write)xBlockAllocatedBit/12 (write)
  641. Referring:
  642. Function prvHeapInit/18 is inline copy in pvPortMalloc/13
  643. Availability: local
  644. Function flags: count:40362 (estimated locally) body local optimize_size
  645. Called by: pvPortMalloc/13 (inlined) (40362 (estimated locally),0.17 per call)
  646. Calls:
  647. prvInsertBlockIntoFreeList/19 (prvInsertBlockIntoFreeList) @06ac6d20
  648. Type: function definition analyzed
  649. Visibility: prevailing_def_ironly
  650. Aux: @04b946d0
  651. References: xStart/6 (addr)pxEnd/7 (read)
  652. Referring:
  653. Availability: local
  654. Function flags: count:118111600 (estimated locally) body local optimize_size
  655. Called by: vPortFree/14 (18715 (estimated locally),0.06 per call) pvPortMalloc/13 (8283 (estimated locally),0.04 per call)
  656. Calls:
  657. Function found not to call free: prvInsertBlockIntoFreeList
  658. Function found not to call free: prvHeapInit
  659. Function found not to call free: xPortGetFreeHeapSize
  660. Function found not to call free: xPortGetMinimumEverFreeHeapSize
  661. Function found not to call free: vPortInitialiseBlocks
  662. vPortGetHeapStats (struct HeapStats_t * pxHeapStats)
  663. {
  664. size_t xMinSize;
  665. size_t xMaxSize;
  666. size_t xBlocks;
  667. struct BlockLink_t * pxBlock;
  668. unsigned int _1;
  669. struct BlockLink_t * pxEnd.26_3;
  670. unsigned int xFreeBytesRemaining.27_4;
  671. unsigned int xNumberOfSuccessfulAllocations.28_5;
  672. unsigned int xNumberOfSuccessfulFrees.29_6;
  673. unsigned int xMinimumEverFreeBytesRemaining.30_7;
  674. <bb 2> [local count: 168730857]:
  675. # DEBUG BEGIN_STMT
  676. # DEBUG BEGIN_STMT
  677. # DEBUG xBlocks => 0
  678. # DEBUG xMaxSize => 0
  679. # DEBUG xMinSize => 4294967295
  680. # DEBUG BEGIN_STMT
  681. vTaskSuspendAll ();
  682. # DEBUG BEGIN_STMT
  683. pxBlock_17 = xStart.pxNextFreeBlock;
  684. # DEBUG pxBlock => pxBlock_17
  685. # DEBUG BEGIN_STMT
  686. if (pxBlock_17 != 0B)
  687. goto <bb 5>; [70.00%]
  688. else
  689. goto <bb 4>; [30.00%]
  690. <bb 5> [local count: 118111600]:
  691. <bb 3> [local count: 1073741824]:
  692. # pxBlock_8 = PHI <pxBlock_17(5), pxBlock_20(6)>
  693. # xBlocks_9 = PHI <0(5), xBlocks_18(6)>
  694. # xMaxSize_11 = PHI <0(5), xMaxSize_2(6)>
  695. # xMinSize_13 = PHI <4294967295(5), xMinSize_19(6)>
  696. # DEBUG xMinSize => xMinSize_13
  697. # DEBUG xMaxSize => xMaxSize_11
  698. # DEBUG xBlocks => xBlocks_9
  699. # DEBUG pxBlock => pxBlock_8
  700. # DEBUG BEGIN_STMT
  701. # DEBUG BEGIN_STMT
  702. xBlocks_18 = xBlocks_9 + 1;
  703. # DEBUG xBlocks => xBlocks_18
  704. # DEBUG BEGIN_STMT
  705. _1 = pxBlock_8->xBlockSize;
  706. xMaxSize_2 = MAX_EXPR <_1, xMaxSize_11>;
  707. # DEBUG xMaxSize => xMaxSize_2
  708. # DEBUG BEGIN_STMT
  709. xMinSize_19 = MIN_EXPR <_1, xMinSize_13>;
  710. # DEBUG xMinSize => xMinSize_19
  711. # DEBUG BEGIN_STMT
  712. pxBlock_20 = pxBlock_8->pxNextFreeBlock;
  713. # DEBUG pxBlock => pxBlock_20
  714. # DEBUG BEGIN_STMT
  715. pxEnd.26_3 = pxEnd;
  716. if (pxEnd.26_3 != pxBlock_20)
  717. goto <bb 6>; [89.00%]
  718. else
  719. goto <bb 4>; [11.00%]
  720. <bb 6> [local count: 955630225]:
  721. goto <bb 3>; [100.00%]
  722. <bb 4> [local count: 168730858]:
  723. # xBlocks_10 = PHI <0(2), xBlocks_18(3)>
  724. # xMaxSize_12 = PHI <0(2), xMaxSize_2(3)>
  725. # xMinSize_14 = PHI <4294967295(2), xMinSize_19(3)>
  726. # DEBUG xMinSize => xMinSize_14
  727. # DEBUG xMaxSize => xMaxSize_12
  728. # DEBUG xBlocks => xBlocks_10
  729. # DEBUG BEGIN_STMT
  730. xTaskResumeAll ();
  731. # DEBUG BEGIN_STMT
  732. pxHeapStats_22(D)->xSizeOfLargestFreeBlockInBytes = xMaxSize_12;
  733. # DEBUG BEGIN_STMT
  734. pxHeapStats_22(D)->xSizeOfSmallestFreeBlockInBytes = xMinSize_14;
  735. # DEBUG BEGIN_STMT
  736. pxHeapStats_22(D)->xNumberOfFreeBlocks = xBlocks_10;
  737. # DEBUG BEGIN_STMT
  738. vPortEnterCritical ();
  739. # DEBUG BEGIN_STMT
  740. xFreeBytesRemaining.27_4 = xFreeBytesRemaining;
  741. pxHeapStats_22(D)->xAvailableHeapSpaceInBytes = xFreeBytesRemaining.27_4;
  742. # DEBUG BEGIN_STMT
  743. xNumberOfSuccessfulAllocations.28_5 = xNumberOfSuccessfulAllocations;
  744. pxHeapStats_22(D)->xNumberOfSuccessfulAllocations = xNumberOfSuccessfulAllocations.28_5;
  745. # DEBUG BEGIN_STMT
  746. xNumberOfSuccessfulFrees.29_6 = xNumberOfSuccessfulFrees;
  747. pxHeapStats_22(D)->xNumberOfSuccessfulFrees = xNumberOfSuccessfulFrees.29_6;
  748. # DEBUG BEGIN_STMT
  749. xMinimumEverFreeBytesRemaining.30_7 = xMinimumEverFreeBytesRemaining;
  750. pxHeapStats_22(D)->xMinimumEverFreeBytesRemaining = xMinimumEverFreeBytesRemaining.30_7;
  751. # DEBUG BEGIN_STMT
  752. vPortExitCritical ();
  753. return;
  754. }
  755. prvInsertBlockIntoFreeList (struct BlockLink_t * pxBlockToInsert)
  756. {
  757. struct BlockLink_t * pxIterator;
  758. struct A_BLOCK_LINK * _1;
  759. unsigned int _2;
  760. uint8_t * _3;
  761. unsigned int _5;
  762. unsigned int _6;
  763. unsigned int _7;
  764. uint8_t * _8;
  765. struct BlockLink_t * pxEnd.19_9;
  766. unsigned int _10;
  767. unsigned int _11;
  768. struct A_BLOCK_LINK * _12;
  769. struct A_BLOCK_LINK * _20;
  770. <bb 2> [local count: 118111600]:
  771. # DEBUG BEGIN_STMT
  772. # DEBUG BEGIN_STMT
  773. # DEBUG BEGIN_STMT
  774. # DEBUG pxIterator => &xStart
  775. <bb 3> [local count: 1073741824]:
  776. # pxIterator_14 = PHI <&xStart(2), _1(14)>
  777. # DEBUG pxIterator => pxIterator_14
  778. # DEBUG BEGIN_STMT
  779. _1 = pxIterator_14->pxNextFreeBlock;
  780. if (_1 < pxBlockToInsert_19(D))
  781. goto <bb 14>; [89.00%]
  782. else
  783. goto <bb 4>; [11.00%]
  784. <bb 14> [local count: 955630223]:
  785. goto <bb 3>; [100.00%]
  786. <bb 4> [local count: 118111601]:
  787. # _20 = PHI <_1(3)>
  788. # pxIterator_4 = PHI <pxIterator_14(3)>
  789. # DEBUG BEGIN_STMT
  790. # DEBUG puc => pxIterator_4
  791. # DEBUG BEGIN_STMT
  792. _2 = pxIterator_4->xBlockSize;
  793. _3 = pxIterator_4 + _2;
  794. if (_3 == pxBlockToInsert_19(D))
  795. goto <bb 5>; [30.00%]
  796. else
  797. goto <bb 6>; [70.00%]
  798. <bb 5> [local count: 35433480]:
  799. # DEBUG BEGIN_STMT
  800. _5 = pxBlockToInsert_19(D)->xBlockSize;
  801. _6 = _2 + _5;
  802. pxIterator_4->xBlockSize = _6;
  803. # DEBUG BEGIN_STMT
  804. # DEBUG pxBlockToInsert => pxIterator_4
  805. <bb 6> [local count: 118111601]:
  806. # pxBlockToInsert_13 = PHI <pxBlockToInsert_19(D)(4), pxIterator_4(5)>
  807. # DEBUG pxBlockToInsert => pxBlockToInsert_13
  808. # DEBUG BEGIN_STMT
  809. # DEBUG BEGIN_STMT
  810. # DEBUG puc => pxBlockToInsert_13
  811. # DEBUG BEGIN_STMT
  812. _7 = pxBlockToInsert_13->xBlockSize;
  813. _8 = pxBlockToInsert_13 + _7;
  814. if (_8 == _20)
  815. goto <bb 7>; [30.00%]
  816. else
  817. goto <bb 10>; [70.00%]
  818. <bb 7> [local count: 35433480]:
  819. # DEBUG BEGIN_STMT
  820. pxEnd.19_9 = pxEnd;
  821. if (pxEnd.19_9 != _20)
  822. goto <bb 8>; [70.00%]
  823. else
  824. goto <bb 9>; [30.00%]
  825. <bb 8> [local count: 24803436]:
  826. # DEBUG BEGIN_STMT
  827. _10 = _20->xBlockSize;
  828. _11 = _7 + _10;
  829. pxBlockToInsert_13->xBlockSize = _11;
  830. # DEBUG BEGIN_STMT
  831. _12 = _20->pxNextFreeBlock;
  832. pxBlockToInsert_13->pxNextFreeBlock = _12;
  833. goto <bb 11>; [100.00%]
  834. <bb 9> [local count: 10630044]:
  835. # DEBUG BEGIN_STMT
  836. pxBlockToInsert_13->pxNextFreeBlock = pxEnd.19_9;
  837. goto <bb 11>; [100.00%]
  838. <bb 10> [local count: 82678120]:
  839. # DEBUG BEGIN_STMT
  840. pxBlockToInsert_13->pxNextFreeBlock = _20;
  841. <bb 11> [local count: 118111601]:
  842. # DEBUG BEGIN_STMT
  843. if (pxIterator_4 != pxBlockToInsert_13)
  844. goto <bb 12>; [70.00%]
  845. else
  846. goto <bb 13>; [30.00%]
  847. <bb 12> [local count: 82678120]:
  848. # DEBUG BEGIN_STMT
  849. pxIterator_4->pxNextFreeBlock = pxBlockToInsert_13;
  850. <bb 13> [local count: 118111601]:
  851. # DEBUG BEGIN_STMT
  852. return;
  853. }
  854. prvHeapInit ()
  855. {
  856. size_t xTotalHeapSize;
  857. size_t uxAddress;
  858. uint8_t * pucAlignedHeap;
  859. unsigned int _1;
  860. unsigned int _2;
  861. struct BlockLink_t * uxAddress.14_3;
  862. unsigned int _4;
  863. <bb 2> [local count: 1073741824]:
  864. # DEBUG BEGIN_STMT
  865. # DEBUG BEGIN_STMT
  866. # DEBUG BEGIN_STMT
  867. # DEBUG BEGIN_STMT
  868. # DEBUG xTotalHeapSize => 8192
  869. # DEBUG BEGIN_STMT
  870. uxAddress_7 = (size_t) &ucHeap;
  871. # DEBUG uxAddress => uxAddress_7
  872. # DEBUG BEGIN_STMT
  873. _1 = uxAddress_7 & 7;
  874. if (_1 != 0)
  875. goto <bb 3>; [50.00%]
  876. else
  877. goto <bb 4>; [50.00%]
  878. <bb 3> [local count: 536870913]:
  879. # DEBUG BEGIN_STMT
  880. uxAddress_8 = uxAddress_7 + 7;
  881. # DEBUG uxAddress => uxAddress_8
  882. # DEBUG BEGIN_STMT
  883. uxAddress_9 = uxAddress_8 & 4294967288;
  884. # DEBUG uxAddress => uxAddress_9
  885. # DEBUG BEGIN_STMT
  886. _2 = 8192 - uxAddress_9;
  887. xTotalHeapSize_10 = _2 + uxAddress_7;
  888. # DEBUG xTotalHeapSize => xTotalHeapSize_10
  889. <bb 4> [local count: 1073741824]:
  890. # uxAddress_5 = PHI <uxAddress_7(2), uxAddress_9(3)>
  891. # xTotalHeapSize_6 = PHI <8192(2), xTotalHeapSize_10(3)>
  892. # DEBUG xTotalHeapSize => xTotalHeapSize_6
  893. # DEBUG uxAddress => uxAddress_5
  894. # DEBUG BEGIN_STMT
  895. pucAlignedHeap_11 = (uint8_t *) uxAddress_5;
  896. # DEBUG pucAlignedHeap => pucAlignedHeap_11
  897. # DEBUG BEGIN_STMT
  898. xStart.pxNextFreeBlock = pucAlignedHeap_11;
  899. # DEBUG BEGIN_STMT
  900. xStart.xBlockSize = 0;
  901. # DEBUG BEGIN_STMT
  902. uxAddress_15 = uxAddress_5 + xTotalHeapSize_6;
  903. # DEBUG uxAddress => uxAddress_15
  904. # DEBUG BEGIN_STMT
  905. uxAddress_16 = uxAddress_15 + 4294967288;
  906. # DEBUG uxAddress => uxAddress_16
  907. # DEBUG BEGIN_STMT
  908. uxAddress_17 = uxAddress_16 & 4294967288;
  909. # DEBUG uxAddress => uxAddress_17
  910. # DEBUG BEGIN_STMT
  911. uxAddress.14_3 = (struct BlockLink_t *) uxAddress_17;
  912. pxEnd = uxAddress.14_3;
  913. # DEBUG BEGIN_STMT
  914. uxAddress.14_3->xBlockSize = 0;
  915. # DEBUG BEGIN_STMT
  916. uxAddress.14_3->pxNextFreeBlock = 0B;
  917. # DEBUG BEGIN_STMT
  918. # DEBUG pxFirstFreeBlock => pucAlignedHeap_11
  919. # DEBUG BEGIN_STMT
  920. _4 = uxAddress_17 - uxAddress_5;
  921. MEM[(struct BlockLink_t *)pucAlignedHeap_11].xBlockSize = _4;
  922. # DEBUG BEGIN_STMT
  923. MEM[(struct BlockLink_t *)pucAlignedHeap_11].pxNextFreeBlock = uxAddress.14_3;
  924. # DEBUG BEGIN_STMT
  925. xMinimumEverFreeBytesRemaining = _4;
  926. # DEBUG BEGIN_STMT
  927. xFreeBytesRemaining = _4;
  928. # DEBUG BEGIN_STMT
  929. xBlockAllocatedBit = 2147483648;
  930. return;
  931. }
  932. vPortInitialiseBlocks ()
  933. {
  934. <bb 2> [local count: 1073741824]:
  935. # DEBUG BEGIN_STMT
  936. return;
  937. }
  938. xPortGetMinimumEverFreeHeapSize ()
  939. {
  940. size_t _2;
  941. <bb 2> [local count: 1073741824]:
  942. # DEBUG BEGIN_STMT
  943. _2 = xMinimumEverFreeBytesRemaining;
  944. return _2;
  945. }
  946. xPortGetFreeHeapSize ()
  947. {
  948. size_t _2;
  949. <bb 2> [local count: 1073741824]:
  950. # DEBUG BEGIN_STMT
  951. _2 = xFreeBytesRemaining;
  952. return _2;
  953. }
  954. vPortFree (void * pv)
  955. {
  956. uint32_t ulNewBASEPRI;
  957. uint32_t ulNewBASEPRI;
  958. uint8_t * puc;
  959. unsigned int _1;
  960. unsigned int xBlockAllocatedBit.21_2;
  961. unsigned int _3;
  962. struct A_BLOCK_LINK * _4;
  963. unsigned int _5;
  964. unsigned int _6;
  965. unsigned int _7;
  966. unsigned int xFreeBytesRemaining.24_8;
  967. unsigned int _9;
  968. unsigned int xNumberOfSuccessfulFrees.25_10;
  969. unsigned int _11;
  970. <bb 2> [local count: 306783]:
  971. # DEBUG BEGIN_STMT
  972. # DEBUG puc => pv_13(D)
  973. # DEBUG BEGIN_STMT
  974. # DEBUG BEGIN_STMT
  975. if (pv_13(D) != 0B)
  976. goto <bb 3>; [70.00%]
  977. else
  978. goto <bb 10>; [30.00%]
  979. <bb 3> [local count: 214748]:
  980. # DEBUG BEGIN_STMT
  981. puc_15 = pv_13(D) + 4294967288;
  982. # DEBUG puc => puc_15
  983. # DEBUG BEGIN_STMT
  984. # DEBUG pxLink => puc_15
  985. # DEBUG BEGIN_STMT
  986. _1 = MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].xBlockSize;
  987. xBlockAllocatedBit.21_2 = xBlockAllocatedBit;
  988. _3 = _1 & xBlockAllocatedBit.21_2;
  989. if (_3 == 0)
  990. goto <bb 4>; [50.00%]
  991. else
  992. goto <bb 6>; [50.00%]
  993. <bb 4> [local count: 107374]:
  994. # DEBUG BEGIN_STMT
  995. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  996. # DEBUG BEGIN_STMT
  997. # DEBUG BEGIN_STMT
  998. __asm__ __volatile__(" mov %0, %1
  999. msr basepri, %0
  1000. isb
  1001. dsb
  1002. " : "=r" ulNewBASEPRI_22 : "i" 16 : "memory");
  1003. # DEBUG ulNewBASEPRI => ulNewBASEPRI_22
  1004. <bb 5> [local count: 1073741823]:
  1005. # DEBUG ulNewBASEPRI => NULL
  1006. # DEBUG BEGIN_STMT
  1007. # DEBUG BEGIN_STMT
  1008. # DEBUG BEGIN_STMT
  1009. <bb 11> [local count: 1073741824]:
  1010. goto <bb 5>; [100.00%]
  1011. <bb 6> [local count: 107374]:
  1012. # DEBUG BEGIN_STMT
  1013. # DEBUG BEGIN_STMT
  1014. _4 = MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].pxNextFreeBlock;
  1015. if (_4 != 0B)
  1016. goto <bb 7>; [82.57%]
  1017. else
  1018. goto <bb 9>; [17.43%]
  1019. <bb 7> [local count: 88659]:
  1020. # DEBUG BEGIN_STMT
  1021. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1022. # DEBUG BEGIN_STMT
  1023. # DEBUG BEGIN_STMT
  1024. __asm__ __volatile__(" mov %0, %1
  1025. msr basepri, %0
  1026. isb
  1027. dsb
  1028. " : "=r" ulNewBASEPRI_23 : "i" 16 : "memory");
  1029. # DEBUG ulNewBASEPRI => ulNewBASEPRI_23
  1030. <bb 8> [local count: 886588623]:
  1031. # DEBUG ulNewBASEPRI => NULL
  1032. # DEBUG BEGIN_STMT
  1033. # DEBUG BEGIN_STMT
  1034. # DEBUG BEGIN_STMT
  1035. <bb 12> [local count: 886588623]:
  1036. goto <bb 8>; [100.00%]
  1037. <bb 9> [local count: 18715]:
  1038. # DEBUG BEGIN_STMT
  1039. # DEBUG BEGIN_STMT
  1040. # DEBUG BEGIN_STMT
  1041. # DEBUG BEGIN_STMT
  1042. _5 = ~xBlockAllocatedBit.21_2;
  1043. _6 = _1 & _5;
  1044. MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].xBlockSize = _6;
  1045. # DEBUG BEGIN_STMT
  1046. vTaskSuspendAll ();
  1047. # DEBUG BEGIN_STMT
  1048. _7 = MEM[(struct BlockLink_t *)pv_13(D) + 4294967288B].xBlockSize;
  1049. xFreeBytesRemaining.24_8 = xFreeBytesRemaining;
  1050. _9 = _7 + xFreeBytesRemaining.24_8;
  1051. xFreeBytesRemaining = _9;
  1052. # DEBUG BEGIN_STMT
  1053. # DEBUG BEGIN_STMT
  1054. prvInsertBlockIntoFreeList (puc_15);
  1055. # DEBUG BEGIN_STMT
  1056. xNumberOfSuccessfulFrees.25_10 = xNumberOfSuccessfulFrees;
  1057. _11 = xNumberOfSuccessfulFrees.25_10 + 1;
  1058. xNumberOfSuccessfulFrees = _11;
  1059. # DEBUG BEGIN_STMT
  1060. xTaskResumeAll ();
  1061. <bb 10> [local count: 110750]:
  1062. # DEBUG BEGIN_STMT
  1063. return;
  1064. }
  1065. pvPortMalloc (size_t xWantedSize)
  1066. {
  1067. uint32_t ulNewBASEPRI;
  1068. uint32_t ulNewBASEPRI;
  1069. void * pvReturn;
  1070. struct BlockLink_t * pxNewBlockLink;
  1071. struct BlockLink_t * pxPreviousBlock;
  1072. struct BlockLink_t * pxBlock;
  1073. struct BlockLink_t * pxEnd.0_1;
  1074. unsigned int xBlockAllocatedBit.1_2;
  1075. unsigned int _3;
  1076. unsigned int _4;
  1077. unsigned int _5;
  1078. unsigned int _6;
  1079. unsigned int _7;
  1080. unsigned int xFreeBytesRemaining.2_9;
  1081. unsigned int _10;
  1082. struct A_BLOCK_LINK * _11;
  1083. struct BlockLink_t * pxEnd.3_12;
  1084. struct A_BLOCK_LINK * _13;
  1085. struct A_BLOCK_LINK * _14;
  1086. unsigned int _15;
  1087. unsigned int pxNewBlockLink.4_16;
  1088. unsigned int _17;
  1089. unsigned int xFreeBytesRemaining.5_18;
  1090. unsigned int _19;
  1091. unsigned int _20;
  1092. unsigned int xMinimumEverFreeBytesRemaining.7_21;
  1093. unsigned int xBlockAllocatedBit.9_22;
  1094. unsigned int _23;
  1095. unsigned int xNumberOfSuccessfulAllocations.10_24;
  1096. unsigned int _25;
  1097. unsigned int pvReturn.11_26;
  1098. unsigned int _27;
  1099. unsigned int _57;
  1100. <bb 2> [local count: 231566]:
  1101. # DEBUG BEGIN_STMT
  1102. # DEBUG BEGIN_STMT
  1103. # DEBUG pvReturn => 0B
  1104. # DEBUG BEGIN_STMT
  1105. vTaskSuspendAll ();
  1106. # DEBUG BEGIN_STMT
  1107. pxEnd.0_1 = pxEnd;
  1108. if (pxEnd.0_1 == 0B)
  1109. goto <bb 3>; [17.43%]
  1110. else
  1111. goto <bb 4>; [82.57%]
  1112. <bb 3> [local count: 40362]:
  1113. # DEBUG BEGIN_STMT
  1114. prvHeapInit ();
  1115. <bb 4> [local count: 231566]:
  1116. # DEBUG BEGIN_STMT
  1117. # DEBUG BEGIN_STMT
  1118. xBlockAllocatedBit.1_2 = xBlockAllocatedBit;
  1119. _3 = xBlockAllocatedBit.1_2 & xWantedSize_39(D);
  1120. if (_3 == 0)
  1121. goto <bb 5>; [83.25%]
  1122. else
  1123. goto <bb 22>; [16.75%]
  1124. <bb 5> [local count: 192779]:
  1125. # DEBUG BEGIN_STMT
  1126. _4 = xWantedSize_39(D) + 4294967295;
  1127. if (_4 <= 4294967286)
  1128. goto <bb 6>; [71.00%]
  1129. else
  1130. goto <bb 22>; [29.00%]
  1131. <bb 6> [local count: 136873]:
  1132. # DEBUG BEGIN_STMT
  1133. xWantedSize_40 = xWantedSize_39(D) + 8;
  1134. # DEBUG xWantedSize => xWantedSize_40
  1135. # DEBUG BEGIN_STMT
  1136. _5 = xWantedSize_40 & 7;
  1137. if (_5 != 0)
  1138. goto <bb 7>; [50.00%]
  1139. else
  1140. goto <bb 8>; [50.00%]
  1141. <bb 7> [local count: 68436]:
  1142. # DEBUG BEGIN_STMT
  1143. _6 = xWantedSize_40 & 4294967288;
  1144. _7 = _6 + 8;
  1145. if (_7 > xWantedSize_40)
  1146. goto <bb 8>; [71.00%]
  1147. else
  1148. goto <bb 22>; [29.00%]
  1149. <bb 8> [local count: 117026]:
  1150. # xWantedSize_28 = PHI <_7(7), xWantedSize_40(6)>
  1151. # DEBUG xWantedSize => xWantedSize_28
  1152. # DEBUG BEGIN_STMT
  1153. if (xWantedSize_28 != 0)
  1154. goto <bb 9>; [71.00%]
  1155. else
  1156. goto <bb 22>; [29.00%]
  1157. <bb 9> [local count: 83089]:
  1158. xFreeBytesRemaining.2_9 = xFreeBytesRemaining;
  1159. if (xFreeBytesRemaining.2_9 >= xWantedSize_28)
  1160. goto <bb 10>; [71.00%]
  1161. else
  1162. goto <bb 22>; [29.00%]
  1163. <bb 10> [local count: 58993]:
  1164. # DEBUG BEGIN_STMT
  1165. # DEBUG pxPreviousBlock => &xStart
  1166. # DEBUG BEGIN_STMT
  1167. pxBlock_41 = xStart.pxNextFreeBlock;
  1168. # DEBUG pxBlock => pxBlock_41
  1169. # DEBUG BEGIN_STMT
  1170. <bb 11> [local count: 551465]:
  1171. # pxBlock_29 = PHI <pxBlock_41(10), _11(28)>
  1172. # pxPreviousBlock_30 = PHI <&xStart(10), pxBlock_29(28)>
  1173. # DEBUG pxPreviousBlock => pxPreviousBlock_30
  1174. # DEBUG pxBlock => pxBlock_29
  1175. # DEBUG BEGIN_STMT
  1176. _10 = pxBlock_29->xBlockSize;
  1177. if (_10 < xWantedSize_28)
  1178. goto <bb 12>; [94.50%]
  1179. else
  1180. goto <bb 13>; [5.50%]
  1181. <bb 12> [local count: 521134]:
  1182. _11 = pxBlock_29->pxNextFreeBlock;
  1183. if (_11 != 0B)
  1184. goto <bb 28>; [94.50%]
  1185. else
  1186. goto <bb 13>; [5.50%]
  1187. <bb 28> [local count: 492472]:
  1188. goto <bb 11>; [100.00%]
  1189. <bb 13> [local count: 58993]:
  1190. # _57 = PHI <_10(11), _10(12)>
  1191. # pxBlock_54 = PHI <pxBlock_29(11), pxBlock_29(12)>
  1192. # pxPreviousBlock_8 = PHI <pxPreviousBlock_30(11), pxPreviousBlock_30(12)>
  1193. # DEBUG BEGIN_STMT
  1194. pxEnd.3_12 = pxEnd;
  1195. if (pxEnd.3_12 != pxBlock_54)
  1196. goto <bb 14>; [85.10%]
  1197. else
  1198. goto <bb 22>; [14.90%]
  1199. <bb 14> [local count: 50203]:
  1200. # DEBUG BEGIN_STMT
  1201. _13 = pxPreviousBlock_8->pxNextFreeBlock;
  1202. pvReturn_42 = _13 + 8;
  1203. # DEBUG pvReturn => pvReturn_42
  1204. # DEBUG BEGIN_STMT
  1205. _14 = pxBlock_54->pxNextFreeBlock;
  1206. pxPreviousBlock_8->pxNextFreeBlock = _14;
  1207. # DEBUG BEGIN_STMT
  1208. _15 = _57 - xWantedSize_28;
  1209. if (_15 > 16)
  1210. goto <bb 15>; [50.00%]
  1211. else
  1212. goto <bb 19>; [50.00%]
  1213. <bb 15> [local count: 25102]:
  1214. # DEBUG BEGIN_STMT
  1215. pxNewBlockLink_44 = pxBlock_54 + xWantedSize_28;
  1216. # DEBUG pxNewBlockLink => pxNewBlockLink_44
  1217. # DEBUG BEGIN_STMT
  1218. pxNewBlockLink.4_16 = (unsigned int) pxNewBlockLink_44;
  1219. _17 = pxNewBlockLink.4_16 & 7;
  1220. if (_17 != 0)
  1221. goto <bb 16>; [67.00%]
  1222. else
  1223. goto <bb 18>; [33.00%]
  1224. <bb 16> [local count: 16818]:
  1225. # DEBUG BEGIN_STMT
  1226. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1227. # DEBUG BEGIN_STMT
  1228. # DEBUG BEGIN_STMT
  1229. __asm__ __volatile__(" mov %0, %1
  1230. msr basepri, %0
  1231. isb
  1232. dsb
  1233. " : "=r" ulNewBASEPRI_55 : "i" 16 : "memory");
  1234. # DEBUG ulNewBASEPRI => ulNewBASEPRI_55
  1235. <bb 17> [local count: 168180375]:
  1236. # DEBUG ulNewBASEPRI => NULL
  1237. # DEBUG BEGIN_STMT
  1238. # DEBUG BEGIN_STMT
  1239. # DEBUG BEGIN_STMT
  1240. <bb 26> [local count: 168180375]:
  1241. goto <bb 17>; [100.00%]
  1242. <bb 18> [local count: 8283]:
  1243. # DEBUG BEGIN_STMT
  1244. # DEBUG BEGIN_STMT
  1245. pxNewBlockLink_44->xBlockSize = _15;
  1246. # DEBUG BEGIN_STMT
  1247. pxBlock_54->xBlockSize = xWantedSize_28;
  1248. # DEBUG BEGIN_STMT
  1249. prvInsertBlockIntoFreeList (pxNewBlockLink_44);
  1250. <bb 19> [local count: 33385]:
  1251. # DEBUG BEGIN_STMT
  1252. # DEBUG BEGIN_STMT
  1253. xFreeBytesRemaining.5_18 = xFreeBytesRemaining;
  1254. _19 = pxBlock_54->xBlockSize;
  1255. _20 = xFreeBytesRemaining.5_18 - _19;
  1256. xFreeBytesRemaining = _20;
  1257. # DEBUG BEGIN_STMT
  1258. xMinimumEverFreeBytesRemaining.7_21 = xMinimumEverFreeBytesRemaining;
  1259. if (_20 < xMinimumEverFreeBytesRemaining.7_21)
  1260. goto <bb 20>; [50.00%]
  1261. else
  1262. goto <bb 21>; [50.00%]
  1263. <bb 20> [local count: 16693]:
  1264. # DEBUG BEGIN_STMT
  1265. xMinimumEverFreeBytesRemaining = _20;
  1266. <bb 21> [local count: 33385]:
  1267. # DEBUG BEGIN_STMT
  1268. # DEBUG BEGIN_STMT
  1269. xBlockAllocatedBit.9_22 = xBlockAllocatedBit;
  1270. _23 = _19 | xBlockAllocatedBit.9_22;
  1271. pxBlock_54->xBlockSize = _23;
  1272. # DEBUG BEGIN_STMT
  1273. pxBlock_54->pxNextFreeBlock = 0B;
  1274. # DEBUG BEGIN_STMT
  1275. xNumberOfSuccessfulAllocations.10_24 = xNumberOfSuccessfulAllocations;
  1276. _25 = xNumberOfSuccessfulAllocations.10_24 + 1;
  1277. xNumberOfSuccessfulAllocations = _25;
  1278. <bb 22> [local count: 214748]:
  1279. # pvReturn_31 = PHI <0B(4), 0B(9), 0B(8), 0B(13), pvReturn_42(21), 0B(7), 0B(5)>
  1280. # DEBUG xWantedSize => NULL
  1281. # DEBUG pvReturn => pvReturn_31
  1282. # DEBUG BEGIN_STMT
  1283. # DEBUG BEGIN_STMT
  1284. # DEBUG BEGIN_STMT
  1285. xTaskResumeAll ();
  1286. # DEBUG BEGIN_STMT
  1287. pvReturn.11_26 = (unsigned int) pvReturn_31;
  1288. _27 = pvReturn.11_26 & 7;
  1289. if (_27 != 0)
  1290. goto <bb 23>; [50.00%]
  1291. else
  1292. goto <bb 25>; [50.00%]
  1293. <bb 23> [local count: 107374]:
  1294. # DEBUG BEGIN_STMT
  1295. # DEBUG INLINE_ENTRY vPortRaiseBASEPRI
  1296. # DEBUG BEGIN_STMT
  1297. # DEBUG BEGIN_STMT
  1298. __asm__ __volatile__(" mov %0, %1
  1299. msr basepri, %0
  1300. isb
  1301. dsb
  1302. " : "=r" ulNewBASEPRI_56 : "i" 16 : "memory");
  1303. # DEBUG ulNewBASEPRI => ulNewBASEPRI_56
  1304. <bb 24> [local count: 1073741824]:
  1305. # DEBUG ulNewBASEPRI => NULL
  1306. # DEBUG BEGIN_STMT
  1307. # DEBUG BEGIN_STMT
  1308. # DEBUG BEGIN_STMT
  1309. <bb 27> [local count: 1073741824]:
  1310. goto <bb 24>; [100.00%]
  1311. <bb 25> [local count: 107374]:
  1312. # DEBUG BEGIN_STMT
  1313. # DEBUG BEGIN_STMT
  1314. return pvReturn_31;
  1315. }