./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i --full-output --architecture 64bit -------------------------------------------------------------------------------- Checking for overflows Using default analysis Version 826ab2ba Calling Ultimate with: /usr/bin/java -Dosgi.configuration.area=/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar -data @noDefault -ultimatedata /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm --witnessprinter.witness.filename witness --witnessprinter.write.witness.besides.input.file false --witnessprinter.graph.data.specification CHECK( init(main()), LTL(G ! overflow) ) --witnessprinter.graph.data.producer Kojak --witnessprinter.graph.data.architecture 64bit --witnessprinter.graph.data.programhash f732861897967261e571a775cdf10a67686c45834bee74f4a988e005b6bba109 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:42:05,804 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:42:05,859 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-13 22:42:05,864 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-13 22:42:05,864 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-13 22:42:05,889 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:42:05,889 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:42:05,890 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:42:05,890 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:42:05,890 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:42:05,890 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:42:05,890 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:42:05,890 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-13 22:42:05,890 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:42:05,891 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:42:05,891 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:42:05,892 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:42:05,892 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-13 22:42:05,892 INFO L153 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode 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 -> /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm 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(G ! overflow) ) Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data producer -> Kojak 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 -> f732861897967261e571a775cdf10a67686c45834bee74f4a988e005b6bba109 [2024-11-13 22:42:06,187 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:42:06,199 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:42:06,204 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:42:06,205 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:42:06,205 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:42:06,207 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i Unable to find full path for "g++" [2024-11-13 22:42:08,192 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:42:08,668 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:42:08,671 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i [2024-11-13 22:42:08,698 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data/67a29d0a4/a952e58b4af24307b9336514a4a46a4e/FLAG06414cf85 [2024-11-13 22:42:08,720 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data/67a29d0a4/a952e58b4af24307b9336514a4a46a4e [2024-11-13 22:42:08,722 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:42:08,724 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:42:08,726 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:42:08,726 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:42:08,730 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:42:08,731 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:42:08" (1/1) ... [2024-11-13 22:42:08,732 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@77831ad2 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:08, skipping insertion in model container [2024-11-13 22:42:08,733 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:42:08" (1/1) ... [2024-11-13 22:42:08,779 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:42:09,814 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:42:09,829 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:42:09,938 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:42:10,115 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:42:10,115 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10 WrapperNode [2024-11-13 22:42:10,116 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:42:10,117 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:42:10,118 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:42:10,118 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:42:10,125 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,157 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,190 INFO L138 Inliner]: procedures = 500, calls = 29, calls flagged for inlining = 6, calls inlined = 6, statements flattened = 70 [2024-11-13 22:42:10,192 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:42:10,193 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:42:10,193 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:42:10,193 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:42:10,201 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,201 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,204 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,208 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,217 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,222 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,224 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,225 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,231 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:42:10,235 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:42:10,235 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:42:10,235 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:42:10,236 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,246 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:42:10,267 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:42:10,282 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2024-11-13 22:42:10,287 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2024-11-13 22:42:10,317 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:42:10,317 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:42:10,317 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:42:10,318 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:42:10,319 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:42:10,319 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-13 22:42:10,525 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:42:10,527 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:42:10,709 INFO L? ?]: Removed 28 outVars from TransFormulas that were not future-live. [2024-11-13 22:42:10,710 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:42:10,779 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:42:10,779 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:42:10,779 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:42:10 BoogieIcfgContainer [2024-11-13 22:42:10,779 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:42:10,783 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:42:10,784 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:42:10,795 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:42:10,796 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:42:10" (1/1) ... [2024-11-13 22:42:10,805 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:42:10,862 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:42:10,875 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 22:42:10,875 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 22:42:10,880 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 22:42:10,880 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:42:10,881 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 22:42:11,060 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:11,061 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:42:11,093 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:11,198 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:11,198 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:42:11,220 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:11,262 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2024-11-13 22:42:11,298 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:42:11 ImpRootNode [2024-11-13 22:42:11,300 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:42:11,302 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:42:11,302 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:42:11,303 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:42:11,303 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:42:10" (3/4) ... [2024-11-13 22:42:11,306 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:42:11,307 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:42:11,309 INFO L158 Benchmark]: Toolchain (without parser) took 2585.53ms. Allocated memory is still 117.4MB. Free memory was 88.7MB in the beginning and 41.5MB in the end (delta: 47.2MB). Peak memory consumption was 49.2MB. Max. memory is 16.1GB. [2024-11-13 22:42:11,312 INFO L158 Benchmark]: CDTParser took 0.36ms. Allocated memory is still 83.9MB. Free memory is still 40.2MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:11,313 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1390.75ms. Allocated memory is still 117.4MB. Free memory was 88.3MB in the beginning and 79.5MB in the end (delta: 8.7MB). Peak memory consumption was 66.0MB. Max. memory is 16.1GB. [2024-11-13 22:42:11,313 INFO L158 Benchmark]: Boogie Procedure Inliner took 74.93ms. Allocated memory is still 117.4MB. Free memory was 79.5MB in the beginning and 76.7MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:11,313 INFO L158 Benchmark]: Boogie Preprocessor took 41.66ms. Allocated memory is still 117.4MB. Free memory was 76.7MB in the beginning and 76.0MB in the end (delta: 711.0kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:11,314 INFO L158 Benchmark]: RCFGBuilder took 544.26ms. Allocated memory is still 117.4MB. Free memory was 76.0MB in the beginning and 61.3MB in the end (delta: 14.6MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:42:11,314 INFO L158 Benchmark]: CodeCheck took 516.95ms. Allocated memory is still 117.4MB. Free memory was 60.6MB in the beginning and 41.5MB in the end (delta: 19.1MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:42:11,315 INFO L158 Benchmark]: Witness Printer took 6.02ms. Allocated memory is still 117.4MB. Free memory is still 41.5MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:11,319 INFO L338 ainManager$Toolchain]: ####################### End [Toolchain 1] ####################### --- Results --- * Results from de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck: - StatisticsResult: Ultimate CodeCheck benchmark data CFG has 2 procedures, 16 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.4s, OverallIterations: 1, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: , PredicateUnifierStatistics: 0 DeclaredPredicates, 0 GetRequests, 0 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.0s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 8 NumberOfCodeBlocks, 8 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1551]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1564, overapproximation of large string literal at line 1576, overapproximation of fgets at line 1562. Possible FailurePath: [L1522] const int GLOBAL_CONST_TRUE = 1; [L1523] const int GLOBAL_CONST_FALSE = 0; [L1524] const int GLOBAL_CONST_FIVE = 5; [L1525] int globalTrue = 1; [L1526] int globalFalse = 0; [L1527] int globalFive = 5; [L1546] int globalArgc = 0; [L1547] char** globalArgv = ((void *)0); [L1576] CALL printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(line)={3:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1414] COND TRUE line != ((void *)0) [L1576] RET printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1577] CALL CWE191_Integer_Underflow__int_fgets_sub_44_bad() [L1557] int data; [L1558] void (*funcPtr) (int) = badSink; [L1559] data = 0 [L1561] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=0, funcPtr={-1:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1562] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1564] data = atoi(inputBuffer) [L1571] CALL funcPtr(data) [L1551] data - 1 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.36ms. Allocated memory is still 83.9MB. Free memory is still 40.2MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1390.75ms. Allocated memory is still 117.4MB. Free memory was 88.3MB in the beginning and 79.5MB in the end (delta: 8.7MB). Peak memory consumption was 66.0MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 74.93ms. Allocated memory is still 117.4MB. Free memory was 79.5MB in the beginning and 76.7MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 41.66ms. Allocated memory is still 117.4MB. Free memory was 76.7MB in the beginning and 76.0MB in the end (delta: 711.0kB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 544.26ms. Allocated memory is still 117.4MB. Free memory was 76.0MB in the beginning and 61.3MB in the end (delta: 14.6MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 516.95ms. Allocated memory is still 117.4MB. Free memory was 60.6MB in the beginning and 41.5MB in the end (delta: 19.1MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * Witness Printer took 6.02ms. Allocated memory is still 117.4MB. Free memory is still 41.5MB. There was no memory consumed. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2024-11-13 22:42:11,345 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Ended with exit code 0 Received shutdown request... --- End real Ultimate output --- Execution finished normally Using bit-precise analysis Retrying with bit-precise analysis ### Bit-precise run ### Calling Ultimate with: /usr/bin/java -Dosgi.configuration.area=/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar -data @noDefault -ultimatedata /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm --witnessprinter.witness.filename witness --witnessprinter.write.witness.besides.input.file false --witnessprinter.graph.data.specification CHECK( init(main()), LTL(G ! overflow) ) --witnessprinter.graph.data.producer Kojak --witnessprinter.graph.data.architecture 64bit --witnessprinter.graph.data.programhash f732861897967261e571a775cdf10a67686c45834bee74f4a988e005b6bba109 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:42:14,061 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:42:14,196 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-13 22:42:14,237 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:42:14,239 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:42:14,239 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:42:14,240 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:42:14,240 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:42:14,240 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:42:14,241 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:42:14,241 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:42:14,242 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:42:14,242 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:42:14,242 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:42:14,242 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-13 22:42:14,243 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-13 22:42:14,243 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:42:14,243 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:42:14,243 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-13 22:42:14,244 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:42:14,244 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:42:14,244 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:42:14,244 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:42:14,244 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:42:14,244 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:42:14,244 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:42:14,245 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-13 22:42:14,245 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:42:14,245 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:42:14,245 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:42:14,245 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:42:14,245 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:42:14,246 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-13 22:42:14,246 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:42:14,246 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-13 22:42:14,246 INFO L153 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode 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 -> /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm 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(G ! overflow) ) Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data producer -> Kojak 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 -> f732861897967261e571a775cdf10a67686c45834bee74f4a988e005b6bba109 [2024-11-13 22:42:14,569 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:42:14,577 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:42:14,579 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:42:14,580 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:42:14,581 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:42:14,582 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i Unable to find full path for "g++" [2024-11-13 22:42:16,552 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:42:17,021 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:42:17,024 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_44_bad.i [2024-11-13 22:42:17,058 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data/93c144add/952ac7a838ab43e3adfc11e779b01570/FLAG7debad416 [2024-11-13 22:42:17,079 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/data/93c144add/952ac7a838ab43e3adfc11e779b01570 [2024-11-13 22:42:17,082 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:42:17,084 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:42:17,086 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:42:17,087 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:42:17,093 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:42:17,094 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:42:17" (1/1) ... [2024-11-13 22:42:17,094 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@45367593 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:17, skipping insertion in model container [2024-11-13 22:42:17,097 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:42:17" (1/1) ... [2024-11-13 22:42:17,161 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:42:18,270 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:42:18,284 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:42:18,425 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:42:18,598 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:42:18,599 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18 WrapperNode [2024-11-13 22:42:18,599 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:42:18,600 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:42:18,600 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:42:18,600 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:42:18,605 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,630 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,649 INFO L138 Inliner]: procedures = 505, calls = 29, calls flagged for inlining = 6, calls inlined = 6, statements flattened = 69 [2024-11-13 22:42:18,650 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:42:18,650 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:42:18,650 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:42:18,650 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:42:18,657 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,658 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,661 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,661 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,669 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,671 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,673 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,674 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,679 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:42:18,680 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:42:18,680 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:42:18,680 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:42:18,681 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:42:18" (1/1) ... [2024-11-13 22:42:18,687 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:42:18,701 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:42:18,714 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2024-11-13 22:42:18,719 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2024-11-13 22:42:18,744 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:42:18,744 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:42:18,744 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-13 22:42:18,744 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:42:18,744 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:42:18,744 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:42:18,990 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:42:18,992 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:42:19,184 INFO L? ?]: Removed 27 outVars from TransFormulas that were not future-live. [2024-11-13 22:42:19,185 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:42:19,264 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:42:19,265 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:42:19,265 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:42:19 BoogieIcfgContainer [2024-11-13 22:42:19,265 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:42:19,266 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:42:19,266 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:42:19,276 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:42:19,276 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:42:19" (1/1) ... [2024-11-13 22:42:19,299 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:42:19,349 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:42:19,361 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 22:42:19,362 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 22:42:19,366 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 22:42:19,367 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:42:19,368 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 22:42:19,368 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 22:42:19,371 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 22:42:19,373 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-13 22:42:19,642 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:19,642 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:42:19,698 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:19,830 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:19,830 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:42:19,856 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:42:19,890 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Ended with exit code 0 [2024-11-13 22:42:19,891 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2024-11-13 22:42:19,923 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:42:19 ImpRootNode [2024-11-13 22:42:19,923 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:42:19,924 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:42:19,924 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:42:19,924 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:42:19,925 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:42:19" (3/4) ... [2024-11-13 22:42:19,929 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:42:19,930 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:42:19,931 INFO L158 Benchmark]: Toolchain (without parser) took 2847.54ms. Allocated memory is still 83.9MB. Free memory was 56.8MB in the beginning and 35.3MB in the end (delta: 21.5MB). Peak memory consumption was 27.5MB. Max. memory is 16.1GB. [2024-11-13 22:42:19,932 INFO L158 Benchmark]: CDTParser took 0.44ms. Allocated memory is still 83.9MB. Free memory is still 64.8MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:19,934 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1513.03ms. Allocated memory is still 83.9MB. Free memory was 56.8MB in the beginning and 52.4MB in the end (delta: 4.5MB). Peak memory consumption was 58.1MB. Max. memory is 16.1GB. [2024-11-13 22:42:19,935 INFO L158 Benchmark]: Boogie Procedure Inliner took 50.16ms. Allocated memory is still 83.9MB. Free memory was 52.4MB in the beginning and 49.7MB in the end (delta: 2.7MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:19,935 INFO L158 Benchmark]: Boogie Preprocessor took 29.07ms. Allocated memory is still 83.9MB. Free memory was 49.7MB in the beginning and 47.7MB in the end (delta: 2.0MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:19,936 INFO L158 Benchmark]: RCFGBuilder took 585.40ms. Allocated memory is still 83.9MB. Free memory was 47.7MB in the beginning and 30.4MB in the end (delta: 17.3MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:42:19,936 INFO L158 Benchmark]: CodeCheck took 657.40ms. Allocated memory is still 83.9MB. Free memory was 30.4MB in the beginning and 35.8MB in the end (delta: -5.3MB). Peak memory consumption was 1.5MB. Max. memory is 16.1GB. [2024-11-13 22:42:19,936 INFO L158 Benchmark]: Witness Printer took 6.30ms. Allocated memory is still 83.9MB. Free memory was 35.3MB in the beginning and 35.3MB in the end (delta: 3.4kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:42:19,941 INFO L338 ainManager$Toolchain]: ####################### End [Toolchain 1] ####################### --- Results --- * Results from de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck: - StatisticsResult: Ultimate CodeCheck benchmark data CFG has 2 procedures, 16 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.6s, OverallIterations: 1, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: , PredicateUnifierStatistics: 0 DeclaredPredicates, 0 GetRequests, 0 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.0s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 8 NumberOfCodeBlocks, 8 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1551]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1564, overapproximation of large string literal at line 1576, overapproximation of fgets at line 1562. Possible FailurePath: [L1522] const int GLOBAL_CONST_TRUE = 1; [L1523] const int GLOBAL_CONST_FALSE = 0; [L1524] const int GLOBAL_CONST_FIVE = 5; [L1525] int globalTrue = 1; [L1526] int globalFalse = 0; [L1527] int globalFive = 5; [L1546] int globalArgc = 0; [L1547] char** globalArgv = ((void *)0); [L1576] CALL printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(line)={3:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1414] COND TRUE line != ((void *)0) [L1576] RET printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1577] CALL CWE191_Integer_Underflow__int_fgets_sub_44_bad() [L1557] int data; [L1558] void (*funcPtr) (int) = badSink; [L1559] data = 0 [L1561] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=0, funcPtr={-1:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1562] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1564] data = atoi(inputBuffer) [L1571] CALL funcPtr(data) [L1551] data - 1 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.44ms. Allocated memory is still 83.9MB. Free memory is still 64.8MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1513.03ms. Allocated memory is still 83.9MB. Free memory was 56.8MB in the beginning and 52.4MB in the end (delta: 4.5MB). Peak memory consumption was 58.1MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 50.16ms. Allocated memory is still 83.9MB. Free memory was 52.4MB in the beginning and 49.7MB in the end (delta: 2.7MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 29.07ms. Allocated memory is still 83.9MB. Free memory was 49.7MB in the beginning and 47.7MB in the end (delta: 2.0MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 585.40ms. Allocated memory is still 83.9MB. Free memory was 47.7MB in the beginning and 30.4MB in the end (delta: 17.3MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 657.40ms. Allocated memory is still 83.9MB. Free memory was 30.4MB in the beginning and 35.8MB in the end (delta: -5.3MB). Peak memory consumption was 1.5MB. Max. memory is 16.1GB. * Witness Printer took 6.30ms. Allocated memory is still 83.9MB. Free memory was 35.3MB in the beginning and 35.3MB in the end (delta: 3.4kB). There was no memory consumed. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2024-11-13 22:42:19,976 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_4d18aa2d-5791-42c2-9e14-6f8593c95b48/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Ended with exit code 0 Received shutdown request... --- End real Ultimate output --- Execution finished normally Writing output log to file Ultimate.log Result: UNKNOWN: Overapproximated counterexample