./Ultimate.py --spec ../sv-benchmarks/c/properties/termination.prp --file ../sv-benchmarks/c/termination-crafted/Binary_Search-2.c --full-output --architecture 64bit -------------------------------------------------------------------------------- Checking for termination Using default analysis Version 8fc3dc66 Calling Ultimate with: /root/.sdkman/candidates/java/21.0.5-tem/bin/java -Dosgi.configuration.area=/storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/data/config -Xmx15G -Xms4m -jar /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar -data @noDefault -ultimatedata /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/data -tc /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/config/AutomizerTermination.xml -i ../sv-benchmarks/c/termination-crafted/Binary_Search-2.c -s /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/config/svcomp-Termination-64bit-Automizer_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux --witnessprinter.witness.filename witness --witnessprinter.write.witness.besides.input.file false --witnessprinter.graph.data.specification CHECK( init(main()), LTL(F end) ) --witnessprinter.graph.data.producer Automizer --witnessprinter.graph.data.architecture 64bit --witnessprinter.graph.data.programhash 46affb860f1d0d7b6656a3074088d89f6e139022ec85b08907ba16419f351bb9 --- Real Ultimate output --- This is Ultimate 0.3.0-?-8fc3dc6-m [2025-03-17 19:50:04,798 INFO L188 SettingsManager]: Resetting all preferences to default values... [2025-03-17 19:50:04,854 INFO L114 SettingsManager]: Loading settings from /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/config/svcomp-Termination-64bit-Automizer_Default.epf [2025-03-17 19:50:04,857 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2025-03-17 19:50:04,857 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.core.Log level for class [2025-03-17 19:50:04,857 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.icfgbuilder.Remove goto edges from RCFG [2025-03-17 19:50:04,879 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2025-03-17 19:50:04,880 INFO L151 SettingsManager]: Preferences of UltimateCore differ from their defaults: [2025-03-17 19:50:04,880 INFO L153 SettingsManager]: * Log level for class=de.uni_freiburg.informatik.ultimate.lib.smtlibutils.quantifier.QuantifierPusher=ERROR; [2025-03-17 19:50:04,880 INFO L151 SettingsManager]: Preferences of Boogie Preprocessor differ from their defaults: [2025-03-17 19:50:04,881 INFO L153 SettingsManager]: * Use memory slicer=true [2025-03-17 19:50:04,881 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Use SBE=true [2025-03-17 19:50:04,882 INFO L151 SettingsManager]: Preferences of BuchiAutomizer differ from their defaults: [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * NCSB implementation=INTSET_LAZY3 [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Use old map elimination=false [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Use external solver (rank synthesis)=false [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Use only trivial implications for array writes=true [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Rank analysis=LINEAR_WITH_GUESSES [2025-03-17 19:50:04,882 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2025-03-17 19:50:04,882 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=ASSUME [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=ASSUME [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=ASSUME [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=ASSUME [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Assume nondeterminstic values are in range=false [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Behaviour of calls to undefined functions=OVERAPPROXIMATE_BEHAVIOUR [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Use constant arrays=true [2025-03-17 19:50:04,883 INFO L151 SettingsManager]: Preferences of IcfgBuilder differ from their defaults: [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Size of a code block=SequenceOfStatements [2025-03-17 19:50:04,883 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * Trace refinement strategy=CAMEL [2025-03-17 19:50:04,883 INFO L151 SettingsManager]: Preferences of IcfgTransformer differ from their defaults: [2025-03-17 19:50:04,883 INFO L153 SettingsManager]: * TransformationType=MODULO_NEIGHBOR Applying setting for plugin de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator: Entry function -> main Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Witness directory -> /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Witness filename -> witness Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Write witness besides input file -> false Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data specification -> CHECK( init(main()), LTL(F end) ) Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data producer -> Automizer Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data architecture -> 64bit Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data programhash -> 46affb860f1d0d7b6656a3074088d89f6e139022ec85b08907ba16419f351bb9 [2025-03-17 19:50:05,086 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2025-03-17 19:50:05,092 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2025-03-17 19:50:05,094 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2025-03-17 19:50:05,095 INFO L270 PluginConnector]: Initializing CDTParser... [2025-03-17 19:50:05,095 INFO L274 PluginConnector]: CDTParser initialized [2025-03-17 19:50:05,097 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/../sv-benchmarks/c/termination-crafted/Binary_Search-2.c [2025-03-17 19:50:06,191 INFO L533 CDTParser]: Created temporary CDT project at /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/data/f0df0aaea/968cbf300eca4dafa4b33c8ab1673bb1/FLAG88a8da6a9 [2025-03-17 19:50:06,402 INFO L384 CDTParser]: Found 1 translation units. [2025-03-17 19:50:06,402 INFO L180 CDTParser]: Scanning /storage/repos/ultimate/releaseScripts/default/sv-benchmarks/c/termination-crafted/Binary_Search-2.c [2025-03-17 19:50:06,416 INFO L427 CDTParser]: About to delete temporary CDT project at /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/data/f0df0aaea/968cbf300eca4dafa4b33c8ab1673bb1/FLAG88a8da6a9 [2025-03-17 19:50:06,784 INFO L435 CDTParser]: Successfully deleted /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/data/f0df0aaea/968cbf300eca4dafa4b33c8ab1673bb1 [2025-03-17 19:50:06,786 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2025-03-17 19:50:06,788 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2025-03-17 19:50:06,789 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2025-03-17 19:50:06,789 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2025-03-17 19:50:06,795 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2025-03-17 19:50:06,796 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,796 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@27a47722 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06, skipping insertion in model container [2025-03-17 19:50:06,796 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,805 INFO L175 MainTranslator]: Built tables and reachable declarations [2025-03-17 19:50:06,897 INFO L210 PostProcessor]: Analyzing one entry point: main [2025-03-17 19:50:06,902 INFO L200 MainTranslator]: Completed pre-run [2025-03-17 19:50:06,910 INFO L210 PostProcessor]: Analyzing one entry point: main [2025-03-17 19:50:06,919 INFO L204 MainTranslator]: Completed translation [2025-03-17 19:50:06,919 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06 WrapperNode [2025-03-17 19:50:06,919 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2025-03-17 19:50:06,920 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2025-03-17 19:50:06,920 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2025-03-17 19:50:06,920 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2025-03-17 19:50:06,925 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,927 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,936 INFO L138 Inliner]: procedures = 5, calls = 5, calls flagged for inlining = 2, calls inlined = 2, statements flattened = 16 [2025-03-17 19:50:06,936 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2025-03-17 19:50:06,936 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2025-03-17 19:50:06,936 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2025-03-17 19:50:06,937 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2025-03-17 19:50:06,942 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,942 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,943 INFO L184 PluginConnector]: Executing the observer MemorySlicer from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,947 INFO L175 MemorySlicer]: No memory access in input program. [2025-03-17 19:50:06,948 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,948 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,952 INFO L184 PluginConnector]: Executing the observer ReplaceArrayAssignments from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,952 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,953 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,953 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,954 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2025-03-17 19:50:06,954 INFO L112 PluginConnector]: ------------------------IcfgBuilder---------------------------- [2025-03-17 19:50:06,955 INFO L270 PluginConnector]: Initializing IcfgBuilder... [2025-03-17 19:50:06,956 INFO L274 PluginConnector]: IcfgBuilder initialized [2025-03-17 19:50:06,956 INFO L184 PluginConnector]: Executing the observer IcfgBuilderObserver from plugin IcfgBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (1/1) ... [2025-03-17 19:50:06,960 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:1024 -smt2 -in -t:12000 [2025-03-17 19:50:06,969 INFO L189 MonitoredProcess]: No working directory specified, using /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/z3 [2025-03-17 19:50:06,985 INFO L229 MonitoredProcess]: Starting monitored process 1 with /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/z3 SMTLIB2_COMPLIANT=true -memory:1024 -smt2 -in -t:12000 (exit command is (exit), workingDir is null) [2025-03-17 19:50:06,990 INFO L327 MonitoredProcess]: [MP /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/z3 SMTLIB2_COMPLIANT=true -memory:1024 -smt2 -in -t:12000 (1)] Waiting until timeout for monitored process [2025-03-17 19:50:07,006 INFO L130 BoogieDeclarations]: Found specification of procedure binary_search [2025-03-17 19:50:07,006 INFO L138 BoogieDeclarations]: Found implementation of procedure binary_search [2025-03-17 19:50:07,007 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2025-03-17 19:50:07,007 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2025-03-17 19:50:07,038 INFO L256 CfgBuilder]: Building ICFG [2025-03-17 19:50:07,039 INFO L286 CfgBuilder]: Building CFG for each procedure with an implementation [2025-03-17 19:50:07,097 INFO L1322 $ProcedureCfgBuilder]: dead code at ProgramPoint L14: havoc #t~ret2; [2025-03-17 19:50:07,124 INFO L? ?]: Removed 7 outVars from TransFormulas that were not future-live. [2025-03-17 19:50:07,124 INFO L307 CfgBuilder]: Performing block encoding [2025-03-17 19:50:07,129 INFO L331 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2025-03-17 19:50:07,129 INFO L336 CfgBuilder]: Removed 0 assume(true) statements. [2025-03-17 19:50:07,130 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.icfgbuilder CFG 17.03 07:50:07 BoogieIcfgContainer [2025-03-17 19:50:07,130 INFO L131 PluginConnector]: ------------------------ END IcfgBuilder---------------------------- [2025-03-17 19:50:07,130 INFO L112 PluginConnector]: ------------------------BuchiAutomizer---------------------------- [2025-03-17 19:50:07,130 INFO L270 PluginConnector]: Initializing BuchiAutomizer... [2025-03-17 19:50:07,134 INFO L274 PluginConnector]: BuchiAutomizer initialized [2025-03-17 19:50:07,134 INFO L99 BuchiAutomizer]: Safety of program was proven or not checked, starting termination analysis [2025-03-17 19:50:07,134 INFO L184 PluginConnector]: Executing the observer BuchiAutomizerObserver from plugin BuchiAutomizer for "CDTParser AST 17.03 07:50:06" (1/3) ... [2025-03-17 19:50:07,135 INFO L204 PluginConnector]: Invalid model from BuchiAutomizer for observer de.uni_freiburg.informatik.ultimate.plugins.generator.buchiautomizer.BuchiAutomizerObserver@2e71db96 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.buchiautomizer AST 17.03 07:50:07, skipping insertion in model container [2025-03-17 19:50:07,135 INFO L99 BuchiAutomizer]: Safety of program was proven or not checked, starting termination analysis [2025-03-17 19:50:07,135 INFO L184 PluginConnector]: Executing the observer BuchiAutomizerObserver from plugin BuchiAutomizer for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 17.03 07:50:06" (2/3) ... [2025-03-17 19:50:07,135 INFO L204 PluginConnector]: Invalid model from BuchiAutomizer for observer de.uni_freiburg.informatik.ultimate.plugins.generator.buchiautomizer.BuchiAutomizerObserver@2e71db96 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.buchiautomizer AST 17.03 07:50:07, skipping insertion in model container [2025-03-17 19:50:07,135 INFO L99 BuchiAutomizer]: Safety of program was proven or not checked, starting termination analysis [2025-03-17 19:50:07,135 INFO L184 PluginConnector]: Executing the observer BuchiAutomizerObserver from plugin BuchiAutomizer for "de.uni_freiburg.informatik.ultimate.plugins.generator.icfgbuilder CFG 17.03 07:50:07" (3/3) ... [2025-03-17 19:50:07,136 INFO L363 chiAutomizerObserver]: Analyzing ICFG Binary_Search-2.c [2025-03-17 19:50:07,166 INFO L306 stractBuchiCegarLoop]: Interprodecural is true [2025-03-17 19:50:07,166 INFO L307 stractBuchiCegarLoop]: Hoare is None [2025-03-17 19:50:07,167 INFO L308 stractBuchiCegarLoop]: Compute interpolants for ForwardPredicates [2025-03-17 19:50:07,167 INFO L309 stractBuchiCegarLoop]: Backedges is STRAIGHT_LINE [2025-03-17 19:50:07,167 INFO L310 stractBuchiCegarLoop]: Determinization is PREDICATE_ABSTRACTION [2025-03-17 19:50:07,167 INFO L311 stractBuchiCegarLoop]: Difference is false [2025-03-17 19:50:07,167 INFO L312 stractBuchiCegarLoop]: Minimize is MINIMIZE_SEVPA [2025-03-17 19:50:07,167 INFO L316 stractBuchiCegarLoop]: ======== Iteration 0 == of CEGAR loop == BuchiAutomatonCegarLoop ======== [2025-03-17 19:50:07,171 INFO L72 BuchiIsEmpty]: Start buchiIsEmpty. Operand has 17 states, 12 states have (on average 1.3333333333333333) internal successors, (16), 12 states have internal predecessors, (16), 3 states have call successors, (3), 1 states have call predecessors, (3), 1 states have return successors, (3), 3 states have call predecessors, (3), 3 states have call successors, (3) [2025-03-17 19:50:07,186 INFO L131 ngComponentsAnalysis]: Automaton has 1 accepting balls. 5 [2025-03-17 19:50:07,186 INFO L87 BuchiIsEmpty]: Finished buchiIsEmpty Result is false [2025-03-17 19:50:07,187 INFO L119 BuchiIsEmpty]: Starting construction of run [2025-03-17 19:50:07,191 INFO L148 hiAutomatonCegarLoop]: Counterexample stem histogram [1, 1, 1, 1] [2025-03-17 19:50:07,191 INFO L149 hiAutomatonCegarLoop]: Counterexample loop histogram [1, 1, 1, 1] [2025-03-17 19:50:07,191 INFO L338 stractBuchiCegarLoop]: ======== Iteration 1 ============ [2025-03-17 19:50:07,192 INFO L72 BuchiIsEmpty]: Start buchiIsEmpty. Operand has 17 states, 12 states have (on average 1.3333333333333333) internal successors, (16), 12 states have internal predecessors, (16), 3 states have call successors, (3), 1 states have call predecessors, (3), 1 states have return successors, (3), 3 states have call predecessors, (3), 3 states have call successors, (3) [2025-03-17 19:50:07,194 INFO L131 ngComponentsAnalysis]: Automaton has 1 accepting balls. 5 [2025-03-17 19:50:07,194 INFO L87 BuchiIsEmpty]: Finished buchiIsEmpty Result is false [2025-03-17 19:50:07,194 INFO L119 BuchiIsEmpty]: Starting construction of run [2025-03-17 19:50:07,194 INFO L148 hiAutomatonCegarLoop]: Counterexample stem histogram [1, 1, 1, 1] [2025-03-17 19:50:07,194 INFO L149 hiAutomatonCegarLoop]: Counterexample loop histogram [1, 1, 1, 1] [2025-03-17 19:50:07,198 INFO L752 eck$LassoCheckResult]: Stem: "assume { :begin_inline_ULTIMATE.init } true;assume { :end_inline_ULTIMATE.init } true;assume { :begin_inline_main } true;havoc main_#res#1;havoc main_#t~nondet3#1, main_#t~nondet4#1, main_#t~ret5#1, main_~x~0#1, main_~y~0#1;havoc main_#t~nondet3#1;main_~x~0#1 := main_#t~nondet3#1;havoc main_#t~nondet3#1;havoc main_#t~nondet4#1;main_~y~0#1 := main_#t~nondet4#1;havoc main_#t~nondet4#1;" "assume !!(-1073741823 <= main_~x~0#1 && main_~x~0#1 <= 1073741823);" "assume !!(-1073741823 <= main_~y~0#1 && main_~y~0#1 <= 1073741823);" "call main_#t~ret5#1 := binary_search(main_~x~0#1, main_~y~0#1);"< [2025-03-17 19:50:07,198 INFO L754 eck$LassoCheckResult]: Loop: "~i := #in~i;~j := #in~j;" "assume !(~i >= ~j);~mid~0 := (if ~i + ~j < 0 && 0 != (~i + ~j) % 2 then 1 + (~i + ~j) / 2 else (~i + ~j) / 2);havoc #t~nondet0;" "assume 0 != #t~nondet0;havoc #t~nondet0;" "call #t~ret1 := binary_search(~i, ~mid~0);"< [2025-03-17 19:50:07,201 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2025-03-17 19:50:07,202 INFO L85 PathProgramCache]: Analyzing trace with hash 1599690, now seen corresponding path program 1 times [2025-03-17 19:50:07,208 INFO L118 FreeRefinementEngine]: Executing refinement strategy CAMEL [2025-03-17 19:50:07,208 INFO L334 FreeRefinementEngine]: Using trace check IpTcStrategyModuleSmtInterpolCraig [1990753140] [2025-03-17 19:50:07,209 INFO L97 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2025-03-17 19:50:07,209 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2025-03-17 19:50:07,257 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 4 statements into 1 equivalence classes. [2025-03-17 19:50:07,264 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 4 of 4 statements. [2025-03-17 19:50:07,264 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,264 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,265 INFO L348 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2025-03-17 19:50:07,266 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 4 statements into 1 equivalence classes. [2025-03-17 19:50:07,268 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 4 of 4 statements. [2025-03-17 19:50:07,268 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,268 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,281 INFO L130 FreeRefinementEngine]: Strategy CAMEL found a feasible trace [2025-03-17 19:50:07,284 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2025-03-17 19:50:07,284 INFO L85 PathProgramCache]: Analyzing trace with hash 1261013, now seen corresponding path program 1 times [2025-03-17 19:50:07,284 INFO L118 FreeRefinementEngine]: Executing refinement strategy CAMEL [2025-03-17 19:50:07,284 INFO L334 FreeRefinementEngine]: Using trace check IpTcStrategyModuleSmtInterpolCraig [1920149139] [2025-03-17 19:50:07,284 INFO L97 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2025-03-17 19:50:07,284 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2025-03-17 19:50:07,291 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 4 statements into 1 equivalence classes. [2025-03-17 19:50:07,300 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 4 of 4 statements. [2025-03-17 19:50:07,301 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,301 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,301 INFO L348 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2025-03-17 19:50:07,304 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 4 statements into 1 equivalence classes. [2025-03-17 19:50:07,311 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 4 of 4 statements. [2025-03-17 19:50:07,311 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,311 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,314 INFO L130 FreeRefinementEngine]: Strategy CAMEL found a feasible trace [2025-03-17 19:50:07,315 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2025-03-17 19:50:07,316 INFO L85 PathProgramCache]: Analyzing trace with hash -121103842, now seen corresponding path program 1 times [2025-03-17 19:50:07,316 INFO L118 FreeRefinementEngine]: Executing refinement strategy CAMEL [2025-03-17 19:50:07,316 INFO L334 FreeRefinementEngine]: Using trace check IpTcStrategyModuleSmtInterpolCraig [1286011626] [2025-03-17 19:50:07,316 INFO L97 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2025-03-17 19:50:07,316 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2025-03-17 19:50:07,321 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 8 statements into 1 equivalence classes. [2025-03-17 19:50:07,340 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 8 of 8 statements. [2025-03-17 19:50:07,341 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,341 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,341 INFO L348 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2025-03-17 19:50:07,343 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 8 statements into 1 equivalence classes. [2025-03-17 19:50:07,351 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 8 of 8 statements. [2025-03-17 19:50:07,352 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,352 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,358 INFO L130 FreeRefinementEngine]: Strategy CAMEL found a feasible trace [2025-03-17 19:50:07,735 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 4 statements into 1 equivalence classes. [2025-03-17 19:50:07,736 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 4 of 4 statements. [2025-03-17 19:50:07,736 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,736 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,737 INFO L348 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2025-03-17 19:50:07,738 INFO L108 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY partitioned 4 statements into 1 equivalence classes. [2025-03-17 19:50:07,739 INFO L111 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) and asserted 4 of 4 statements. [2025-03-17 19:50:07,739 INFO L114 AnnotateAndAsserter]: Assert order NOT_INCREMENTALLY issued 1 check-sat command(s) [2025-03-17 19:50:07,739 INFO L115 AnnotateAndAsserter]: Conjunction of SSA is sat [2025-03-17 19:50:07,756 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.buchiautomizer CFG 17.03 07:50:07 BoogieIcfgContainer [2025-03-17 19:50:07,756 INFO L131 PluginConnector]: ------------------------ END BuchiAutomizer---------------------------- [2025-03-17 19:50:07,757 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2025-03-17 19:50:07,757 INFO L270 PluginConnector]: Initializing Witness Printer... [2025-03-17 19:50:07,757 INFO L274 PluginConnector]: Witness Printer initialized [2025-03-17 19:50:07,758 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.icfgbuilder CFG 17.03 07:50:07" (3/4) ... [2025-03-17 19:50:07,759 INFO L143 WitnessPrinter]: Generating witness for non-termination counterexample [2025-03-17 19:50:07,782 INFO L149 WitnessManager]: Wrote witness to /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/witness.graphml [2025-03-17 19:50:07,783 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2025-03-17 19:50:07,784 INFO L158 Benchmark]: Toolchain (without parser) took 995.90ms. Allocated memory is still 142.6MB. Free memory was 113.3MB in the beginning and 47.8MB in the end (delta: 65.5MB). Peak memory consumption was 67.1MB. Max. memory is 16.1GB. [2025-03-17 19:50:07,784 INFO L158 Benchmark]: CDTParser took 0.18ms. Allocated memory is still 201.3MB. Free memory is still 124.8MB. There was no memory consumed. Max. memory is 16.1GB. [2025-03-17 19:50:07,784 INFO L158 Benchmark]: CACSL2BoogieTranslator took 130.98ms. Allocated memory is still 142.6MB. Free memory was 113.3MB in the beginning and 103.5MB in the end (delta: 9.8MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2025-03-17 19:50:07,784 INFO L158 Benchmark]: Boogie Procedure Inliner took 16.13ms. Allocated memory is still 142.6MB. Free memory was 103.5MB in the beginning and 102.5MB in the end (delta: 1.0MB). There was no memory consumed. Max. memory is 16.1GB. [2025-03-17 19:50:07,784 INFO L158 Benchmark]: Boogie Preprocessor took 17.40ms. Allocated memory is still 142.6MB. Free memory was 102.5MB in the beginning and 101.4MB in the end (delta: 1.1MB). There was no memory consumed. Max. memory is 16.1GB. [2025-03-17 19:50:07,785 INFO L158 Benchmark]: IcfgBuilder took 175.35ms. Allocated memory is still 142.6MB. Free memory was 101.4MB in the beginning and 90.2MB in the end (delta: 11.2MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2025-03-17 19:50:07,785 INFO L158 Benchmark]: BuchiAutomizer took 626.20ms. Allocated memory is still 142.6MB. Free memory was 90.2MB in the beginning and 50.7MB in the end (delta: 39.5MB). Peak memory consumption was 33.6MB. Max. memory is 16.1GB. [2025-03-17 19:50:07,785 INFO L158 Benchmark]: Witness Printer took 25.69ms. Allocated memory is still 142.6MB. Free memory was 50.7MB in the beginning and 47.8MB in the end (delta: 2.9MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2025-03-17 19:50:07,786 INFO L338 ainManager$Toolchain]: ####################### End [Toolchain 1] ####################### --- Results --- * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.18ms. Allocated memory is still 201.3MB. Free memory is still 124.8MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 130.98ms. Allocated memory is still 142.6MB. Free memory was 113.3MB in the beginning and 103.5MB in the end (delta: 9.8MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 16.13ms. Allocated memory is still 142.6MB. Free memory was 103.5MB in the beginning and 102.5MB in the end (delta: 1.0MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 17.40ms. Allocated memory is still 142.6MB. Free memory was 102.5MB in the beginning and 101.4MB in the end (delta: 1.1MB). There was no memory consumed. Max. memory is 16.1GB. * IcfgBuilder took 175.35ms. Allocated memory is still 142.6MB. Free memory was 101.4MB in the beginning and 90.2MB in the end (delta: 11.2MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * BuchiAutomizer took 626.20ms. Allocated memory is still 142.6MB. Free memory was 90.2MB in the beginning and 50.7MB in the end (delta: 39.5MB). Peak memory consumption was 33.6MB. Max. memory is 16.1GB. * Witness Printer took 25.69ms. Allocated memory is still 142.6MB. Free memory was 50.7MB in the beginning and 47.8MB in the end (delta: 2.9MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * Results from de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction: - StatisticsResult: Constructed decomposition of program Trivial decomposition into one nonterminating module. - StatisticsResult: Timing statistics BüchiAutomizer plugin needed 0.5s and 1 iterations. TraceHistogramMax:1. Analysis of lassos took 0.5s. Construction of modules took 0.0s. Büchi inclusion checks took 0.0s. Highest rank in rank-based complementation 0. Minimization of det autom 0. Minimization of nondet autom 0. Automata minimization No data available. Non-live state removal took 0.0s Buchi closure took 0.0s. Biggest automaton had -1 states and ocurred in iteration -1. Nontrivial modules had stage [0, 0, 0, 0, 0]. InterpolantCoveringCapabilityFinite: 0/0 InterpolantCoveringCapabilityBuchi: 0/0 HoareTripleCheckerStatistics: LassoAnalysisResults: nont1 unkn0 SFLI0 SFLT0 conc0 concLT0 SILN0 SILU0 SILI0 SILT0 lasso0 LassoPreprocessingBenchmarks: LassoTerminationAnalysisBenchmarks: not availableLassoTerminationAnalysisBenchmarks: LassoNonterminationAnalysisSatFixpoint: 0 LassoNonterminationAnalysisSatUnbounded: 0 LassoNonterminationAnalysisUnsat: 0 LassoNonterminationAnalysisUnknown: 0 LassoNonterminationAnalysisTime: 0.0s InitialAbstractionConstructionTime: 0.0s - TerminationAnalysisResult: Nontermination possible Buchi Automizer proved that your program is nonterminating for some inputs - LassoShapedNonTerminationArgument [Line: 8]: Nontermination argument in form of an infinite program execution. Nontermination argument in form of an infinite program execution. Stem: [L19] int x = __VERIFIER_nondet_int(); [L20] int y = __VERIFIER_nondet_int(); [L22] COND FALSE !(!(-1073741823<=x && x<=1073741823)) VAL [x=-1] [L23] COND FALSE !(!(-1073741823<=y && y<=1073741823)) VAL [x=-1, y=0] [L24] CALL binary_search(x, y) VAL [\old(i)=-1, \old(j)=0] Loop: [L10] COND FALSE !(i>=j) [L11] int mid = (i+j)/2; [L12] COND TRUE __VERIFIER_nondet_int() [L13] CALL binary_search(i,mid) End of lasso representation. - StatisticsResult: NonterminationArgumentStatistics Fixpoint - NonterminatingLassoResult [Line: 8]: Nonterminating execution Found a nonterminating execution for the following lasso shaped sequence of statements. Stem: [L19] int x = __VERIFIER_nondet_int(); [L20] int y = __VERIFIER_nondet_int(); [L22] COND FALSE !(!(-1073741823<=x && x<=1073741823)) VAL [x=-1] [L23] COND FALSE !(!(-1073741823<=y && y<=1073741823)) VAL [x=-1, y=0] [L24] CALL binary_search(x, y) VAL [\old(i)=-1, \old(j)=0] Loop: [L10] COND FALSE !(i>=j) [L11] int mid = (i+j)/2; [L12] COND TRUE __VERIFIER_nondet_int() [L13] CALL binary_search(i,mid) End of lasso representation. RESULT: Ultimate proved your program to be incorrect! [2025-03-17 19:50:07,802 INFO L540 MonitoredProcess]: [MP /storage/repos/ultimate/releaseScripts/default/UAutomizer-linux/z3 SMTLIB2_COMPLIANT=true -memory:1024 -smt2 -in -t:12000 (1)] Forceful destruction successful, exit code 0 Received shutdown request... --- End real Ultimate output --- Execution finished normally Writing output log to file Ultimate.log Writing human readable error path to file UltimateCounterExample.errorpath Result: FALSE(TERM)