/export/starexec/sandbox2/solver/bin/starexec_run_standard /export/starexec/sandbox2/benchmark/theBenchmark.pl /export/starexec/sandbox2/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox2/benchmark/theBenchmark.pl # AProVE Commit ID: 794c25de1cacf0d048858bcd21c9a779e1221865 marcel 20200619 unpublished dirty Left Termination of the query pattern p(a) w.r.t. the given Prolog program could successfully be proven: (0) Prolog (1) PrologToIRSwTTransformerProof [SOUND, 0 ms] (2) TRUE ---------------------------------------- (0) Obligation: Clauses: p(.(A, [])) :- l(.(A, [])). r(1). l([]). l(.(H, T)) :- ','(r(H), l(T)). Query: p(a) ---------------------------------------- (1) PrologToIRSwTTransformerProof (SOUND) Transformed Prolog program to IRSwT according to method in Master Thesis of A. Weinert { "root": 3, "program": { "directives": [], "clauses": [ [ "(p (. A ([])))", "(l (. A ([])))" ], [ "(r (1))", null ], [ "(l ([]))", null ], [ "(l (. H T))", "(',' (r H) (l T))" ] ] }, "graph": { "nodes": { "35": { "goal": [ { "clause": 2, "scope": 2, "term": "(l (. T5 ([])))" }, { "clause": 3, "scope": 2, "term": "(l (. T5 ([])))" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "46": { "goal": [{ "clause": -1, "scope": -1, "term": "(l ([]))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "36": { "goal": [{ "clause": 3, "scope": 2, "term": "(l (. T5 ([])))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "37": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (r T10) (l ([])))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "49": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "type": "Nodes", "3": { "goal": [{ "clause": -1, "scope": -1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "124": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "9": { "goal": [{ "clause": 0, "scope": 1, "term": "(p T1)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "70": { "goal": [ { "clause": 2, "scope": 4, "term": "(l ([]))" }, { "clause": 3, "scope": 4, "term": "(l ([]))" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "83": { "goal": [{ "clause": 2, "scope": 4, "term": "(l ([]))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "84": { "goal": [{ "clause": 3, "scope": 4, "term": "(l ([]))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "41": { "goal": [{ "clause": 1, "scope": 3, "term": "(',' (r T10) (l ([])))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "85": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "31": { "goal": [{ "clause": -1, "scope": -1, "term": "(l (. T5 ([])))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "86": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "32": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } } }, "edges": [ { "from": 3, "to": 9, "label": "CASE" }, { "from": 9, "to": 31, "label": "EVAL with clause\np(.(X3, [])) :- l(.(X3, [])).\nand substitutionX3 -> T5,\nT1 -> .(T5, []),\nT4 -> T5" }, { "from": 9, "to": 32, "label": "EVAL-BACKTRACK" }, { "from": 31, "to": 35, "label": "CASE" }, { "from": 35, "to": 36, "label": "BACKTRACK\nfor clause: l([])because of non-unification" }, { "from": 36, "to": 37, "label": "ONLY EVAL with clause\nl(.(X8, X9)) :- ','(r(X8), l(X9)).\nand substitutionT5 -> T10,\nX8 -> T10,\nX9 -> [],\nT9 -> T10" }, { "from": 37, "to": 41, "label": "CASE" }, { "from": 41, "to": 46, "label": "EVAL with clause\nr(1).\nand substitutionT10 -> 1" }, { "from": 41, "to": 49, "label": "EVAL-BACKTRACK" }, { "from": 46, "to": 70, "label": "CASE" }, { "from": 70, "to": 83, "label": "PARALLEL" }, { "from": 70, "to": 84, "label": "PARALLEL" }, { "from": 83, "to": 85, "label": "ONLY EVAL with clause\nl([]).\nand substitution" }, { "from": 84, "to": 124, "label": "BACKTRACK\nfor clause: l(.(H, T)) :- ','(r(H), l(T))because of non-unification" }, { "from": 85, "to": 86, "label": "SUCCESS" } ], "type": "Graph" } } ---------------------------------------- (2) TRUE