NO Solver Timeout: 4 Global Timeout: 60 No parsing errors! Init Location: 0 Transitions: ~(1)) /\ (undef1 > ~(1)), par{arg1 -> undef1, arg2 -> undef2, arg3 -> undef3, arg4 -> undef4}> 0) /\ (undef5 > ~(1)), par{arg1 -> undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8}> 2) /\ (undef9 > ~(1)), par{arg1 -> undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12}> 1) /\ (undef13 > ~(1)), par{arg1 -> undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16}> = undef17) /\ (arg1 > 2) /\ (undef17 > 0), par{arg1 -> undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20}> ~(1)) /\ (undef22 > ~(1)) /\ (arg1 > 0), par{arg1 -> 0, arg2 -> undef22, arg3 -> 1, arg4 -> undef24}> ~(1)) /\ (arg2 > arg1) /\ (arg3 > 0), par{arg1 -> arg2, arg2 -> arg1, arg3 -> undef27, arg4 -> (arg3 + 1)}> (arg2 + 1), arg2 -> arg1, arg3 -> arg4, arg4 -> undef32}> 0), par{arg3 -> (arg3 - 1)}> undef37, arg2 -> undef38, arg3 -> undef39, arg4 -> undef40}> Fresh variables: undef1, undef2, undef3, undef4, undef5, undef6, undef7, undef8, undef9, undef10, undef11, undef12, undef13, undef14, undef15, undef16, undef17, undef18, undef19, undef20, undef22, undef24, undef27, undef32, undef37, undef38, undef39, undef40, Undef variables: undef1, undef2, undef3, undef4, undef5, undef6, undef7, undef8, undef9, undef10, undef11, undef12, undef13, undef14, undef15, undef16, undef17, undef18, undef19, undef20, undef22, undef24, undef27, undef32, undef37, undef38, undef39, undef40, Abstraction variables: Exit nodes: Accepting locations: Asserts: Preprocessed LLVMGraph Init Location: 0 Transitions: 0) /\ (undef5 > ~(1)), par{arg1 -> undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8}> ~(1)) /\ (undef22 > ~(1)) /\ (undef37 > 0) /\ (undef27 > ~(1)) /\ (undef22 > 0) /\ (1 > 0), par{arg1 -> undef22, arg2 -> 0, arg3 -> undef27, arg4 -> (1 + 1)}> 2) /\ (undef9 > ~(1)), par{arg1 -> undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12}> 1) /\ (undef13 > ~(1)), par{arg1 -> undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16}> = undef17) /\ (arg1 > 2) /\ (undef17 > 0), par{arg1 -> undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20}> ~(1)) /\ (arg1 > (arg2 + 1)) /\ (arg4 > 0), par{arg1 -> arg1, arg2 -> (arg2 + 1), arg3 -> undef27, arg4 -> (arg4 + 1)}> 0), par{arg3 -> (arg3 - 1)}> Fresh variables: undef1, undef2, undef3, undef4, undef5, undef6, undef7, undef8, undef9, undef10, undef11, undef12, undef13, undef14, undef15, undef16, undef17, undef18, undef19, undef20, undef22, undef24, undef27, undef32, undef37, undef38, undef39, undef40, Undef variables: undef1, undef2, undef3, undef4, undef5, undef6, undef7, undef8, undef9, undef10, undef11, undef12, undef13, undef14, undef15, undef16, undef17, undef18, undef19, undef20, undef22, undef24, undef27, undef32, undef37, undef38, undef39, undef40, Abstraction variables: Exit nodes: Accepting locations: Asserts: ************************************************************* ******************************************************************************************* *********************** WORKING TRANSITION SYSTEM (DAG) *********************** ******************************************************************************************* Init Location: 0 Graph 0: Transitions: Variables: Graph 1: Transitions: 1 + arg2, arg3 -> undef27, arg4 -> 1 + arg4, rest remain the same}> -1 + arg3, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Graph 2: Transitions: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Precedence: Graph 0 Graph 1 undef22, arg2 -> 0, arg3 -> undef27, arg4 -> 2, rest remain the same}> Graph 2 undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> Map Locations to Subgraph: ( 0 , 0 ) ( 2 , 2 ) ( 5 , 1 ) ******************************************************************************************* ******************************** CHECKING ASSERTIONS ******************************** ******************************************************************************************* Proving termination of subgraph 0 Proving termination of subgraph 1 Checking unfeasibility... Time used: 0.008069 Checking conditional termination of SCC {l5}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.001514s Ranking function: -2 + 2*arg1 - 2*arg2 + arg4 New Graphs: Transitions: -1 + arg3, rest remain the same}> Variables: arg3 Checking conditional termination of SCC {l5}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000501s Ranking function: -1 + arg3 New Graphs: Proving termination of subgraph 2 Checking unfeasibility... Time used: 0.00769 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002306s Ranking function: -1 + (1 / 2)*arg1 New Graphs: Transitions: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000719s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002547s Trying to remove transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.007649s Time used: 0.007445 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.019124s Time used: 0.018498 Improving Solution with cost 1 ... LOG: CALL solveNonLinearGetNextSolution LOG: RETURN solveNonLinearGetNextSolution - Elapsed time: 0.029438s Time used: 0.02943 LOG: SAT solveNonLinear - Elapsed time: 0.048562s Cost: 1; Total time: 0.047928 Failed at location 2: arg1 <= 1 Before Improving: Quasi-invariant at l2: arg1 <= 1 Optimizing invariants... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.005424s Remaining time after improvement: 0.998136 Termination implied by a set of quasi-invariant(s): Quasi-invariant at l2: arg1 <= 1 [ 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: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> [ Termination Graph ] Strengthening and disabling transitions... > It's unfeasible. Removing transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> New Graphs: Calling Safety with literal arg1 <= 1 and entry undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> LOG: CALL check - Post:arg1 <= 1 - Process 1 * Exit transition: undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> * Postcondition : arg1 <= 1 LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000595s > Postcondition is not implied! LOG: RETURN check - Elapsed time: 0.000692s INVARIANTS: 2: Quasi-INVARIANTS to narrow Graph: 2: arg1 <= 1 , Narrowing transition: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> LOG: Narrow transition size 1 invGraph after Narrowing: Transitions: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002060s Ranking function: -1 + (1 / 2)*arg1 New Graphs: Transitions: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000720s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002616s Trying to remove transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.007665s Time used: 0.007501 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.037434s Time used: 0.036707 Improving Solution with cost 1 ... LOG: CALL solveNonLinearGetNextSolution LOG: RETURN solveNonLinearGetNextSolution - Elapsed time: 0.026447s Time used: 0.02644 LOG: SAT solveNonLinear - Elapsed time: 0.063881s Cost: 1; Total time: 0.063147 Failed at location 2: arg1 <= 2 Before Improving: Quasi-invariant at l2: arg1 <= 2 Optimizing invariants... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.005736s Remaining time after improvement: 0.998002 Termination implied by a set of quasi-invariant(s): Quasi-invariant at l2: arg1 <= 2 [ 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: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility It's unfeasible. Removing transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> [ Termination Graph ] Strengthening and disabling transitions... > It's unfeasible. Removing transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> New Graphs: Calling Safety with literal arg1 <= 2 and entry undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> LOG: CALL check - Post:arg1 <= 2 - Process 2 * Exit transition: undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> * Postcondition : arg1 <= 2 LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000473s > Postcondition is not implied! LOG: RETURN check - Elapsed time: 0.000564s INVARIANTS: 2: Quasi-INVARIANTS to narrow Graph: 2: arg1 <= 2 , Narrowing transition: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> LOG: Narrow transition size 1 Narrowing transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> LOG: Narrow transition size 1 invGraph after Narrowing: Transitions: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002146s Ranking function: (~(3) / 2) + (1 / 2)*arg1 New Graphs: Transitions: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking conditional termination of SCC {l2}... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.000739s LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002587s Trying to remove transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.007767s Time used: 0.007609 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.037673s Time used: 0.037094 Solving with 2 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 4.002394s Time used: 4.00082 Solving with 3 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 1.008314s Time used: 1.00036 Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.045874s Time used: 0.013868 Proving non-termination of subgraph 2 Transitions: undef9, arg2 -> undef10, arg3 -> undef11, arg4 -> undef12, rest remain the same}> undef13, arg2 -> undef14, arg3 -> undef15, arg4 -> undef16, rest remain the same}> undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking that every undef value has an assignment... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002088s Checking conditional non-termination of SCC {l2}... EXIT TRANSITIONS: Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 5.001763s Time used: 5.00101 Solving with 2 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 5.019630s Time used: 5.00143 Solving with 3 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 5.035445s Time used: 5.00565 > Checking if the negation of the conditions of every pending exit is quasi-invariant... NO Proving non-termination of subgraph 2 Transitions: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Variables: arg1, arg2, arg3, arg4 Checking that every undef value has an assignment... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.002459s Checking conditional non-termination of SCC {l2}... EXIT TRANSITIONS: Solving with 1 template(s). LOG: CALL solveNonLinearGetFirstSolution LOG: RETURN solveNonLinearGetFirstSolution - Elapsed time: 0.098459s Time used: 0.098096 Improving Solution with cost 1 ... LOG: CALL solveNonLinearGetNextSolution LOG: RETURN solveNonLinearGetNextSolution - Elapsed time: 0.057319s Time used: 0.057309 LOG: SAT solveNonLinear - Elapsed time: 0.155778s Cost: 1; Total time: 0.155405 Failed at location 2: 3 <= arg1 Before Improving: Quasi-invariant at l2: 3 <= arg1 Optimizing invariants... LOG: CALL solveLinear LOG: RETURN solveLinear - Elapsed time: 0.014407s Remaining time after improvement: 0.997966 Minimizing number of undef constraints... LOG: CALL solveNonLinear LOG: RETURN solveNonLinear - Elapsed time: 0.004391s Non-termination implied by a set of quasi-invariant(s): Quasi-invariant at l2: 3 <= arg1 Constraint over undef 'arg1 <= undef17' in transition: undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Strengthening and disabling EXIT transitions... Closed exits from l2: 1 Strengthening and disabling transitions... LOG: CALL solverLinear in Graph for feasibility LOG: RETURN solveLinear in Graph for feasibility Strengthening transition (result): undef17, arg2 -> undef18, arg3 -> undef19, arg4 -> undef20, rest remain the same}> Calling reachability with... Transition: Conditions: 3 <= arg1, OPEN EXITS: --- Reachability graph --- > Graph without transitions. Calling reachability with... Transition: undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> Conditions: 3 <= arg1, OPEN EXITS: undef5, arg2 -> undef6, arg3 -> undef7, arg4 -> undef8, rest remain the same}> > Conditions are reachable! Program does NOT terminate