spacepaste

  1.  
  2. $ ./trie_binary
  3. ----------------------------------------------------------------------->called init_aux() at line 348 from ../Shell/builtins/libstring.h
  4. ----------------------------------------------------------------------->called init_env() at line 327 from ../Shell/builtins/libstring.h
  5. ----------------------------------------------------------------------->called init_argX() at line 336 from ../Shell/builtins/libstring.h
  6. adding rule 1: segments [1, 0] root [10]
  7. adding rule 2: segments [0, 1] root [01]
  8. adding rule 3: root [00]
  9. segment.string = 1
  10. key = 1
  11. idx = 0
  12. pCrawl->count = 2
  13. pCrawl->idx[i] = 0
  14. pCrawl->idx[i] = 1
  15. final_match = true
  16. result = true
  17. segment.string = 0
  18. key = 0
  19. idx = 1
  20. pCrawl->count = 2
  21. pCrawl->idx[i] = 1
  22. pCrawl->idx[i] = 0
  23. final_match = true
  24. result = true
  25. 10 --- Present in trie
  26. segment.string = 0
  27. key = 0
  28. idx = 0
  29. pCrawl->count = 2
  30. pCrawl->idx[i] = 1
  31. pCrawl->idx[i] = 0
  32. final_match = true
  33. result = true
  34. segment.string = 1
  35. key = 1
  36. idx = 1
  37. pCrawl->count = 2
  38. pCrawl->idx[i] = 0
  39. pCrawl->idx[i] = 1
  40. final_match = true
  41. result = true
  42. 01 --- Present in trie
  43. segment.string = 0
  44. key = 0
  45. idx = 0
  46. pCrawl->count = 2
  47. pCrawl->idx[i] = 1
  48. pCrawl->idx[i] = 0
  49. final_match = true
  50. result = true
  51. segment.string = 0
  52. key = 0
  53. idx = 1
  54. pCrawl->count = 2
  55. pCrawl->idx[i] = 1
  56. pCrawl->idx[i] = 0
  57. final_match = true
  58. result = true
  59. 00 --- Present in trie
  60.