We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 035fbe0 commit 20aba52Copy full SHA for 20aba52
1 file changed
spectec/doc/semantics/il/5-reduction.spectec
@@ -121,10 +121,18 @@ rule Step_exp/CMP-EQ-true:
121
S |- CMP EQ e_1 e_2 ~> BOOL true
122
-- if e_1 = e_2
123
124
+rule Step_exp/CMP-EQ-false:
125
+ S |- CMP EQ val_1 val_2 ~> BOOL false
126
+ -- if val_1 =/= val_2
127
+
128
rule Step_exp/CMP-NE-false:
129
S |- CMP NE e_1 e_2 ~> BOOL false
130
131
132
+rule Step_exp/CMP-NE-true:
133
+ S |- CMP NE val_1 val_2 ~> BOOL true
134
135
136
rule Step_exp/CMP-NUM:
137
S |- CMP numcmpop num_1 num_2 ~> BOOL $numcmp(numcmpop, num_1, num_2)
138
0 commit comments