Skip to content

Commit 44801dd

Browse files
committed
[spectec] Fix EQ/NE reduction in IL semantics
1 parent 74b327f commit 44801dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spectec/doc/semantics/il/5-reduction.spectec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ rule Step_exp/CMP-EQ-true:
123123

124124
rule Step_exp/CMP-EQ-false:
125125
S |- CMP EQ val_1 val_2 ~> BOOL false
126-
-- if val_1 = val_2
126+
-- if val_1 =/= val_2
127127

128128
rule Step_exp/CMP-NE-false:
129129
S |- CMP NE e_1 e_2 ~> BOOL false
130-
-- if e_1 =/= e_2
130+
-- if e_1 = e_2
131131

132132
rule Step_exp/CMP-NE-true:
133133
S |- CMP NE val_1 val_2 ~> BOOL true

0 commit comments

Comments
 (0)