aboutsummaryrefslogtreecommitdiff
path: root/comparison/Inpla/src/msort-260000-reuse.in
diff options
context:
space:
mode:
authorShinya Sato <shinnya.sato@gmail.com>2023-05-13 20:33:39 +0900
committerShinya Sato <shinnya.sato@gmail.com>2023-05-13 20:33:39 +0900
commit08815780ada5aad05bc3156bb23a1c975e3c12f3 (patch)
treecbc006b8b4a05c1fb42f9ae8aeddad38b81d471e /comparison/Inpla/src/msort-260000-reuse.in
parent28208263a3f8d6ababb285f1df34df98c2d5d4a0 (diff)
downloadinpla-08815780ada5aad05bc3156bb23a1c975e3c12f3.tar.gz
inpla-08815780ada5aad05bc3156bb23a1c975e3c12f3.zip
v0.11.0
Diffstat (limited to 'comparison/Inpla/src/msort-260000-reuse.in')
-rw-r--r--comparison/Inpla/src/msort-260000-reuse.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/comparison/Inpla/src/msort-260000-reuse.in b/comparison/Inpla/src/msort-260000-reuse.in
index 14aa4a3..075fa7b 100644
--- a/comparison/Inpla/src/msort-260000-reuse.in
+++ b/comparison/Inpla/src/msort-260000-reuse.in
@@ -12,10 +12,10 @@ merge(ret, snd) >< x:xs => (*L)mergeCC(ret, x, xs)~snd;
mergeCC(ret, int y, ys) >< [] => ret~(*R)(y:ys);
mergeCC(ret, int y, ys) >< (int x):xs
-| x <= y => ret~(x:cnt), (*L)mergeCC(cnt, y, ys) ~ xs
-| _ => ret~(y:cnt), (*L)mergeCC(cnt, x, xs) ~ ys;
+| x <= y => ret~(*R)(x:cnt), (*L)mergeCC(cnt, y, ys) ~ xs
+| _ => ret~(*R)(y:cnt), (*L)mergeCC(cnt, x, xs) ~ ys;
-split(right,left) >< [] => right~[], left~[];
+split(right,left) >< [] => right~(*L)[], left~(*R)[];
split(right,left) >< x:xs =>
right~(*R)(x:cntl), left~cntr, (*L)split(cntr,cntl)~xs;
@@ -28,13 +28,13 @@ make_RandList(ret) >< (int n)
// validation checks
-valid(ret) >< [] => ret~True;
+valid(ret) >< [] => ret~(*L)True;
valid(ret) >< x:xs => (*L)valid_Cons(ret,x)~xs;
valid_Cons(ret, int x) >< [] => ret~True;
valid_Cons(ret, int x) >< (int y):ys
| x<=y => (*L)valid_Cons(ret,y)~ys
-| _ => ret~False, Eraser~ys;
+| _ => ret~(*L)False, (*R)Eraser~ys;
// The `Eraser' is a built-in agent defined for any agents as follows:
//Eraser >< Alpha(a1, ..., a5) => Eraser~a1, ..., Eraser~a5;