From b10fccefe9a6435328ff9d554995fb5710f74f26 Mon Sep 17 00:00:00 2001 From: Shinya Sato Date: Sat, 17 Sep 2022 22:25:32 +0900 Subject: v0.10.0 --- comparison/Inpla/src/isort-20000-reuse.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'comparison/Inpla/src/isort-20000-reuse.in') diff --git a/comparison/Inpla/src/isort-20000-reuse.in b/comparison/Inpla/src/isort-20000-reuse.in index 9d7c7ab..aa63652 100644 --- a/comparison/Inpla/src/isort-20000-reuse.in +++ b/comparison/Inpla/src/isort-20000-reuse.in @@ -1,11 +1,11 @@ // Insertion sort -isort(ret) >< [] => ret~[]; -isort(ret) >< x:xs => (*L)I(ret, x)~cnt, (*R)isort(cnt)~xs; +isort(ret) >< [] => ret~(*R)[]; +isort(ret) >< x:xs => (*R)I(ret, x)~cnt, (*L)isort(cnt)~xs; I(ret, int x) >< [] => ret~[x]; I(ret, int x) >< (int y):ys | x<=y => ret~(*L)(x:(*R)(y:ys)) -| _ => ret~(*L)(y:cnt), (*R)I(cnt, x)~ys; +| _ => (*L)I(cnt, x)~ys, ret~(*R)(y:cnt); // creates a random list -- cgit v1.2.3