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