File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -34,11 +34,11 @@ Types are representable as a set of enumerations.
34
34
func is_num(t : val_type) : bool =
35
35
return t = I32 || t = I64 || t = F32 || t = F64 || t = Bot
36
36
37
- func is_vec(t : val_type | Unknown ) : bool =
38
- return t = V128 || t = Unknown
37
+ func is_vec(t : val_type) : bool =
38
+ return t = V128 || t = Bot
39
39
40
- func is_ref(t : val_type | Unknown ) : bool =
41
- return t = not (is_num t || is_vec t) || t = Bot
40
+ func is_ref(t : val_type) : bool =
41
+ return not (is_num t || is_vec t) || t = Bot
42
42
43
43
Equivalence and subtyping checks can be defined on these types.
44
44
@@ -66,8 +66,8 @@ Equivalence and subtyping checks can be defined on these types.
66
66
67
67
func matches(t1 : val_type, t2 : val_type) : bool =
68
68
return
69
- (is_num t1 && is_num t2 & t1 = t2) ||
70
- (is_ref t1 && is_ref t2 & matches_ref(t1, t2)) ||
69
+ (is_num t1 && is_num t2 && t1 = t2) ||
70
+ (is_ref t1 && is_ref t2 && matches_ref(t1, t2)) ||
71
71
t1 = Bot
72
72
73
73
The algorithm uses two separate stacks: the *value stack * and the *control stack *.
You can’t perform that action at this time.
0 commit comments