7.63/3.43 YES 9.23/3.89 proof of /export/starexec/sandbox/benchmark/theBenchmark.hs 9.23/3.89 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 9.23/3.89 9.23/3.89 9.23/3.89 H-Termination with start terms of the given HASKELL could be proven: 9.23/3.89 9.23/3.89 (0) HASKELL 9.23/3.89 (1) BR [EQUIVALENT, 0 ms] 9.23/3.89 (2) HASKELL 9.23/3.89 (3) COR [EQUIVALENT, 0 ms] 9.23/3.89 (4) HASKELL 9.23/3.89 (5) Narrow [EQUIVALENT, 0 ms] 9.23/3.89 (6) YES 9.23/3.89 9.23/3.89 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (0) 9.23/3.89 Obligation: 9.23/3.89 mainModule Main 9.23/3.89 module Main where { 9.23/3.89 import qualified Prelude; 9.23/3.89 data Main.Char = Char MyInt ; 9.23/3.89 9.23/3.89 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.23/3.89 9.23/3.89 data Main.Nat = Succ Main.Nat | Zero ; 9.23/3.89 9.23/3.89 fromEnumChar :: Main.Char -> MyInt; 9.23/3.89 fromEnumChar = primCharToInt; 9.23/3.89 9.23/3.89 ord :: Main.Char -> MyInt; 9.23/3.89 ord = fromEnumChar; 9.23/3.89 9.23/3.89 primCharToInt :: Main.Char -> MyInt; 9.23/3.89 primCharToInt (Main.Char x) = x; 9.23/3.89 9.23/3.89 } 9.23/3.89 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (1) BR (EQUIVALENT) 9.23/3.89 Replaced joker patterns by fresh variables and removed binding patterns. 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (2) 9.23/3.89 Obligation: 9.23/3.89 mainModule Main 9.23/3.89 module Main where { 9.23/3.89 import qualified Prelude; 9.23/3.89 data Main.Char = Char MyInt ; 9.23/3.89 9.23/3.89 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.23/3.89 9.23/3.89 data Main.Nat = Succ Main.Nat | Zero ; 9.23/3.89 9.23/3.89 fromEnumChar :: Main.Char -> MyInt; 9.23/3.89 fromEnumChar = primCharToInt; 9.23/3.89 9.23/3.89 ord :: Main.Char -> MyInt; 9.23/3.89 ord = fromEnumChar; 9.23/3.89 9.23/3.89 primCharToInt :: Main.Char -> MyInt; 9.23/3.89 primCharToInt (Main.Char x) = x; 9.23/3.89 9.23/3.89 } 9.23/3.89 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (3) COR (EQUIVALENT) 9.23/3.89 Cond Reductions: 9.23/3.89 The following Function with conditions 9.23/3.89 "undefined |Falseundefined; 9.23/3.89 " 9.23/3.89 is transformed to 9.23/3.89 "undefined = undefined1; 9.23/3.89 " 9.23/3.89 "undefined0 True = undefined; 9.23/3.89 " 9.23/3.89 "undefined1 = undefined0 False; 9.23/3.89 " 9.23/3.89 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (4) 9.23/3.89 Obligation: 9.23/3.89 mainModule Main 9.23/3.89 module Main where { 9.23/3.89 import qualified Prelude; 9.23/3.89 data Main.Char = Char MyInt ; 9.23/3.89 9.23/3.89 data MyInt = Pos Main.Nat | Neg Main.Nat ; 9.23/3.89 9.23/3.89 data Main.Nat = Succ Main.Nat | Zero ; 9.23/3.89 9.23/3.89 fromEnumChar :: Main.Char -> MyInt; 9.23/3.89 fromEnumChar = primCharToInt; 9.23/3.89 9.23/3.89 ord :: Main.Char -> MyInt; 9.23/3.89 ord = fromEnumChar; 9.23/3.89 9.23/3.89 primCharToInt :: Main.Char -> MyInt; 9.23/3.89 primCharToInt (Main.Char x) = x; 9.23/3.89 9.23/3.89 } 9.23/3.89 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (5) Narrow (EQUIVALENT) 9.23/3.89 Haskell To QDPs 9.23/3.89 9.23/3.89 digraph dp_graph { 9.23/3.89 node [outthreshold=100, inthreshold=100];1[label="ord",fontsize=16,color="grey",shape="box"];1 -> 3[label="",style="dashed", color="grey", weight=3]; 9.23/3.89 3[label="ord vx3",fontsize=16,color="black",shape="triangle"];3 -> 4[label="",style="solid", color="black", weight=3]; 9.23/3.89 4[label="fromEnumChar vx3",fontsize=16,color="black",shape="box"];4 -> 5[label="",style="solid", color="black", weight=3]; 9.23/3.89 5[label="primCharToInt vx3",fontsize=16,color="burlywood",shape="box"];8[label="vx3/Char vx30",fontsize=10,color="white",style="solid",shape="box"];5 -> 8[label="",style="solid", color="burlywood", weight=9]; 9.23/3.89 8 -> 6[label="",style="solid", color="burlywood", weight=3]; 9.23/3.89 6[label="primCharToInt (Char vx30)",fontsize=16,color="black",shape="box"];6 -> 7[label="",style="solid", color="black", weight=3]; 9.23/3.89 7[label="vx30",fontsize=16,color="green",shape="box"];} 9.23/3.89 9.23/3.89 ---------------------------------------- 9.23/3.89 9.23/3.89 (6) 9.23/3.89 YES 9.42/3.93 EOF