Guest User

Output of "test_single_linked_list.exe"

a guest
May 30th, 2021
693
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1.  
  2. DEBUG: int_list:initial state:
  3. [] (len: 0)
  4.  
  5. DEBUG: int_list (dbg) = List { head: NULL, len: 0 }
  6.  
  7. DEBUG: int_list:cons(i) for i in range(0, 100):
  8. [99, 98, 97, ...] (len: 100)
  9.  
  10. DEBUG: int_list (dbg) = List { head: Node { data: 99, next: Node { data: 98, next: Node { data: 97, next: ... }}}, len: 100 }
  11.  
  12. DEBUG: float_list:initial state:
  13. [] (len: 0)
  14.  
  15. DEBUG: float_list (dbg) = List { head: NULL, len: 0 }
  16.  
  17. DEBUG: float_list:cons(i) for i in range(0, 6):
  18. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402c90
  19. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402ca0
  20. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402cb0
  21. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402cc0
  22. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402cd0
  23. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402ce0
  24. [+5.000, +4.000, +3.000, +2.000, ...] (len: 6)
  25.  
  26. DEBUG: float_list (dbg) = List { head: Node { data: +5.000, next: Node { data: +4.000, next: Node { data: +3.000, next: Node { data: +2.000, next: ... }}}}, len: 6 }
  27.  
  28. DEBUG: string_list:initial state:
  29. [] (len: 0)
  30.  
  31. DEBUG: string_list (dbg) = List { head: NULL, len: 0 }
  32.  
  33. DEBUG: string_list (after cons: 'abc', 'def', 'ghi'):
  34. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402d90
  35. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402da0
  36. DEBUG: terra List:cons(): ALLOC node at 0x7f9721402db0
  37. ["ghi", "def", "abc"] (len: 3)
  38.  
  39. DEBUG: string_list (dbg) = List { head: Node { data: "ghi", next: Node { data: "def", next: Node { data: "abc", next: NULL }}}, len: 3 }
  40.  
  41. DEBUG: int_list:dealloc()
  42.  
  43.  
  44. DEBUG: float_list:dealloc()
  45. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402ce0
  46. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402cd0
  47. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402cc0
  48. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402cb0
  49. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402ca0
  50. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402c90
  51.  
  52.  
  53. DEBUG: string_list:dealloc()
  54. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402db0
  55. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402da0
  56. DEBUG: terra List:dealloc(): DEALLOC node at 0x7f9721402d90
  57.  
Advertisement
Add Comment
Please, Sign In to add comment