8.28/3.73 NO 9.81/4.23 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 9.81/4.23 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 9.81/4.23 9.81/4.23 9.81/4.23 H-Termination with start terms of the given HASKELL could be disproven: 9.81/4.23 9.81/4.23 (0) HASKELL 9.81/4.23 (1) BR [EQUIVALENT, 0 ms] 9.81/4.23 (2) HASKELL 9.81/4.23 (3) COR [EQUIVALENT, 0 ms] 9.81/4.23 (4) HASKELL 9.81/4.23 (5) Narrow [COMPLETE, 0 ms] 9.81/4.23 (6) AND 9.81/4.23 (7) QDP 9.81/4.23 (8) NonTerminationLoopProof [COMPLETE, 0 ms] 9.81/4.23 (9) NO 9.81/4.23 (10) QDP 9.81/4.23 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (0) 9.81/4.23 Obligation: 9.81/4.23 mainModule Main 9.81/4.23 module Main where { 9.81/4.23 import qualified Prelude; 9.81/4.23 data Main.Char = Char MyInt ; 9.81/4.23 9.81/4.23 data Main.HugsException = HugsException ; 9.81/4.23 9.81/4.23 data Main.IO a = IO ((Main.IOError -> Main.IOResult) -> (a -> Main.IOResult) -> Main.IOResult) ; 9.81/4.23 9.81/4.23 data Main.IOError = IOError Main.IOErrorKind (List Main.Char) (List Main.Char) (Main.Maybe (List Main.Char)) ; 9.81/4.23 9.81/4.23 data Main.IOErrorKind = Junk ; 9.81/4.23 9.81/4.23 data Main.IOResult = Hugs_ExitWith MyInt | Hugs_Error Main.IOError | Hugs_Catch Main.IOResult (Main.HugsException -> Main.IOResult) (Main.IOError -> Main.IOResult) (Main.Obj -> Main.IOResult) | Hugs_ForkThread Main.IOResult Main.IOResult | Hugs_DeadThread | Hugs_YieldThread Main.IOResult | Hugs_Return Main.Obj | Hugs_BlockThread (Main.Obj -> Main.IOResult) ((Main.Obj -> Main.IOResult) -> Main.IOResult) ; 9.81/4.23 9.81/4.23 data List a = Cons a (List a) | Nil ; 9.81/4.23 9.81/4.23 data Main.Maybe a = Nothing | Just a ; 9.81/4.23 9.81/4.23 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.81/4.23 9.81/4.23 data Main.Nat = Succ Main.Nat | Zero ; 9.81/4.23 9.81/4.23 data Main.Obj = Obj ; 9.81/4.23 9.81/4.23 catchHugsException :: Main.IO a -> (Main.HugsException -> Main.IO a) -> Main.IO a; 9.81/4.23 catchHugsException (Main.IO m) k = ds Main.IO (catchHugsException1 m k); 9.81/4.23 9.81/4.23 catchHugsException0 k f s e = catchHugsException00 f s (k e); 9.81/4.23 9.81/4.23 catchHugsException00 f s (Main.IO k') = k' f s; 9.81/4.23 9.81/4.23 catchHugsException1 m k f s = Main.Hugs_Catch (m Main.Hugs_Error (pt Main.Hugs_Return toObj)) (catchHugsException0 k f s) f (pt s fromObj); 9.81/4.23 9.81/4.23 ds :: (b -> a) -> b -> a; 9.81/4.23 ds f x = f x; 9.81/4.23 9.81/4.23 fromObj :: Main.Obj -> a; 9.81/4.23 fromObj = fromObj; 9.81/4.23 9.81/4.23 pt :: (b -> c) -> (a -> b) -> a -> c; 9.81/4.23 pt f g x = f (g x); 9.81/4.23 9.81/4.23 toObj :: a -> Main.Obj; 9.81/4.23 toObj = toObj; 9.81/4.23 9.81/4.23 } 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (1) BR (EQUIVALENT) 9.81/4.23 Replaced joker patterns by fresh variables and removed binding patterns. 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (2) 9.81/4.23 Obligation: 9.81/4.23 mainModule Main 9.81/4.23 module Main where { 9.81/4.23 import qualified Prelude; 9.81/4.23 data Main.Char = Char MyInt ; 9.81/4.23 9.81/4.23 data Main.HugsException = HugsException ; 9.81/4.23 9.81/4.23 data Main.IO a = IO ((Main.IOError -> Main.IOResult) -> (a -> Main.IOResult) -> Main.IOResult) ; 9.81/4.23 9.81/4.23 data Main.IOError = IOError Main.IOErrorKind (List Main.Char) (List Main.Char) (Main.Maybe (List Main.Char)) ; 9.81/4.23 9.81/4.23 data Main.IOErrorKind = Junk ; 9.81/4.23 9.81/4.23 data Main.IOResult = Hugs_ExitWith MyInt | Hugs_Error Main.IOError | Hugs_Catch Main.IOResult (Main.HugsException -> Main.IOResult) (Main.IOError -> Main.IOResult) (Main.Obj -> Main.IOResult) | Hugs_ForkThread Main.IOResult Main.IOResult | Hugs_DeadThread | Hugs_YieldThread Main.IOResult | Hugs_Return Main.Obj | Hugs_BlockThread (Main.Obj -> Main.IOResult) ((Main.Obj -> Main.IOResult) -> Main.IOResult) ; 9.81/4.23 9.81/4.23 data List a = Cons a (List a) | Nil ; 9.81/4.23 9.81/4.23 data Main.Maybe a = Nothing | Just a ; 9.81/4.23 9.81/4.23 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.81/4.23 9.81/4.23 data Main.Nat = Succ Main.Nat | Zero ; 9.81/4.23 9.81/4.23 data Main.Obj = Obj ; 9.81/4.23 9.81/4.23 catchHugsException :: Main.IO a -> (Main.HugsException -> Main.IO a) -> Main.IO a; 9.81/4.23 catchHugsException (Main.IO m) k = ds Main.IO (catchHugsException1 m k); 9.81/4.23 9.81/4.23 catchHugsException0 k f s e = catchHugsException00 f s (k e); 9.81/4.23 9.81/4.23 catchHugsException00 f s (Main.IO k') = k' f s; 9.81/4.23 9.81/4.23 catchHugsException1 m k f s = Main.Hugs_Catch (m Main.Hugs_Error (pt Main.Hugs_Return toObj)) (catchHugsException0 k f s) f (pt s fromObj); 9.81/4.23 9.81/4.23 ds :: (a -> b) -> a -> b; 9.81/4.23 ds f x = f x; 9.81/4.23 9.81/4.23 fromObj :: Main.Obj -> a; 9.81/4.23 fromObj = fromObj; 9.81/4.23 9.81/4.23 pt :: (c -> a) -> (b -> c) -> b -> a; 9.81/4.23 pt f g x = f (g x); 9.81/4.23 9.81/4.23 toObj :: a -> Main.Obj; 9.81/4.23 toObj = toObj; 9.81/4.23 9.81/4.23 } 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (3) COR (EQUIVALENT) 9.81/4.23 Cond Reductions: 9.81/4.23 The following Function with conditions 9.81/4.23 "undefined |Falseundefined; 9.81/4.23 " 9.81/4.23 is transformed to 9.81/4.23 "undefined = undefined1; 9.81/4.23 " 9.81/4.23 "undefined0 True = undefined; 9.81/4.23 " 9.81/4.23 "undefined1 = undefined0 False; 9.81/4.23 " 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (4) 9.81/4.23 Obligation: 9.81/4.23 mainModule Main 9.81/4.23 module Main where { 9.81/4.23 import qualified Prelude; 9.81/4.23 data Main.Char = Char MyInt ; 9.81/4.23 9.81/4.23 data Main.HugsException = HugsException ; 9.81/4.23 9.81/4.23 data Main.IO a = IO ((Main.IOError -> Main.IOResult) -> (a -> Main.IOResult) -> Main.IOResult) ; 9.81/4.23 9.81/4.23 data Main.IOError = IOError Main.IOErrorKind (List Main.Char) (List Main.Char) (Main.Maybe (List Main.Char)) ; 9.81/4.23 9.81/4.23 data Main.IOErrorKind = Junk ; 9.81/4.23 9.81/4.23 data Main.IOResult = Hugs_ExitWith MyInt | Hugs_Error Main.IOError | Hugs_Catch Main.IOResult (Main.HugsException -> Main.IOResult) (Main.IOError -> Main.IOResult) (Main.Obj -> Main.IOResult) | Hugs_ForkThread Main.IOResult Main.IOResult | Hugs_DeadThread | Hugs_YieldThread Main.IOResult | Hugs_Return Main.Obj | Hugs_BlockThread (Main.Obj -> Main.IOResult) ((Main.Obj -> Main.IOResult) -> Main.IOResult) ; 9.81/4.23 9.81/4.23 data List a = Cons a (List a) | Nil ; 9.81/4.23 9.81/4.23 data Main.Maybe a = Nothing | Just a ; 9.81/4.23 9.81/4.23 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.81/4.23 9.81/4.23 data Main.Nat = Succ Main.Nat | Zero ; 9.81/4.23 9.81/4.23 data Main.Obj = Obj ; 9.81/4.23 9.81/4.23 catchHugsException :: Main.IO a -> (Main.HugsException -> Main.IO a) -> Main.IO a; 9.81/4.23 catchHugsException (Main.IO m) k = ds Main.IO (catchHugsException1 m k); 9.81/4.23 9.81/4.23 catchHugsException0 k f s e = catchHugsException00 f s (k e); 9.81/4.23 9.81/4.23 catchHugsException00 f s (Main.IO k') = k' f s; 9.81/4.23 9.81/4.23 catchHugsException1 m k f s = Main.Hugs_Catch (m Main.Hugs_Error (pt Main.Hugs_Return toObj)) (catchHugsException0 k f s) f (pt s fromObj); 9.81/4.23 9.81/4.23 ds :: (b -> a) -> b -> a; 9.81/4.23 ds f x = f x; 9.81/4.23 9.81/4.23 fromObj :: Main.Obj -> a; 9.81/4.23 fromObj = fromObj; 9.81/4.23 9.81/4.23 pt :: (c -> b) -> (a -> c) -> a -> b; 9.81/4.23 pt f g x = f (g x); 9.81/4.23 9.81/4.23 toObj :: a -> Main.Obj; 9.81/4.23 toObj = toObj; 9.81/4.23 9.81/4.23 } 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (5) Narrow (COMPLETE) 9.81/4.23 Haskell To QDPs 9.81/4.23 9.81/4.23 digraph dp_graph { 9.81/4.23 node [outthreshold=100, inthreshold=100];1[label="catchHugsException",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 3[label="catchHugsException vx3",fontsize=16,color="grey",shape="box"];3 -> 4[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 4[label="catchHugsException vx3 vx4",fontsize=16,color="burlywood",shape="triangle"];35[label="vx3/IO vx30",fontsize=10,color="white",style="solid",shape="box"];4 -> 35[label="",style="solid", color="burlywood", weight=9]; 9.81/4.23 35 -> 5[label="",style="solid", color="burlywood", weight=3]; 9.81/4.23 5[label="catchHugsException (IO vx30) vx4",fontsize=16,color="black",shape="box"];5 -> 6[label="",style="solid", color="black", weight=3]; 9.81/4.23 6[label="ds IO (catchHugsException1 vx30 vx4)",fontsize=16,color="black",shape="box"];6 -> 7[label="",style="solid", color="black", weight=3]; 9.81/4.23 7[label="IO (catchHugsException1 vx30 vx4)",fontsize=16,color="green",shape="box"];7 -> 8[label="",style="dashed", color="green", weight=3]; 9.81/4.23 8[label="catchHugsException1 vx30 vx4",fontsize=16,color="grey",shape="box"];8 -> 9[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 9[label="catchHugsException1 vx30 vx4 vx5",fontsize=16,color="grey",shape="box"];9 -> 10[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 10[label="catchHugsException1 vx30 vx4 vx5 vx6",fontsize=16,color="black",shape="triangle"];10 -> 11[label="",style="solid", color="black", weight=3]; 9.81/4.23 11[label="Hugs_Catch (vx30 Hugs_Error (pt Hugs_Return toObj)) (catchHugsException0 vx4 vx5 vx6) vx5 (pt vx6 fromObj)",fontsize=16,color="green",shape="box"];11 -> 12[label="",style="dashed", color="green", weight=3]; 9.81/4.23 11 -> 13[label="",style="dashed", color="green", weight=3]; 9.81/4.23 11 -> 14[label="",style="dashed", color="green", weight=3]; 9.81/4.23 12[label="vx30 Hugs_Error (pt Hugs_Return toObj)",fontsize=16,color="green",shape="box"];12 -> 15[label="",style="dashed", color="green", weight=3]; 9.81/4.23 12 -> 16[label="",style="dashed", color="green", weight=3]; 9.81/4.23 13[label="catchHugsException0 vx4 vx5 vx6",fontsize=16,color="grey",shape="box"];13 -> 17[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 14[label="pt vx6 fromObj",fontsize=16,color="grey",shape="box"];14 -> 18[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 15[label="Hugs_Error",fontsize=16,color="green",shape="box"];16[label="pt Hugs_Return toObj",fontsize=16,color="grey",shape="box"];16 -> 19[label="",style="dashed", color="grey", weight=3]; 9.81/4.23 17[label="catchHugsException0 vx4 vx5 vx6 vx7",fontsize=16,color="black",shape="triangle"];17 -> 20[label="",style="solid", color="black", weight=3]; 9.81/4.23 18[label="pt vx6 fromObj vx8",fontsize=16,color="black",shape="triangle"];18 -> 21[label="",style="solid", color="black", weight=3]; 9.81/4.23 19[label="pt Hugs_Return toObj vx9",fontsize=16,color="black",shape="triangle"];19 -> 22[label="",style="solid", color="black", weight=3]; 9.81/4.23 20 -> 23[label="",style="dashed", color="red", weight=0]; 9.81/4.23 20[label="catchHugsException00 vx5 vx6 (vx4 vx7)",fontsize=16,color="magenta"];20 -> 24[label="",style="dashed", color="magenta", weight=3]; 9.81/4.23 21[label="vx6 (fromObj vx8)",fontsize=16,color="green",shape="box"];21 -> 25[label="",style="dashed", color="green", weight=3]; 9.81/4.23 22[label="Hugs_Return (toObj vx9)",fontsize=16,color="green",shape="box"];22 -> 26[label="",style="dashed", color="green", weight=3]; 9.81/4.23 24[label="vx4 vx7",fontsize=16,color="green",shape="box"];24 -> 29[label="",style="dashed", color="green", weight=3]; 9.81/4.23 23[label="catchHugsException00 vx5 vx6 vx10",fontsize=16,color="burlywood",shape="triangle"];36[label="vx10/IO vx100",fontsize=10,color="white",style="solid",shape="box"];23 -> 36[label="",style="solid", color="burlywood", weight=9]; 9.81/4.23 36 -> 28[label="",style="solid", color="burlywood", weight=3]; 9.81/4.23 25[label="fromObj vx8",fontsize=16,color="black",shape="triangle"];25 -> 30[label="",style="solid", color="black", weight=3]; 9.81/4.23 26[label="toObj vx9",fontsize=16,color="black",shape="triangle"];26 -> 31[label="",style="solid", color="black", weight=3]; 9.81/4.23 29[label="vx7",fontsize=16,color="green",shape="box"];28[label="catchHugsException00 vx5 vx6 (IO vx100)",fontsize=16,color="black",shape="box"];28 -> 32[label="",style="solid", color="black", weight=3]; 9.81/4.23 30 -> 25[label="",style="dashed", color="red", weight=0]; 9.81/4.23 30[label="fromObj vx8",fontsize=16,color="magenta"];31 -> 26[label="",style="dashed", color="red", weight=0]; 9.81/4.23 31[label="toObj vx9",fontsize=16,color="magenta"];32[label="vx100 vx5 vx6",fontsize=16,color="green",shape="box"];32 -> 33[label="",style="dashed", color="green", weight=3]; 9.81/4.23 32 -> 34[label="",style="dashed", color="green", weight=3]; 9.81/4.23 33[label="vx5",fontsize=16,color="green",shape="box"];34[label="vx6",fontsize=16,color="green",shape="box"];} 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (6) 9.81/4.23 Complex Obligation (AND) 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (7) 9.81/4.23 Obligation: 9.81/4.23 Q DP problem: 9.81/4.23 The TRS P consists of the following rules: 9.81/4.23 9.81/4.23 new_fromObj(vx8, h, []) -> new_fromObj(vx8, h, []) 9.81/4.23 9.81/4.23 R is empty. 9.81/4.23 Q is empty. 9.81/4.23 We have to consider all (P,Q,R)-chains. 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (8) NonTerminationLoopProof (COMPLETE) 9.81/4.23 We used the non-termination processor [FROCOS05] to show that the DP problem is infinite. 9.81/4.23 Found a loop by semiunifying a rule from P directly. 9.81/4.23 9.81/4.23 s = new_fromObj(vx8, h, []) evaluates to t =new_fromObj(vx8, h, []) 9.81/4.23 9.81/4.23 Thus s starts an infinite chain as s semiunifies with t with the following substitutions: 9.81/4.23 * Matcher: [ ] 9.81/4.23 * Semiunifier: [ ] 9.81/4.23 9.81/4.23 -------------------------------------------------------------------------------- 9.81/4.23 Rewriting sequence 9.81/4.23 9.81/4.23 The DP semiunifies directly so there is only one rewrite step from new_fromObj(vx8, h, []) to new_fromObj(vx8, h, []). 9.81/4.23 9.81/4.23 9.81/4.23 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (9) 9.81/4.23 NO 9.81/4.23 9.81/4.23 ---------------------------------------- 9.81/4.23 9.81/4.23 (10) 9.81/4.23 Obligation: 9.81/4.23 Q DP problem: 9.81/4.23 The TRS P consists of the following rules: 9.81/4.23 9.81/4.23 new_toObj(vx9, h, []) -> new_toObj(vx9, h, []) 9.81/4.23 9.81/4.23 R is empty. 9.81/4.23 Q is empty. 9.81/4.23 We have to consider all (P,Q,R)-chains. 9.81/4.26 EOF