==25740== Memcheck, a memory error detector ==25740== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==25740== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==25740== Command: ./boolector-plain btor_delete.txt ==25740== ==25740== Invalid read of size 8 ==25740== at 0x14BC53: btor_delete (in /home/user/boolector-plain) ==25740== by 0x127EC9: boolector_main (in /home/user/boolector-plain) ==25740== by 0x541AB96: (below main) (libc-start.c:310) ==25740== Address 0x580a420 is 0 bytes inside a block of size 8 free'd ==25740== at 0x4C30D3B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x1CA705: read_command_smt2 (in /home/user/boolector-plain) ==25740== by 0x1CC289: parse_smt2_parser (in /home/user/boolector-plain) ==25740== by 0x16C6FD: btor_parse (in /home/user/boolector-plain) ==25740== by 0x128F87: boolector_main (in /home/user/boolector-plain) ==25740== by 0x541AB96: (below main) (libc-start.c:310) ==25740== Block was alloc'd at ==25740== at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x4C31D84: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x1D906D: btor_mem_realloc (in /home/user/boolector-plain) ==25740== by 0x12B1B2: boolector_get_failed_assumptions (in /home/user/boolector-plain) ==25740== by 0x1CA6D2: read_command_smt2 (in /home/user/boolector-plain) ==25740== by 0x1CC289: parse_smt2_parser (in /home/user/boolector-plain) ==25740== by 0x16C6FD: btor_parse (in /home/user/boolector-plain) ==25740== by 0x128F87: boolector_main (in /home/user/boolector-plain) ==25740== by 0x541AB96: (below main) (libc-start.c:310) ==25740== ==25740== Invalid free() / delete / delete[] / realloc() ==25740== at 0x4C30D3B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x14BC8E: btor_delete (in /home/user/boolector-plain) ==25740== by 0x127EC9: boolector_main (in /home/user/boolector-plain) ==25740== by 0x541AB96: (below main) (libc-start.c:310) ==25740== Address 0x580a420 is 0 bytes inside a block of size 8 free'd ==25740== at 0x4C30D3B: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x1CA705: read_command_smt2 (in /home/user/boolector-plain) ==25740== by 0x1CC289: parse_smt2_parser (in /home/user/boolector-plain) ==25740== by 0x16C6FD: btor_parse (in /home/user/boolector-plain) ==25740== by 0x128F87: boolector_main (in /home/user/boolector-plain) ==25740== by 0x541AB96: (below main) (libc-start.c:310) ==25740== Block was alloc'd at ==25740== at 0x4C2FA3F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x4C31D84: realloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==25740== by 0x1D906D: btor_mem_realloc (in /home/user/boolector-plain) ==25740== by 0x12B1B2: boolector_get_failed_assumptions (in /home/user/boolector-plain) ==25740== by 0x1CA6D2: read_command_smt2 (in /home/user/boolector-plain) ==25740== by 0x1CC289: parse_smt2_parser (in /home/user/boolector-plain) ==25740== by 0x16C6FD: btor_parse (in /home/user/boolector-plain) ==25740== by 0x128F87: boolector_main (in /home/user/boolector-plain) ==25740== by 0x541AB96: (below main) (libc-start.c:310) ==25740== ==25740== ==25740== HEAP SUMMARY: ==25740== in use at exit: 0 bytes in 0 blocks ==25740== total heap usage: 1,193 allocs, 1,194 frees, 47,978 bytes allocated ==25740== ==25740== All heap blocks were freed -- no leaks are possible ==25740== ==25740== For counts of detected and suppressed errors, rerun with: -v ==25740== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)