/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.hs /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- MAYBE proof of /export/starexec/sandbox/benchmark/theBenchmark.hs # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty H-Termination with start terms of the given HASKELL could not be shown: (0) HASKELL (1) LR [EQUIVALENT, 0 ms] (2) HASKELL (3) CR [EQUIVALENT, 0 ms] (4) HASKELL (5) IFR [EQUIVALENT, 27 ms] (6) HASKELL (7) BR [EQUIVALENT, 0 ms] (8) HASKELL (9) COR [EQUIVALENT, 36 ms] (10) HASKELL (11) LetRed [EQUIVALENT, 71 ms] (12) HASKELL (13) NumRed [SOUND, 0 ms] (14) HASKELL ---------------------------------------- (0) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (1) LR (EQUIVALENT) Lambda Reductions: The following Lambda expression "\vu24->case vu24 of { (c,''' : []) -> (c,t) : []; _ -> []} " is transformed to "readsPrec0 t vu24 = case vu24 of { (c,''' : []) -> (c,t) : []; _ -> []} ; " The following Lambda expression "\vu25->case vu25 of { (''' : s,t) -> concatMap (readsPrec0 t) (readLitChar s); _ -> []} " is transformed to "readsPrec1 vu25 = case vu25 of { (''' : s,t) -> concatMap (readsPrec0 t) (readLitChar s); _ -> []} ; " The following Lambda expression "\r->concatMap readsPrec1 (lex r)" is transformed to "readsPrec2 r = concatMap readsPrec1 (lex r); " The following Lambda expression "\nd->n * radix + d" is transformed to "readInt0 radix n d = n * radix + d; " The following Lambda expression "\vu77->case vu77 of { (ds,r) -> (foldl1 (readInt0 radix) (map (fromIntegral . digToInt) ds),r) : []; _ -> []} " is transformed to "readInt1 radix digToInt vu77 = case vu77 of { (ds,r) -> (foldl1 (readInt0 radix) (map (fromIntegral . digToInt) ds),r) : []; _ -> []} ; " The following Lambda expression "\vu54->case vu54 of { (ch,''' : t) -> if ch /= ''' : [] then (''' : ch ++ ''' : [],t) : [] else []; _ -> []} " is transformed to "lex0 vu54 = case vu54 of { (ch,''' : t) -> if ch /= ''' : [] then (''' : ch ++ ''' : [],t) : [] else []; _ -> []} ; " The following Lambda expression "\vu56->case vu56 of { (str,u) -> (ch ++ str,u) : []; _ -> []} " is transformed to "lexString0 ch vu56 = case vu56 of { (str,u) -> (ch ++ str,u) : []; _ -> []} ; " The following Lambda expression "\vu57->case vu57 of { (ch,t) -> concatMap (lexString0 ch) (lexString t); _ -> []} " is transformed to "lexString1 vu57 = case vu57 of { (ch,t) -> concatMap (lexString0 ch) (lexString t); _ -> []} ; " The following Lambda expression "\vu58->case vu58 of { '\' : t -> ([],t) : []; _ -> []} " is transformed to "lexStrItem0 vu58 = case vu58 of { '\' : t -> ([],t) : []; _ -> []} ; " The following Lambda expression "\vu55->case vu55 of { (str,t) -> ('"' : str,t) : []; _ -> []} " is transformed to "lex1 vu55 = case vu55 of { (str,t) -> ('"' : str,t) : []; _ -> []} ; " The following Lambda expression "\vu63->case vu63 of { (e,u) -> ('.' : ds ++ e,u) : []; _ -> []} " is transformed to "lexFracExp0 ds vu63 = case vu63 of { (e,u) -> ('.' : ds ++ e,u) : []; _ -> []} ; " The following Lambda expression "\vu64->case vu64 of { (ds,t) -> concatMap (lexFracExp0 ds) (lexExp t); _ -> []} " is transformed to "lexFracExp1 vu64 = case vu64 of { (ds,t) -> concatMap (lexFracExp0 ds) (lexExp t); _ -> []} ; " The following Lambda expression "\vu65->case vu65 of { (ds,u) -> (e : c : ds,u) : []; _ -> []} " is transformed to "lexExp0 e c vu65 = case vu65 of { (ds,u) -> (e : c : ds,u) : []; _ -> []} ; " The following Lambda expression "\vu66->case vu66 of { c : t -> if c `elem` '+' : '-' : [] then concatMap (lexExp0 e c) (lexDigits t) else []; _ -> []} " is transformed to "lexExp1 e vu66 = case vu66 of { c : t -> if c `elem` '+' : '-' : [] then concatMap (lexExp0 e c) (lexDigits t) else []; _ -> []} ; " The following Lambda expression "\vu67->case vu67 of { (ds,t) -> (e : ds,t) : []; _ -> []} " is transformed to "lexExp2 e vu67 = case vu67 of { (ds,t) -> (e : ds,t) : []; _ -> []} ; " The following Lambda expression "\vu59->case vu59 of { (sym,t) -> (c : sym,t) : []; _ -> []} " is transformed to "lex2 c vu59 = case vu59 of { (sym,t) -> (c : sym,t) : []; _ -> []} ; " The following Lambda expression "\vu60->case vu60 of { (nam,t) -> (c : nam,t) : []; _ -> []} " is transformed to "lex3 c vu60 = case vu60 of { (nam,t) -> (c : nam,t) : []; _ -> []} ; " The following Lambda expression "\vu61->case vu61 of { (fe,t) -> (c : ds ++ fe,t) : []; _ -> []} " is transformed to "lex4 c ds vu61 = case vu61 of { (fe,t) -> (c : ds ++ fe,t) : []; _ -> []} ; " The following Lambda expression "\vu62->case vu62 of { (ds,s) -> concatMap (lex4 c ds) (lexFracExp s); _ -> []} " is transformed to "lex5 c vu62 = case vu62 of { (ds,s) -> concatMap (lex4 c ds) (lexFracExp s); _ -> []} ; " The following Lambda expression "\ab->(a,b)" is transformed to "zip0 a b = (a,b); " The following Lambda expression "\vu71->case vu71 of { (n,t) -> (toEnum n,t) : []; _ -> []} " is transformed to "readEsc0 vu71 = case vu71 of { (n,t) -> (toEnum n,t) : []; _ -> []} ; " The following Lambda expression "\vu72->case vu72 of { (n,t) -> (toEnum n,t) : []; _ -> []} " is transformed to "readEsc1 vu72 = case vu72 of { (n,t) -> (toEnum n,t) : []; _ -> []} ; " The following Lambda expression "\vu73->case vu73 of { (n,t) -> (toEnum n,t) : []; _ -> []} " is transformed to "readEsc2 vu73 = case vu73 of { (n,t) -> (toEnum n,t) : []; _ -> []} ; " The following Lambda expression "\vu74->case vu74 of { ([],s') -> (c,s') : []; _ -> []} " is transformed to "readEsc3 c vu74 = case vu74 of { ([],s') -> (c,s') : []; _ -> []} ; " The following Lambda expression "\vu75->case vu75 of { (c,mne) -> concatMap (readEsc3 c) (lexmatch mne s : []); _ -> []} " is transformed to "readEsc4 s vu75 = case vu75 of { (c,mne) -> concatMap (readEsc3 c) (lexmatch mne s : []); _ -> []} ; " The following Lambda expression "\vu68->case vu68 of { (cs@(_ : _),t) -> (cs,t) : []; _ -> []} " is transformed to "nonnull0 vu68 = case vu68 of { (cs@(_ : _),t) -> (cs,t) : []; _ -> []} ; " The following Lambda expression "\d->fromEnum d - fromEnum_0" is transformed to "readOct0 d = fromEnum d - fromEnum_0; " The following Lambda expression "\vu48->case vu48 of { (')' : [],u) -> (x,u) : []; _ -> []} " is transformed to "mandatory0 x vu48 = case vu48 of { (')' : [],u) -> (x,u) : []; _ -> []} ; " The following Lambda expression "\vu49->case vu49 of { (x,t) -> concatMap (mandatory0 x) (lex t); _ -> []} " is transformed to "mandatory1 vu49 = case vu49 of { (x,t) -> concatMap (mandatory0 x) (lex t); _ -> []} ; " The following Lambda expression "\vu50->case vu50 of { ('(' : [],s) -> concatMap mandatory1 (optional s); _ -> []} " is transformed to "mandatory2 vu50 = case vu50 of { ('(' : [],s) -> concatMap mandatory1 (optional s); _ -> []} ; " The following Lambda expression "\ex->if isEOFError ex then return '\10' else ioError ex" is transformed to "getRest0 ex = if isEOFError ex then return '\10' else ioError ex; " The following Lambda expression "\cs->return (c : cs)" is transformed to "getRest1 c cs = return (c : cs); " The following Lambda expression "\c->if c == '\10' then return [] else getRest >>= getRest1 c" is transformed to "getRest2 c = if c == '\10' then return [] else getRest >>= getRest1 c; " The following Lambda expression "\ls->return (c : ls)" is transformed to "getLine0 c ls = return (c : ls); " The following Lambda expression "\c->if c == '\10' then return [] else getRest >>= getLine0 c" is transformed to "getLine1 c = if c == '\10' then return [] else getRest >>= getLine0 c; " The following Lambda expression "\d->fromEnum d - fromEnum_0" is transformed to "readDec0 d = fromEnum d - fromEnum_0; " The following Lambda expression "\vu89->case vu89 of { ([],[]) -> x : []; _ -> []} " is transformed to "readIO0 x vu89 = case vu89 of { ([],[]) -> x : []; _ -> []} ; " The following Lambda expression "\vu90->case vu90 of { (x,t) -> concatMap (readIO0 x) (lex t); _ -> []} " is transformed to "readIO1 vu90 = case vu90 of { (x,t) -> concatMap (readIO0 x) (lex t); _ -> []} ; " The following Lambda expression "\r->return r" is transformed to "readLn0 r = return r; " The following Lambda expression "\l->readIO l >>= readLn0" is transformed to "readLn1 l = readIO l >>= readLn0; " The following Lambda expression "\vu69->case vu69 of { ([],s') -> (mne,s') : []; _ -> []} " is transformed to "lexEsc0 mne vu69 = case vu69 of { ([],s') -> (mne,s') : []; _ -> []} ; " The following Lambda expression "\vu70->case vu70 of { (c,mne) -> concatMap (lexEsc0 mne) (lexmatch mne s : []); _ -> []} " is transformed to "lexEsc1 s vu70 = case vu70 of { (c,mne) -> concatMap (lexEsc0 mne) (lexmatch mne s : []); _ -> []} ; " The following Lambda expression "\(_,zs)->zs" is transformed to "zs0 (_,zs) = zs; " The following Lambda expression "\(ys,_)->ys" is transformed to "ys0 (ys,_) = ys; " ---------------------------------------- (2) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (3) CR (EQUIVALENT) Case Reductions: The following Case expression "case vu90 of { (x,t) -> concatMap (readIO0 x) (lex t); _ -> []} " is transformed to "readIO10 (x,t) = concatMap (readIO0 x) (lex t); readIO10 _ = []; " The following Case expression "case vu89 of { ([],[]) -> x : []; _ -> []} " is transformed to "readIO00 x ([],[]) = x : []; readIO00 x _ = []; " The following Case expression "case vu77 of { (ds,r) -> (foldl1 (readInt0 radix) (map (fromIntegral . digToInt) ds),r) : []; _ -> []} " is transformed to "readInt10 radix digToInt (ds,r) = (foldl1 (readInt0 radix) (map (fromIntegral . digToInt) ds),r) : []; readInt10 radix digToInt _ = []; " The following Case expression "case vu55 of { (str,t) -> ('"' : str,t) : []; _ -> []} " is transformed to "lex10 (str,t) = ('"' : str,t) : []; lex10 _ = []; " The following Case expression "case vu57 of { (ch,t) -> concatMap (lexString0 ch) (lexString t); _ -> []} " is transformed to "lexString10 (ch,t) = concatMap (lexString0 ch) (lexString t); lexString10 _ = []; " The following Case expression "case vu56 of { (str,u) -> (ch ++ str,u) : []; _ -> []} " is transformed to "lexString00 ch (str,u) = (ch ++ str,u) : []; lexString00 ch _ = []; " The following Case expression "case vu58 of { '\' : t -> ([],t) : []; _ -> []} " is transformed to "lexStrItem00 ('\' : t) = ([],t) : []; lexStrItem00 _ = []; " The following Case expression "case vu59 of { (sym,t) -> (c : sym,t) : []; _ -> []} " is transformed to "lex20 c (sym,t) = (c : sym,t) : []; lex20 c _ = []; " The following Case expression "case vu67 of { (ds,t) -> (e : ds,t) : []; _ -> []} " is transformed to "lexExp20 e (ds,t) = (e : ds,t) : []; lexExp20 e _ = []; " The following Case expression "case vu65 of { (ds,u) -> (e : c : ds,u) : []; _ -> []} " is transformed to "lexExp00 e c (ds,u) = (e : c : ds,u) : []; lexExp00 e c _ = []; " The following Case expression "case vu62 of { (ds,s) -> concatMap (lex4 c ds) (lexFracExp s); _ -> []} " is transformed to "lex50 c (ds,s) = concatMap (lex4 c ds) (lexFracExp s); lex50 c _ = []; " The following Case expression "case vu66 of { c : t -> if c `elem` '+' : '-' : [] then concatMap (lexExp0 e c) (lexDigits t) else []; _ -> []} " is transformed to "lexExp10 e (c : t) = if c `elem` '+' : '-' : [] then concatMap (lexExp0 e c) (lexDigits t) else []; lexExp10 e _ = []; " The following Case expression "case vu60 of { (nam,t) -> (c : nam,t) : []; _ -> []} " is transformed to "lex30 c (nam,t) = (c : nam,t) : []; lex30 c _ = []; " The following Case expression "case vu61 of { (fe,t) -> (c : ds ++ fe,t) : []; _ -> []} " is transformed to "lex40 c ds (fe,t) = (c : ds ++ fe,t) : []; lex40 c ds _ = []; " The following Case expression "case vu63 of { (e,u) -> ('.' : ds ++ e,u) : []; _ -> []} " is transformed to "lexFracExp00 ds (e,u) = ('.' : ds ++ e,u) : []; lexFracExp00 ds _ = []; " The following Case expression "case vu64 of { (ds,t) -> concatMap (lexFracExp0 ds) (lexExp t); _ -> []} " is transformed to "lexFracExp10 (ds,t) = concatMap (lexFracExp0 ds) (lexExp t); lexFracExp10 _ = []; " The following Case expression "case vu73 of { (n,t) -> (toEnum n,t) : []; _ -> []} " is transformed to "readEsc20 (n,t) = (toEnum n,t) : []; readEsc20 _ = []; " The following Case expression "case vu72 of { (n,t) -> (toEnum n,t) : []; _ -> []} " is transformed to "readEsc10 (n,t) = (toEnum n,t) : []; readEsc10 _ = []; " The following Case expression "case vu71 of { (n,t) -> (toEnum n,t) : []; _ -> []} " is transformed to "readEsc00 (n,t) = (toEnum n,t) : []; readEsc00 _ = []; " The following Case expression "case vu75 of { (c,mne) -> concatMap (readEsc3 c) (lexmatch mne s : []); _ -> []} " is transformed to "readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s _ = []; " The following Case expression "case vu74 of { ([],s') -> (c,s') : []; _ -> []} " is transformed to "readEsc30 c ([],s') = (c,s') : []; readEsc30 c _ = []; " The following Case expression "case concatMap (readEsc4 s) table of { pr : _ -> pr : []; [] -> []} " is transformed to "readEsc5 (pr : _) = pr : []; readEsc5 [] = []; " The following Case expression "case vu25 of { (''' : s,t) -> concatMap (readsPrec0 t) (readLitChar s); _ -> []} " is transformed to "readsPrec10 (''' : s,t) = concatMap (readsPrec0 t) (readLitChar s); readsPrec10 _ = []; " The following Case expression "case vu24 of { (c,''' : []) -> (c,t) : []; _ -> []} " is transformed to "readsPrec00 t (c,''' : []) = (c,t) : []; readsPrec00 t _ = []; " The following Case expression "case vu54 of { (ch,''' : t) -> if ch /= ''' : [] then (''' : ch ++ ''' : [],t) : [] else []; _ -> []} " is transformed to "lex00 (ch,''' : t) = if ch /= ''' : [] then (''' : ch ++ ''' : [],t) : [] else []; lex00 _ = []; " The following Case expression "case vu48 of { (')' : [],u) -> (x,u) : []; _ -> []} " is transformed to "mandatory00 x (')' : [],u) = (x,u) : []; mandatory00 x _ = []; " The following Case expression "case vu49 of { (x,t) -> concatMap (mandatory0 x) (lex t); _ -> []} " is transformed to "mandatory10 (x,t) = concatMap (mandatory0 x) (lex t); mandatory10 _ = []; " The following Case expression "case vu50 of { ('(' : [],s) -> concatMap mandatory1 (optional s); _ -> []} " is transformed to "mandatory20 ('(' : [],s) = concatMap mandatory1 (optional s); mandatory20 _ = []; " The following Case expression "case vu68 of { (cs@(_ : _),t) -> (cs,t) : []; _ -> []} " is transformed to "nonnull00 (cs@(_ : _),t) = (cs,t) : []; nonnull00 _ = []; " The following Case expression "case concatMap readIO1 (reads s) of { x : [] -> return x; [] -> ioError (userError ('N' : 'P' : [])); _ -> ioError (userError ('A' : 'P' : []))} " is transformed to "readIO2 (x : []) = return x; readIO2 [] = ioError (userError ('N' : 'P' : [])); readIO2 _ = ioError (userError ('A' : 'P' : [])); " The following Case expression "case concatMap (lexEsc1 s) table of { pr : _ -> pr : []; [] -> []} " is transformed to "lexEsc2 (pr : _) = pr : []; lexEsc2 [] = []; " The following Case expression "case vu69 of { ([],s') -> (mne,s') : []; _ -> []} " is transformed to "lexEsc00 mne ([],s') = (mne,s') : []; lexEsc00 mne _ = []; " The following Case expression "case vu70 of { (c,mne) -> concatMap (lexEsc0 mne) (lexmatch mne s : []); _ -> []} " is transformed to "lexEsc10 s (c,mne) = concatMap (lexEsc0 mne) (lexmatch mne s : []); lexEsc10 s _ = []; " ---------------------------------------- (4) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (5) IFR (EQUIVALENT) If Reductions: The following If expression "if c `elem` '+' : '-' : [] then concatMap (lexExp0 e c) (lexDigits t) else []" is transformed to "lexExp100 e c t True = concatMap (lexExp0 e c) (lexDigits t); lexExp100 e c t False = []; " The following If expression "if ch /= ''' : [] then (''' : ch ++ ''' : [],t) : [] else []" is transformed to "lex000 ch t True = (''' : ch ++ ''' : [],t) : []; lex000 ch t False = []; " The following If expression "if isUpper d then 'A' else 'a'" is transformed to "hex0 True = 'A'; hex0 False = 'a'; " The following If expression "if isDigit d then fromEnum_0 else fromEnum (hex0 (isUpper d)) - 10" is transformed to "hex1 d True = fromEnum_0; hex1 d False = fromEnum (hex0 (isUpper d)) - 10; " The following If expression "if b then mandatory else optional" is transformed to "readParen0 True = mandatory; readParen0 False = optional; " The following If expression "if isEOFError ex then return '\10' else ioError ex" is transformed to "getRest00 ex True = return '\10'; getRest00 ex False = ioError ex; " The following If expression "if c == '\10' then return [] else getRest >>= getLine0 c" is transformed to "getLine10 c True = return []; getLine10 c False = getRest >>= getLine0 c; " The following If expression "if c == '\10' then return [] else getRest >>= getRest1 c" is transformed to "getRest20 c True = return []; getRest20 c False = getRest >>= getRest1 c; " ---------------------------------------- (6) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (7) BR (EQUIVALENT) Replaced joker patterns by fresh variables and removed binding patterns. Binding Reductions: The bind variable of the following binding Pattern "xs@(yy : yz)" is replaced by the following term "yy : yz" The bind variable of the following binding Pattern "xs@(zw : zx)" is replaced by the following term "zw : zx" The bind variable of the following binding Pattern "cs@(vuw : vux)" is replaced by the following term "vuw : vux" The bind variable of the following binding Pattern "s@(vvu : vvv)" is replaced by the following term "vvu : vvv" The bind variable of the following binding Pattern "s@(vvx : vvy)" is replaced by the following term "vvx : vvy" The bind variable of the following binding Pattern "s@(vzu : vzv)" is replaced by the following term "vzu : vzv" ---------------------------------------- (8) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (9) COR (EQUIVALENT) Cond Reductions: The following Function with conditions "readsPrec00 t (c,''' : []) = (c,t) : []; readsPrec00 t vy = []; " is transformed to "readsPrec00 t (c,wuw : wux) = readsPrec002 t (c,wuw : wux); readsPrec00 t vy = readsPrec000 t vy; " "readsPrec000 t vy = []; " "readsPrec001 True t (c,wuw : []) = (c,t) : []; readsPrec001 wuy wuz wvu = readsPrec000 wuz wvu; " "readsPrec002 t (c,wuw : wux) = readsPrec001 (wuw == ''') t (c,wuw : wux); readsPrec002 wvv wvw = readsPrec000 wvv wvw; " The following Function with conditions "takeWhile p [] = []; takeWhile p (x : xs)|p xx : takeWhile p xs|otherwise[]; " is transformed to "takeWhile p [] = takeWhile3 p []; takeWhile p (x : xs) = takeWhile2 p (x : xs); " "takeWhile0 p x xs True = []; " "takeWhile1 p x xs True = x : takeWhile p xs; takeWhile1 p x xs False = takeWhile0 p x xs otherwise; " "takeWhile2 p (x : xs) = takeWhile1 p x xs (p x); " "takeWhile3 p [] = []; takeWhile3 wvz wwu = takeWhile2 wvz wwu; " The following Function with conditions "lexString ('"' : s) = ('"' : [],s) : []; lexString s = concatMap lexString1 (lexStrItem s); " is transformed to "lexString (www : s) = lexString4 (www : s); lexString s = lexString2 s; " "lexString2 s = concatMap lexString1 (lexStrItem s); " "lexString3 True (www : s) = ('"' : [],s) : []; lexString3 wwx wwy = lexString2 wwy; " "lexString4 (www : s) = lexString3 (www == '"') (www : s); lexString4 wwz = lexString2 wwz; " The following Function with conditions "lexStrItem ('\' : '&' : s) = ('\' : '&' : [],s) : []; lexStrItem ('\' : c : s)|isSpace cconcatMap lexStrItem0 (dropWhile isSpace s : []); lexStrItem s = lexLitChar s; " is transformed to "lexStrItem (wyx : wzv) = lexStrItem7 (wyx : wzv); lexStrItem (wxv : wxy) = lexStrItem4 (wxv : wxy); lexStrItem s = lexStrItem1 s; " "lexStrItem1 s = lexLitChar s; " "lexStrItem2 wxv c s True = concatMap lexStrItem0 (dropWhile isSpace s : []); lexStrItem2 wxv c s False = lexStrItem1 (wxv : c : s); " "lexStrItem3 True (wxv : c : s) = lexStrItem2 wxv c s (isSpace c); lexStrItem3 wxz wyu = lexStrItem1 wyu; " "lexStrItem4 (wxv : wxy) = lexStrItem3 (wxv == '\') (wxv : wxy); lexStrItem4 wyv = lexStrItem1 wyv; " "lexStrItem5 True (wyx : wyz : s) = ('\' : '&' : [],s) : []; lexStrItem5 wzw wzx = lexStrItem4 wzx; " "lexStrItem6 True (wyx : wyz : s) = lexStrItem5 (wyz == '&') (wyx : wyz : s); lexStrItem6 wzy wzz = lexStrItem4 wzz; " "lexStrItem7 (wyx : wzv) = lexStrItem6 (wyx == '\') (wyx : wzv); lexStrItem7 xuu = lexStrItem4 xuu; " The following Function with conditions "lexStrItem00 ('\' : t) = ([],t) : []; lexStrItem00 ww = []; " is transformed to "lexStrItem00 (xuw : t) = lexStrItem002 (xuw : t); lexStrItem00 ww = lexStrItem000 ww; " "lexStrItem000 ww = []; " "lexStrItem001 True (xuw : t) = ([],t) : []; lexStrItem001 xux xuy = lexStrItem000 xuy; " "lexStrItem002 (xuw : t) = lexStrItem001 (xuw == '\') (xuw : t); lexStrItem002 xuz = lexStrItem000 xuz; " The following Function with conditions "lexExp (e : s)|e `elem` 'e' : 'E' : []concatMap (lexExp1 e) (s : []) ++ concatMap (lexExp2 e) (lexDigits s); lexExp s = ([],s) : []; " is transformed to "lexExp (e : s) = lexExp5 (e : s); lexExp s = lexExp3 s; " "lexExp3 s = ([],s) : []; " "lexExp4 e s True = concatMap (lexExp1 e) (s : []) ++ concatMap (lexExp2 e) (lexDigits s); lexExp4 e s False = lexExp3 (e : s); " "lexExp5 (e : s) = lexExp4 e s (e `elem` 'e' : 'E' : []); lexExp5 xvv = lexExp3 xvv; " The following Function with conditions "lexFracExp ('.' : c : cs)|isDigit cconcatMap lexFracExp1 (lexDigits (c : cs)); lexFracExp s = lexExp s; " is transformed to "lexFracExp (xvx : xwu) = lexFracExp5 (xvx : xwu); lexFracExp s = lexFracExp2 s; " "lexFracExp2 s = lexExp s; " "lexFracExp3 xvx c cs True = concatMap lexFracExp1 (lexDigits (c : cs)); lexFracExp3 xvx c cs False = lexFracExp2 (xvx : c : cs); " "lexFracExp4 True (xvx : c : cs) = lexFracExp3 xvx c cs (isDigit c); lexFracExp4 xwv xww = lexFracExp2 xww; " "lexFracExp5 (xvx : xwu) = lexFracExp4 (xvx == '.') (xvx : xwu); lexFracExp5 xwx = lexFracExp2 xwx; " The following Function with conditions "lex [] = ([],[]) : []; lex (c : s)|isSpace clex (dropWhile isSpace s); lex (''' : s) = concatMap lex0 (lexLitChar s); lex ('"' : s) = concatMap lex1 (lexString s) where { lex1 vu55 = lex10 vu55; ; lex10 (str,t) = ('"' : str,t) : []; lex10 wx = []; ; lexStrItem ('\' : '&' : s) = ('\' : '&' : [],s) : []; lexStrItem ('\' : c : s)|isSpace cconcatMap lexStrItem0 (dropWhile isSpace s : []); lexStrItem s = lexLitChar s; ; lexStrItem0 vu58 = lexStrItem00 vu58; ; lexStrItem00 ('\' : t) = ([],t) : []; lexStrItem00 ww = []; ; lexString ('"' : s) = ('"' : [],s) : []; lexString s = concatMap lexString1 (lexStrItem s); ; lexString0 ch vu56 = lexString00 ch vu56; ; lexString00 ch (str,u) = (ch ++ str,u) : []; lexString00 ch wu = []; ; lexString1 vu57 = lexString10 vu57; ; lexString10 (ch,t) = concatMap (lexString0 ch) (lexString t); lexString10 wv = []; } ; lex (c : s)|isSingle c(c : [],s) : []|isSym cconcatMap (lex2 c) (span isSym s : [])|isAlpha cconcatMap (lex3 c) (span isIdChar s : [])|isDigit cconcatMap (lex5 c) (span isDigit s : [])|otherwise[] where { isIdChar c = isAlphaNum c || c `elem` '_' : ''' : []; ; isSingle c = c `elem` ',' : ';' : '(' : ')' : '[' : ']' : '{' : '}' : '_' : '`' : []; ; isSym c = c `elem` '!' : '@' : '#' : '$' : '%' : '&' : '*' : '+' : '.' : '/' : '<' : '=' : '>' : '?' : '\' : '^' : '|' : ':' : '-' : '~' : []; ; lex2 c vu59 = lex20 c vu59; ; lex20 c (sym,t) = (c : sym,t) : []; lex20 c xz = []; ; lex3 c vu60 = lex30 c vu60; ; lex30 c (nam,t) = (c : nam,t) : []; lex30 c yu = []; ; lex4 c ds vu61 = lex40 c ds vu61; ; lex40 c ds (fe,t) = (c : ds ++ fe,t) : []; lex40 c ds xx = []; ; lex5 c vu62 = lex50 c vu62; ; lex50 c (ds,s) = concatMap (lex4 c ds) (lexFracExp s); lex50 c xy = []; ; lexExp (e : s)|e `elem` 'e' : 'E' : []concatMap (lexExp1 e) (s : []) ++ concatMap (lexExp2 e) (lexDigits s); lexExp s = ([],s) : []; ; lexExp0 e c vu65 = lexExp00 e c vu65; ; lexExp00 e c (ds,u) = (e : c : ds,u) : []; lexExp00 e c wy = []; ; lexExp1 e vu66 = lexExp10 e vu66; ; lexExp10 e (c : t) = lexExp100 e c t (c `elem` '+' : '-' : []); lexExp10 e xu = []; ; lexExp100 e c t True = concatMap (lexExp0 e c) (lexDigits t); lexExp100 e c t False = []; ; lexExp2 e vu67 = lexExp20 e vu67; ; lexExp20 e (ds,t) = (e : ds,t) : []; lexExp20 e wz = []; ; lexFracExp ('.' : c : cs)|isDigit cconcatMap lexFracExp1 (lexDigits (c : cs)); lexFracExp s = lexExp s; ; lexFracExp0 ds vu63 = lexFracExp00 ds vu63; ; lexFracExp00 ds (e,u) = ('.' : ds ++ e,u) : []; lexFracExp00 ds xw = []; ; lexFracExp1 vu64 = lexFracExp10 vu64; ; lexFracExp10 (ds,t) = concatMap (lexFracExp0 ds) (lexExp t); lexFracExp10 xv = []; } ; " is transformed to "lex [] = lex19 []; lex (c : s) = lex18 (c : s); lex (xxz : s) = lex16 (xxz : s); lex (xxu : s) = lex14 (xxu : s); lex (c : s) = lex12 (c : s); " "lex12 (c : s) = lex11 c s (isSingle c) where { isIdChar c = isAlphaNum c || c `elem` '_' : ''' : []; ; isSingle c = c `elem` ',' : ';' : '(' : ')' : '[' : ']' : '{' : '}' : '_' : '`' : []; ; isSym c = c `elem` '!' : '@' : '#' : '$' : '%' : '&' : '*' : '+' : '.' : '/' : '<' : '=' : '>' : '?' : '\' : '^' : '|' : ':' : '-' : '~' : []; ; lex11 c s True = (c : [],s) : []; lex11 c s False = lex9 c s (isSym c); ; lex2 c vu59 = lex20 c vu59; ; lex20 c (sym,t) = (c : sym,t) : []; lex20 c xz = []; ; lex3 c vu60 = lex30 c vu60; ; lex30 c (nam,t) = (c : nam,t) : []; lex30 c yu = []; ; lex4 c ds vu61 = lex40 c ds vu61; ; lex40 c ds (fe,t) = (c : ds ++ fe,t) : []; lex40 c ds xx = []; ; lex5 c vu62 = lex50 c vu62; ; lex50 c (ds,s) = concatMap (lex4 c ds) (lexFracExp s); lex50 c xy = []; ; lex6 c s True = []; ; lex7 c s True = concatMap (lex5 c) (span isDigit s : []); lex7 c s False = lex6 c s otherwise; ; lex8 c s True = concatMap (lex3 c) (span isIdChar s : []); lex8 c s False = lex7 c s (isDigit c); ; lex9 c s True = concatMap (lex2 c) (span isSym s : []); lex9 c s False = lex8 c s (isAlpha c); ; lexExp (e : s) = lexExp5 (e : s); lexExp s = lexExp3 s; ; lexExp0 e c vu65 = lexExp00 e c vu65; ; lexExp00 e c (ds,u) = (e : c : ds,u) : []; lexExp00 e c wy = []; ; lexExp1 e vu66 = lexExp10 e vu66; ; lexExp10 e (c : t) = lexExp100 e c t (c `elem` '+' : '-' : []); lexExp10 e xu = []; ; lexExp100 e c t True = concatMap (lexExp0 e c) (lexDigits t); lexExp100 e c t False = []; ; lexExp2 e vu67 = lexExp20 e vu67; ; lexExp20 e (ds,t) = (e : ds,t) : []; lexExp20 e wz = []; ; lexExp3 s = ([],s) : []; ; lexExp4 e s True = concatMap (lexExp1 e) (s : []) ++ concatMap (lexExp2 e) (lexDigits s); lexExp4 e s False = lexExp3 (e : s); ; lexExp5 (e : s) = lexExp4 e s (e `elem` 'e' : 'E' : []); lexExp5 xvv = lexExp3 xvv; ; lexFracExp (xvx : xwu) = lexFracExp5 (xvx : xwu); lexFracExp s = lexFracExp2 s; ; lexFracExp0 ds vu63 = lexFracExp00 ds vu63; ; lexFracExp00 ds (e,u) = ('.' : ds ++ e,u) : []; lexFracExp00 ds xw = []; ; lexFracExp1 vu64 = lexFracExp10 vu64; ; lexFracExp10 (ds,t) = concatMap (lexFracExp0 ds) (lexExp t); lexFracExp10 xv = []; ; lexFracExp2 s = lexExp s; ; lexFracExp3 xvx c cs True = concatMap lexFracExp1 (lexDigits (c : cs)); lexFracExp3 xvx c cs False = lexFracExp2 (xvx : c : cs); ; lexFracExp4 True (xvx : c : cs) = lexFracExp3 xvx c cs (isDigit c); lexFracExp4 xwv xww = lexFracExp2 xww; ; lexFracExp5 (xvx : xwu) = lexFracExp4 (xvx == '.') (xvx : xwu); lexFracExp5 xwx = lexFracExp2 xwx; } ; " "lex13 True (xxu : s) = concatMap lex1 (lexString s) where { lex1 vu55 = lex10 vu55; ; lex10 (str,t) = ('"' : str,t) : []; lex10 wx = []; ; lexStrItem (wyx : wzv) = lexStrItem7 (wyx : wzv); lexStrItem (wxv : wxy) = lexStrItem4 (wxv : wxy); lexStrItem s = lexStrItem1 s; ; lexStrItem0 vu58 = lexStrItem00 vu58; ; lexStrItem00 (xuw : t) = lexStrItem002 (xuw : t); lexStrItem00 ww = lexStrItem000 ww; ; lexStrItem000 ww = []; ; lexStrItem001 True (xuw : t) = ([],t) : []; lexStrItem001 xux xuy = lexStrItem000 xuy; ; lexStrItem002 (xuw : t) = lexStrItem001 (xuw == '\') (xuw : t); lexStrItem002 xuz = lexStrItem000 xuz; ; lexStrItem1 s = lexLitChar s; ; lexStrItem2 wxv c s True = concatMap lexStrItem0 (dropWhile isSpace s : []); lexStrItem2 wxv c s False = lexStrItem1 (wxv : c : s); ; lexStrItem3 True (wxv : c : s) = lexStrItem2 wxv c s (isSpace c); lexStrItem3 wxz wyu = lexStrItem1 wyu; ; lexStrItem4 (wxv : wxy) = lexStrItem3 (wxv == '\') (wxv : wxy); lexStrItem4 wyv = lexStrItem1 wyv; ; lexStrItem5 True (wyx : wyz : s) = ('\' : '&' : [],s) : []; lexStrItem5 wzw wzx = lexStrItem4 wzx; ; lexStrItem6 True (wyx : wyz : s) = lexStrItem5 (wyz == '&') (wyx : wyz : s); lexStrItem6 wzy wzz = lexStrItem4 wzz; ; lexStrItem7 (wyx : wzv) = lexStrItem6 (wyx == '\') (wyx : wzv); lexStrItem7 xuu = lexStrItem4 xuu; ; lexString (www : s) = lexString4 (www : s); lexString s = lexString2 s; ; lexString0 ch vu56 = lexString00 ch vu56; ; lexString00 ch (str,u) = (ch ++ str,u) : []; lexString00 ch wu = []; ; lexString1 vu57 = lexString10 vu57; ; lexString10 (ch,t) = concatMap (lexString0 ch) (lexString t); lexString10 wv = []; ; lexString2 s = concatMap lexString1 (lexStrItem s); ; lexString3 True (www : s) = ('"' : [],s) : []; lexString3 wwx wwy = lexString2 wwy; ; lexString4 (www : s) = lexString3 (www == '"') (www : s); lexString4 wwz = lexString2 wwz; } ; lex13 xxv xxw = lex12 xxw; " "lex14 (xxu : s) = lex13 (xxu == '"') (xxu : s); lex14 xxx = lex12 xxx; " "lex15 True (xxz : s) = concatMap lex0 (lexLitChar s); lex15 xyu xyv = lex14 xyv; " "lex16 (xxz : s) = lex15 (xxz == ''') (xxz : s); lex16 xyw = lex14 xyw; " "lex17 c s True = lex (dropWhile isSpace s); lex17 c s False = lex16 (c : s); " "lex18 (c : s) = lex17 c s (isSpace c); lex18 xyy = lex16 xyy; " "lex19 [] = ([],[]) : []; lex19 xzu = lex18 xzu; " The following Function with conditions "readsPrec10 (''' : s,t) = concatMap (readsPrec0 t) (readLitChar s); readsPrec10 yw = []; " is transformed to "readsPrec10 (xzx : s,t) = readsPrec102 (xzx : s,t); readsPrec10 yw = readsPrec100 yw; " "readsPrec100 yw = []; " "readsPrec101 True (xzx : s,t) = concatMap (readsPrec0 t) (readLitChar s); readsPrec101 xzy xzz = readsPrec100 xzz; " "readsPrec102 (xzx : s,t) = readsPrec101 (xzx == ''') (xzx : s,t); readsPrec102 yuu = readsPrec100 yuu; " The following Function with conditions "undefined |Falseundefined; " is transformed to "undefined = undefined1; " "undefined0 True = undefined; " "undefined1 = undefined0 False; " The following Function with conditions "dropWhile p [] = []; dropWhile p (yy : yz)|p yydropWhile p yz|otherwiseyy : yz; " is transformed to "dropWhile p [] = dropWhile3 p []; dropWhile p (yy : yz) = dropWhile2 p (yy : yz); " "dropWhile0 p yy yz True = yy : yz; " "dropWhile1 p yy yz True = dropWhile p yz; dropWhile1 p yy yz False = dropWhile0 p yy yz otherwise; " "dropWhile2 p (yy : yz) = dropWhile1 p yy yz (p yy); " "dropWhile3 p [] = []; dropWhile3 yux yuy = dropWhile2 yux yuy; " The following Function with conditions "lex00 (ch,''' : t) = lex000 ch t (ch /= ''' : []); lex00 zv = []; " is transformed to "lex00 (ch,yvv : t) = lex003 (ch,yvv : t); lex00 zv = lex001 zv; " "lex001 zv = []; " "lex002 True (ch,yvv : t) = lex000 ch t (ch /= ''' : []); lex002 yvw yvx = lex001 yvx; " "lex003 (ch,yvv : t) = lex002 (yvv == ''') (ch,yvv : t); lex003 yvy = lex001 yvy; " The following Function with conditions "span p [] = ([],[]); span p (zw : zx)|p zw(zw : ys,zs)|otherwise([],zw : zx) where { vu43 = span p zx; ; ys = ys0 vu43; ; ys0 (ys,zz) = ys; ; zs = zs0 vu43; ; zs0 (zy,zs) = zs; } ; " is transformed to "span p [] = span3 p []; span p (zw : zx) = span2 p (zw : zx); " "span2 p (zw : zx) = span1 p zw zx (p zw) where { span0 p zw zx True = ([],zw : zx); ; span1 p zw zx True = (zw : ys,zs); span1 p zw zx False = span0 p zw zx otherwise; ; vu43 = span p zx; ; ys = ys0 vu43; ; ys0 (ys,zz) = ys; ; zs = zs0 vu43; ; zs0 (zy,zs) = zs; } ; " "span3 p [] = ([],[]); span3 ywv yww = span2 ywv yww; " The following Function with conditions "readEsc ('a' : s) = ('\7',s) : []; readEsc ('b' : s) = ('\8',s) : []; readEsc ('f' : s) = ('\12',s) : []; readEsc ('n' : s) = ('\10',s) : []; readEsc ('r' : s) = ('\13',s) : []; readEsc ('t' : s) = ('\9',s) : []; readEsc ('v' : s) = ('\11',s) : []; readEsc ('\' : s) = ('\',s) : []; readEsc ('"' : s) = ('"',s) : []; readEsc (''' : s) = (''',s) : []; readEsc ('^' : c : s)|c >= '@' && c <= '_'(toEnum (fromEnum c - fromEnum '@'),s) : []; readEsc (vvu : vvv)|isDigit vvuconcatMap readEsc0 (readDec (vvu : vvv)); readEsc ('o' : s) = concatMap readEsc1 (readOct s); readEsc ('x' : s) = concatMap readEsc2 (readHex s); readEsc (vvx : vvy)|isUpper vvxlet { readEsc3 c vu74 = readEsc30 c vu74; ; readEsc30 c ([],s') = (c,s') : []; readEsc30 c vwv = []; ; readEsc4 s vu75 = readEsc40 s vu75; ; readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s vwu = []; ; readEsc5 (pr : vvz) = pr : []; readEsc5 [] = []; ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } in readEsc5 (concatMap (readEsc4 (vvx : vvy)) table); readEsc vww = []; " is transformed to "readEsc (vuvz : s) = readEsc41 (vuvz : s); readEsc (vuvu : s) = readEsc38 (vuvu : s); readEsc (vuuv : s) = readEsc36 (vuuv : s); readEsc (zzw : s) = readEsc34 (zzw : s); readEsc (zyx : s) = readEsc32 (zyx : s); readEsc (zxy : s) = readEsc29 (zxy : s); readEsc (zwz : s) = readEsc27 (zwz : s); readEsc (zwu : s) = readEsc25 (zwu : s); readEsc (zvv : s) = readEsc23 (zvv : s); readEsc (zuw : s) = readEsc21 (zuw : s); readEsc (yzu : yzx) = readEsc18 (yzu : yzx); readEsc (vvu : vvv) = readEsc15 (vvu : vvv); readEsc (yxz : s) = readEsc13 (yxz : s); readEsc (yxu : s) = readEsc11 (yxu : s); readEsc (vvx : vvy) = readEsc8 (vvx : vvy); readEsc vww = readEsc6 vww; " "readEsc6 vww = []; " "readEsc7 vvx vvy True = let { readEsc3 c vu74 = readEsc30 c vu74; ; readEsc30 c ([],s') = (c,s') : []; readEsc30 c vwv = []; ; readEsc4 s vu75 = readEsc40 s vu75; ; readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s vwu = []; ; readEsc5 (pr : vvz) = pr : []; readEsc5 [] = []; ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } in readEsc5 (concatMap (readEsc4 (vvx : vvy)) table); readEsc7 vvx vvy False = readEsc6 (vvx : vvy); " "readEsc8 (vvx : vvy) = readEsc7 vvx vvy (isUpper vvx); readEsc8 ywy = readEsc6 ywy; " "readEsc9 True (yxu : s) = concatMap readEsc2 (readHex s); readEsc9 yxv yxw = readEsc8 yxw; " "readEsc11 (yxu : s) = readEsc9 (yxu == 'x') (yxu : s); readEsc11 yxx = readEsc8 yxx; " "readEsc12 True (yxz : s) = concatMap readEsc1 (readOct s); readEsc12 yyu yyv = readEsc11 yyv; " "readEsc13 (yxz : s) = readEsc12 (yxz == 'o') (yxz : s); readEsc13 yyw = readEsc11 yyw; " "readEsc14 vvu vvv True = concatMap readEsc0 (readDec (vvu : vvv)); readEsc14 vvu vvv False = readEsc13 (vvu : vvv); " "readEsc15 (vvu : vvv) = readEsc14 vvu vvv (isDigit vvu); readEsc15 yyy = readEsc13 yyy; " "readEsc16 yzu c s True = (toEnum (fromEnum c - fromEnum '@'),s) : []; readEsc16 yzu c s False = readEsc15 (yzu : c : s); " "readEsc17 True (yzu : c : s) = readEsc16 yzu c s (c >= '@' && c <= '_'); readEsc17 yzy yzz = readEsc15 yzz; " "readEsc18 (yzu : yzx) = readEsc17 (yzu == '^') (yzu : yzx); readEsc18 zuu = readEsc15 zuu; " "readEsc19 True (zuw : s) = (''',s) : []; readEsc19 zux zuy = readEsc18 zuy; " "readEsc21 (zuw : s) = readEsc19 (zuw == ''') (zuw : s); readEsc21 zuz = readEsc18 zuz; " "readEsc22 True (zvv : s) = ('"',s) : []; readEsc22 zvw zvx = readEsc21 zvx; " "readEsc23 (zvv : s) = readEsc22 (zvv == '"') (zvv : s); readEsc23 zvy = readEsc21 zvy; " "readEsc24 True (zwu : s) = ('\',s) : []; readEsc24 zwv zww = readEsc23 zww; " "readEsc25 (zwu : s) = readEsc24 (zwu == '\') (zwu : s); readEsc25 zwx = readEsc23 zwx; " "readEsc26 True (zwz : s) = ('\11',s) : []; readEsc26 zxu zxv = readEsc25 zxv; " "readEsc27 (zwz : s) = readEsc26 (zwz == 'v') (zwz : s); readEsc27 zxw = readEsc25 zxw; " "readEsc28 True (zxy : s) = ('\9',s) : []; readEsc28 zxz zyu = readEsc27 zyu; " "readEsc29 (zxy : s) = readEsc28 (zxy == 't') (zxy : s); readEsc29 zyv = readEsc27 zyv; " "readEsc31 True (zyx : s) = ('\13',s) : []; readEsc31 zyy zyz = readEsc29 zyz; " "readEsc32 (zyx : s) = readEsc31 (zyx == 'r') (zyx : s); readEsc32 zzu = readEsc29 zzu; " "readEsc33 True (zzw : s) = ('\10',s) : []; readEsc33 zzx zzy = readEsc32 zzy; " "readEsc34 (zzw : s) = readEsc33 (zzw == 'n') (zzw : s); readEsc34 zzz = readEsc32 zzz; " "readEsc35 True (vuuv : s) = ('\12',s) : []; readEsc35 vuuw vuux = readEsc34 vuux; " "readEsc36 (vuuv : s) = readEsc35 (vuuv == 'f') (vuuv : s); readEsc36 vuuy = readEsc34 vuuy; " "readEsc37 True (vuvu : s) = ('\8',s) : []; readEsc37 vuvv vuvw = readEsc36 vuvw; " "readEsc38 (vuvu : s) = readEsc37 (vuvu == 'b') (vuvu : s); readEsc38 vuvx = readEsc36 vuvx; " "readEsc39 True (vuvz : s) = ('\7',s) : []; readEsc39 vuwu vuwv = readEsc38 vuwv; " "readEsc41 (vuvz : s) = readEsc39 (vuvz == 'a') (vuvz : s); readEsc41 vuww = readEsc38 vuww; " The following Function with conditions "readLitChar ('\' : s) = readEsc s where { readEsc ('a' : s) = ('\7',s) : []; readEsc ('b' : s) = ('\8',s) : []; readEsc ('f' : s) = ('\12',s) : []; readEsc ('n' : s) = ('\10',s) : []; readEsc ('r' : s) = ('\13',s) : []; readEsc ('t' : s) = ('\9',s) : []; readEsc ('v' : s) = ('\11',s) : []; readEsc ('\' : s) = ('\',s) : []; readEsc ('"' : s) = ('"',s) : []; readEsc (''' : s) = (''',s) : []; readEsc ('^' : c : s)|c >= '@' && c <= '_'(toEnum (fromEnum c - fromEnum '@'),s) : []; readEsc (vvu : vvv)|isDigit vvuconcatMap readEsc0 (readDec (vvu : vvv)); readEsc ('o' : s) = concatMap readEsc1 (readOct s); readEsc ('x' : s) = concatMap readEsc2 (readHex s); readEsc (vvx : vvy)|isUpper vvxlet { readEsc3 c vu74 = readEsc30 c vu74; ; readEsc30 c ([],s') = (c,s') : []; readEsc30 c vwv = []; ; readEsc4 s vu75 = readEsc40 s vu75; ; readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s vwu = []; ; readEsc5 (pr : vvz) = pr : []; readEsc5 [] = []; ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } in readEsc5 (concatMap (readEsc4 (vvx : vvy)) table); readEsc vww = []; ; readEsc0 vu71 = readEsc00 vu71; ; readEsc00 (n,t) = (toEnum n,t) : []; readEsc00 vwx = []; ; readEsc1 vu72 = readEsc10 vu72; ; readEsc10 (n,t) = (toEnum n,t) : []; readEsc10 vwy = []; ; readEsc2 vu73 = readEsc20 vu73; ; readEsc20 (n,t) = (toEnum n,t) : []; readEsc20 vwz = []; } ; readLitChar (c : s) = (c,s) : []; " is transformed to "readLitChar (vuwz : s) = readLitChar2 (vuwz : s); readLitChar (c : s) = readLitChar0 (c : s); " "readLitChar0 (c : s) = (c,s) : []; " "readLitChar1 True (vuwz : s) = readEsc s where { readEsc (vuvz : s) = readEsc41 (vuvz : s); readEsc (vuvu : s) = readEsc38 (vuvu : s); readEsc (vuuv : s) = readEsc36 (vuuv : s); readEsc (zzw : s) = readEsc34 (zzw : s); readEsc (zyx : s) = readEsc32 (zyx : s); readEsc (zxy : s) = readEsc29 (zxy : s); readEsc (zwz : s) = readEsc27 (zwz : s); readEsc (zwu : s) = readEsc25 (zwu : s); readEsc (zvv : s) = readEsc23 (zvv : s); readEsc (zuw : s) = readEsc21 (zuw : s); readEsc (yzu : yzx) = readEsc18 (yzu : yzx); readEsc (vvu : vvv) = readEsc15 (vvu : vvv); readEsc (yxz : s) = readEsc13 (yxz : s); readEsc (yxu : s) = readEsc11 (yxu : s); readEsc (vvx : vvy) = readEsc8 (vvx : vvy); readEsc vww = readEsc6 vww; ; readEsc0 vu71 = readEsc00 vu71; ; readEsc00 (n,t) = (toEnum n,t) : []; readEsc00 vwx = []; ; readEsc1 vu72 = readEsc10 vu72; ; readEsc10 (n,t) = (toEnum n,t) : []; readEsc10 vwy = []; ; readEsc11 (yxu : s) = readEsc9 (yxu == 'x') (yxu : s); readEsc11 yxx = readEsc8 yxx; ; readEsc12 True (yxz : s) = concatMap readEsc1 (readOct s); readEsc12 yyu yyv = readEsc11 yyv; ; readEsc13 (yxz : s) = readEsc12 (yxz == 'o') (yxz : s); readEsc13 yyw = readEsc11 yyw; ; readEsc14 vvu vvv True = concatMap readEsc0 (readDec (vvu : vvv)); readEsc14 vvu vvv False = readEsc13 (vvu : vvv); ; readEsc15 (vvu : vvv) = readEsc14 vvu vvv (isDigit vvu); readEsc15 yyy = readEsc13 yyy; ; readEsc16 yzu c s True = (toEnum (fromEnum c - fromEnum '@'),s) : []; readEsc16 yzu c s False = readEsc15 (yzu : c : s); ; readEsc17 True (yzu : c : s) = readEsc16 yzu c s (c >= '@' && c <= '_'); readEsc17 yzy yzz = readEsc15 yzz; ; readEsc18 (yzu : yzx) = readEsc17 (yzu == '^') (yzu : yzx); readEsc18 zuu = readEsc15 zuu; ; readEsc19 True (zuw : s) = (''',s) : []; readEsc19 zux zuy = readEsc18 zuy; ; readEsc2 vu73 = readEsc20 vu73; ; readEsc20 (n,t) = (toEnum n,t) : []; readEsc20 vwz = []; ; readEsc21 (zuw : s) = readEsc19 (zuw == ''') (zuw : s); readEsc21 zuz = readEsc18 zuz; ; readEsc22 True (zvv : s) = ('"',s) : []; readEsc22 zvw zvx = readEsc21 zvx; ; readEsc23 (zvv : s) = readEsc22 (zvv == '"') (zvv : s); readEsc23 zvy = readEsc21 zvy; ; readEsc24 True (zwu : s) = ('\',s) : []; readEsc24 zwv zww = readEsc23 zww; ; readEsc25 (zwu : s) = readEsc24 (zwu == '\') (zwu : s); readEsc25 zwx = readEsc23 zwx; ; readEsc26 True (zwz : s) = ('\11',s) : []; readEsc26 zxu zxv = readEsc25 zxv; ; readEsc27 (zwz : s) = readEsc26 (zwz == 'v') (zwz : s); readEsc27 zxw = readEsc25 zxw; ; readEsc28 True (zxy : s) = ('\9',s) : []; readEsc28 zxz zyu = readEsc27 zyu; ; readEsc29 (zxy : s) = readEsc28 (zxy == 't') (zxy : s); readEsc29 zyv = readEsc27 zyv; ; readEsc31 True (zyx : s) = ('\13',s) : []; readEsc31 zyy zyz = readEsc29 zyz; ; readEsc32 (zyx : s) = readEsc31 (zyx == 'r') (zyx : s); readEsc32 zzu = readEsc29 zzu; ; readEsc33 True (zzw : s) = ('\10',s) : []; readEsc33 zzx zzy = readEsc32 zzy; ; readEsc34 (zzw : s) = readEsc33 (zzw == 'n') (zzw : s); readEsc34 zzz = readEsc32 zzz; ; readEsc35 True (vuuv : s) = ('\12',s) : []; readEsc35 vuuw vuux = readEsc34 vuux; ; readEsc36 (vuuv : s) = readEsc35 (vuuv == 'f') (vuuv : s); readEsc36 vuuy = readEsc34 vuuy; ; readEsc37 True (vuvu : s) = ('\8',s) : []; readEsc37 vuvv vuvw = readEsc36 vuvw; ; readEsc38 (vuvu : s) = readEsc37 (vuvu == 'b') (vuvu : s); readEsc38 vuvx = readEsc36 vuvx; ; readEsc39 True (vuvz : s) = ('\7',s) : []; readEsc39 vuwu vuwv = readEsc38 vuwv; ; readEsc41 (vuvz : s) = readEsc39 (vuvz == 'a') (vuvz : s); readEsc41 vuww = readEsc38 vuww; ; readEsc6 vww = []; ; readEsc7 vvx vvy True = let { readEsc3 c vu74 = readEsc30 c vu74; ; readEsc30 c ([],s') = (c,s') : []; readEsc30 c vwv = []; ; readEsc4 s vu75 = readEsc40 s vu75; ; readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s vwu = []; ; readEsc5 (pr : vvz) = pr : []; readEsc5 [] = []; ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } in readEsc5 (concatMap (readEsc4 (vvx : vvy)) table); readEsc7 vvx vvy False = readEsc6 (vvx : vvy); ; readEsc8 (vvx : vvy) = readEsc7 vvx vvy (isUpper vvx); readEsc8 ywy = readEsc6 ywy; ; readEsc9 True (yxu : s) = concatMap readEsc2 (readHex s); readEsc9 yxv yxw = readEsc8 yxw; } ; readLitChar1 vuxu vuxv = readLitChar0 vuxv; " "readLitChar2 (vuwz : s) = readLitChar1 (vuwz == '\') (vuwz : s); readLitChar2 vuxw = readLitChar0 vuxw; " The following Function with conditions "getChar |terminatorreturn terminator|otherwiseaIOE IOError_EOF; " is transformed to "getChar = getChar2; " "getChar0 True = aIOE IOError_EOF; " "getChar1 True = return terminator; getChar1 False = getChar0 otherwise; " "getChar2 = getChar1 terminator; " The following Function with conditions "lexmatch (x : xs) (y : ys)|x == ylexmatch xs ys; lexmatch xs ys = (xs,ys); " is transformed to "lexmatch (x : xs) (y : ys) = lexmatch2 (x : xs) (y : ys); lexmatch xs ys = lexmatch0 xs ys; " "lexmatch0 xs ys = (xs,ys); " "lexmatch1 x xs y ys True = lexmatch xs ys; lexmatch1 x xs y ys False = lexmatch0 (x : xs) (y : ys); " "lexmatch2 (x : xs) (y : ys) = lexmatch1 x xs y ys (x == y); lexmatch2 vuxz vuyu = lexmatch0 vuxz vuyu; " The following Function with conditions "mandatory20 ('(' : [],s) = concatMap mandatory1 (optional s); mandatory20 vyw = []; " is transformed to "mandatory20 (vuyx : vuyy,s) = mandatory202 (vuyx : vuyy,s); mandatory20 vyw = mandatory200 vyw; " "mandatory200 vyw = []; " "mandatory201 True (vuyx : [],s) = concatMap mandatory1 (optional s); mandatory201 vuyz vuzu = mandatory200 vuzu; " "mandatory202 (vuyx : vuyy,s) = mandatory201 (vuyx == '(') (vuyx : vuyy,s); mandatory202 vuzv = mandatory200 vuzv; " The following Function with conditions "mandatory00 x (')' : [],u) = (x,u) : []; mandatory00 x vyx = []; " is transformed to "mandatory00 x (vuzy : vuzz,u) = mandatory002 x (vuzy : vuzz,u); mandatory00 x vyx = mandatory000 x vyx; " "mandatory000 x vyx = []; " "mandatory001 True x (vuzy : [],u) = (x,u) : []; mandatory001 vvuu vvuv vvuw = mandatory000 vvuv vvuw; " "mandatory002 x (vuzy : vuzz,u) = mandatory001 (vuzy == ')') x (vuzy : vuzz,u); mandatory002 vvux vvuy = mandatory000 vvux vvuy; " The following Function with conditions "lexEsc (c : s)|c `elem` 'a' : 'b' : 'f' : 'n' : 'r' : 't' : 'v' : '\' : '"' : ''' : [](c : [],s) : []; lexEsc ('^' : c : s)|c >= '@' && c <= '_'('^' : c : [],s) : []; lexEsc ('o' : s) = prefix 'o' (span isOctDigit s) : []; lexEsc ('x' : s) = prefix 'x' (span isHexDigit s) : []; lexEsc (vzu : vzv)|isDigit vzuspan isDigit (vzu : vzv) : []|isUpper vzulexEsc2 (concatMap (lexEsc1 (vzu : vzv)) table); lexEsc vzw = []; " is transformed to "lexEsc (c : s) = lexEsc16 (c : s); lexEsc (vvxu : vvxx) = lexEsc14 (vvxu : vvxx); lexEsc (vvwv : s) = lexEsc11 (vvwv : s); lexEsc (vvvw : s) = lexEsc8 (vvvw : s); lexEsc (vzu : vzv) = lexEsc6 (vzu : vzv); lexEsc vzw = lexEsc3 vzw; " "lexEsc3 vzw = []; " "lexEsc5 vzu vzv True = span isDigit (vzu : vzv) : []; lexEsc5 vzu vzv False = lexEsc4 vzu vzv (isUpper vzu); " "lexEsc4 vzu vzv True = lexEsc2 (concatMap (lexEsc1 (vzu : vzv)) table); lexEsc4 vzu vzv False = lexEsc3 (vzu : vzv); " "lexEsc6 (vzu : vzv) = lexEsc5 vzu vzv (isDigit vzu); lexEsc6 vvvu = lexEsc3 vvvu; " "lexEsc7 True (vvvw : s) = prefix 'x' (span isHexDigit s) : []; lexEsc7 vvvx vvvy = lexEsc6 vvvy; " "lexEsc8 (vvvw : s) = lexEsc7 (vvvw == 'x') (vvvw : s); lexEsc8 vvvz = lexEsc6 vvvz; " "lexEsc9 True (vvwv : s) = prefix 'o' (span isOctDigit s) : []; lexEsc9 vvww vvwx = lexEsc8 vvwx; " "lexEsc11 (vvwv : s) = lexEsc9 (vvwv == 'o') (vvwv : s); lexEsc11 vvwy = lexEsc8 vvwy; " "lexEsc12 vvxu c s True = ('^' : c : [],s) : []; lexEsc12 vvxu c s False = lexEsc11 (vvxu : c : s); " "lexEsc13 True (vvxu : c : s) = lexEsc12 vvxu c s (c >= '@' && c <= '_'); lexEsc13 vvxy vvxz = lexEsc11 vvxz; " "lexEsc14 (vvxu : vvxx) = lexEsc13 (vvxu == '^') (vvxu : vvxx); lexEsc14 vvyu = lexEsc11 vvyu; " "lexEsc15 c s True = (c : [],s) : []; lexEsc15 c s False = lexEsc14 (c : s); " "lexEsc16 (c : s) = lexEsc15 c s (c `elem` 'a' : 'b' : 'f' : 'n' : 'r' : 't' : 'v' : '\' : '"' : ''' : []); lexEsc16 vvyw = lexEsc14 vvyw; " The following Function with conditions "lexLitChar [] = []; lexLitChar (c : s)|c /= '\'(c : [],s) : []|otherwisemap (prefix '\') (lexEsc s) where { lexEsc (c : s)|c `elem` 'a' : 'b' : 'f' : 'n' : 'r' : 't' : 'v' : '\' : '"' : ''' : [](c : [],s) : []; lexEsc ('^' : c : s)|c >= '@' && c <= '_'('^' : c : [],s) : []; lexEsc ('o' : s) = prefix 'o' (span isOctDigit s) : []; lexEsc ('x' : s) = prefix 'x' (span isHexDigit s) : []; lexEsc (vzu : vzv)|isDigit vzuspan isDigit (vzu : vzv) : []|isUpper vzulexEsc2 (concatMap (lexEsc1 (vzu : vzv)) table); lexEsc vzw = []; ; lexEsc0 mne vu69 = lexEsc00 mne vu69; ; lexEsc00 mne ([],s') = (mne,s') : []; lexEsc00 mne vzy = []; ; lexEsc1 s vu70 = lexEsc10 s vu70; ; lexEsc10 s (c,mne) = concatMap (lexEsc0 mne) (lexmatch mne s : []); lexEsc10 s vzz = []; ; lexEsc2 (pr : vzx) = pr : []; lexEsc2 [] = []; ; prefix c (t,s) = (c : t,s); ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } ; " is transformed to "lexLitChar [] = lexLitChar3 []; lexLitChar (c : s) = lexLitChar2 (c : s); " "lexLitChar2 (c : s) = lexLitChar1 c s (c /= '\') where { lexEsc (c : s) = lexEsc16 (c : s); lexEsc (vvxu : vvxx) = lexEsc14 (vvxu : vvxx); lexEsc (vvwv : s) = lexEsc11 (vvwv : s); lexEsc (vvvw : s) = lexEsc8 (vvvw : s); lexEsc (vzu : vzv) = lexEsc6 (vzu : vzv); lexEsc vzw = lexEsc3 vzw; ; lexEsc0 mne vu69 = lexEsc00 mne vu69; ; lexEsc00 mne ([],s') = (mne,s') : []; lexEsc00 mne vzy = []; ; lexEsc1 s vu70 = lexEsc10 s vu70; ; lexEsc10 s (c,mne) = concatMap (lexEsc0 mne) (lexmatch mne s : []); lexEsc10 s vzz = []; ; lexEsc11 (vvwv : s) = lexEsc9 (vvwv == 'o') (vvwv : s); lexEsc11 vvwy = lexEsc8 vvwy; ; lexEsc12 vvxu c s True = ('^' : c : [],s) : []; lexEsc12 vvxu c s False = lexEsc11 (vvxu : c : s); ; lexEsc13 True (vvxu : c : s) = lexEsc12 vvxu c s (c >= '@' && c <= '_'); lexEsc13 vvxy vvxz = lexEsc11 vvxz; ; lexEsc14 (vvxu : vvxx) = lexEsc13 (vvxu == '^') (vvxu : vvxx); lexEsc14 vvyu = lexEsc11 vvyu; ; lexEsc15 c s True = (c : [],s) : []; lexEsc15 c s False = lexEsc14 (c : s); ; lexEsc16 (c : s) = lexEsc15 c s (c `elem` 'a' : 'b' : 'f' : 'n' : 'r' : 't' : 'v' : '\' : '"' : ''' : []); lexEsc16 vvyw = lexEsc14 vvyw; ; lexEsc2 (pr : vzx) = pr : []; lexEsc2 [] = []; ; lexEsc3 vzw = []; ; lexEsc4 vzu vzv True = lexEsc2 (concatMap (lexEsc1 (vzu : vzv)) table); lexEsc4 vzu vzv False = lexEsc3 (vzu : vzv); ; lexEsc5 vzu vzv True = span isDigit (vzu : vzv) : []; lexEsc5 vzu vzv False = lexEsc4 vzu vzv (isUpper vzu); ; lexEsc6 (vzu : vzv) = lexEsc5 vzu vzv (isDigit vzu); lexEsc6 vvvu = lexEsc3 vvvu; ; lexEsc7 True (vvvw : s) = prefix 'x' (span isHexDigit s) : []; lexEsc7 vvvx vvvy = lexEsc6 vvvy; ; lexEsc8 (vvvw : s) = lexEsc7 (vvvw == 'x') (vvvw : s); lexEsc8 vvvz = lexEsc6 vvvz; ; lexEsc9 True (vvwv : s) = prefix 'o' (span isOctDigit s) : []; lexEsc9 vvww vvwx = lexEsc8 vvwx; ; lexLitChar0 c s True = map (prefix '\') (lexEsc s); ; lexLitChar1 c s True = (c : [],s) : []; lexLitChar1 c s False = lexLitChar0 c s otherwise; ; prefix c (t,s) = (c : t,s); ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } ; " "lexLitChar3 [] = []; lexLitChar3 vvyz = lexLitChar2 vvyz; " ---------------------------------------- (10) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (11) LetRed (EQUIVALENT) Let/Where Reductions: The bindings of the following Let/Where expression "lexLitChar1 c s (c /= '\') where { lexEsc (c : s) = lexEsc16 (c : s); lexEsc (vvxu : vvxx) = lexEsc14 (vvxu : vvxx); lexEsc (vvwv : s) = lexEsc11 (vvwv : s); lexEsc (vvvw : s) = lexEsc8 (vvvw : s); lexEsc (vzu : vzv) = lexEsc6 (vzu : vzv); lexEsc vzw = lexEsc3 vzw; ; lexEsc0 mne vu69 = lexEsc00 mne vu69; ; lexEsc00 mne ([],s') = (mne,s') : []; lexEsc00 mne vzy = []; ; lexEsc1 s vu70 = lexEsc10 s vu70; ; lexEsc10 s (c,mne) = concatMap (lexEsc0 mne) (lexmatch mne s : []); lexEsc10 s vzz = []; ; lexEsc11 (vvwv : s) = lexEsc9 (vvwv == 'o') (vvwv : s); lexEsc11 vvwy = lexEsc8 vvwy; ; lexEsc12 vvxu c s True = ('^' : c : [],s) : []; lexEsc12 vvxu c s False = lexEsc11 (vvxu : c : s); ; lexEsc13 True (vvxu : c : s) = lexEsc12 vvxu c s (c >= '@' && c <= '_'); lexEsc13 vvxy vvxz = lexEsc11 vvxz; ; lexEsc14 (vvxu : vvxx) = lexEsc13 (vvxu == '^') (vvxu : vvxx); lexEsc14 vvyu = lexEsc11 vvyu; ; lexEsc15 c s True = (c : [],s) : []; lexEsc15 c s False = lexEsc14 (c : s); ; lexEsc16 (c : s) = lexEsc15 c s (c `elem` 'a' : 'b' : 'f' : 'n' : 'r' : 't' : 'v' : '\' : '"' : ''' : []); lexEsc16 vvyw = lexEsc14 vvyw; ; lexEsc2 (pr : vzx) = pr : []; lexEsc2 [] = []; ; lexEsc3 vzw = []; ; lexEsc4 vzu vzv True = lexEsc2 (concatMap (lexEsc1 (vzu : vzv)) table); lexEsc4 vzu vzv False = lexEsc3 (vzu : vzv); ; lexEsc5 vzu vzv True = span isDigit (vzu : vzv) : []; lexEsc5 vzu vzv False = lexEsc4 vzu vzv (isUpper vzu); ; lexEsc6 (vzu : vzv) = lexEsc5 vzu vzv (isDigit vzu); lexEsc6 vvvu = lexEsc3 vvvu; ; lexEsc7 True (vvvw : s) = prefix 'x' (span isHexDigit s) : []; lexEsc7 vvvx vvvy = lexEsc6 vvvy; ; lexEsc8 (vvvw : s) = lexEsc7 (vvvw == 'x') (vvvw : s); lexEsc8 vvvz = lexEsc6 vvvz; ; lexEsc9 True (vvwv : s) = prefix 'o' (span isOctDigit s) : []; lexEsc9 vvww vvwx = lexEsc8 vvwx; ; lexLitChar0 c s True = map (prefix '\') (lexEsc s); ; lexLitChar1 c s True = (c : [],s) : []; lexLitChar1 c s False = lexLitChar0 c s otherwise; ; prefix c (t,s) = (c : t,s); ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } " are unpacked to the following functions on top level "lexLitChar2Table = ('\127','D' : 'E' : 'L' : []) : asciiTab; " "lexLitChar2LexEsc3 vzw = []; " "lexLitChar2LexEsc10 s (c,mne) = concatMap (lexLitChar2LexEsc0 mne) (lexmatch mne s : []); lexLitChar2LexEsc10 s vzz = []; " "lexLitChar2LexEsc16 (c : s) = lexLitChar2LexEsc15 c s (c `elem` 'a' : 'b' : 'f' : 'n' : 'r' : 't' : 'v' : '\' : '"' : ''' : []); lexLitChar2LexEsc16 vvyw = lexLitChar2LexEsc14 vvyw; " "lexLitChar2Prefix c (t,s) = (c : t,s); " "lexLitChar2LexEsc5 vzu vzv True = span isDigit (vzu : vzv) : []; lexLitChar2LexEsc5 vzu vzv False = lexLitChar2LexEsc4 vzu vzv (isUpper vzu); " "lexLitChar2LexEsc12 vvxu c s True = ('^' : c : [],s) : []; lexLitChar2LexEsc12 vvxu c s False = lexLitChar2LexEsc11 (vvxu : c : s); " "lexLitChar2LexLitChar0 c s True = map (lexLitChar2Prefix '\') (lexLitChar2LexEsc s); " "lexLitChar2LexEsc14 (vvxu : vvxx) = lexLitChar2LexEsc13 (vvxu == '^') (vvxu : vvxx); lexLitChar2LexEsc14 vvyu = lexLitChar2LexEsc11 vvyu; " "lexLitChar2LexEsc (c : s) = lexLitChar2LexEsc16 (c : s); lexLitChar2LexEsc (vvxu : vvxx) = lexLitChar2LexEsc14 (vvxu : vvxx); lexLitChar2LexEsc (vvwv : s) = lexLitChar2LexEsc11 (vvwv : s); lexLitChar2LexEsc (vvvw : s) = lexLitChar2LexEsc8 (vvvw : s); lexLitChar2LexEsc (vzu : vzv) = lexLitChar2LexEsc6 (vzu : vzv); lexLitChar2LexEsc vzw = lexLitChar2LexEsc3 vzw; " "lexLitChar2LexEsc7 True (vvvw : s) = lexLitChar2Prefix 'x' (span isHexDigit s) : []; lexLitChar2LexEsc7 vvvx vvvy = lexLitChar2LexEsc6 vvvy; " "lexLitChar2LexEsc00 mne ([],s') = (mne,s') : []; lexLitChar2LexEsc00 mne vzy = []; " "lexLitChar2LexEsc13 True (vvxu : c : s) = lexLitChar2LexEsc12 vvxu c s (c >= '@' && c <= '_'); lexLitChar2LexEsc13 vvxy vvxz = lexLitChar2LexEsc11 vvxz; " "lexLitChar2LexEsc1 s vu70 = lexLitChar2LexEsc10 s vu70; " "lexLitChar2LexEsc9 True (vvwv : s) = lexLitChar2Prefix 'o' (span isOctDigit s) : []; lexLitChar2LexEsc9 vvww vvwx = lexLitChar2LexEsc8 vvwx; " "lexLitChar2LexEsc15 c s True = (c : [],s) : []; lexLitChar2LexEsc15 c s False = lexLitChar2LexEsc14 (c : s); " "lexLitChar2LexEsc4 vzu vzv True = lexLitChar2LexEsc2 (concatMap (lexLitChar2LexEsc1 (vzu : vzv)) lexLitChar2Table); lexLitChar2LexEsc4 vzu vzv False = lexLitChar2LexEsc3 (vzu : vzv); " "lexLitChar2LexEsc6 (vzu : vzv) = lexLitChar2LexEsc5 vzu vzv (isDigit vzu); lexLitChar2LexEsc6 vvvu = lexLitChar2LexEsc3 vvvu; " "lexLitChar2LexLitChar1 c s True = (c : [],s) : []; lexLitChar2LexLitChar1 c s False = lexLitChar2LexLitChar0 c s otherwise; " "lexLitChar2LexEsc2 (pr : vzx) = pr : []; lexLitChar2LexEsc2 [] = []; " "lexLitChar2LexEsc0 mne vu69 = lexLitChar2LexEsc00 mne vu69; " "lexLitChar2LexEsc11 (vvwv : s) = lexLitChar2LexEsc9 (vvwv == 'o') (vvwv : s); lexLitChar2LexEsc11 vvwy = lexLitChar2LexEsc8 vvwy; " "lexLitChar2LexEsc8 (vvvw : s) = lexLitChar2LexEsc7 (vvvw == 'x') (vvvw : s); lexLitChar2LexEsc8 vvvz = lexLitChar2LexEsc6 vvvz; " The bindings of the following Let/Where expression "concatMap lex1 (lexString s) where { lex1 vu55 = lex10 vu55; ; lex10 (str,t) = ('"' : str,t) : []; lex10 wx = []; ; lexStrItem (wyx : wzv) = lexStrItem7 (wyx : wzv); lexStrItem (wxv : wxy) = lexStrItem4 (wxv : wxy); lexStrItem s = lexStrItem1 s; ; lexStrItem0 vu58 = lexStrItem00 vu58; ; lexStrItem00 (xuw : t) = lexStrItem002 (xuw : t); lexStrItem00 ww = lexStrItem000 ww; ; lexStrItem000 ww = []; ; lexStrItem001 True (xuw : t) = ([],t) : []; lexStrItem001 xux xuy = lexStrItem000 xuy; ; lexStrItem002 (xuw : t) = lexStrItem001 (xuw == '\') (xuw : t); lexStrItem002 xuz = lexStrItem000 xuz; ; lexStrItem1 s = lexLitChar s; ; lexStrItem2 wxv c s True = concatMap lexStrItem0 (dropWhile isSpace s : []); lexStrItem2 wxv c s False = lexStrItem1 (wxv : c : s); ; lexStrItem3 True (wxv : c : s) = lexStrItem2 wxv c s (isSpace c); lexStrItem3 wxz wyu = lexStrItem1 wyu; ; lexStrItem4 (wxv : wxy) = lexStrItem3 (wxv == '\') (wxv : wxy); lexStrItem4 wyv = lexStrItem1 wyv; ; lexStrItem5 True (wyx : wyz : s) = ('\' : '&' : [],s) : []; lexStrItem5 wzw wzx = lexStrItem4 wzx; ; lexStrItem6 True (wyx : wyz : s) = lexStrItem5 (wyz == '&') (wyx : wyz : s); lexStrItem6 wzy wzz = lexStrItem4 wzz; ; lexStrItem7 (wyx : wzv) = lexStrItem6 (wyx == '\') (wyx : wzv); lexStrItem7 xuu = lexStrItem4 xuu; ; lexString (www : s) = lexString4 (www : s); lexString s = lexString2 s; ; lexString0 ch vu56 = lexString00 ch vu56; ; lexString00 ch (str,u) = (ch ++ str,u) : []; lexString00 ch wu = []; ; lexString1 vu57 = lexString10 vu57; ; lexString10 (ch,t) = concatMap (lexString0 ch) (lexString t); lexString10 wv = []; ; lexString2 s = concatMap lexString1 (lexStrItem s); ; lexString3 True (www : s) = ('"' : [],s) : []; lexString3 wwx wwy = lexString2 wwy; ; lexString4 (www : s) = lexString3 (www == '"') (www : s); lexString4 wwz = lexString2 wwz; } " are unpacked to the following functions on top level "lex13LexStrItem001 True (xuw : t) = ([],t) : []; lex13LexStrItem001 xux xuy = lex13LexStrItem000 xuy; " "lex13LexStrItem3 True (wxv : c : s) = lex13LexStrItem2 wxv c s (isSpace c); lex13LexStrItem3 wxz wyu = lex13LexStrItem1 wyu; " "lex13LexString1 vu57 = lex13LexString10 vu57; " "lex13LexString3 True (www : s) = ('"' : [],s) : []; lex13LexString3 wwx wwy = lex13LexString2 wwy; " "lex13LexStrItem2 wxv c s True = concatMap lex13LexStrItem0 (dropWhile isSpace s : []); lex13LexStrItem2 wxv c s False = lex13LexStrItem1 (wxv : c : s); " "lex13LexStrItem0 vu58 = lex13LexStrItem00 vu58; " "lex13LexString4 (www : s) = lex13LexString3 (www == '"') (www : s); lex13LexString4 wwz = lex13LexString2 wwz; " "lex13LexString0 ch vu56 = lex13LexString00 ch vu56; " "lex13LexStrItem6 True (wyx : wyz : s) = lex13LexStrItem5 (wyz == '&') (wyx : wyz : s); lex13LexStrItem6 wzy wzz = lex13LexStrItem4 wzz; " "lex13LexStrItem1 s = lexLitChar s; " "lex13LexStrItem5 True (wyx : wyz : s) = ('\' : '&' : [],s) : []; lex13LexStrItem5 wzw wzx = lex13LexStrItem4 wzx; " "lex13LexStrItem7 (wyx : wzv) = lex13LexStrItem6 (wyx == '\') (wyx : wzv); lex13LexStrItem7 xuu = lex13LexStrItem4 xuu; " "lex13Lex1 vu55 = lex13Lex10 vu55; " "lex13LexStrItem (wyx : wzv) = lex13LexStrItem7 (wyx : wzv); lex13LexStrItem (wxv : wxy) = lex13LexStrItem4 (wxv : wxy); lex13LexStrItem s = lex13LexStrItem1 s; " "lex13Lex10 (str,t) = ('"' : str,t) : []; lex13Lex10 wx = []; " "lex13LexString (www : s) = lex13LexString4 (www : s); lex13LexString s = lex13LexString2 s; " "lex13LexStrItem002 (xuw : t) = lex13LexStrItem001 (xuw == '\') (xuw : t); lex13LexStrItem002 xuz = lex13LexStrItem000 xuz; " "lex13LexStrItem000 ww = []; " "lex13LexStrItem4 (wxv : wxy) = lex13LexStrItem3 (wxv == '\') (wxv : wxy); lex13LexStrItem4 wyv = lex13LexStrItem1 wyv; " "lex13LexString2 s = concatMap lex13LexString1 (lex13LexStrItem s); " "lex13LexString00 ch (str,u) = (ch ++ str,u) : []; lex13LexString00 ch wu = []; " "lex13LexStrItem00 (xuw : t) = lex13LexStrItem002 (xuw : t); lex13LexStrItem00 ww = lex13LexStrItem000 ww; " "lex13LexString10 (ch,t) = concatMap (lex13LexString0 ch) (lex13LexString t); lex13LexString10 wv = []; " The bindings of the following Let/Where expression "span1 p zw zx (p zw) where { span0 p zw zx True = ([],zw : zx); ; span1 p zw zx True = (zw : ys,zs); span1 p zw zx False = span0 p zw zx otherwise; ; vu43 = span p zx; ; ys = ys0 vu43; ; ys0 (ys,zz) = ys; ; zs = zs0 vu43; ; zs0 (zy,zs) = zs; } " are unpacked to the following functions on top level "span2Ys0 vvzu vvzv (ys,zz) = ys; " "span2Span0 vvzu vvzv p zw zx True = ([],zw : zx); " "span2Vu43 vvzu vvzv = span vvzu vvzv; " "span2Zs vvzu vvzv = span2Zs0 vvzu vvzv (span2Vu43 vvzu vvzv); " "span2Ys vvzu vvzv = span2Ys0 vvzu vvzv (span2Vu43 vvzu vvzv); " "span2Span1 vvzu vvzv p zw zx True = (zw : span2Ys vvzu vvzv,span2Zs vvzu vvzv); span2Span1 vvzu vvzv p zw zx False = span2Span0 vvzu vvzv p zw zx otherwise; " "span2Zs0 vvzu vvzv (zy,zs) = zs; " The bindings of the following Let/Where expression "lex11 c s (isSingle c) where { isIdChar c = isAlphaNum c || c `elem` '_' : ''' : []; ; isSingle c = c `elem` ',' : ';' : '(' : ')' : '[' : ']' : '{' : '}' : '_' : '`' : []; ; isSym c = c `elem` '!' : '@' : '#' : '$' : '%' : '&' : '*' : '+' : '.' : '/' : '<' : '=' : '>' : '?' : '\' : '^' : '|' : ':' : '-' : '~' : []; ; lex11 c s True = (c : [],s) : []; lex11 c s False = lex9 c s (isSym c); ; lex2 c vu59 = lex20 c vu59; ; lex20 c (sym,t) = (c : sym,t) : []; lex20 c xz = []; ; lex3 c vu60 = lex30 c vu60; ; lex30 c (nam,t) = (c : nam,t) : []; lex30 c yu = []; ; lex4 c ds vu61 = lex40 c ds vu61; ; lex40 c ds (fe,t) = (c : ds ++ fe,t) : []; lex40 c ds xx = []; ; lex5 c vu62 = lex50 c vu62; ; lex50 c (ds,s) = concatMap (lex4 c ds) (lexFracExp s); lex50 c xy = []; ; lex6 c s True = []; ; lex7 c s True = concatMap (lex5 c) (span isDigit s : []); lex7 c s False = lex6 c s otherwise; ; lex8 c s True = concatMap (lex3 c) (span isIdChar s : []); lex8 c s False = lex7 c s (isDigit c); ; lex9 c s True = concatMap (lex2 c) (span isSym s : []); lex9 c s False = lex8 c s (isAlpha c); ; lexExp (e : s) = lexExp5 (e : s); lexExp s = lexExp3 s; ; lexExp0 e c vu65 = lexExp00 e c vu65; ; lexExp00 e c (ds,u) = (e : c : ds,u) : []; lexExp00 e c wy = []; ; lexExp1 e vu66 = lexExp10 e vu66; ; lexExp10 e (c : t) = lexExp100 e c t (c `elem` '+' : '-' : []); lexExp10 e xu = []; ; lexExp100 e c t True = concatMap (lexExp0 e c) (lexDigits t); lexExp100 e c t False = []; ; lexExp2 e vu67 = lexExp20 e vu67; ; lexExp20 e (ds,t) = (e : ds,t) : []; lexExp20 e wz = []; ; lexExp3 s = ([],s) : []; ; lexExp4 e s True = concatMap (lexExp1 e) (s : []) ++ concatMap (lexExp2 e) (lexDigits s); lexExp4 e s False = lexExp3 (e : s); ; lexExp5 (e : s) = lexExp4 e s (e `elem` 'e' : 'E' : []); lexExp5 xvv = lexExp3 xvv; ; lexFracExp (xvx : xwu) = lexFracExp5 (xvx : xwu); lexFracExp s = lexFracExp2 s; ; lexFracExp0 ds vu63 = lexFracExp00 ds vu63; ; lexFracExp00 ds (e,u) = ('.' : ds ++ e,u) : []; lexFracExp00 ds xw = []; ; lexFracExp1 vu64 = lexFracExp10 vu64; ; lexFracExp10 (ds,t) = concatMap (lexFracExp0 ds) (lexExp t); lexFracExp10 xv = []; ; lexFracExp2 s = lexExp s; ; lexFracExp3 xvx c cs True = concatMap lexFracExp1 (lexDigits (c : cs)); lexFracExp3 xvx c cs False = lexFracExp2 (xvx : c : cs); ; lexFracExp4 True (xvx : c : cs) = lexFracExp3 xvx c cs (isDigit c); lexFracExp4 xwv xww = lexFracExp2 xww; ; lexFracExp5 (xvx : xwu) = lexFracExp4 (xvx == '.') (xvx : xwu); lexFracExp5 xwx = lexFracExp2 xwx; } " are unpacked to the following functions on top level "lex12LexExp20 e (ds,t) = (e : ds,t) : []; lex12LexExp20 e wz = []; " "lex12Lex40 c ds (fe,t) = (c : ds ++ fe,t) : []; lex12Lex40 c ds xx = []; " "lex12IsIdChar c = isAlphaNum c || c `elem` '_' : ''' : []; " "lex12IsSym c = c `elem` '!' : '@' : '#' : '$' : '%' : '&' : '*' : '+' : '.' : '/' : '<' : '=' : '>' : '?' : '\' : '^' : '|' : ':' : '-' : '~' : []; " "lex12IsSingle c = c `elem` ',' : ';' : '(' : ')' : '[' : ']' : '{' : '}' : '_' : '`' : []; " "lex12LexFracExp5 (xvx : xwu) = lex12LexFracExp4 (xvx == '.') (xvx : xwu); lex12LexFracExp5 xwx = lex12LexFracExp2 xwx; " "lex12LexExp00 e c (ds,u) = (e : c : ds,u) : []; lex12LexExp00 e c wy = []; " "lex12LexFracExp1 vu64 = lex12LexFracExp10 vu64; " "lex12LexExp10 e (c : t) = lex12LexExp100 e c t (c `elem` '+' : '-' : []); lex12LexExp10 e xu = []; " "lex12Lex8 c s True = concatMap (lex12Lex3 c) (span lex12IsIdChar s : []); lex12Lex8 c s False = lex12Lex7 c s (isDigit c); " "lex12Lex20 c (sym,t) = (c : sym,t) : []; lex12Lex20 c xz = []; " "lex12Lex30 c (nam,t) = (c : nam,t) : []; lex12Lex30 c yu = []; " "lex12LexFracExp2 s = lex12LexExp s; " "lex12LexFracExp3 xvx c cs True = concatMap lex12LexFracExp1 (lexDigits (c : cs)); lex12LexFracExp3 xvx c cs False = lex12LexFracExp2 (xvx : c : cs); " "lex12LexFracExp00 ds (e,u) = ('.' : ds ++ e,u) : []; lex12LexFracExp00 ds xw = []; " "lex12Lex3 c vu60 = lex12Lex30 c vu60; " "lex12Lex7 c s True = concatMap (lex12Lex5 c) (span isDigit s : []); lex12Lex7 c s False = lex12Lex6 c s otherwise; " "lex12Lex11 c s True = (c : [],s) : []; lex12Lex11 c s False = lex12Lex9 c s (lex12IsSym c); " "lex12LexExp5 (e : s) = lex12LexExp4 e s (e `elem` 'e' : 'E' : []); lex12LexExp5 xvv = lex12LexExp3 xvv; " "lex12LexFracExp0 ds vu63 = lex12LexFracExp00 ds vu63; " "lex12LexFracExp4 True (xvx : c : cs) = lex12LexFracExp3 xvx c cs (isDigit c); lex12LexFracExp4 xwv xww = lex12LexFracExp2 xww; " "lex12LexExp2 e vu67 = lex12LexExp20 e vu67; " "lex12LexExp100 e c t True = concatMap (lex12LexExp0 e c) (lexDigits t); lex12LexExp100 e c t False = []; " "lex12Lex4 c ds vu61 = lex12Lex40 c ds vu61; " "lex12LexExp0 e c vu65 = lex12LexExp00 e c vu65; " "lex12LexExp3 s = ([],s) : []; " "lex12Lex5 c vu62 = lex12Lex50 c vu62; " "lex12LexExp4 e s True = concatMap (lex12LexExp1 e) (s : []) ++ concatMap (lex12LexExp2 e) (lexDigits s); lex12LexExp4 e s False = lex12LexExp3 (e : s); " "lex12Lex6 c s True = []; " "lex12Lex9 c s True = concatMap (lex12Lex2 c) (span lex12IsSym s : []); lex12Lex9 c s False = lex12Lex8 c s (isAlpha c); " "lex12LexFracExp10 (ds,t) = concatMap (lex12LexFracExp0 ds) (lex12LexExp t); lex12LexFracExp10 xv = []; " "lex12LexExp (e : s) = lex12LexExp5 (e : s); lex12LexExp s = lex12LexExp3 s; " "lex12LexFracExp (xvx : xwu) = lex12LexFracExp5 (xvx : xwu); lex12LexFracExp s = lex12LexFracExp2 s; " "lex12LexExp1 e vu66 = lex12LexExp10 e vu66; " "lex12Lex50 c (ds,s) = concatMap (lex12Lex4 c ds) (lex12LexFracExp s); lex12Lex50 c xy = []; " "lex12Lex2 c vu59 = lex12Lex20 c vu59; " The bindings of the following Let/Where expression "readInt 16 isHexDigit hex where { hex d = fromEnum d - hex1 d (isDigit d); ; hex0 True = 'A'; hex0 False = 'a'; ; hex1 d True = fromEnum_0; hex1 d False = fromEnum (hex0 (isUpper d)) - 10; } " are unpacked to the following functions on top level "readHexHex0 True = 'A'; readHexHex0 False = 'a'; " "readHexHex1 d True = fromEnum_0; readHexHex1 d False = fromEnum (readHexHex0 (isUpper d)) - 10; " "readHexHex d = fromEnum d - readHexHex1 d (isDigit d); " The bindings of the following Let/Where expression "readParen0 b where { mandatory r = concatMap mandatory2 (lex r); ; mandatory0 x vu48 = mandatory00 x vu48; ; mandatory00 x (vuzy : vuzz,u) = mandatory002 x (vuzy : vuzz,u); mandatory00 x vyx = mandatory000 x vyx; ; mandatory000 x vyx = []; ; mandatory001 True x (vuzy : [],u) = (x,u) : []; mandatory001 vvuu vvuv vvuw = mandatory000 vvuv vvuw; ; mandatory002 x (vuzy : vuzz,u) = mandatory001 (vuzy == ')') x (vuzy : vuzz,u); mandatory002 vvux vvuy = mandatory000 vvux vvuy; ; mandatory1 vu49 = mandatory10 vu49; ; mandatory10 (x,t) = concatMap (mandatory0 x) (lex t); mandatory10 vyy = []; ; mandatory2 vu50 = mandatory20 vu50; ; mandatory20 (vuyx : vuyy,s) = mandatory202 (vuyx : vuyy,s); mandatory20 vyw = mandatory200 vyw; ; mandatory200 vyw = []; ; mandatory201 True (vuyx : [],s) = concatMap mandatory1 (optional s); mandatory201 vuyz vuzu = mandatory200 vuzu; ; mandatory202 (vuyx : vuyy,s) = mandatory201 (vuyx == '(') (vuyx : vuyy,s); mandatory202 vuzv = mandatory200 vuzv; ; optional r = g r ++ mandatory r; ; readParen0 True = mandatory; readParen0 False = optional; } " are unpacked to the following functions on top level "readParenMandatory202 vvzw (vuyx : vuyy,s) = readParenMandatory201 vvzw (vuyx == '(') (vuyx : vuyy,s); readParenMandatory202 vvzw vuzv = readParenMandatory200 vvzw vuzv; " "readParenMandatory001 vvzw True x (vuzy : [],u) = (x,u) : []; readParenMandatory001 vvzw vvuu vvuv vvuw = readParenMandatory000 vvzw vvuv vvuw; " "readParenMandatory00 vvzw x (vuzy : vuzz,u) = readParenMandatory002 vvzw x (vuzy : vuzz,u); readParenMandatory00 vvzw x vyx = readParenMandatory000 vvzw x vyx; " "readParenReadParen0 vvzw True = readParenMandatory vvzw; readParenReadParen0 vvzw False = readParenOptional vvzw; " "readParenMandatory002 vvzw x (vuzy : vuzz,u) = readParenMandatory001 vvzw (vuzy == ')') x (vuzy : vuzz,u); readParenMandatory002 vvzw vvux vvuy = readParenMandatory000 vvzw vvux vvuy; " "readParenMandatory20 vvzw (vuyx : vuyy,s) = readParenMandatory202 vvzw (vuyx : vuyy,s); readParenMandatory20 vvzw vyw = readParenMandatory200 vvzw vyw; " "readParenMandatory200 vvzw vyw = []; " "readParenMandatory000 vvzw x vyx = []; " "readParenMandatory vvzw r = concatMap (readParenMandatory2 vvzw) (lex r); " "readParenMandatory2 vvzw vu50 = readParenMandatory20 vvzw vu50; " "readParenOptional vvzw r = vvzw r ++ readParenMandatory vvzw r; " "readParenMandatory10 vvzw (x,t) = concatMap (readParenMandatory0 vvzw x) (lex t); readParenMandatory10 vvzw vyy = []; " "readParenMandatory0 vvzw x vu48 = readParenMandatory00 vvzw x vu48; " "readParenMandatory1 vvzw vu49 = readParenMandatory10 vvzw vu49; " "readParenMandatory201 vvzw True (vuyx : [],s) = concatMap (readParenMandatory1 vvzw) (readParenOptional vvzw s); readParenMandatory201 vvzw vuyz vuzu = readParenMandatory200 vvzw vuzu; " The bindings of the following Let/Where expression "getChar >>= getLine1 where { getLine0 c ls = return (c : ls); ; getLine1 c = getLine10 c (c == '\10'); ; getLine10 c True = return []; getLine10 c False = getRest >>= getLine0 c; ; getRest = catch getChar getRest0 >>= getRest2; ; getRest0 ex = getRest00 ex (isEOFError ex); ; getRest00 ex True = return '\10'; getRest00 ex False = ioError ex; ; getRest1 c cs = return (c : cs); ; getRest2 c = getRest20 c (c == '\10'); ; getRest20 c True = return []; getRest20 c False = getRest >>= getRest1 c; } " are unpacked to the following functions on top level "getLineGetRest2 c = getLineGetRest20 c (c == '\10'); " "getLineGetRest = catch getChar getLineGetRest0 >>= getLineGetRest2; " "getLineGetLine10 c True = return []; getLineGetLine10 c False = getLineGetRest >>= getLineGetLine0 c; " "getLineGetRest20 c True = return []; getLineGetRest20 c False = getLineGetRest >>= getLineGetRest1 c; " "getLineGetRest00 ex True = return '\10'; getLineGetRest00 ex False = ioError ex; " "getLineGetLine1 c = getLineGetLine10 c (c == '\10'); " "getLineGetRest1 c cs = return (c : cs); " "getLineGetLine0 c ls = return (c : ls); " "getLineGetRest0 ex = getLineGetRest00 ex (isEOFError ex); " The bindings of the following Let/Where expression "readEsc s where { readEsc (vuvz : s) = readEsc41 (vuvz : s); readEsc (vuvu : s) = readEsc38 (vuvu : s); readEsc (vuuv : s) = readEsc36 (vuuv : s); readEsc (zzw : s) = readEsc34 (zzw : s); readEsc (zyx : s) = readEsc32 (zyx : s); readEsc (zxy : s) = readEsc29 (zxy : s); readEsc (zwz : s) = readEsc27 (zwz : s); readEsc (zwu : s) = readEsc25 (zwu : s); readEsc (zvv : s) = readEsc23 (zvv : s); readEsc (zuw : s) = readEsc21 (zuw : s); readEsc (yzu : yzx) = readEsc18 (yzu : yzx); readEsc (vvu : vvv) = readEsc15 (vvu : vvv); readEsc (yxz : s) = readEsc13 (yxz : s); readEsc (yxu : s) = readEsc11 (yxu : s); readEsc (vvx : vvy) = readEsc8 (vvx : vvy); readEsc vww = readEsc6 vww; ; readEsc0 vu71 = readEsc00 vu71; ; readEsc00 (n,t) = (toEnum n,t) : []; readEsc00 vwx = []; ; readEsc1 vu72 = readEsc10 vu72; ; readEsc10 (n,t) = (toEnum n,t) : []; readEsc10 vwy = []; ; readEsc11 (yxu : s) = readEsc9 (yxu == 'x') (yxu : s); readEsc11 yxx = readEsc8 yxx; ; readEsc12 True (yxz : s) = concatMap readEsc1 (readOct s); readEsc12 yyu yyv = readEsc11 yyv; ; readEsc13 (yxz : s) = readEsc12 (yxz == 'o') (yxz : s); readEsc13 yyw = readEsc11 yyw; ; readEsc14 vvu vvv True = concatMap readEsc0 (readDec (vvu : vvv)); readEsc14 vvu vvv False = readEsc13 (vvu : vvv); ; readEsc15 (vvu : vvv) = readEsc14 vvu vvv (isDigit vvu); readEsc15 yyy = readEsc13 yyy; ; readEsc16 yzu c s True = (toEnum (fromEnum c - fromEnum '@'),s) : []; readEsc16 yzu c s False = readEsc15 (yzu : c : s); ; readEsc17 True (yzu : c : s) = readEsc16 yzu c s (c >= '@' && c <= '_'); readEsc17 yzy yzz = readEsc15 yzz; ; readEsc18 (yzu : yzx) = readEsc17 (yzu == '^') (yzu : yzx); readEsc18 zuu = readEsc15 zuu; ; readEsc19 True (zuw : s) = (''',s) : []; readEsc19 zux zuy = readEsc18 zuy; ; readEsc2 vu73 = readEsc20 vu73; ; readEsc20 (n,t) = (toEnum n,t) : []; readEsc20 vwz = []; ; readEsc21 (zuw : s) = readEsc19 (zuw == ''') (zuw : s); readEsc21 zuz = readEsc18 zuz; ; readEsc22 True (zvv : s) = ('"',s) : []; readEsc22 zvw zvx = readEsc21 zvx; ; readEsc23 (zvv : s) = readEsc22 (zvv == '"') (zvv : s); readEsc23 zvy = readEsc21 zvy; ; readEsc24 True (zwu : s) = ('\',s) : []; readEsc24 zwv zww = readEsc23 zww; ; readEsc25 (zwu : s) = readEsc24 (zwu == '\') (zwu : s); readEsc25 zwx = readEsc23 zwx; ; readEsc26 True (zwz : s) = ('\11',s) : []; readEsc26 zxu zxv = readEsc25 zxv; ; readEsc27 (zwz : s) = readEsc26 (zwz == 'v') (zwz : s); readEsc27 zxw = readEsc25 zxw; ; readEsc28 True (zxy : s) = ('\9',s) : []; readEsc28 zxz zyu = readEsc27 zyu; ; readEsc29 (zxy : s) = readEsc28 (zxy == 't') (zxy : s); readEsc29 zyv = readEsc27 zyv; ; readEsc31 True (zyx : s) = ('\13',s) : []; readEsc31 zyy zyz = readEsc29 zyz; ; readEsc32 (zyx : s) = readEsc31 (zyx == 'r') (zyx : s); readEsc32 zzu = readEsc29 zzu; ; readEsc33 True (zzw : s) = ('\10',s) : []; readEsc33 zzx zzy = readEsc32 zzy; ; readEsc34 (zzw : s) = readEsc33 (zzw == 'n') (zzw : s); readEsc34 zzz = readEsc32 zzz; ; readEsc35 True (vuuv : s) = ('\12',s) : []; readEsc35 vuuw vuux = readEsc34 vuux; ; readEsc36 (vuuv : s) = readEsc35 (vuuv == 'f') (vuuv : s); readEsc36 vuuy = readEsc34 vuuy; ; readEsc37 True (vuvu : s) = ('\8',s) : []; readEsc37 vuvv vuvw = readEsc36 vuvw; ; readEsc38 (vuvu : s) = readEsc37 (vuvu == 'b') (vuvu : s); readEsc38 vuvx = readEsc36 vuvx; ; readEsc39 True (vuvz : s) = ('\7',s) : []; readEsc39 vuwu vuwv = readEsc38 vuwv; ; readEsc41 (vuvz : s) = readEsc39 (vuvz == 'a') (vuvz : s); readEsc41 vuww = readEsc38 vuww; ; readEsc6 vww = []; ; readEsc7 vvx vvy True = let { readEsc3 c vu74 = readEsc30 c vu74; ; readEsc30 c ([],s') = (c,s') : []; readEsc30 c vwv = []; ; readEsc4 s vu75 = readEsc40 s vu75; ; readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s vwu = []; ; readEsc5 (pr : vvz) = pr : []; readEsc5 [] = []; ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } in readEsc5 (concatMap (readEsc4 (vvx : vvy)) table); readEsc7 vvx vvy False = readEsc6 (vvx : vvy); ; readEsc8 (vvx : vvy) = readEsc7 vvx vvy (isUpper vvx); readEsc8 ywy = readEsc6 ywy; ; readEsc9 True (yxu : s) = concatMap readEsc2 (readHex s); readEsc9 yxv yxw = readEsc8 yxw; } " are unpacked to the following functions on top level "readLitChar1ReadEsc41 (vuvz : s) = readLitChar1ReadEsc39 (vuvz == 'a') (vuvz : s); readLitChar1ReadEsc41 vuww = readLitChar1ReadEsc38 vuww; " "readLitChar1ReadEsc2 vu73 = readLitChar1ReadEsc20 vu73; " "readLitChar1ReadEsc34 (zzw : s) = readLitChar1ReadEsc33 (zzw == 'n') (zzw : s); readLitChar1ReadEsc34 zzz = readLitChar1ReadEsc32 zzz; " "readLitChar1ReadEsc36 (vuuv : s) = readLitChar1ReadEsc35 (vuuv == 'f') (vuuv : s); readLitChar1ReadEsc36 vuuy = readLitChar1ReadEsc34 vuuy; " "readLitChar1ReadEsc18 (yzu : yzx) = readLitChar1ReadEsc17 (yzu == '^') (yzu : yzx); readLitChar1ReadEsc18 zuu = readLitChar1ReadEsc15 zuu; " "readLitChar1ReadEsc38 (vuvu : s) = readLitChar1ReadEsc37 (vuvu == 'b') (vuvu : s); readLitChar1ReadEsc38 vuvx = readLitChar1ReadEsc36 vuvx; " "readLitChar1ReadEsc26 True (zwz : s) = ('\11',s) : []; readLitChar1ReadEsc26 zxu zxv = readLitChar1ReadEsc25 zxv; " "readLitChar1ReadEsc27 (zwz : s) = readLitChar1ReadEsc26 (zwz == 'v') (zwz : s); readLitChar1ReadEsc27 zxw = readLitChar1ReadEsc25 zxw; " "readLitChar1ReadEsc17 True (yzu : c : s) = readLitChar1ReadEsc16 yzu c s (c >= '@' && c <= '_'); readLitChar1ReadEsc17 yzy yzz = readLitChar1ReadEsc15 yzz; " "readLitChar1ReadEsc23 (zvv : s) = readLitChar1ReadEsc22 (zvv == '"') (zvv : s); readLitChar1ReadEsc23 zvy = readLitChar1ReadEsc21 zvy; " "readLitChar1ReadEsc6 vww = []; " "readLitChar1ReadEsc28 True (zxy : s) = ('\9',s) : []; readLitChar1ReadEsc28 zxz zyu = readLitChar1ReadEsc27 zyu; " "readLitChar1ReadEsc11 (yxu : s) = readLitChar1ReadEsc9 (yxu == 'x') (yxu : s); readLitChar1ReadEsc11 yxx = readLitChar1ReadEsc8 yxx; " "readLitChar1ReadEsc1 vu72 = readLitChar1ReadEsc10 vu72; " "readLitChar1ReadEsc31 True (zyx : s) = ('\13',s) : []; readLitChar1ReadEsc31 zyy zyz = readLitChar1ReadEsc29 zyz; " "readLitChar1ReadEsc14 vvu vvv True = concatMap readLitChar1ReadEsc0 (readDec (vvu : vvv)); readLitChar1ReadEsc14 vvu vvv False = readLitChar1ReadEsc13 (vvu : vvv); " "readLitChar1ReadEsc0 vu71 = readLitChar1ReadEsc00 vu71; " "readLitChar1ReadEsc19 True (zuw : s) = (''',s) : []; readLitChar1ReadEsc19 zux zuy = readLitChar1ReadEsc18 zuy; " "readLitChar1ReadEsc15 (vvu : vvv) = readLitChar1ReadEsc14 vvu vvv (isDigit vvu); readLitChar1ReadEsc15 yyy = readLitChar1ReadEsc13 yyy; " "readLitChar1ReadEsc13 (yxz : s) = readLitChar1ReadEsc12 (yxz == 'o') (yxz : s); readLitChar1ReadEsc13 yyw = readLitChar1ReadEsc11 yyw; " "readLitChar1ReadEsc35 True (vuuv : s) = ('\12',s) : []; readLitChar1ReadEsc35 vuuw vuux = readLitChar1ReadEsc34 vuux; " "readLitChar1ReadEsc20 (n,t) = (toEnum n,t) : []; readLitChar1ReadEsc20 vwz = []; " "readLitChar1ReadEsc8 (vvx : vvy) = readLitChar1ReadEsc7 vvx vvy (isUpper vvx); readLitChar1ReadEsc8 ywy = readLitChar1ReadEsc6 ywy; " "readLitChar1ReadEsc25 (zwu : s) = readLitChar1ReadEsc24 (zwu == '\') (zwu : s); readLitChar1ReadEsc25 zwx = readLitChar1ReadEsc23 zwx; " "readLitChar1ReadEsc22 True (zvv : s) = ('"',s) : []; readLitChar1ReadEsc22 zvw zvx = readLitChar1ReadEsc21 zvx; " "readLitChar1ReadEsc32 (zyx : s) = readLitChar1ReadEsc31 (zyx == 'r') (zyx : s); readLitChar1ReadEsc32 zzu = readLitChar1ReadEsc29 zzu; " "readLitChar1ReadEsc (vuvz : s) = readLitChar1ReadEsc41 (vuvz : s); readLitChar1ReadEsc (vuvu : s) = readLitChar1ReadEsc38 (vuvu : s); readLitChar1ReadEsc (vuuv : s) = readLitChar1ReadEsc36 (vuuv : s); readLitChar1ReadEsc (zzw : s) = readLitChar1ReadEsc34 (zzw : s); readLitChar1ReadEsc (zyx : s) = readLitChar1ReadEsc32 (zyx : s); readLitChar1ReadEsc (zxy : s) = readLitChar1ReadEsc29 (zxy : s); readLitChar1ReadEsc (zwz : s) = readLitChar1ReadEsc27 (zwz : s); readLitChar1ReadEsc (zwu : s) = readLitChar1ReadEsc25 (zwu : s); readLitChar1ReadEsc (zvv : s) = readLitChar1ReadEsc23 (zvv : s); readLitChar1ReadEsc (zuw : s) = readLitChar1ReadEsc21 (zuw : s); readLitChar1ReadEsc (yzu : yzx) = readLitChar1ReadEsc18 (yzu : yzx); readLitChar1ReadEsc (vvu : vvv) = readLitChar1ReadEsc15 (vvu : vvv); readLitChar1ReadEsc (yxz : s) = readLitChar1ReadEsc13 (yxz : s); readLitChar1ReadEsc (yxu : s) = readLitChar1ReadEsc11 (yxu : s); readLitChar1ReadEsc (vvx : vvy) = readLitChar1ReadEsc8 (vvx : vvy); readLitChar1ReadEsc vww = readLitChar1ReadEsc6 vww; " "readLitChar1ReadEsc16 yzu c s True = (toEnum (fromEnum c - fromEnum '@'),s) : []; readLitChar1ReadEsc16 yzu c s False = readLitChar1ReadEsc15 (yzu : c : s); " "readLitChar1ReadEsc24 True (zwu : s) = ('\',s) : []; readLitChar1ReadEsc24 zwv zww = readLitChar1ReadEsc23 zww; " "readLitChar1ReadEsc00 (n,t) = (toEnum n,t) : []; readLitChar1ReadEsc00 vwx = []; " "readLitChar1ReadEsc39 True (vuvz : s) = ('\7',s) : []; readLitChar1ReadEsc39 vuwu vuwv = readLitChar1ReadEsc38 vuwv; " "readLitChar1ReadEsc37 True (vuvu : s) = ('\8',s) : []; readLitChar1ReadEsc37 vuvv vuvw = readLitChar1ReadEsc36 vuvw; " "readLitChar1ReadEsc21 (zuw : s) = readLitChar1ReadEsc19 (zuw == ''') (zuw : s); readLitChar1ReadEsc21 zuz = readLitChar1ReadEsc18 zuz; " "readLitChar1ReadEsc33 True (zzw : s) = ('\10',s) : []; readLitChar1ReadEsc33 zzx zzy = readLitChar1ReadEsc32 zzy; " "readLitChar1ReadEsc9 True (yxu : s) = concatMap readLitChar1ReadEsc2 (readHex s); readLitChar1ReadEsc9 yxv yxw = readLitChar1ReadEsc8 yxw; " "readLitChar1ReadEsc7 vvx vvy True = readLitChar1ReadEsc7ReadEsc5 (concatMap (readLitChar1ReadEsc7ReadEsc4 (vvx : vvy)) readLitChar1ReadEsc7Table); readLitChar1ReadEsc7 vvx vvy False = readLitChar1ReadEsc6 (vvx : vvy); " "readLitChar1ReadEsc10 (n,t) = (toEnum n,t) : []; readLitChar1ReadEsc10 vwy = []; " "readLitChar1ReadEsc29 (zxy : s) = readLitChar1ReadEsc28 (zxy == 't') (zxy : s); readLitChar1ReadEsc29 zyv = readLitChar1ReadEsc27 zyv; " "readLitChar1ReadEsc12 True (yxz : s) = concatMap readLitChar1ReadEsc1 (readOct s); readLitChar1ReadEsc12 yyu yyv = readLitChar1ReadEsc11 yyv; " The bindings of the following Let/Where expression "let { readEsc3 c vu74 = readEsc30 c vu74; ; readEsc30 c ([],s') = (c,s') : []; readEsc30 c vwv = []; ; readEsc4 s vu75 = readEsc40 s vu75; ; readEsc40 s (c,mne) = concatMap (readEsc3 c) (lexmatch mne s : []); readEsc40 s vwu = []; ; readEsc5 (pr : vvz) = pr : []; readEsc5 [] = []; ; table = ('\127','D' : 'E' : 'L' : []) : asciiTab; } in readEsc5 (concatMap (readEsc4 (vvx : vvy)) table)" are unpacked to the following functions on top level "readLitChar1ReadEsc7ReadEsc40 s (c,mne) = concatMap (readLitChar1ReadEsc7ReadEsc3 c) (lexmatch mne s : []); readLitChar1ReadEsc7ReadEsc40 s vwu = []; " "readLitChar1ReadEsc7ReadEsc5 (pr : vvz) = pr : []; readLitChar1ReadEsc7ReadEsc5 [] = []; " "readLitChar1ReadEsc7ReadEsc3 c vu74 = readLitChar1ReadEsc7ReadEsc30 c vu74; " "readLitChar1ReadEsc7ReadEsc30 c ([],s') = (c,s') : []; readLitChar1ReadEsc7ReadEsc30 c vwv = []; " "readLitChar1ReadEsc7Table = ('\127','D' : 'E' : 'L' : []) : asciiTab; " "readLitChar1ReadEsc7ReadEsc4 s vu75 = readLitChar1ReadEsc7ReadEsc40 s vu75; " ---------------------------------------- (12) Obligation: mainModule Main module Main where { import qualified Prelude; } ---------------------------------------- (13) NumRed (SOUND) Num Reduction:All numbers are transformed to their corresponding representation with Succ, Pred and Zero. ---------------------------------------- (14) Obligation: mainModule Main module Main where { import qualified Prelude; }