···55- ArithOp members map to ARITHMETIC
66- LogicOp logic ops map to LOGIC
77- LogicOp comparison ops map to COMPARISON
88-- RoutingOp members (except CONST/FREE_CTX) map to ROUTING
99-- RoutingOp.CONST and FREE_CTX map to CONFIG
88+- RoutingOp members (except CONST/FREE_FRAME) map to ROUTING
99+- RoutingOp.CONST and FREE_FRAME map to CONFIG
1010- MemOp members map to MEMORY
1111- Every OpcodeCategory has a colour in CATEGORY_COLOURS
1212"""
···2626 ArithOp.SUB,
2727 ArithOp.INC,
2828 ArithOp.DEC,
2929- ArithOp.SHIFT_L,
3030- ArithOp.SHIFT_R,
3131- ArithOp.ASHFT_R,
2929+ ArithOp.SHL,
3030+ ArithOp.SHR,
3131+ ArithOp.ASR,
3232 ])
3333 def test_arith_ops_map_to_arithmetic(self, op):
3434 """All ArithOp members map to ARITHMETIC category."""
···83838484 @pytest.mark.parametrize("op", [
8585 RoutingOp.CONST,
8686- RoutingOp.FREE_CTX,
8686+ RoutingOp.FREE_FRAME,
8787 ])
8888 def test_config_routing_ops_map_to_config(self, op):
8989- """RoutingOp.CONST and RoutingOp.FREE_CTX map to CONFIG category."""
8989+ """RoutingOp.CONST and RoutingOp.FREE_FRAME map to CONFIG category."""
9090 assert categorise(op) == OpcodeCategory.CONFIG
91919292
+3-3
tests/test_dfgraph_json.py
···4848 assert result_node["category"] == "arithmetic"
4949 assert result_node["pe"] == 0
5050 assert result_node["iram_offset"] is not None
5151- assert result_node["ctx"] is not None
5151+ assert result_node["act_id"] is not None
5252 assert result_node["has_error"] is False
53535454 # Verify edges are present
···139139 # Note: pe is set by explicit placement, iram_offset and ctx are set by allocate
140140 for node in json_out["nodes"]:
141141 assert node["iram_offset"] is None
142142- assert node["ctx"] is None
142142+ assert node["act_id"] is None
143143144144 # Error list should be populated
145145 assert len(json_out["errors"]) > 0
···250250251251 node = json_out["nodes"][0]
252252 required_fields = {"id", "opcode", "category", "colour", "const", "pe",
253253- "iram_offset", "ctx", "has_error", "loc"}
253253+ "iram_offset", "act_id", "has_error", "loc"}
254254 assert set(node.keys()) >= required_fields
255255256256 # Location should have required fields