Skip to content

Commit 9759a61

Browse files
committed
write all the _nodes inside of KCFG.
1 parent ed84e23 commit 9759a61

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pyk/src/pyk/kcfg/kcfg.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,12 @@ def write_cfg_data(
8080
stuck_nodes = [node_id for node_id in kcfg._nodes.keys() if KCFGNodeAttr.STUCK in kcfg._nodes[node_id].attrs]
8181
dct['vacuous'] = vacuous_nodes
8282
dct['stuck'] = stuck_nodes
83-
for node_id in deleted_nodes:
84-
self.kcfg_node_path(node_id).unlink(missing_ok=True)
85-
for node_id in created_nodes:
83+
for node_id in kcfg._nodes.keys():
8684
self.kcfg_node_path(node_id).write_text(json.dumps(kcfg._nodes[node_id].to_dict()))
85+
# for node_id in deleted_nodes:
86+
# self.kcfg_node_path(node_id).unlink(missing_ok=True)
87+
# for node_id in created_nodes:
88+
# self.kcfg_node_path(node_id).write_text(json.dumps(kcfg._nodes[node_id].to_dict()))
8789
self.kcfg_json_path.write_text(json.dumps(dct))
8890

8991
def read_cfg_data(self) -> dict[str, Any]:

0 commit comments

Comments
 (0)