Commit 7c3cbb3
committed
3bf7cef bit_machine: add example StderrTracker which outputs stuff to stderr (Andrew Poelstra)
6013bd5 bit_machine: replace `ExecTracker` API with a much more general one (Andrew Poelstra)
4134976 bit_machine: add PruneTracker trait and RedeemNode::prune_with_tracker (Andrew Poelstra)
ca4e497 bit_machine: move tracker stuff to its own module (Andrew Poelstra)
eaa02d0 bit_machine: rename private new/move/drop methods and variants (Andrew Poelstra)
228a85f bit_machine: put pub(super) on all public methods of Frame (Andrew Poelstra)
8622a8f bit_machine: return concrete type from `as_bit_iter` (Andrew Poelstra)
7ecf394 BitIter: add ExactSizeIterator bound, size_hint and tests (Andrew Poelstra)
Pull request description:
Adds the ability for the execution tracker to track every visited node, to view the "input" (top read frame) of every node and the "output" (top write frame after execution) of every terminal node. Allows it to read this data in the form of a bit iterator, which is much easier to work with than the `&[UWORD]` that the old jet interface provided. Allows tracking "debug" nodes without special-purpose methods that enable/disable costly conversions.
Also adds a `PruneTracker` extension trait which can be used to introspect or manipulate the pruning process.
See #323 and #324 for motivation.
Fixes #324.
ACKs for top commit:
KyrylR:
ACK 3bf7cef
Tree-SHA512: 81969779ca6f45d0ae3556475f10de6e661a8169c65409e15d697277e6806689b104644f5e5f25ce22d806f51fbfd892ebd0649ae8d24f2cd58bd551f4b476e7
File tree
5 files changed
+357
-166
lines changed- src
- bit_encoding
- bit_machine
- node
5 files changed
+357
-166
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
197 | 213 | | |
198 | 214 | | |
199 | 215 | | |
200 | | - | |
201 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
202 | 220 | | |
203 | 221 | | |
204 | 222 | | |
| |||
423 | 441 | | |
424 | 442 | | |
425 | 443 | | |
| 444 | + | |
| 445 | + | |
426 | 446 | | |
427 | 447 | | |
428 | 448 | | |
| |||
434 | 454 | | |
435 | 455 | | |
436 | 456 | | |
| 457 | + | |
437 | 458 | | |
| 459 | + | |
438 | 460 | | |
| 461 | + | |
439 | 462 | | |
440 | 463 | | |
441 | 464 | | |
442 | 465 | | |
443 | 466 | | |
444 | 467 | | |
445 | 468 | | |
| 469 | + | |
446 | 470 | | |
447 | 471 | | |
448 | 472 | | |
| 473 | + | |
449 | 474 | | |
450 | 475 | | |
451 | 476 | | |
| 477 | + | |
452 | 478 | | |
453 | 479 | | |
454 | 480 | | |
455 | 481 | | |
| 482 | + | |
456 | 483 | | |
| 484 | + | |
457 | 485 | | |
458 | 486 | | |
459 | 487 | | |
| |||
480 | 508 | | |
481 | 509 | | |
482 | 510 | | |
| 511 | + | |
483 | 512 | | |
| 513 | + | |
484 | 514 | | |
485 | 515 | | |
486 | 516 | | |
| |||
489 | 519 | | |
490 | 520 | | |
491 | 521 | | |
| 522 | + | |
492 | 523 | | |
| 524 | + | |
493 | 525 | | |
494 | 526 | | |
495 | 527 | | |
| |||
498 | 530 | | |
499 | 531 | | |
500 | 532 | | |
| 533 | + | |
501 | 534 | | |
| 535 | + | |
502 | 536 | | |
| 537 | + | |
503 | 538 | | |
| 539 | + | |
504 | 540 | | |
505 | 541 | | |
| 542 | + | |
506 | 543 | | |
| 544 | + | |
507 | 545 | | |
| 546 | + | |
508 | 547 | | |
| 548 | + | |
509 | 549 | | |
510 | 550 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
46 | 59 | | |
47 | 60 | | |
48 | 61 | | |
| |||
104 | 117 | | |
105 | 118 | | |
106 | 119 | | |
107 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
108 | 124 | | |
109 | 125 | | |
110 | 126 | | |
| |||
0 commit comments