NO Solver Timeout: 4 Global Timeout: 300 No parsing errors! Init Location: 0 Transitions: 0) /\ (arg2 > ~(1)), par{arg1 -> arg2, arg2 -> 20}> 0, arg2 -> 0}> 0) /\ (arg2 > arg1), par{arg1 -> (arg1 + 1)}> 0) /\ (arg1 = arg2), par{arg1 -> 0, arg2 -> (arg1 - 1)}> 0) /\ (0 = arg1), par{arg1 -> 1}> undef11, arg2 -> undef12}> Fresh variables: undef11, undef12, Undef variables: undef11, undef12, Abstraction variables: Exit nodes: Accepting locations: Asserts: Preprocessed LLVMGraph Init Location: 0 Transitions: 0) /\ (undef12 > ~(1))> 0, arg2 -> 0}> 0) /\ (arg2 > arg1), par{arg1 -> (arg1 + 1)}> 0) /\ (arg1 = arg2), par{arg1 -> 0, arg2 -> (arg1 - 1)}> 0) /\ (0 = arg1), par{arg1 -> 1}> Fresh variables: undef11, undef12, Undef variables: undef11, undef12, Abstraction variables: Exit nodes: Accepting locations: Asserts: ************************************************************* ******************************************************************************************* *********************** WORKING TRANSITION SYSTEM (DAG) *********************** ******************************************************************************************* Init Location: 0 Graph 0: Transitions: Variables: Graph 1: Transitions: 0, arg2 -> 0, rest remain the same}> 1 + arg1, rest remain the same}> 0, arg2 -> -1 + arg1, rest remain the same}> 1, rest remain the same}> Variables: arg1, arg2 Precedence: Graph 0 Graph 1 Map Locations to Subgraph: ( 0 , 0 ) ( 2 , 1 ) ******************************************************************************************* ******************************** CHECKING ASSERTIONS ******************************** ******************************************************************************************* Proving termination of subgraph 0 Proving termination of subgraph 1 Checking unfeasibility... Time used: 0.16924 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001440s Ranking function: -1 + arg2 New Graphs: Transitions: 0, arg2 -> 0, rest remain the same}> 1 + arg1, rest remain the same}> 1, rest remain the same}> Variables: arg1, arg2 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000577s Ranking function: -5 - arg1 + 3*arg2 New Graphs: Transitions: 0, arg2 -> 0, rest remain the same}> 1, rest remain the same}> Variables: arg1, arg2 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000431s Ranking function: -1 - arg1 + arg2 New Graphs: Transitions: 0, arg2 -> 0, rest remain the same}> Variables: arg1, arg2 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000205s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000591s Trying to remove transition: 0, arg2 -> 0, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.001604s Time used: 0.001535 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.005966s Time used: 0.005765 Improving Solution with cost 1 ... LOG: CALL solveNonLinearGetNextSolution LOG: RETURN solveNonLinearGetNextSolution - Elapsed time: 0.195917s Time used: 0.195915 LOG: SAT solveNonLinear - Elapsed time: 0.201883s Cost: 1; Total time: 0.20168 Failed at location 2: 1 + arg2 <= arg1 Before Improving: Quasi-invariant at l2: 1 + arg2 <= arg1 Optimizing invariants... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.003060s Remaining time after improvement: 0.999114 Termination implied by a set of quasi-invariant(s): Quasi-invariant at l2: 1 + arg2 <= arg1 [ Invariant Graph ] Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: 0, arg2 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: 1 + arg1, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: 0, arg2 -> -1 + arg1, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: 1, rest remain the same}> [ Termination Graph ] Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: 0, arg2 -> 0, rest remain the same}> New Graphs: Calling Safety with literal 1 + arg2 <= arg1 and entry LOG: CALL check - Post:1 + arg2 <= arg1 - Process 1 * Exit transition: * Postcondition : 1 + arg2 <= arg1 LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000325s > Postcondition is not implied! LOG: RETURN check - Elapsed time: 0.000372s INVARIANTS: 2: Quasi-INVARIANTS to narrow Graph: 2: 1 + arg2 <= arg1 , Narrowing transition: 0, arg2 -> 0, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: 1 + arg1, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: 0, arg2 -> -1 + arg1, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: 1, rest remain the same}> LOG: Narrow transition size 1 invGraph after Narrowing: Transitions: 0, arg2 -> 0, rest remain the same}> 1 + arg1, rest remain the same}> 0, arg2 -> -1 + arg1, rest remain the same}> 1, rest remain the same}> Variables: arg1, arg2 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000887s Ranking function: -1 + arg2 New Graphs: Transitions: 0, arg2 -> 0, rest remain the same}> 1 + arg1, rest remain the same}> 1, rest remain the same}> Variables: arg1, arg2 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000698s Ranking function: -1 - arg1 + arg2 New Graphs: Transitions: 0, arg2 -> 0, rest remain the same}> Variables: arg1, arg2 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000243s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000716s Trying to remove transition: 0, arg2 -> 0, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.001757s Time used: 0.001687 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.617432s Time used: 0.617306 Solving with 2 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 4.005467s Time used: 4.00041 Solving with 3 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 1.007656s Time used: 1.00052 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.218753s Time used: 0.211988 Proving non-termination of subgraph 1 Transitions: 0, arg2 -> 0, rest remain the same}> 1 + arg1, rest remain the same}> 0, arg2 -> -1 + arg1, rest remain the same}> 1, rest remain the same}> Variables: arg1, arg2 Checking conditional non-termination of SCC {l2}... EXIT TRANSITIONS: Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.008961s Time used: 0.008803 Improving Solution with cost 3 ... LOG: CALL solveNonLinearGetNextSolution LOG: RETURN solveNonLinearGetNextSolution - Elapsed time: 0.280310s Time used: 0.280298 LOG: SAT solveNonLinear - Elapsed time: 0.289270s Cost: 3; Total time: 0.289101 Non-termination implied by a set of quasi-invariant(s): Quasi-invariant at l2: 0 <= arg1 Strengthening and disabling EXIT transitions... Closed exits from l2: 3 Strengthening exit transition (result): Strengthening exit transition (result): Strengthening exit transition (result): Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, arg2 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + arg1, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, arg2 -> -1 + arg1, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1, rest remain the same}> Checking conditional non-termination of SCC {l2}... EXIT TRANSITIONS: Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.005914s Time used: 0.005776 Improving Solution with cost 1 ... LOG: CALL solveNonLinearGetNextSolution LOG: RETURN solveNonLinearGetNextSolution - Elapsed time: 0.009286s Time used: 0.009284 LOG: SAT solveNonLinear - Elapsed time: 0.015201s Cost: 1; Total time: 0.01506 Failed at location 2: arg1 <= arg2 Before Improving: Quasi-invariant at l2: arg1 <= arg2 Optimizing invariants... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002717s Remaining time after improvement: 0.99881 Non-termination implied by a set of quasi-invariant(s): Quasi-invariant at l2: arg1 <= arg2 Strengthening and disabling EXIT transitions... Closed exits from l2: 3 Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, arg2 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + arg1, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, arg2 -> -1 + arg1, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1, rest remain the same}> Calling reachability with... Transition: Conditions: 0 <= arg1, arg1 <= arg2, OPEN EXITS: --- Reachability graph --- > Graph without transitions. Calling reachability with... Transition: Conditions: arg1 <= arg2, 0 <= arg1, OPEN EXITS: > Conditions are reachable! Program does NOT terminate