/export/starexec/sandbox/solver/bin/starexec_run_standard /export/starexec/sandbox/benchmark/theBenchmark.pl /export/starexec/sandbox/output/output_files -------------------------------------------------------------------------------- YES proof of /export/starexec/sandbox/benchmark/theBenchmark.pl # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty Left Termination of the query pattern double(g,g) w.r.t. the given Prolog program could successfully be proven: (0) Prolog (1) PrologToIRSwTTransformerProof [SOUND, 24 ms] (2) TRUE ---------------------------------------- (0) Obligation: Clauses: double(X, Y) :- ','(=:=(X, 0), ','(!, is(Y, 0))). double(X, Y) :- ','(>(X, 0), ','(!, ','(double(-(X, 1), Z), is(Y, +(Z, 2))))). Query: double(g,g) ---------------------------------------- (1) PrologToIRSwTTransformerProof (SOUND) Transformed Prolog program to IRSwT according to method in Master Thesis of A. Weinert { "root": 2, "program": { "directives": [], "clauses": [ [ "(double X Y)", "(',' (=:= X (0)) (',' (!) (is Y (0))))" ], [ "(double X Y)", "(',' (> X (0)) (',' (!) (',' (double (- X (1)) Z) (is Y (+ Z (2))))))" ] ] }, "graph": { "nodes": { "22": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [{ "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" }] }, "ground": ["T8"], "free": [], "exprvars": ["T7"] } }, "2": { "goal": [{ "clause": -1, "scope": -1, "term": "(double T1 T2)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [ "T1", "T2" ], "free": [], "exprvars": [] } }, "24": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [ { "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" }, { "lhs": { "name": "T9", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" } ] }, "ground": [], "free": [], "exprvars": [ "T7", "T9" ] } }, "4": { "goal": [ { "clause": 0, "scope": 1, "term": "(double T1 T2)" }, { "clause": 1, "scope": 1, "term": "(double T1 T2)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [ "T1", "T2" ], "free": [], "exprvars": [] } }, "26": { "goal": [{ "clause": -1, "scope": -1, "term": "(',' (> T14 (0)) (',' (!_1) (',' (double (- T14 (1)) X14) (is T15 (+ X14 (2))))))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [ { "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "!=" }, { "lhs": { "type": "PlainIntegerConstant", "value": "0" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "!=" } ] }, "ground": [ "T14", "T15" ], "free": ["X14"], "exprvars": [ "T14", "T7" ] } }, "17": { "goal": [ { "clause": -1, "scope": -1, "term": "(',' (!_1) (is T8 (0)))" }, { "clause": 1, "scope": 1, "term": "(double T7 T8)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [{ "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" }] }, "ground": [ "T7", "T8" ], "free": [], "exprvars": ["T7"] } }, "18": { "goal": [{ "clause": 1, "scope": 1, "term": "(double T7 T8)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [{ "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "!=" }] }, "ground": [ "T7", "T8" ], "free": [], "exprvars": ["T7"] } }, "19": { "goal": [{ "clause": -1, "scope": -1, "term": "(is T8 (0))" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [{ "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" }] }, "ground": ["T8"], "free": [], "exprvars": ["T7"] } }, "9": { "goal": [ { "clause": -1, "scope": -1, "term": "(',' (=:= T7 (0)) (',' (!_1) (is T8 (0))))" }, { "clause": 1, "scope": 1, "term": "(double T7 T8)" } ], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [ "T7", "T8" ], "free": [], "exprvars": [] } }, "type": "Nodes", "10": { "goal": [], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [] }, "ground": [], "free": [], "exprvars": [] } }, "21": { "goal": [{ "clause": -1, "scope": -1, "term": "(true)" }], "kb": { "nonunifying": [], "intvars": {}, "arithmetic": { "type": "PlainIntegerRelationState", "relations": [ { "lhs": { "name": "T7", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" }, { "lhs": { "name": "T9", "type": "PlainIntegerVariable" }, "type": "PlainIntegerRelation", "rhs": { "type": "PlainIntegerConstant", "value": "0" }, "operation": "=" } ] }, "ground": [ "T8", "T9" ], "free": [], "exprvars": [ "T7", "T9" ] } } }, "edges": [ { "from": 2, "to": 4, "label": "CASE" }, { "from": 4, "to": 9, "label": "ONLY EVAL with clause\ndouble(X5, X6) :- ','(=:=(X5, 0), ','(!_1, is(X6, 0))).\nand substitutionT1 -> T7,\nX5 -> T7,\nT2 -> T8,\nX6 -> T8" }, { "from": 9, "to": 10, "label": "IS ERROR" }, { "from": 9, "to": 17, "label": "ARITHCOMP SUCCESS" }, { "from": 9, "to": 18, "label": "ARITHCOMP FAIL" }, { "from": 17, "to": 19, "label": "CUT" }, { "from": 18, "to": 26, "label": "ONLY EVAL with clause\ndouble(X12, X13) :- ','(>(X12, 0), ','(!_1, ','(double(-(X12, 1), X14), is(X13, +(X14, 2))))).\nand substitutionT7 -> T14,\nX12 -> T14,\nT8 -> T15,\nX13 -> T15" }, { "from": 19, "to": 21, "label": "\nT8 -> T9" }, { "from": 19, "to": 22, "label": "IS FAIL" }, { "from": 21, "to": 24, "label": "SUCCESS" } ], "type": "Graph" } } ---------------------------------------- (2) TRUE