YES Solver Timeout: 4 Global Timeout: 300 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.005418 Checking conditional termination of SCC {l24}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001359s 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.000898s 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.000723s 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.000564s Ranking function: i^0 - j^0 New Graphs: Proving termination of subgraph 2 Checking unfeasibility... Time used: 0.052064 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: 1.75706 Checking conditional termination of SCC {l1, l8, l16}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.006557s 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.001556s 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.000837s 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.000897s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.003503s 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.008225s Time used: 0.007984 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.006968s Time used: 0.006539 Trying to remove transition: 0, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.007060s Time used: 0.006502 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.083322s Time used: 0.082585 LOG: SAT solveNonLinear - Elapsed time: 0.083322s Cost: 0; Total time: 0.082585 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.000590s 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.000654s 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.00283 Checking conditional termination of SCC {l12}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000998s 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.000636s Ranking function: -1 + i9^0 - j10^0 New Graphs: Proving termination of subgraph 4 Checking unfeasibility... Time used: 0.003162 Checking conditional termination of SCC {l5}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000974s 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.000643s Ranking function: -j10^0 + n8^0 New Graphs: Proving termination of subgraph 5 Analyzing SCC {l7}... No cycles found. Program Terminates