Build a Program from a list of Instructions.
(instructions: list[Instruction])
| 78 | |
| 79 | |
| 80 | def make_program(instructions: list[Instruction]) -> Program: |
| 81 | """Build a Program from a list of Instructions.""" |
| 82 | return Program(instructions, jump_targets=_build_jump_targets(instructions)) |
| 83 | |
| 84 | |
| 85 | def run_program(instructions: list[Instruction], input_data: dict[int, Any] | None = None): |