YES Solver Timeout: 4 Global Timeout: 60 No parsing errors! Init Location: 0 Transitions: (~(1) + i9^0)}> (1 + j10^0), w12^0 -> undef44}> (0 + undef58), ret_ludcmp14^0 -> undef58}> (1 + i9^0), w12^0 -> undef74}> (1 + i9^0)}> (1 + j10^0), w12^0 -> undef119}> (~(1) + n8^0)}> 0, w12^0 -> undef164}> (1 + j10^0)}> (1 + k11^0), w12^0 -> undef209}> (1 + i9^0)}> 0, w12^0 -> undef239}> (1 + j10^0)}> (1 + k11^0), w12^0 -> undef299}> 0}> (1 + i9^0)}> undef404}> 1}> (1 + i9^0)}> (1 + j^0), w^0 -> undef465}> (1 + i^0)}> 0, n8^0 -> (0 + n^0), nmax7^0 -> (0 + nmax^0)}> 0, w^0 -> 0}> 0, n^0 -> (0 + __const_5^0), nmax^0 -> (0 + __const_50^0)}> Fresh variables: undef44, undef58, undef74, undef119, undef164, undef209, undef239, undef299, undef404, undef465, Undef variables: undef44, undef58, undef74, undef119, undef164, undef209, undef239, undef299, undef404, undef465, Abstraction variables: Exit nodes: Accepting locations: Asserts: Preprocessed LLVMGraph Init Location: 0 Transitions: (~(1) + (0 + (0 + n^0))), n8^0 -> (0 + (0 + n^0))}> 0}> (~(1) + n8^0), j10^0 -> (1 + i9^0)}> 1, j10^0 -> 0}> (1 + i9^0), k11^0 -> 0}> (1 + j10^0)}> 0}> 0}> (~(1) + i9^0)}> (~(1) + i9^0), j10^0 -> (1 + (~(1) + i9^0))}> (1 + j10^0)}> (1 + j10^0)}> (1 + k11^0)}> (~(1) + n8^0)}> (~(1) + n8^0), j10^0 -> (1 + (~(1) + n8^0))}> (1 + i9^0), j10^0 -> 0}> (1 + j10^0)}> (~(1) + n8^0), j10^0 -> (1 + j10^0)}> 1, j10^0 -> 0}> (1 + i9^0), j10^0 -> (1 + (1 + i9^0))}> (1 + j10^0), k11^0 -> 0}> (1 + k11^0)}> (~(1) + (0 + n^0)), i^0 -> (1 + i^0), n8^0 -> (0 + n^0)}> 0, i^0 -> (1 + i^0), j10^0 -> (1 + 0), n8^0 -> (0 + n^0)}> (1 + i^0), j^0 -> 0}> (1 + j^0)}> (1 + j^0)}> (1 + j^0)}> Fresh variables: undef44, undef58, undef74, undef119, undef164, undef209, undef239, undef299, undef404, undef465, Undef variables: undef44, undef58, undef74, undef119, undef164, undef209, undef239, undef299, undef404, undef465, Abstraction variables: Exit nodes: Accepting locations: Asserts: ************************************************************* ******************************************************************************************* *********************** WORKING TRANSITION SYSTEM (DAG) *********************** ******************************************************************************************* Init Location: 0 Graph 0: Transitions: Variables: Graph 1: Transitions: 1 + i^0, j^0 -> 0, rest remain the same}> 1 + j^0, rest remain the same}> 1 + j^0, rest remain the same}> 1 + j^0, rest remain the same}> Variables: i^0, j^0, n^0 Graph 2: Transitions: 1 + i9^0, k11^0 -> 0, rest remain the same}> 1 + j10^0, rest remain the same}> 0, rest remain the same}> 0, rest remain the same}> 1 + j10^0, rest remain the same}> 1 + k11^0, rest remain the same}> 1 + i9^0, j10^0 -> 2 + i9^0, rest remain the same}> 1 + j10^0, k11^0 -> 0, rest remain the same}> 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, n8^0, k11^0 Graph 3: Transitions: 1 + i9^0, j10^0 -> 0, rest remain the same}> 1 + j10^0, rest remain the same}> Variables: i9^0, j10^0, n8^0 Graph 4: Transitions: -1 + i9^0, j10^0 -> i9^0, rest remain the same}> 1 + j10^0, rest remain the same}> Variables: i9^0, j10^0, n8^0 Graph 5: Transitions: Variables: Precedence: Graph 0 Graph 1 0, rest remain the same}> Graph 2 0, i^0 -> 1 + i^0, j10^0 -> 1, n8^0 -> n^0, rest remain the same}> Graph 3 1, j10^0 -> 0, rest remain the same}> 1, j10^0 -> 0, rest remain the same}> Graph 4 -1 + n8^0, j10^0 -> n8^0, rest remain the same}> Graph 5 -1 + n^0, n8^0 -> n^0, rest remain the same}> -1 + n8^0, j10^0 -> 1 + i9^0, rest remain the same}> -1 + i9^0, rest remain the same}> -1 + n8^0, rest remain the same}> -1 + n8^0, j10^0 -> 1 + j10^0, rest remain the same}> -1 + n^0, i^0 -> 1 + i^0, n8^0 -> n^0, rest remain the same}> Map Locations to Subgraph: ( 0 , 0 ) ( 1 , 2 ) ( 5 , 4 ) ( 7 , 5 ) ( 8 , 2 ) ( 12 , 3 ) ( 16 , 2 ) ( 24 , 1 ) ******************************************************************************************* ******************************** CHECKING ASSERTIONS ******************************** ******************************************************************************************* Proving termination of subgraph 0 Proving termination of subgraph 1 Checking unfeasibility... Time used: 0.01187 Checking conditional termination of SCC {l24}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002728s Ranking function: -1 - 2*i^0 + 2*n^0 New Graphs: Transitions: 1 + j^0, rest remain the same}> 1 + j^0, rest remain the same}> 1 + j^0, rest remain the same}> Variables: i^0, j^0, n^0 Checking conditional termination of SCC {l24}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001924s Ranking function: -1 - i^0 - j^0 + 2*n^0 New Graphs: Transitions: 1 + j^0, rest remain the same}> 1 + j^0, rest remain the same}> Variables: i^0, j^0, n^0 Checking conditional termination of SCC {l24}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001529s Ranking function: -1 + i^0 - j^0 New Graphs: Transitions: 1 + j^0, rest remain the same}> Variables: i^0, j^0, n^0 Checking conditional termination of SCC {l24}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001207s Ranking function: i^0 - j^0 New Graphs: Proving termination of subgraph 2 Checking unfeasibility... Time used: 0.119172 Some transition disabled by a set of invariant(s): Invariant at l1: 0 <= i9^0 Invariant at l8: 1 <= i9^0 Invariant at l16: 0 <= i9^0 Strengthening and disabling transitions... > It's unfeasible. Removing transition: 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + i9^0, k11^0 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + k11^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + i9^0, j10^0 -> 2 + i9^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, k11^0 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + k11^0, rest remain the same}> Checking unfeasibility... Time used: 3.91669 Checking conditional termination of SCC {l1, l8, l16}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.013025s Ranking function: -6 - 3*i9^0 + 3*n8^0 New Graphs: Transitions: 1 + j10^0, rest remain the same}> 0, rest remain the same}> 1 + j10^0, rest remain the same}> 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Transitions: 1 + j10^0, k11^0 -> 0, rest remain the same}> 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Checking conditional termination of SCC {l1, l8}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.003348s Ranking function: -3*i9^0 - j10^0 + n8^0 New Graphs: Transitions: 1 + j10^0, k11^0 -> 0, rest remain the same}> 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Transitions: 0, rest remain the same}> 1 + j10^0, rest remain the same}> 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Checking conditional termination of SCC {l16}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001783s Ranking function: -j10^0 + n8^0 New Graphs: Transitions: 0, rest remain the same}> 1 + j10^0, rest remain the same}> 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Transitions: 1 + k11^0, rest remain the same}> Variables: i9^0, k11^0 Checking conditional termination of SCC {l1, l8}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001931s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.007624s Trying to remove transition: 1 + k11^0, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.017557s Time used: 0.017131 Trying to remove transition: 1 + j10^0, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.014966s Time used: 0.014211 Trying to remove transition: 0, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.015104s Time used: 0.01411 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.189116s Time used: 0.18773 LOG: SAT solveNonLinear - Elapsed time: 0.189116s Cost: 0; Total time: 0.18773 Termination implied by a set of invariant(s): Invariant at l1: j10^0 <= 1 + n8^0 Invariant at l8: j10^0 <= n8^0 Invariant at l16: 0 <= 1 + j10^0 [ Invariant Graph ] Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + i9^0, k11^0 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + k11^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + i9^0, j10^0 -> 2 + i9^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, k11^0 -> 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + k11^0, rest remain the same}> [ Termination Graph ] Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + j10^0, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): 1 + k11^0, rest remain the same}> Ranking function: -j10^0 + n8^0 New Graphs: Transitions: 1 + k11^0, rest remain the same}> Variables: i9^0, k11^0 Transitions: 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Checking conditional termination of SCC {l16}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001247s Ranking function: i9^0 - k11^0 New Graphs: Transitions: 1 + k11^0, rest remain the same}> Variables: i9^0, j10^0, k11^0, n8^0 Checking conditional termination of SCC {l8}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001417s Ranking function: -1 + i9^0 - k11^0 New Graphs: INVARIANTS: 1: j10^0 <= 1 + n8^0 , 8: j10^0 <= n8^0 , 16: 0 <= 1 + j10^0 , Quasi-INVARIANTS to narrow Graph: 1: 8: 16: Proving termination of subgraph 3 Checking unfeasibility... Time used: 0.005927 Checking conditional termination of SCC {l12}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002049s Ranking function: -2*i9^0 + 2*n8^0 New Graphs: Transitions: 1 + j10^0, rest remain the same}> Variables: i9^0, j10^0 Checking conditional termination of SCC {l12}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001380s Ranking function: -1 + i9^0 - j10^0 New Graphs: Proving termination of subgraph 4 Checking unfeasibility... Time used: 0.006664 Checking conditional termination of SCC {l5}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002051s Ranking function: -1 + i9^0 New Graphs: Transitions: 1 + j10^0, rest remain the same}> Variables: j10^0, n8^0 Checking conditional termination of SCC {l5}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001411s Ranking function: -j10^0 + n8^0 New Graphs: Proving termination of subgraph 5 Analyzing SCC {l7}... No cycles found. Program Terminates