tinyactors disassemble

List each chart's executable content instruction by instruction.

Usage

shell
tinyactors disassemble [options] INPUT...

Lists each chart's executable content as instructions: their place, the entry points starting there and their operands. Reads one image (.tai), one snapshot, one system manifest or SCXML charts, compiled together into one image first. --segment picks a snapshot's image, and - reads standard input.

Options

  • -W, --warnings-as-errorsRefuse a chart that compiles with a warning.
  • -I, --include DIRSearch DIR for a src that is not beside the file naming it, in the order given. Repeatable.
  • -c, --chart NAMELook at the chart named NAME only. Repeatable.
  • -s, --segment NRead the image that segment N of a snapshot runs. Default: the newest live segment.

Configure output formats like -f json using the shared options on the command reference.

Examples

shell
tinyactors disassemble --chart order order.tai
output
# Disassemble

## Charts

### Chart 1: order

- **Name**: order

#### Instructions

| Pc | Label | Opcode | Operands |
| --- | --- | --- | --- |
| 0 | transition 0: open on item.added | block | to 5 |
| 2 |  | assign | `total` = `total + _event.data.price` |
| 5 |  | end |  |
| 6 | transition 3: paying on charge.ok | block | to 11 |
| 8 |  | assign | `charge` = `_event.data.charge` |
| 11 |  | end |  |
| 12 | onentry paying | block | to 21 |
| 14 |  | assign | `attempts` = `attempts + 1` |
| 17 |  | send | event charge to charges type payments |
| 19 |  | send | event payment.timeout to itself after 30s |
| 21 |  | end |  |
| 22 | onexit paying | block | to 26 |
| 24 |  | cancel | sendid deadline |
| 26 |  | end |  |

Disassemble one chart of an image.

Exit status

  • 1An input is refused: it does not compile or verify, or it is damaged or of an unknown format.
  • 3A file cannot be read or written, or memory runs out.

Related pages