git.haldean.org expel / 35881d6
update pyasm to not write required_types Haldean Brown 6 years ago
1 changed file(s) with 1 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
7474 is_term=terminal,
7575 )
7676
77 def arg(arg_num, type, terminal=False, nid=None):
77 def arg(arg_num, terminal=False, nid=None):
7878 return dict(
7979 type="input",
8080 id=nid,
8181 arg_num=arg_num,
82 req_type=type,
8382 is_term=terminal,
8483 )
8584
235234 f.write(struct.pack(">Q", node["arg"]["idx"]))
236235 elif node_type == "input":
237236 f.write(struct.pack(">Q", node["arg_num"]))
238 f.write(struct.pack(">Q", val_to_idx[node["req_type"]]))
239237 elif node_type == "cond":
240238 f.write(struct.pack(">Q", node["condition"]["idx"]))
241239 f.write(struct.pack(">Q", node["true"]["idx"]))