unboxed -> val, boxed -> box

This commit is contained in:
Dmitry Boulytchev 2021-01-31 21:07:17 +03:00
parent 919cda5556
commit 5ae88f820d
8 changed files with 16 additions and 16 deletions

View file

@ -2,8 +2,8 @@ fun collect_ints_acc (v, tail) {
local i;
case v of
a@#unboxed -> Cons (a, tail)
| #string -> tail
a@#val -> Cons (a, tail)
| #string -> tail
| _ ->
for i := 0, i < v.length, i := i + 1 do
tail := collect_ints_acc (v[i], tail)

View file

@ -62,8 +62,8 @@ fun genCyclicArrays (n, eq, cross) {
if 1 - eq && deref (f) then
case b[i] of
#unboxed -> b[i] := b[i] + 1
| _ -> b[i] := 0
#val -> b[i] := b[i] + 1
| _ -> b[i] := 0
esac;
f ::= true
fi