MCPcopy Create free account
hub / github.com/QuipNetwork/xquad / make_program

Function make_program

xqvm_py/program.py:80–82  ·  view source on GitHub ↗

Build a Program from a list of Instructions.

(instructions: list[Instruction])

Source from the content-addressed store, hash-verified

78
79
80def 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
85def run_program(instructions: list[Instruction], input_data: dict[int, Any] | None = None):

Calls 2

_build_jump_targetsFunction · 0.85
ProgramClass · 0.70