0 Prolog
↳1 PrologToDTProblemTransformerProof (⇐)
↳2 TRIPLES
↳3 UndefinedPredicateInTriplesTransformerProof (⇐)
↳4 TRIPLES
↳5 TriplesToPiDPProof (⇐)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇐)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 PiDPToQDPProof (⇐)
↳25 QDP
↳26 QDPOrderProof (⇔)
↳27 QDP
↳28 DependencyGraphProof (⇔)
↳29 TRUE
IN_ORDER1_IN_AG(void, T11) → U3_AG(T11, app16_in_aaag(X20, X33, X21, T11))
IN_ORDER1_IN_AG(void, T11) → APP16_IN_AAAG(X20, X33, X21, T11)
APP16_IN_AAAG(.(X83, X84), X85, X86, .(X83, T18)) → U1_AAAG(X83, X84, X85, X86, T18, app16_in_aaag(X84, X85, X86, T18))
APP16_IN_AAAG(.(X83, X84), X85, X86, .(X83, T18)) → APP16_IN_AAAG(X84, X85, X86, T18)
IN_ORDER1_IN_AG(node(T44, T43, T45), T11) → U4_AG(T44, T43, T45, T11, app47_in_aaag(X20, T43, X21, T11))
IN_ORDER1_IN_AG(node(T44, T43, T45), T11) → APP47_IN_AAAG(X20, T43, X21, T11)
APP47_IN_AAAG(.(X168, X169), T66, X170, .(X168, T65)) → U2_AAAG(X168, X169, T66, X170, T65, app47_in_aaag(X169, T66, X170, T65))
APP47_IN_AAAG(.(X168, X169), T66, X170, .(X168, T65)) → APP47_IN_AAAG(X169, T66, X170, T65)
IN_ORDER1_IN_AG(node(T82, T80, T83), T11) → U5_AG(T82, T80, T83, T11, appc47_in_aaag(T48, T80, T49, T11))
U5_AG(T82, T80, T83, T11, appc47_out_aaag(T48, T80, T49, T11)) → U6_AG(T82, T80, T83, T11, in_order1_in_ag(T82, T48))
U5_AG(T82, T80, T83, T11, appc47_out_aaag(T48, T80, T49, T11)) → IN_ORDER1_IN_AG(T82, T48)
IN_ORDER1_IN_AG(node(T97, T98, T100), T11) → U7_AG(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U7_AG(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U8_AG(T97, T98, T100, T11, T49, in_orderc1_in_ag(T97, T48))
U8_AG(T97, T98, T100, T11, T49, in_orderc1_out_ag(T97, T48)) → U9_AG(T97, T98, T100, T11, in_order1_in_ag(T100, T49))
U8_AG(T97, T98, T100, T11, T49, in_orderc1_out_ag(T97, T48)) → IN_ORDER1_IN_AG(T100, T49)
appc47_in_aaag([], T59, X148, .(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, X169), T66, X170, .(X168, T65)) → U12_aaag(X168, X169, T66, X170, T65, appc47_in_aaag(X169, T66, X170, T65))
U12_aaag(X168, X169, T66, X170, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag(void, []) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(void, T11) → U13_ag(T11, appc16_in_aaag(T13, T14, T15, T11))
appc16_in_aaag([], X60, X61, .(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, X84), X85, X86, .(X83, T18)) → U11_aaag(X83, X84, X85, X86, T18, appc16_in_aaag(X84, X85, X86, T18))
U11_aaag(X83, X84, X85, X86, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T13, T14, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T13, T14, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(node(T97, T98, T100), T11) → U16_ag(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U16_ag(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_in_ag(T97, T48))
U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T100, T11, in_orderc1_in_ag(T100, T49))
U18_ag(T97, T98, T100, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES
IN_ORDER1_IN_AG(void, T11) → U3_AG(T11, app16_in_aaag(X20, X33, X21, T11))
IN_ORDER1_IN_AG(void, T11) → APP16_IN_AAAG(X20, X33, X21, T11)
APP16_IN_AAAG(.(X83, X84), X85, X86, .(X83, T18)) → U1_AAAG(X83, X84, X85, X86, T18, app16_in_aaag(X84, X85, X86, T18))
APP16_IN_AAAG(.(X83, X84), X85, X86, .(X83, T18)) → APP16_IN_AAAG(X84, X85, X86, T18)
IN_ORDER1_IN_AG(node(T44, T43, T45), T11) → U4_AG(T44, T43, T45, T11, app47_in_aaag(X20, T43, X21, T11))
IN_ORDER1_IN_AG(node(T44, T43, T45), T11) → APP47_IN_AAAG(X20, T43, X21, T11)
APP47_IN_AAAG(.(X168, X169), T66, X170, .(X168, T65)) → U2_AAAG(X168, X169, T66, X170, T65, app47_in_aaag(X169, T66, X170, T65))
APP47_IN_AAAG(.(X168, X169), T66, X170, .(X168, T65)) → APP47_IN_AAAG(X169, T66, X170, T65)
IN_ORDER1_IN_AG(node(T82, T80, T83), T11) → U5_AG(T82, T80, T83, T11, appc47_in_aaag(T48, T80, T49, T11))
U5_AG(T82, T80, T83, T11, appc47_out_aaag(T48, T80, T49, T11)) → U6_AG(T82, T80, T83, T11, in_order1_in_ag(T82, T48))
U5_AG(T82, T80, T83, T11, appc47_out_aaag(T48, T80, T49, T11)) → IN_ORDER1_IN_AG(T82, T48)
IN_ORDER1_IN_AG(node(T97, T98, T100), T11) → U7_AG(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U7_AG(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U8_AG(T97, T98, T100, T11, T49, in_orderc1_in_ag(T97, T48))
U8_AG(T97, T98, T100, T11, T49, in_orderc1_out_ag(T97, T48)) → U9_AG(T97, T98, T100, T11, in_order1_in_ag(T100, T49))
U8_AG(T97, T98, T100, T11, T49, in_orderc1_out_ag(T97, T48)) → IN_ORDER1_IN_AG(T100, T49)
appc47_in_aaag([], T59, X148, .(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, X169), T66, X170, .(X168, T65)) → U12_aaag(X168, X169, T66, X170, T65, appc47_in_aaag(X169, T66, X170, T65))
U12_aaag(X168, X169, T66, X170, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag(void, []) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(void, T11) → U13_ag(T11, appc16_in_aaag(T13, T14, T15, T11))
appc16_in_aaag([], X60, X61, .(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, X84), X85, X86, .(X83, T18)) → U11_aaag(X83, X84, X85, X86, T18, appc16_in_aaag(X84, X85, X86, T18))
U11_aaag(X83, X84, X85, X86, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T13, T14, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T13, T14, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(node(T97, T98, T100), T11) → U16_ag(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U16_ag(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_in_ag(T97, T48))
U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T100, T11, in_orderc1_in_ag(T100, T49))
U18_ag(T97, T98, T100, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
APP47_IN_AAAG(.(X168, X169), T66, X170, .(X168, T65)) → APP47_IN_AAAG(X169, T66, X170, T65)
appc47_in_aaag([], T59, X148, .(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, X169), T66, X170, .(X168, T65)) → U12_aaag(X168, X169, T66, X170, T65, appc47_in_aaag(X169, T66, X170, T65))
U12_aaag(X168, X169, T66, X170, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag(void, []) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(void, T11) → U13_ag(T11, appc16_in_aaag(T13, T14, T15, T11))
appc16_in_aaag([], X60, X61, .(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, X84), X85, X86, .(X83, T18)) → U11_aaag(X83, X84, X85, X86, T18, appc16_in_aaag(X84, X85, X86, T18))
U11_aaag(X83, X84, X85, X86, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T13, T14, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T13, T14, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(node(T97, T98, T100), T11) → U16_ag(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U16_ag(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_in_ag(T97, T48))
U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T100, T11, in_orderc1_in_ag(T100, T49))
U18_ag(T97, T98, T100, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
APP47_IN_AAAG(.(X168, X169), T66, X170, .(X168, T65)) → APP47_IN_AAAG(X169, T66, X170, T65)
APP47_IN_AAAG(.(X168, T65)) → APP47_IN_AAAG(T65)
From the DPs we obtained the following set of size-change graphs:
APP16_IN_AAAG(.(X83, X84), X85, X86, .(X83, T18)) → APP16_IN_AAAG(X84, X85, X86, T18)
appc47_in_aaag([], T59, X148, .(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, X169), T66, X170, .(X168, T65)) → U12_aaag(X168, X169, T66, X170, T65, appc47_in_aaag(X169, T66, X170, T65))
U12_aaag(X168, X169, T66, X170, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag(void, []) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(void, T11) → U13_ag(T11, appc16_in_aaag(T13, T14, T15, T11))
appc16_in_aaag([], X60, X61, .(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, X84), X85, X86, .(X83, T18)) → U11_aaag(X83, X84, X85, X86, T18, appc16_in_aaag(X84, X85, X86, T18))
U11_aaag(X83, X84, X85, X86, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T13, T14, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T13, T14, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(node(T97, T98, T100), T11) → U16_ag(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U16_ag(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_in_ag(T97, T48))
U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T100, T11, in_orderc1_in_ag(T100, T49))
U18_ag(T97, T98, T100, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
APP16_IN_AAAG(.(X83, X84), X85, X86, .(X83, T18)) → APP16_IN_AAAG(X84, X85, X86, T18)
APP16_IN_AAAG(.(X83, T18)) → APP16_IN_AAAG(T18)
From the DPs we obtained the following set of size-change graphs:
IN_ORDER1_IN_AG(node(T82, T80, T83), T11) → U5_AG(T82, T80, T83, T11, appc47_in_aaag(T48, T80, T49, T11))
U5_AG(T82, T80, T83, T11, appc47_out_aaag(T48, T80, T49, T11)) → IN_ORDER1_IN_AG(T82, T48)
IN_ORDER1_IN_AG(node(T97, T98, T100), T11) → U7_AG(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U7_AG(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U8_AG(T97, T98, T100, T11, T49, in_orderc1_in_ag(T97, T48))
U8_AG(T97, T98, T100, T11, T49, in_orderc1_out_ag(T97, T48)) → IN_ORDER1_IN_AG(T100, T49)
appc47_in_aaag([], T59, X148, .(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, X169), T66, X170, .(X168, T65)) → U12_aaag(X168, X169, T66, X170, T65, appc47_in_aaag(X169, T66, X170, T65))
U12_aaag(X168, X169, T66, X170, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag(void, []) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(void, T11) → U13_ag(T11, appc16_in_aaag(T13, T14, T15, T11))
appc16_in_aaag([], X60, X61, .(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, X84), X85, X86, .(X83, T18)) → U11_aaag(X83, X84, X85, X86, T18, appc16_in_aaag(X84, X85, X86, T18))
U11_aaag(X83, X84, X85, X86, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T13, T14, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T13, T14, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(node(T97, T98, T100), T11) → U16_ag(T97, T98, T100, T11, appc47_in_aaag(T48, T98, T49, T11))
U16_ag(T97, T98, T100, T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_in_ag(T97, T48))
U17_ag(T97, T98, T100, T11, T48, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T100, T11, in_orderc1_in_ag(T100, T49))
U18_ag(T97, T98, T100, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
IN_ORDER1_IN_AG(T11) → U5_AG(T11, appc47_in_aaag(T11))
U5_AG(T11, appc47_out_aaag(T48, T80, T49, T11)) → IN_ORDER1_IN_AG(T48)
IN_ORDER1_IN_AG(T11) → U7_AG(T11, appc47_in_aaag(T11))
U7_AG(T11, appc47_out_aaag(T48, T98, T49, T11)) → U8_AG(T11, T49, in_orderc1_in_ag(T48))
U8_AG(T11, T49, in_orderc1_out_ag(T97, T48)) → IN_ORDER1_IN_AG(T49)
appc47_in_aaag(.(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, T65)) → U12_aaag(X168, T65, appc47_in_aaag(T65))
U12_aaag(X168, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag([]) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(T11) → U13_ag(T11, appc16_in_aaag(T11))
appc16_in_aaag(.(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, T18)) → U11_aaag(X83, T18, appc16_in_aaag(T18))
U11_aaag(X83, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(T11) → U16_ag(T11, appc47_in_aaag(T11))
U16_ag(T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T98, T11, T49, in_orderc1_in_ag(T48))
U17_ag(T98, T11, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T11, in_orderc1_in_ag(T49))
U18_ag(T97, T98, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
appc47_in_aaag(x0)
U12_aaag(x0, x1, x2)
in_orderc1_in_ag(x0)
appc16_in_aaag(x0)
U11_aaag(x0, x1, x2)
U13_ag(x0, x1)
in_orderc30_in_g(x0)
U14_ag(x0, x1, x2)
U15_ag(x0, x1)
U16_ag(x0, x1)
U17_ag(x0, x1, x2, x3)
U18_ag(x0, x1, x2, x3)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
U5_AG(T11, appc47_out_aaag(T48, T80, T49, T11)) → IN_ORDER1_IN_AG(T48)
U7_AG(T11, appc47_out_aaag(T48, T98, T49, T11)) → U8_AG(T11, T49, in_orderc1_in_ag(T48))
POL(.(x1, x2)) = 1 + x1 + x2
POL(IN_ORDER1_IN_AG(x1)) = x1
POL(U11_aaag(x1, x2, x3)) = 0
POL(U12_aaag(x1, x2, x3)) = 1 + x1 + x3
POL(U13_ag(x1, x2)) = 0
POL(U14_ag(x1, x2, x3)) = 0
POL(U15_ag(x1, x2)) = 0
POL(U16_ag(x1, x2)) = 0
POL(U17_ag(x1, x2, x3, x4)) = 0
POL(U18_ag(x1, x2, x3, x4)) = 0
POL(U5_AG(x1, x2)) = x2
POL(U7_AG(x1, x2)) = x2
POL(U8_AG(x1, x2, x3)) = x2
POL([]) = 0
POL(appc16_in_aaag(x1)) = 0
POL(appc16_out_aaag(x1, x2, x3, x4)) = 0
POL(appc47_in_aaag(x1)) = x1
POL(appc47_out_aaag(x1, x2, x3, x4)) = 1 + x1 + x3
POL(in_orderc1_in_ag(x1)) = 0
POL(in_orderc1_out_ag(x1, x2)) = 0
POL(in_orderc30_in_g(x1)) = 0
POL(in_orderc30_out_g(x1)) = 0
POL(node(x1, x2, x3)) = 0
POL(void) = 0
appc47_in_aaag(.(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, T65)) → U12_aaag(X168, T65, appc47_in_aaag(T65))
U12_aaag(X168, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
IN_ORDER1_IN_AG(T11) → U5_AG(T11, appc47_in_aaag(T11))
IN_ORDER1_IN_AG(T11) → U7_AG(T11, appc47_in_aaag(T11))
U8_AG(T11, T49, in_orderc1_out_ag(T97, T48)) → IN_ORDER1_IN_AG(T49)
appc47_in_aaag(.(T59, X148)) → appc47_out_aaag([], T59, X148, .(T59, X148))
appc47_in_aaag(.(X168, T65)) → U12_aaag(X168, T65, appc47_in_aaag(T65))
U12_aaag(X168, T65, appc47_out_aaag(X169, T66, X170, T65)) → appc47_out_aaag(.(X168, X169), T66, X170, .(X168, T65))
in_orderc1_in_ag([]) → in_orderc1_out_ag(void, [])
in_orderc1_in_ag(T11) → U13_ag(T11, appc16_in_aaag(T11))
appc16_in_aaag(.(X60, X61)) → appc16_out_aaag([], X60, X61, .(X60, X61))
appc16_in_aaag(.(X83, T18)) → U11_aaag(X83, T18, appc16_in_aaag(T18))
U11_aaag(X83, T18, appc16_out_aaag(X84, X85, X86, T18)) → appc16_out_aaag(.(X83, X84), X85, X86, .(X83, T18))
U13_ag(T11, appc16_out_aaag(T13, T14, T15, T11)) → U14_ag(T11, T15, in_orderc30_in_g(T13))
in_orderc30_in_g([]) → in_orderc30_out_g([])
U14_ag(T11, T15, in_orderc30_out_g(T13)) → U15_ag(T11, in_orderc30_in_g(T15))
U15_ag(T11, in_orderc30_out_g(T15)) → in_orderc1_out_ag(void, T11)
in_orderc1_in_ag(T11) → U16_ag(T11, appc47_in_aaag(T11))
U16_ag(T11, appc47_out_aaag(T48, T98, T49, T11)) → U17_ag(T98, T11, T49, in_orderc1_in_ag(T48))
U17_ag(T98, T11, T49, in_orderc1_out_ag(T97, T48)) → U18_ag(T97, T98, T11, in_orderc1_in_ag(T49))
U18_ag(T97, T98, T11, in_orderc1_out_ag(T100, T49)) → in_orderc1_out_ag(node(T97, T98, T100), T11)
appc47_in_aaag(x0)
U12_aaag(x0, x1, x2)
in_orderc1_in_ag(x0)
appc16_in_aaag(x0)
U11_aaag(x0, x1, x2)
U13_ag(x0, x1)
in_orderc30_in_g(x0)
U14_ag(x0, x1, x2)
U15_ag(x0, x1)
U16_ag(x0, x1)
U17_ag(x0, x1, x2, x3)
U18_ag(x0, x1, x2, x3)