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