Input TRS: 1: ap(ap(f,x),x) -> ap(ap(x,ap(f,x)),ap(ap(cons,x),nil)) 2: ap(ap(ap(foldr,g),h),nil) -> h 3: ap(ap(ap(foldr,g),h),ap(ap(cons,x),xs)) -> ap(ap(g,x),ap(ap(ap(foldr,g),h),xs)) Dependency Pairs: #1: #ap(ap(f,x),x) -> #ap(ap(x,ap(f,x)),ap(ap(cons,x),nil)) #2: #ap(ap(f,x),x) -> #ap(x,ap(f,x)) #3: #ap(ap(f,x),x) -> #ap(f,x) #4: #ap(ap(f,x),x) -> #ap(ap(cons,x),nil) #5: #ap(ap(f,x),x) -> #ap(cons,x) #6: #ap(ap(ap(foldr,g),h),ap(ap(cons,x),xs)) -> #ap(ap(g,x),ap(ap(ap(foldr,g),h),xs)) #7: #ap(ap(ap(foldr,g),h),ap(ap(cons,x),xs)) -> #ap(g,x) #8: #ap(ap(ap(foldr,g),h),ap(ap(cons,x),xs)) -> #ap(ap(ap(foldr,g),h),xs) #9: #ap(ap(ap(foldr,g),h),ap(ap(cons,x),xs)) -> #ap(ap(foldr,g),h) #10: #ap(ap(ap(foldr,g),h),ap(ap(cons,x),xs)) -> #ap(foldr,g) Number of SCCs: 1 SCC { #1 #2 #4 #6 #7 #8 #9 } QKBOPS(sum)... failed.