Advertisement
Pweebs

Untitled

Nov 16th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 79.25 KB | None | 0 0
  1. Press Enter To Continue with ModelBigIntegerTest Results
  2.  
  3.  
  4.  
  5. ==5418== Memcheck, a memory error detector
  6. ==5418== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  7. ==5418== Using Valgrind-3.14.0-353a3587bb-20181007X and LibVEX; rerun with -h for copyright info
  8. ==5418== Command: ./ModelBigIntegerTest -v
  9. ==5418==
  10. --5418-- Valgrind options:
  11. --5418-- --leak-check=full
  12. --5418-- -v
  13. --5418-- Contents of /proc/version:
  14. --5418-- Linux version 3.10.0-1062.1.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Fri Sep 13 22:55:44 UTC 2019
  15. --5418--
  16. --5418-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx
  17. --5418-- Page sizes: currently 4096, max supported 4096
  18. --5418-- Valgrind library directory: /opt/rh/devtoolset-8/root/usr/lib64/valgrind
  19. --5418-- Reading syms from /afs/cats.ucsc.edu/users/t/jolano/cse101/pa3/ModelBigIntegerTest
  20. --5418-- Reading syms from /usr/lib64/ld-2.17.so
  21. --5418-- Considering /usr/lib/debug/.build-id/5c/c1a53b747a7e4d21198723c2b633e54f3c06d9.debug ..
  22. --5418-- .. build-id is valid
  23. --5418-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/memcheck-amd64-linux
  24. --5418-- object doesn't have a symbol table
  25. --5418-- object doesn't have a dynamic symbol table
  26. --5418-- Scheduler: using generic scheduler lock implementation.
  27. --5418-- Reading suppressions file: /opt/rh/devtoolset-8/root/usr/lib64/valgrind/default.supp
  28. ==5418== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-5418-by-jolano-on-unix2.lt.ucsc.edu
  29. ==5418== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-5418-by-jolano-on-unix2.lt.ucsc.edu
  30. ==5418== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-5418-by-jolano-on-unix2.lt.ucsc.edu
  31. ==5418==
  32. ==5418== TO CONTROL THIS PROCESS USING vgdb (which you probably
  33. ==5418== don't want to do, unless you know exactly what you're doing,
  34. ==5418== or are doing some strange experiment):
  35. ==5418== /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=5418 ...command...
  36. ==5418==
  37. ==5418== TO DEBUG THIS PROCESS USING GDB: start GDB like this
  38. ==5418== /path/to/gdb ./ModelBigIntegerTest
  39. ==5418== and then give GDB the following command
  40. ==5418== target remote | /opt/rh/devtoolset-8/root/usr/lib64/valgrind/../../bin/vgdb --pid=5418
  41. ==5418== --pid is optional if only one valgrind process is running
  42. ==5418==
  43. --5418-- REDIR: 0x4019df0 (ld-linux-x86-64.so.2:strlen) redirected to 0x580c66c5 (???)
  44. --5418-- REDIR: 0x4019bc0 (ld-linux-x86-64.so.2:index) redirected to 0x580c66df (???)
  45. --5418-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/vgpreload_core-amd64-linux.so
  46. --5418-- Reading syms from /opt/rh/devtoolset-8/root/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so
  47. ==5418== WARNING: new redirection conflicts with existing -- ignoring it
  48. --5418-- old: 0x04019df0 (strlen ) R-> (0000.0) 0x580c66c5 ???
  49. --5418-- new: 0x04019df0 (strlen ) R-> (2007.0) 0x04c2d0a0 strlen
  50. --5418-- REDIR: 0x4019d70 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2e1f0 (strcmp)
  51. --5418-- REDIR: 0x401aa30 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c31da0 (mempcpy)
  52. --5418-- Reading syms from /usr/lib64/libc-2.17.so
  53. --5418-- Considering /usr/lib/debug/.build-id/39/8944d32cf16a67af51067a326e6c0cc14f90ed.debug ..
  54. --5418-- .. build-id is valid
  55. --5418-- REDIR: 0x4ec70e0 (libc.so.6:strcasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  56. --5418-- REDIR: 0x4ec3e60 (libc.so.6:strnlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  57. --5418-- REDIR: 0x4ec93b0 (libc.so.6:strncasecmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  58. --5418-- REDIR: 0x4ec68c0 (libc.so.6:memset) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  59. --5418-- REDIR: 0x4ec6870 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  60. --5418-- REDIR: 0x4ec5850 (libc.so.6:__GI_strrchr) redirected to 0x4c2ca60 (__GI_strrchr)
  61. --5418-- REDIR: 0x4ec22e0 (libc.so.6:strcmp) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  62. --5418-- REDIR: 0x4f75d40 (libc.so.6:__strcmp_sse42) redirected to 0x4c2e1a0 (__strcmp_sse42)
  63.  
  64.  
  65. --5418-- REDIR: 0x4ecd370 (libc.so.6:strchrnul) redirected to 0x4c318c0 (strchrnul)
  66. --5418-- REDIR: 0x4ec6a90 (libc.so.6:__GI_mempcpy) redirected to 0x4c31ad0 (__GI_mempcpy)
  67. testing 0
  68. --5418-- REDIR: 0x4ebceb0 (libc.so.6:free) redirected to 0x4c2aed6 (free)
  69. --5418-- REDIR: 0x4ebca90 (libc.so.6:malloc) redirected to 0x4c29ddc (malloc)
  70. --5418-- REDIR: 0x4ec3d30 (libc.so.6:strlen) redirected to 0x4a24740 (_vgnU_ifunc_wrapper)
  71. --5418-- REDIR: 0x4fa6630 (libc.so.6:__strlen_sse2_pminub) redirected to 0x4c2cfe0 (strlen)
  72. ==5418== Invalid read of size 8
  73. ==5418== at 0x401DA4: makeZero (BigInteger.c:114)
  74. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  75. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  76. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  77. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  78. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  79. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  80. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  81. ==5418== Block was alloc'd at
  82. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  83. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  84. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  85. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  86. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  87. ==5418==
  88. ==5418== Invalid read of size 8
  89. ==5418== at 0x401DB0: makeZero (BigInteger.c:115)
  90. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  91. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  92. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  93. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  94. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  95. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  96. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  97. ==5418== Block was alloc'd at
  98. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  99. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  100. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  101. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  102. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  103. ==5418==
  104. ==5418== Invalid read of size 4
  105. ==5418== at 0x402ED4: isEmpty (List.c:140)
  106. ==5418== by 0x402F06: clear (List.c:169)
  107. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  108. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  109. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  110. ==5418== Address 0x5205158 is 24 bytes inside a block of size 32 free'd
  111. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  112. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  113. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  114. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  115. ==5418== Block was alloc'd at
  116. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  117. ==5418== by 0x402BD1: newList (List.c:41)
  118. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  119. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  120. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  121. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  122. ==5418==
  123. ==5418== Invalid write of size 8
  124. ==5418== at 0x402F0F: clear (List.c:172)
  125. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  126. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  127. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  128. ==5418== Address 0x5205150 is 16 bytes inside a block of size 32 free'd
  129. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  130. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  131. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  132. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  133. ==5418== Block was alloc'd at
  134. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  135. ==5418== by 0x402BD1: newList (List.c:41)
  136. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  137. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  138. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  139. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  140. ==5418==
  141. ==5418== Invalid write of size 4
  142. ==5418== at 0x402F1B: clear (List.c:173)
  143. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  144. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  145. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  146. ==5418== Address 0x520515c is 28 bytes inside a block of size 32 free'd
  147. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  148. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  149. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  150. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  151. ==5418== Block was alloc'd at
  152. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  153. ==5418== by 0x402BD1: newList (List.c:41)
  154. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  155. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  156. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  157. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  158. ==5418==
  159. ==5418== Invalid write of size 4
  160. ==5418== at 0x401DBF: makeZero (BigInteger.c:117)
  161. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  162. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  163. ==5418== Address 0x52050f8 is 8 bytes inside a block of size 16 free'd
  164. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  165. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  166. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  167. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  168. ==5418== Block was alloc'd at
  169. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  170. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  171. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  172. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  173. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  174. ==5418==
  175. ==5418== Invalid read of size 8
  176. ==5418== at 0x401B20: freeBigInteger (BigInteger.c:34)
  177. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  178. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  179. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  180. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  181. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  182. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  183. ==5418== Block was alloc'd at
  184. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  185. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  186. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  187. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  188. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  189. ==5418==
  190. ==5418== Invalid free() / delete / delete[] / realloc()
  191. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  192. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  193. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  194. ==5418== Address 0x5205140 is 0 bytes inside a block of size 32 free'd
  195. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  196. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  197. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  198. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  199. ==5418== Block was alloc'd at
  200. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  201. ==5418== by 0x402BD1: newList (List.c:41)
  202. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  203. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  204. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  205. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  206. ==5418==
  207. ==5418== Invalid free() / delete / delete[] / realloc()
  208. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  209. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  210. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  211. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  212. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  213. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  214. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  215. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  216. ==5418== Block was alloc'd at
  217. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  218. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  219. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  220. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  221. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  222. ==5418==
  223. ==5418== Invalid read of size 8
  224. ==5418== at 0x401DA4: makeZero (BigInteger.c:114)
  225. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  226. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  227. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  228. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  229. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  230. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  231. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  232. ==5418== Block was alloc'd at
  233. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  234. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  235. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  236. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  237. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  238. ==5418==
  239. ==5418== Invalid read of size 8
  240. ==5418== at 0x401DB0: makeZero (BigInteger.c:115)
  241. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  242. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  243. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  244. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  245. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  246. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  247. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  248. ==5418== Block was alloc'd at
  249. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  250. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  251. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  252. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  253. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  254. ==5418==
  255. ==5418== Invalid write of size 8
  256. ==5418== at 0x402F0F: clear (List.c:172)
  257. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  258. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  259. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  260. ==5418== Address 0x52052c0 is 16 bytes inside a block of size 32 free'd
  261. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  262. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  263. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  264. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  265. ==5418== Block was alloc'd at
  266. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  267. ==5418== by 0x402BD1: newList (List.c:41)
  268. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  269. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  270. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  271. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  272. ==5418==
  273. ==5418== Invalid write of size 4
  274. ==5418== at 0x402F1B: clear (List.c:173)
  275. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  276. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  277. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  278. ==5418== Address 0x52052cc is 28 bytes inside a block of size 32 free'd
  279. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  280. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  281. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  282. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  283. ==5418== Block was alloc'd at
  284. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  285. ==5418== by 0x402BD1: newList (List.c:41)
  286. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  287. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  288. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  289. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  290. ==5418==
  291. ==5418== Invalid write of size 4
  292. ==5418== at 0x401DBF: makeZero (BigInteger.c:117)
  293. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  294. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  295. ==5418== Address 0x5205268 is 8 bytes inside a block of size 16 free'd
  296. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  297. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  298. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  299. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  300. ==5418== Block was alloc'd at
  301. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  302. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  303. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  304. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  305. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  306. ==5418==
  307. ==5418== Invalid read of size 8
  308. ==5418== at 0x401B20: freeBigInteger (BigInteger.c:34)
  309. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  310. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  311. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  312. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  313. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  314. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  315. ==5418== Block was alloc'd at
  316. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  317. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  318. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  319. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  320. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  321. ==5418==
  322. ==5418== Invalid free() / delete / delete[] / realloc()
  323. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  324. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  325. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  326. ==5418== Address 0x52052b0 is 0 bytes inside a block of size 32 free'd
  327. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  328. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  329. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  330. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  331. ==5418== Block was alloc'd at
  332. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  333. ==5418== by 0x402BD1: newList (List.c:41)
  334. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  335. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  336. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  337. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  338. ==5418==
  339. ==5418== Invalid free() / delete / delete[] / realloc()
  340. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  341. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  342. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  343. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  344. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  345. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  346. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  347. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  348. ==5418== Block was alloc'd at
  349. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  350. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  351. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  352. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  353. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  354. ==5418==
  355. Test Sign_test: PASSED
  356. testing 1
  357. Test Negate_test: PASSED
  358. testing 2
  359. Test Makezero_test: PASSED
  360. testing 3
  361. Test Copy_test: PASSED
  362. testing 4
  363. Test Add_test: PASSED
  364. testing 5
  365. Test Sum_test: PASSED
  366. testing 6
  367. Test Subtract_test: PASSED
  368. testing 7
  369. Test Diff_test: PASSED
  370. testing 8
  371. Test Multiply_test: PASSED
  372. testing 9
  373. Test Prod_test: PASSED
  374.  
  375. You passed 10 out of 10 tests
  376.  
  377. You will receive 52 out of 52 possible points on the MatrixTests
  378.  
  379. ==5418==
  380. ==5418== HEAP SUMMARY:
  381. ==5418== in use at exit: 3,360 bytes in 116 blocks
  382. ==5418== total heap usage: 610 allocs, 498 frees, 15,216 bytes allocated
  383. ==5418==
  384. ==5418== Searching for pointers to 116 not-freed blocks
  385. ==5418== Checked 70,864 bytes
  386. ==5418==
  387. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 12 of 105
  388. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  389. ==5418== by 0x402BD1: newList (List.c:41)
  390. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  391. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  392. ==5418== by 0x400CE6: runTest (ModelBigIntegerTest.c:85)
  393. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  394. ==5418==
  395. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 13 of 105
  396. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  397. ==5418== by 0x402BD1: newList (List.c:41)
  398. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  399. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  400. ==5418== by 0x400D4A: runTest (ModelBigIntegerTest.c:91)
  401. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  402. ==5418==
  403. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 14 of 105
  404. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  405. ==5418== by 0x402BD1: newList (List.c:41)
  406. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  407. ==5418== by 0x400DAE: runTest (ModelBigIntegerTest.c:115)
  408. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  409. ==5418==
  410. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 15 of 105
  411. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  412. ==5418== by 0x402BD1: newList (List.c:41)
  413. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  414. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  415. ==5418== by 0x402285: sum (BigInteger.c:261)
  416. ==5418== by 0x402083: add (BigInteger.c:208)
  417. ==5418== by 0x400DEC: runTest (ModelBigIntegerTest.c:119)
  418. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  419. ==5418==
  420. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 16 of 105
  421. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  422. ==5418== by 0x402BD1: newList (List.c:41)
  423. ==5418== by 0x403686: copyList (List.c:401)
  424. ==5418== by 0x4020B0: add (BigInteger.c:211)
  425. ==5418== by 0x400DEC: runTest (ModelBigIntegerTest.c:119)
  426. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  427. ==5418==
  428. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 17 of 105
  429. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  430. ==5418== by 0x402BD1: newList (List.c:41)
  431. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  432. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  433. ==5418== by 0x401C62: compare (BigInteger.c:76)
  434. ==5418== by 0x401D89: equals (BigInteger.c:106)
  435. ==5418== by 0x400E05: runTest (ModelBigIntegerTest.c:121)
  436. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  437. ==5418==
  438. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 18 of 105
  439. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  440. ==5418== by 0x402BD1: newList (List.c:41)
  441. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  442. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  443. ==5418== by 0x401C62: compare (BigInteger.c:76)
  444. ==5418== by 0x401D89: equals (BigInteger.c:106)
  445. ==5418== by 0x402517: diff (BigInteger.c:329)
  446. ==5418== by 0x402202: sum (BigInteger.c:247)
  447. ==5418== by 0x402083: add (BigInteger.c:208)
  448. ==5418== by 0x400E5F: runTest (ModelBigIntegerTest.c:128)
  449. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  450. ==5418==
  451. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 19 of 105
  452. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  453. ==5418== by 0x402BD1: newList (List.c:41)
  454. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  455. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  456. ==5418== by 0x40253D: diff (BigInteger.c:330)
  457. ==5418== by 0x402202: sum (BigInteger.c:247)
  458. ==5418== by 0x402083: add (BigInteger.c:208)
  459. ==5418== by 0x400E5F: runTest (ModelBigIntegerTest.c:128)
  460. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  461. ==5418==
  462. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 20 of 105
  463. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  464. ==5418== by 0x402BD1: newList (List.c:41)
  465. ==5418== by 0x403686: copyList (List.c:401)
  466. ==5418== by 0x4020B0: add (BigInteger.c:211)
  467. ==5418== by 0x400E5F: runTest (ModelBigIntegerTest.c:128)
  468. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  469. ==5418==
  470. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 21 of 105
  471. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  472. ==5418== by 0x402BD1: newList (List.c:41)
  473. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  474. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  475. ==5418== by 0x401C62: compare (BigInteger.c:76)
  476. ==5418== by 0x401D89: equals (BigInteger.c:106)
  477. ==5418== by 0x402517: diff (BigInteger.c:329)
  478. ==5418== by 0x402202: sum (BigInteger.c:247)
  479. ==5418== by 0x402083: add (BigInteger.c:208)
  480. ==5418== by 0x400EBC: runTest (ModelBigIntegerTest.c:134)
  481. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  482. ==5418==
  483. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 22 of 105
  484. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  485. ==5418== by 0x402BD1: newList (List.c:41)
  486. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  487. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  488. ==5418== by 0x40253D: diff (BigInteger.c:330)
  489. ==5418== by 0x402202: sum (BigInteger.c:247)
  490. ==5418== by 0x402083: add (BigInteger.c:208)
  491. ==5418== by 0x400EBC: runTest (ModelBigIntegerTest.c:134)
  492. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  493. ==5418==
  494. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 23 of 105
  495. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  496. ==5418== by 0x402BD1: newList (List.c:41)
  497. ==5418== by 0x403686: copyList (List.c:401)
  498. ==5418== by 0x4020B0: add (BigInteger.c:211)
  499. ==5418== by 0x400EBC: runTest (ModelBigIntegerTest.c:134)
  500. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  501. ==5418==
  502. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 24 of 105
  503. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  504. ==5418== by 0x402BD1: newList (List.c:41)
  505. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  506. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  507. ==5418== by 0x401C62: compare (BigInteger.c:76)
  508. ==5418== by 0x401D89: equals (BigInteger.c:106)
  509. ==5418== by 0x402517: diff (BigInteger.c:329)
  510. ==5418== by 0x402202: sum (BigInteger.c:247)
  511. ==5418== by 0x402083: add (BigInteger.c:208)
  512. ==5418== by 0x400F1A: runTest (ModelBigIntegerTest.c:140)
  513. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  514. ==5418==
  515. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 25 of 105
  516. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  517. ==5418== by 0x402BD1: newList (List.c:41)
  518. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  519. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  520. ==5418== by 0x40253D: diff (BigInteger.c:330)
  521. ==5418== by 0x402202: sum (BigInteger.c:247)
  522. ==5418== by 0x402083: add (BigInteger.c:208)
  523. ==5418== by 0x400F1A: runTest (ModelBigIntegerTest.c:140)
  524. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  525. ==5418==
  526. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 26 of 105
  527. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  528. ==5418== by 0x402BD1: newList (List.c:41)
  529. ==5418== by 0x403686: copyList (List.c:401)
  530. ==5418== by 0x4020B0: add (BigInteger.c:211)
  531. ==5418== by 0x400F1A: runTest (ModelBigIntegerTest.c:140)
  532. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  533. ==5418==
  534. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 27 of 105
  535. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  536. ==5418== by 0x402BD1: newList (List.c:41)
  537. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  538. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  539. ==5418== by 0x402285: sum (BigInteger.c:261)
  540. ==5418== by 0x402083: add (BigInteger.c:208)
  541. ==5418== by 0x400F8C: runTest (ModelBigIntegerTest.c:147)
  542. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  543. ==5418==
  544. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 28 of 105
  545. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  546. ==5418== by 0x402BD1: newList (List.c:41)
  547. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  548. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  549. ==5418== by 0x401C62: compare (BigInteger.c:76)
  550. ==5418== by 0x401D89: equals (BigInteger.c:106)
  551. ==5418== by 0x400FA5: runTest (ModelBigIntegerTest.c:148)
  552. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  553. ==5418==
  554. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 29 of 105
  555. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  556. ==5418== by 0x402BD1: newList (List.c:41)
  557. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  558. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  559. ==5418== by 0x402285: sum (BigInteger.c:261)
  560. ==5418== by 0x401012: runTest (ModelBigIntegerTest.c:158)
  561. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  562. ==5418==
  563. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 30 of 105
  564. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  565. ==5418== by 0x402BD1: newList (List.c:41)
  566. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  567. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  568. ==5418== by 0x401C62: compare (BigInteger.c:76)
  569. ==5418== by 0x401D89: equals (BigInteger.c:106)
  570. ==5418== by 0x401035: runTest (ModelBigIntegerTest.c:160)
  571. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  572. ==5418==
  573. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 31 of 105
  574. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  575. ==5418== by 0x402BD1: newList (List.c:41)
  576. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  577. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  578. ==5418== by 0x401C62: compare (BigInteger.c:76)
  579. ==5418== by 0x401D89: equals (BigInteger.c:106)
  580. ==5418== by 0x402517: diff (BigInteger.c:329)
  581. ==5418== by 0x402252: sum (BigInteger.c:254)
  582. ==5418== by 0x4010A3: runTest (ModelBigIntegerTest.c:168)
  583. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  584. ==5418==
  585. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 32 of 105
  586. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  587. ==5418== by 0x402BD1: newList (List.c:41)
  588. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  589. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  590. ==5418== by 0x40253D: diff (BigInteger.c:330)
  591. ==5418== by 0x402252: sum (BigInteger.c:254)
  592. ==5418== by 0x4010A3: runTest (ModelBigIntegerTest.c:168)
  593. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  594. ==5418==
  595. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 33 of 105
  596. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  597. ==5418== by 0x402BD1: newList (List.c:41)
  598. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  599. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  600. ==5418== by 0x401C62: compare (BigInteger.c:76)
  601. ==5418== by 0x401D89: equals (BigInteger.c:106)
  602. ==5418== by 0x402517: diff (BigInteger.c:329)
  603. ==5418== by 0x402252: sum (BigInteger.c:254)
  604. ==5418== by 0x40110F: runTest (ModelBigIntegerTest.c:175)
  605. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  606. ==5418==
  607. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 34 of 105
  608. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  609. ==5418== by 0x402BD1: newList (List.c:41)
  610. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  611. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  612. ==5418== by 0x40253D: diff (BigInteger.c:330)
  613. ==5418== by 0x402252: sum (BigInteger.c:254)
  614. ==5418== by 0x40110F: runTest (ModelBigIntegerTest.c:175)
  615. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  616. ==5418==
  617. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 35 of 105
  618. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  619. ==5418== by 0x402BD1: newList (List.c:41)
  620. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  621. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  622. ==5418== by 0x401C62: compare (BigInteger.c:76)
  623. ==5418== by 0x401D89: equals (BigInteger.c:106)
  624. ==5418== by 0x402517: diff (BigInteger.c:329)
  625. ==5418== by 0x402252: sum (BigInteger.c:254)
  626. ==5418== by 0x40117C: runTest (ModelBigIntegerTest.c:183)
  627. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  628. ==5418==
  629. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 36 of 105
  630. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  631. ==5418== by 0x402BD1: newList (List.c:41)
  632. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  633. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  634. ==5418== by 0x40253D: diff (BigInteger.c:330)
  635. ==5418== by 0x402252: sum (BigInteger.c:254)
  636. ==5418== by 0x40117C: runTest (ModelBigIntegerTest.c:183)
  637. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  638. ==5418==
  639. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 37 of 105
  640. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  641. ==5418== by 0x402BD1: newList (List.c:41)
  642. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  643. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  644. ==5418== by 0x402285: sum (BigInteger.c:261)
  645. ==5418== by 0x4011FD: runTest (ModelBigIntegerTest.c:192)
  646. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  647. ==5418==
  648. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 38 of 105
  649. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  650. ==5418== by 0x402BD1: newList (List.c:41)
  651. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  652. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  653. ==5418== by 0x401C62: compare (BigInteger.c:76)
  654. ==5418== by 0x401D89: equals (BigInteger.c:106)
  655. ==5418== by 0x401220: runTest (ModelBigIntegerTest.c:193)
  656. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  657. ==5418==
  658. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 39 of 105
  659. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  660. ==5418== by 0x402BD1: newList (List.c:41)
  661. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  662. ==5418== by 0x40126A: runTest (ModelBigIntegerTest.c:218)
  663. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  664. ==5418==
  665. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 40 of 105
  666. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  667. ==5418== by 0x402BD1: newList (List.c:41)
  668. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  669. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  670. ==5418== by 0x401C62: compare (BigInteger.c:76)
  671. ==5418== by 0x401D89: equals (BigInteger.c:106)
  672. ==5418== by 0x402517: diff (BigInteger.c:329)
  673. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  674. ==5418== by 0x401294: runTest (ModelBigIntegerTest.c:220)
  675. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  676. ==5418==
  677. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 41 of 105
  678. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  679. ==5418== by 0x402BD1: newList (List.c:41)
  680. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  681. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  682. ==5418== by 0x40253D: diff (BigInteger.c:330)
  683. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  684. ==5418== by 0x401294: runTest (ModelBigIntegerTest.c:220)
  685. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  686. ==5418==
  687. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 42 of 105
  688. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  689. ==5418== by 0x402BD1: newList (List.c:41)
  690. ==5418== by 0x403686: copyList (List.c:401)
  691. ==5418== by 0x40243B: subtract (BigInteger.c:308)
  692. ==5418== by 0x401294: runTest (ModelBigIntegerTest.c:220)
  693. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  694. ==5418==
  695. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 43 of 105
  696. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  697. ==5418== by 0x402BD1: newList (List.c:41)
  698. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  699. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  700. ==5418== by 0x401C62: compare (BigInteger.c:76)
  701. ==5418== by 0x401D89: equals (BigInteger.c:106)
  702. ==5418== by 0x402517: diff (BigInteger.c:329)
  703. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  704. ==5418== by 0x4012F1: runTest (ModelBigIntegerTest.c:226)
  705. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  706. ==5418==
  707. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 44 of 105
  708. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  709. ==5418== by 0x402BD1: newList (List.c:41)
  710. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  711. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  712. ==5418== by 0x40253D: diff (BigInteger.c:330)
  713. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  714. ==5418== by 0x4012F1: runTest (ModelBigIntegerTest.c:226)
  715. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  716. ==5418==
  717. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 45 of 105
  718. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  719. ==5418== by 0x402BD1: newList (List.c:41)
  720. ==5418== by 0x403686: copyList (List.c:401)
  721. ==5418== by 0x40243B: subtract (BigInteger.c:308)
  722. ==5418== by 0x4012F1: runTest (ModelBigIntegerTest.c:226)
  723. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  724. ==5418==
  725. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 46 of 105
  726. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  727. ==5418== by 0x402BD1: newList (List.c:41)
  728. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  729. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  730. ==5418== by 0x401C62: compare (BigInteger.c:76)
  731. ==5418== by 0x401D89: equals (BigInteger.c:106)
  732. ==5418== by 0x402517: diff (BigInteger.c:329)
  733. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  734. ==5418== by 0x40134F: runTest (ModelBigIntegerTest.c:232)
  735. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  736. ==5418==
  737. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 47 of 105
  738. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  739. ==5418== by 0x402BD1: newList (List.c:41)
  740. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  741. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  742. ==5418== by 0x40253D: diff (BigInteger.c:330)
  743. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  744. ==5418== by 0x40134F: runTest (ModelBigIntegerTest.c:232)
  745. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  746. ==5418==
  747. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 48 of 105
  748. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  749. ==5418== by 0x402BD1: newList (List.c:41)
  750. ==5418== by 0x403686: copyList (List.c:401)
  751. ==5418== by 0x40243B: subtract (BigInteger.c:308)
  752. ==5418== by 0x40134F: runTest (ModelBigIntegerTest.c:232)
  753. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  754. ==5418==
  755. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 49 of 105
  756. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  757. ==5418== by 0x402BD1: newList (List.c:41)
  758. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  759. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  760. ==5418== by 0x4023D1: copyNegate (BigInteger.c:297)
  761. ==5418== by 0x4024DF: diff (BigInteger.c:325)
  762. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  763. ==5418== by 0x40139C: runTest (ModelBigIntegerTest.c:237)
  764. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  765. ==5418==
  766. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 50 of 105
  767. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  768. ==5418== by 0x402BD1: newList (List.c:41)
  769. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  770. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  771. ==5418== by 0x402285: sum (BigInteger.c:261)
  772. ==5418== by 0x4024F1: diff (BigInteger.c:325)
  773. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  774. ==5418== by 0x40139C: runTest (ModelBigIntegerTest.c:237)
  775. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  776. ==5418==
  777. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 51 of 105
  778. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  779. ==5418== by 0x402BD1: newList (List.c:41)
  780. ==5418== by 0x403686: copyList (List.c:401)
  781. ==5418== by 0x40243B: subtract (BigInteger.c:308)
  782. ==5418== by 0x40139C: runTest (ModelBigIntegerTest.c:237)
  783. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  784. ==5418==
  785. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 52 of 105
  786. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  787. ==5418== by 0x402BD1: newList (List.c:41)
  788. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  789. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  790. ==5418== by 0x4023D1: copyNegate (BigInteger.c:297)
  791. ==5418== by 0x4024DF: diff (BigInteger.c:325)
  792. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  793. ==5418== by 0x4013DA: runTest (ModelBigIntegerTest.c:241)
  794. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  795. ==5418==
  796. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 53 of 105
  797. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  798. ==5418== by 0x402BD1: newList (List.c:41)
  799. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  800. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  801. ==5418== by 0x402285: sum (BigInteger.c:261)
  802. ==5418== by 0x4024F1: diff (BigInteger.c:325)
  803. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  804. ==5418== by 0x4013DA: runTest (ModelBigIntegerTest.c:241)
  805. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  806. ==5418==
  807. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 54 of 105
  808. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  809. ==5418== by 0x402BD1: newList (List.c:41)
  810. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  811. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  812. ==5418== by 0x401C62: compare (BigInteger.c:76)
  813. ==5418== by 0x401D89: equals (BigInteger.c:106)
  814. ==5418== by 0x402517: diff (BigInteger.c:329)
  815. ==5418== by 0x401443: runTest (ModelBigIntegerTest.c:251)
  816. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  817. ==5418==
  818. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 55 of 105
  819. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  820. ==5418== by 0x402BD1: newList (List.c:41)
  821. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  822. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  823. ==5418== by 0x40253D: diff (BigInteger.c:330)
  824. ==5418== by 0x401443: runTest (ModelBigIntegerTest.c:251)
  825. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  826. ==5418==
  827. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 56 of 105
  828. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  829. ==5418== by 0x402BD1: newList (List.c:41)
  830. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  831. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  832. ==5418== by 0x401C62: compare (BigInteger.c:76)
  833. ==5418== by 0x401D89: equals (BigInteger.c:106)
  834. ==5418== by 0x402517: diff (BigInteger.c:329)
  835. ==5418== by 0x4014AF: runTest (ModelBigIntegerTest.c:260)
  836. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  837. ==5418==
  838. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 57 of 105
  839. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  840. ==5418== by 0x402BD1: newList (List.c:41)
  841. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  842. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  843. ==5418== by 0x40253D: diff (BigInteger.c:330)
  844. ==5418== by 0x4014AF: runTest (ModelBigIntegerTest.c:260)
  845. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  846. ==5418==
  847. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 58 of 105
  848. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  849. ==5418== by 0x402BD1: newList (List.c:41)
  850. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  851. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  852. ==5418== by 0x401C62: compare (BigInteger.c:76)
  853. ==5418== by 0x401D89: equals (BigInteger.c:106)
  854. ==5418== by 0x402517: diff (BigInteger.c:329)
  855. ==5418== by 0x40151C: runTest (ModelBigIntegerTest.c:268)
  856. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  857. ==5418==
  858. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 59 of 105
  859. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  860. ==5418== by 0x402BD1: newList (List.c:41)
  861. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  862. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  863. ==5418== by 0x40253D: diff (BigInteger.c:330)
  864. ==5418== by 0x40151C: runTest (ModelBigIntegerTest.c:268)
  865. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  866. ==5418==
  867. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 60 of 105
  868. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  869. ==5418== by 0x402BD1: newList (List.c:41)
  870. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  871. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  872. ==5418== by 0x4023D1: copyNegate (BigInteger.c:297)
  873. ==5418== by 0x4024DF: diff (BigInteger.c:325)
  874. ==5418== by 0x401578: runTest (ModelBigIntegerTest.c:274)
  875. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  876. ==5418==
  877. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 61 of 105
  878. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  879. ==5418== by 0x402BD1: newList (List.c:41)
  880. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  881. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  882. ==5418== by 0x402285: sum (BigInteger.c:261)
  883. ==5418== by 0x4024F1: diff (BigInteger.c:325)
  884. ==5418== by 0x401578: runTest (ModelBigIntegerTest.c:274)
  885. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  886. ==5418==
  887. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 62 of 105
  888. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  889. ==5418== by 0x402BD1: newList (List.c:41)
  890. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  891. ==5418== by 0x4015DC: runTest (ModelBigIntegerTest.c:282)
  892. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  893. ==5418==
  894. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 63 of 105
  895. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  896. ==5418== by 0x402BD1: newList (List.c:41)
  897. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  898. ==5418== by 0x402741: prod (BigInteger.c:381)
  899. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  900. ==5418== by 0x401606: runTest (ModelBigIntegerTest.c:285)
  901. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  902. ==5418==
  903. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 64 of 105
  904. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  905. ==5418== by 0x402BD1: newList (List.c:41)
  906. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  907. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  908. ==5418== by 0x40276D: prod (BigInteger.c:387)
  909. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  910. ==5418== by 0x401606: runTest (ModelBigIntegerTest.c:285)
  911. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  912. ==5418==
  913. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 65 of 105
  914. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  915. ==5418== by 0x402BD1: newList (List.c:41)
  916. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  917. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  918. ==5418== by 0x4021AA: sum (BigInteger.c:239)
  919. ==5418== by 0x402083: add (BigInteger.c:208)
  920. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  921. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  922. ==5418== by 0x401606: runTest (ModelBigIntegerTest.c:285)
  923. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  924. ==5418==
  925. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 66 of 105
  926. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  927. ==5418== by 0x402BD1: newList (List.c:41)
  928. ==5418== by 0x403686: copyList (List.c:401)
  929. ==5418== by 0x4020B0: add (BigInteger.c:211)
  930. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  931. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  932. ==5418== by 0x401606: runTest (ModelBigIntegerTest.c:285)
  933. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  934. ==5418==
  935. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 67 of 105
  936. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  937. ==5418== by 0x402BD1: newList (List.c:41)
  938. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  939. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  940. ==5418== by 0x402285: sum (BigInteger.c:261)
  941. ==5418== by 0x402083: add (BigInteger.c:208)
  942. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  943. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  944. ==5418== by 0x401606: runTest (ModelBigIntegerTest.c:285)
  945. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  946. ==5418==
  947. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 68 of 105
  948. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  949. ==5418== by 0x402BD1: newList (List.c:41)
  950. ==5418== by 0x403686: copyList (List.c:401)
  951. ==5418== by 0x4026E9: multiply (BigInteger.c:370)
  952. ==5418== by 0x401606: runTest (ModelBigIntegerTest.c:285)
  953. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  954. ==5418==
  955. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 69 of 105
  956. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  957. ==5418== by 0x402BD1: newList (List.c:41)
  958. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  959. ==5418== by 0x402741: prod (BigInteger.c:381)
  960. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  961. ==5418== by 0x401653: runTest (ModelBigIntegerTest.c:290)
  962. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  963. ==5418==
  964. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 70 of 105
  965. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  966. ==5418== by 0x402BD1: newList (List.c:41)
  967. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  968. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  969. ==5418== by 0x40276D: prod (BigInteger.c:387)
  970. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  971. ==5418== by 0x401653: runTest (ModelBigIntegerTest.c:290)
  972. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  973. ==5418==
  974. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 71 of 105
  975. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  976. ==5418== by 0x402BD1: newList (List.c:41)
  977. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  978. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  979. ==5418== by 0x4021AA: sum (BigInteger.c:239)
  980. ==5418== by 0x402083: add (BigInteger.c:208)
  981. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  982. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  983. ==5418== by 0x401653: runTest (ModelBigIntegerTest.c:290)
  984. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  985. ==5418==
  986. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 72 of 105
  987. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  988. ==5418== by 0x402BD1: newList (List.c:41)
  989. ==5418== by 0x403686: copyList (List.c:401)
  990. ==5418== by 0x4020B0: add (BigInteger.c:211)
  991. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  992. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  993. ==5418== by 0x401653: runTest (ModelBigIntegerTest.c:290)
  994. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  995. ==5418==
  996. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 73 of 105
  997. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  998. ==5418== by 0x402BD1: newList (List.c:41)
  999. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1000. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1001. ==5418== by 0x402285: sum (BigInteger.c:261)
  1002. ==5418== by 0x402083: add (BigInteger.c:208)
  1003. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1004. ==5418== by 0x4026BC: multiply (BigInteger.c:367)
  1005. ==5418== by 0x401653: runTest (ModelBigIntegerTest.c:290)
  1006. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1007. ==5418==
  1008. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 74 of 105
  1009. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1010. ==5418== by 0x402BD1: newList (List.c:41)
  1011. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1012. ==5418== by 0x402741: prod (BigInteger.c:381)
  1013. ==5418== by 0x4016BC: runTest (ModelBigIntegerTest.c:300)
  1014. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1015. ==5418==
  1016. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 75 of 105
  1017. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1018. ==5418== by 0x402BD1: newList (List.c:41)
  1019. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1020. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1021. ==5418== by 0x40276D: prod (BigInteger.c:387)
  1022. ==5418== by 0x4016BC: runTest (ModelBigIntegerTest.c:300)
  1023. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1024. ==5418==
  1025. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 76 of 105
  1026. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1027. ==5418== by 0x402BD1: newList (List.c:41)
  1028. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1029. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1030. ==5418== by 0x4021AA: sum (BigInteger.c:239)
  1031. ==5418== by 0x402083: add (BigInteger.c:208)
  1032. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1033. ==5418== by 0x4016BC: runTest (ModelBigIntegerTest.c:300)
  1034. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1035. ==5418==
  1036. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 77 of 105
  1037. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1038. ==5418== by 0x402BD1: newList (List.c:41)
  1039. ==5418== by 0x403686: copyList (List.c:401)
  1040. ==5418== by 0x4020B0: add (BigInteger.c:211)
  1041. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1042. ==5418== by 0x4016BC: runTest (ModelBigIntegerTest.c:300)
  1043. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1044. ==5418==
  1045. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 78 of 105
  1046. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1047. ==5418== by 0x402BD1: newList (List.c:41)
  1048. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1049. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1050. ==5418== by 0x402285: sum (BigInteger.c:261)
  1051. ==5418== by 0x402083: add (BigInteger.c:208)
  1052. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1053. ==5418== by 0x4016BC: runTest (ModelBigIntegerTest.c:300)
  1054. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1055. ==5418==
  1056. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 79 of 105
  1057. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1058. ==5418== by 0x402BD1: newList (List.c:41)
  1059. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1060. ==5418== by 0x402741: prod (BigInteger.c:381)
  1061. ==5418== by 0x401715: runTest (ModelBigIntegerTest.c:306)
  1062. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1063. ==5418==
  1064. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 80 of 105
  1065. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1066. ==5418== by 0x402BD1: newList (List.c:41)
  1067. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1068. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1069. ==5418== by 0x40276D: prod (BigInteger.c:387)
  1070. ==5418== by 0x401715: runTest (ModelBigIntegerTest.c:306)
  1071. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1072. ==5418==
  1073. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 81 of 105
  1074. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1075. ==5418== by 0x402BD1: newList (List.c:41)
  1076. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1077. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1078. ==5418== by 0x4021AA: sum (BigInteger.c:239)
  1079. ==5418== by 0x402083: add (BigInteger.c:208)
  1080. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1081. ==5418== by 0x401715: runTest (ModelBigIntegerTest.c:306)
  1082. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1083. ==5418==
  1084. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 82 of 105
  1085. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1086. ==5418== by 0x402BD1: newList (List.c:41)
  1087. ==5418== by 0x403686: copyList (List.c:401)
  1088. ==5418== by 0x4020B0: add (BigInteger.c:211)
  1089. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1090. ==5418== by 0x401715: runTest (ModelBigIntegerTest.c:306)
  1091. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1092. ==5418==
  1093. ==5418== 32 bytes in 1 blocks are definitely lost in loss record 83 of 105
  1094. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1095. ==5418== by 0x402BD1: newList (List.c:41)
  1096. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1097. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1098. ==5418== by 0x402285: sum (BigInteger.c:261)
  1099. ==5418== by 0x402083: add (BigInteger.c:208)
  1100. ==5418== by 0x4028E3: prod (BigInteger.c:427)
  1101. ==5418== by 0x401715: runTest (ModelBigIntegerTest.c:306)
  1102. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1103. ==5418==
  1104. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 95 of 105
  1105. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1106. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1107. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1108. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1109. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1110. ==5418== by 0x402517: diff (BigInteger.c:329)
  1111. ==5418== by 0x402202: sum (BigInteger.c:247)
  1112. ==5418== by 0x402083: add (BigInteger.c:208)
  1113. ==5418== by 0x400EBC: runTest (ModelBigIntegerTest.c:134)
  1114. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1115. ==5418==
  1116. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 96 of 105
  1117. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1118. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1119. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1120. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1121. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1122. ==5418== by 0x402517: diff (BigInteger.c:329)
  1123. ==5418== by 0x402202: sum (BigInteger.c:247)
  1124. ==5418== by 0x402083: add (BigInteger.c:208)
  1125. ==5418== by 0x400F1A: runTest (ModelBigIntegerTest.c:140)
  1126. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1127. ==5418==
  1128. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 97 of 105
  1129. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1130. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1131. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1132. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1133. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1134. ==5418== by 0x402517: diff (BigInteger.c:329)
  1135. ==5418== by 0x402252: sum (BigInteger.c:254)
  1136. ==5418== by 0x40110F: runTest (ModelBigIntegerTest.c:175)
  1137. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1138. ==5418==
  1139. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 98 of 105
  1140. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1141. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1142. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1143. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1144. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1145. ==5418== by 0x402517: diff (BigInteger.c:329)
  1146. ==5418== by 0x402252: sum (BigInteger.c:254)
  1147. ==5418== by 0x40117C: runTest (ModelBigIntegerTest.c:183)
  1148. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1149. ==5418==
  1150. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 99 of 105
  1151. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1152. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1153. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1154. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1155. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1156. ==5418== by 0x402517: diff (BigInteger.c:329)
  1157. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  1158. ==5418== by 0x4012F1: runTest (ModelBigIntegerTest.c:226)
  1159. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1160. ==5418==
  1161. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 100 of 105
  1162. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1163. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1164. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1165. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1166. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1167. ==5418== by 0x402517: diff (BigInteger.c:329)
  1168. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  1169. ==5418== by 0x40134F: runTest (ModelBigIntegerTest.c:232)
  1170. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1171. ==5418==
  1172. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 101 of 105
  1173. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1174. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1175. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1176. ==5418== by 0x4023D1: copyNegate (BigInteger.c:297)
  1177. ==5418== by 0x4024DF: diff (BigInteger.c:325)
  1178. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  1179. ==5418== by 0x40139C: runTest (ModelBigIntegerTest.c:237)
  1180. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1181. ==5418==
  1182. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 102 of 105
  1183. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1184. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1185. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1186. ==5418== by 0x4023D1: copyNegate (BigInteger.c:297)
  1187. ==5418== by 0x4024DF: diff (BigInteger.c:325)
  1188. ==5418== by 0x40240E: subtract (BigInteger.c:305)
  1189. ==5418== by 0x4013DA: runTest (ModelBigIntegerTest.c:241)
  1190. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1191. ==5418==
  1192. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 103 of 105
  1193. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1194. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1195. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1196. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1197. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1198. ==5418== by 0x402517: diff (BigInteger.c:329)
  1199. ==5418== by 0x4014AF: runTest (ModelBigIntegerTest.c:260)
  1200. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1201. ==5418==
  1202. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 104 of 105
  1203. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1204. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1205. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1206. ==5418== by 0x401C62: compare (BigInteger.c:76)
  1207. ==5418== by 0x401D89: equals (BigInteger.c:106)
  1208. ==5418== by 0x402517: diff (BigInteger.c:329)
  1209. ==5418== by 0x40151C: runTest (ModelBigIntegerTest.c:268)
  1210. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1211. ==5418==
  1212. ==5418== 96 (16 direct, 80 indirect) bytes in 1 blocks are definitely lost in loss record 105 of 105
  1213. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1214. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1215. ==5418== by 0x401FBB: copy (BigInteger.c:184)
  1216. ==5418== by 0x4023D1: copyNegate (BigInteger.c:297)
  1217. ==5418== by 0x4024DF: diff (BigInteger.c:325)
  1218. ==5418== by 0x401578: runTest (ModelBigIntegerTest.c:274)
  1219. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1220. ==5418==
  1221. ==5418== LEAK SUMMARY:
  1222. ==5418== definitely lost: 2,480 bytes in 83 blocks
  1223. ==5418== indirectly lost: 880 bytes in 33 blocks
  1224. ==5418== possibly lost: 0 bytes in 0 blocks
  1225. ==5418== still reachable: 0 bytes in 0 blocks
  1226. ==5418== suppressed: 0 bytes in 0 blocks
  1227. ==5418==
  1228. ==5418== ERROR SUMMARY: 101 errors from 100 contexts (suppressed: 0 from 0)
  1229. ==5418==
  1230. ==5418== 1 errors in context 1 of 100:
  1231. ==5418== Invalid free() / delete / delete[] / realloc()
  1232. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1233. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1234. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1235. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  1236. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1237. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1238. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1239. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1240. ==5418== Block was alloc'd at
  1241. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1242. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1243. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1244. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1245. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1246. ==5418==
  1247. ==5418==
  1248. ==5418== 1 errors in context 2 of 100:
  1249. ==5418== Invalid free() / delete / delete[] / realloc()
  1250. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1251. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1252. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1253. ==5418== Address 0x52052b0 is 0 bytes inside a block of size 32 free'd
  1254. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1255. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1256. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1257. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1258. ==5418== Block was alloc'd at
  1259. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1260. ==5418== by 0x402BD1: newList (List.c:41)
  1261. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1262. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1263. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1264. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1265. ==5418==
  1266. ==5418==
  1267. ==5418== 1 errors in context 3 of 100:
  1268. ==5418== Invalid read of size 8
  1269. ==5418== at 0x401B20: freeBigInteger (BigInteger.c:34)
  1270. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1271. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  1272. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1273. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1274. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1275. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1276. ==5418== Block was alloc'd at
  1277. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1278. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1279. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1280. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1281. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1282. ==5418==
  1283. ==5418==
  1284. ==5418== 1 errors in context 4 of 100:
  1285. ==5418== Invalid write of size 4
  1286. ==5418== at 0x401DBF: makeZero (BigInteger.c:117)
  1287. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1288. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1289. ==5418== Address 0x5205268 is 8 bytes inside a block of size 16 free'd
  1290. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1291. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1292. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1293. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1294. ==5418== Block was alloc'd at
  1295. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1296. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1297. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1298. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1299. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1300. ==5418==
  1301. ==5418==
  1302. ==5418== 1 errors in context 5 of 100:
  1303. ==5418== Invalid write of size 4
  1304. ==5418== at 0x402F1B: clear (List.c:173)
  1305. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  1306. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1307. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1308. ==5418== Address 0x52052cc is 28 bytes inside a block of size 32 free'd
  1309. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1310. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1311. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1312. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1313. ==5418== Block was alloc'd at
  1314. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1315. ==5418== by 0x402BD1: newList (List.c:41)
  1316. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1317. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1318. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1319. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1320. ==5418==
  1321. ==5418==
  1322. ==5418== 1 errors in context 6 of 100:
  1323. ==5418== Invalid write of size 8
  1324. ==5418== at 0x402F0F: clear (List.c:172)
  1325. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  1326. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1327. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1328. ==5418== Address 0x52052c0 is 16 bytes inside a block of size 32 free'd
  1329. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1330. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1331. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1332. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1333. ==5418== Block was alloc'd at
  1334. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1335. ==5418== by 0x402BD1: newList (List.c:41)
  1336. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1337. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1338. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1339. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1340. ==5418==
  1341. ==5418==
  1342. ==5418== 1 errors in context 7 of 100:
  1343. ==5418== Invalid read of size 8
  1344. ==5418== at 0x401DB0: makeZero (BigInteger.c:115)
  1345. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1346. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1347. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  1348. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1349. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1350. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1351. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1352. ==5418== Block was alloc'd at
  1353. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1354. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1355. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1356. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1357. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1358. ==5418==
  1359. ==5418==
  1360. ==5418== 1 errors in context 8 of 100:
  1361. ==5418== Invalid read of size 8
  1362. ==5418== at 0x401DA4: makeZero (BigInteger.c:114)
  1363. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1364. ==5418== by 0x401904: main (ModelBigIntegerTest.c:358)
  1365. ==5418== Address 0x5205260 is 0 bytes inside a block of size 16 free'd
  1366. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1367. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1368. ==5418== by 0x400BF7: runTest (ModelBigIntegerTest.c:63)
  1369. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1370. ==5418== Block was alloc'd at
  1371. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1372. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1373. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1374. ==5418== by 0x400BA3: runTest (ModelBigIntegerTest.c:59)
  1375. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1376. ==5418==
  1377. ==5418==
  1378. ==5418== 1 errors in context 9 of 100:
  1379. ==5418== Invalid free() / delete / delete[] / realloc()
  1380. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1381. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1382. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1383. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  1384. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1385. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1386. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1387. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1388. ==5418== Block was alloc'd at
  1389. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1390. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1391. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1392. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1393. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1394. ==5418==
  1395. ==5418==
  1396. ==5418== 1 errors in context 10 of 100:
  1397. ==5418== Invalid free() / delete / delete[] / realloc()
  1398. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1399. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1400. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1401. ==5418== Address 0x5205140 is 0 bytes inside a block of size 32 free'd
  1402. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1403. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1404. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1405. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1406. ==5418== Block was alloc'd at
  1407. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1408. ==5418== by 0x402BD1: newList (List.c:41)
  1409. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1410. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1411. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1412. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1413. ==5418==
  1414. ==5418==
  1415. ==5418== 1 errors in context 11 of 100:
  1416. ==5418== Invalid read of size 8
  1417. ==5418== at 0x401B20: freeBigInteger (BigInteger.c:34)
  1418. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1419. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  1420. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1421. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1422. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1423. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1424. ==5418== Block was alloc'd at
  1425. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1426. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1427. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1428. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1429. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1430. ==5418==
  1431. ==5418==
  1432. ==5418== 1 errors in context 12 of 100:
  1433. ==5418== Invalid write of size 4
  1434. ==5418== at 0x401DBF: makeZero (BigInteger.c:117)
  1435. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1436. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1437. ==5418== Address 0x52050f8 is 8 bytes inside a block of size 16 free'd
  1438. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1439. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1440. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1441. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1442. ==5418== Block was alloc'd at
  1443. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1444. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1445. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1446. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1447. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1448. ==5418==
  1449. ==5418==
  1450. ==5418== 1 errors in context 13 of 100:
  1451. ==5418== Invalid write of size 4
  1452. ==5418== at 0x402F1B: clear (List.c:173)
  1453. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  1454. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1455. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1456. ==5418== Address 0x520515c is 28 bytes inside a block of size 32 free'd
  1457. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1458. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1459. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1460. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1461. ==5418== Block was alloc'd at
  1462. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1463. ==5418== by 0x402BD1: newList (List.c:41)
  1464. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1465. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1466. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1467. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1468. ==5418==
  1469. ==5418==
  1470. ==5418== 1 errors in context 14 of 100:
  1471. ==5418== Invalid write of size 8
  1472. ==5418== at 0x402F0F: clear (List.c:172)
  1473. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  1474. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1475. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1476. ==5418== Address 0x5205150 is 16 bytes inside a block of size 32 free'd
  1477. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1478. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1479. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1480. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1481. ==5418== Block was alloc'd at
  1482. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1483. ==5418== by 0x402BD1: newList (List.c:41)
  1484. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1485. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1486. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1487. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1488. ==5418==
  1489. ==5418==
  1490. ==5418== 1 errors in context 15 of 100:
  1491. ==5418== Invalid read of size 8
  1492. ==5418== at 0x401DB0: makeZero (BigInteger.c:115)
  1493. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1494. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1495. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  1496. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1497. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1498. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1499. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1500. ==5418== Block was alloc'd at
  1501. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1502. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1503. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1504. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1505. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1506. ==5418==
  1507. ==5418==
  1508. ==5418== 1 errors in context 16 of 100:
  1509. ==5418== Invalid read of size 8
  1510. ==5418== at 0x401DA4: makeZero (BigInteger.c:114)
  1511. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1512. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1513. ==5418== Address 0x52050f0 is 0 bytes inside a block of size 16 free'd
  1514. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1515. ==5418== by 0x401B36: freeBigInteger (BigInteger.c:35)
  1516. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1517. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1518. ==5418== Block was alloc'd at
  1519. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1520. ==5418== by 0x401AC1: newBigInteger (BigInteger.c:22)
  1521. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1522. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1523. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1524. ==5418==
  1525. ==5418==
  1526. ==5418== 2 errors in context 17 of 100:
  1527. ==5418== Invalid read of size 4
  1528. ==5418== at 0x402ED4: isEmpty (List.c:140)
  1529. ==5418== by 0x402F06: clear (List.c:169)
  1530. ==5418== by 0x401DBA: makeZero (BigInteger.c:115)
  1531. ==5418== by 0x401B1B: freeBigInteger (BigInteger.c:33)
  1532. ==5418== by 0x4018F8: main (ModelBigIntegerTest.c:357)
  1533. ==5418== Address 0x5205158 is 24 bytes inside a block of size 32 free'd
  1534. ==5418== at 0x4C2AF5D: free (vg_replace_malloc.c:540)
  1535. ==5418== by 0x401B2A: freeBigInteger (BigInteger.c:34)
  1536. ==5418== by 0x400BEB: runTest (ModelBigIntegerTest.c:62)
  1537. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1538. ==5418== Block was alloc'd at
  1539. ==5418== at 0x4C29E63: malloc (vg_replace_malloc.c:309)
  1540. ==5418== by 0x402BD1: newList (List.c:41)
  1541. ==5418== by 0x401ACA: newBigInteger (BigInteger.c:23)
  1542. ==5418== by 0x401E62: stringToBigInteger (BigInteger.c:143)
  1543. ==5418== by 0x400B8F: runTest (ModelBigIntegerTest.c:58)
  1544. ==5418== by 0x4018CB: main (ModelBigIntegerTest.c:353)
  1545. ==5418==
  1546. ==5418== ERROR SUMMARY: 101 errors from 100 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement