Posted to tcl by hypnotoad at Mon Dec 08 21:07:58 GMT 2014view raw

  1. root@blade:/opt/odie/sandbox/odie/src/odielib# valgrind /opt/odie/bin/tclsh8.6 clevel-logicset.tcl
  2. ==6572== Memcheck, a memory error detector
  3. ==6572== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
  4. ==6572== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
  5. ==6572== Command: /opt/odie/bin/tclsh8.6 clevel-logicset.tcl
  6. ==6572==
  7.  
  8. {foo 1 b 2 xf 24a a} {1 2 24a a b foo xf}
  9. done
  10. a
  11. a b
  12. Adding value to known
  13. Adding value to unknown
  14. Adding null to known
  15. Adding null to empty
  16. Adding null to unknown
  17. a b c d e k y z
  18. {logicset empty {}} 1
  19. {logicset empty $result} 0
  20. {logicset contains $result c} 1
  21. {logicset contains $result c d} 1
  22. {logicset contains $result c d m} 0
  23. {logicset contains $result} 1
  24. {logicset contains $result k} 1
  25. {logicset remove result c} {a b d e k y z}
  26. {logicset add result a b c d e f g} {a b c d e f g k y z}
  27. {logicset remove result a b f e a} {c d g k y z}
  28. c d g k y z
  29. ==6572==
  30. ==6572== HEAP SUMMARY:
  31. ==6572== in use at exit: 1,520,279 bytes in 75 blocks
  32. ==6572== total heap usage: 195 allocs, 120 frees, 1,869,118 bytes allocated
  33. ==6572==
  34. ==6572== LEAK SUMMARY:
  35. ==6572== definitely lost: 0 bytes in 0 blocks
  36. ==6572== indirectly lost: 0 bytes in 0 blocks
  37. ==6572== possibly lost: 1,502,216 bytes in 52 blocks
  38. ==6572== still reachable: 18,063 bytes in 23 blocks
  39. ==6572== suppressed: 0 bytes in 0 blocks
  40. ==6572== Rerun with --leak-check=full to see details of leaked memory
  41. ==6572==
  42. ==6572== For counts of detected and suppressed errors, rerun with: -v
  43. ==6572== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 35 from 10)
  44. root@blade:/opt/odie/sandbox/odie/src/odielib#