./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_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_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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_5bb73bd4-6ea6-411d-9392-790e7bb54181/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 2f137a637033c497cfed473fcf27b4b9fabaea72c2273fcc06e5071e541a8ec7 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:04:07,156 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:04:07,222 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-13 22:04:07,228 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-13 22:04:07,228 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-13 22:04:07,265 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:04:07,266 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:04:07,267 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:04:07,268 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:04:07,268 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:04:07,269 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:04:07,270 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:04:07,270 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-13 22:04:07,270 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:04:07,270 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:04:07,270 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:04:07,270 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:04:07,271 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:04:07,271 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:04:07,271 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:04:07,272 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:04:07,272 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:04:07,272 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:04:07,272 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:04:07,272 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:04:07,272 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:04:07,272 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:04:07,273 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:04:07,273 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:04:07,273 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:04:07,273 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-13 22:04:07,273 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-13 22:04:07,273 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_5bb73bd4-6ea6-411d-9392-790e7bb54181/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 -> 2f137a637033c497cfed473fcf27b4b9fabaea72c2273fcc06e5071e541a8ec7 [2024-11-13 22:04:07,653 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:04:07,667 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:04:07,670 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:04:07,672 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:04:07,674 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:04:07,676 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_bad.i Unable to find full path for "g++" [2024-11-13 22:04:09,702 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:04:10,197 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:04:10,198 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_bad.i [2024-11-13 22:04:10,239 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data/0a5f7618e/68a067a431ed4ecd98f4d8643c9f1da4/FLAG86c1d4426 [2024-11-13 22:04:10,261 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data/0a5f7618e/68a067a431ed4ecd98f4d8643c9f1da4 [2024-11-13 22:04:10,264 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:04:10,267 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:04:10,268 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:04:10,269 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:04:10,274 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:04:10,275 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:04:10" (1/1) ... [2024-11-13 22:04:10,278 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@7af4e2b1 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:10, skipping insertion in model container [2024-11-13 22:04:10,279 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:04:10" (1/1) ... [2024-11-13 22:04:10,344 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:04:11,387 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:04:11,396 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:04:11,501 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:04:11,653 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:04:11,654 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11 WrapperNode [2024-11-13 22:04:11,655 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:04:11,657 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:04:11,657 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:04:11,657 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:04:11,664 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:04:11" (1/1) ... [2024-11-13 22:04:11,693 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:04:11" (1/1) ... [2024-11-13 22:04:11,732 INFO L138 Inliner]: procedures = 501, calls = 30, calls flagged for inlining = 7, calls inlined = 7, statements flattened = 70 [2024-11-13 22:04:11,733 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:04:11,734 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:04:11,734 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:04:11,734 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:04:11,742 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,743 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,746 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,751 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,760 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,762 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,768 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,769 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,771 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:04:11,775 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:04:11,775 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:04:11,776 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:04:11,777 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:11" (1/1) ... [2024-11-13 22:04:11,790 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:04:11,813 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:04:11,832 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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:04:11,841 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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:04:11,866 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:04:11,867 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:04:11,868 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:04:11,868 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:04:11,868 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:04:11,868 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-13 22:04:12,045 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:04:12,047 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:04:12,195 INFO L? ?]: Removed 26 outVars from TransFormulas that were not future-live. [2024-11-13 22:04:12,195 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:04:12,241 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:04:12,241 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:04:12,242 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:04:12 BoogieIcfgContainer [2024-11-13 22:04:12,242 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:04:12,243 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:04:12,243 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:04:12,256 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:04:12,256 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:04:12" (1/1) ... [2024-11-13 22:04:12,266 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:04:12,317 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:04:12,330 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 22:04:12,331 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 22:04:12,335 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 22:04:12,336 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:04:12,337 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 22:04:12,497 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 22:04:12,845 INFO L134 CoverageAnalysis]: Checked inductivity of 0 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 0 trivial. 0 not checked. [2024-11-13 22:04:12,938 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:04:12,940 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 21 states to 18 states and 21 transitions. [2024-11-13 22:04:12,940 INFO L276 IsEmpty]: Start isEmpty. Operand 18 states and 21 transitions. [2024-11-13 22:04:12,941 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-13 22:04:12,941 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:04:12,941 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 22:04:12,982 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:12,983 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:04:13,004 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:13,094 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:13,095 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:04:13,112 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:13,134 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 22:04:13,177 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:04:13 ImpRootNode [2024-11-13 22:04:13,177 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:04:13,178 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:04:13,178 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:04:13,178 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:04:13,180 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:04:12" (3/4) ... [2024-11-13 22:04:13,183 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:04:13,184 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:04:13,188 INFO L158 Benchmark]: Toolchain (without parser) took 2919.28ms. Allocated memory was 142.6MB in the beginning and 427.8MB in the end (delta: 285.2MB). Free memory was 115.0MB in the beginning and 352.3MB in the end (delta: -237.3MB). Peak memory consumption was 47.4MB. Max. memory is 16.1GB. [2024-11-13 22:04:13,188 INFO L158 Benchmark]: CDTParser took 1.08ms. Allocated memory is still 167.8MB. Free memory is still 105.9MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:13,189 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1387.91ms. Allocated memory is still 142.6MB. Free memory was 115.0MB in the beginning and 54.8MB in the end (delta: 60.3MB). Peak memory consumption was 58.7MB. Max. memory is 16.1GB. [2024-11-13 22:04:13,193 INFO L158 Benchmark]: Boogie Procedure Inliner took 76.42ms. Allocated memory is still 142.6MB. Free memory was 54.8MB in the beginning and 52.0MB in the end (delta: 2.7MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-13 22:04:13,193 INFO L158 Benchmark]: Boogie Preprocessor took 40.91ms. Allocated memory is still 142.6MB. Free memory was 52.0MB in the beginning and 51.0MB in the end (delta: 1.0MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:13,194 INFO L158 Benchmark]: RCFGBuilder took 466.85ms. Allocated memory was 142.6MB in the beginning and 427.8MB in the end (delta: 285.2MB). Free memory was 51.0MB in the beginning and 390.7MB in the end (delta: -339.7MB). Peak memory consumption was 13.8MB. Max. memory is 16.1GB. [2024-11-13 22:04:13,194 INFO L158 Benchmark]: CodeCheck took 933.99ms. Allocated memory is still 427.8MB. Free memory was 390.7MB in the beginning and 352.3MB in the end (delta: 38.4MB). Peak memory consumption was 33.6MB. Max. memory is 16.1GB. [2024-11-13 22:04:13,194 INFO L158 Benchmark]: Witness Printer took 6.64ms. Allocated memory is still 427.8MB. Free memory is still 352.3MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:13,197 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.9s, OverallIterations: 2, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: 0 mSolverCounterUnknown, 16 SdHoareTripleChecker+Valid, 0.0s IncrementalHoareTripleChecker+Time, 0 mSdLazyCounter, 0 mSDsluCounter, 11 SdHoareTripleChecker+Invalid, 0.0s Time, 0 mProtectedAction, 0 SdHoareTripleChecker+Unchecked, 0 IncrementalHoareTripleChecker+Unchecked, 2 mSDsCounter, 4 IncrementalHoareTripleChecker+Valid, 0 mProtectedPredicate, 10 IncrementalHoareTripleChecker+Invalid, 14 SdHoareTripleChecker+Unknown, 0 mSolverCounterNotChecked, 4 mSolverCounterUnsat, 9 mSDtfsCounter, 10 mSolverCounterSat, 0.0s SdHoareTripleChecker+Time, 0 IncrementalHoareTripleChecker+Unknown, PredicateUnifierStatistics: 0 DeclaredPredicates, 56 GetRequests, 52 SyntacticMatches, 0 SemanticMatches, 4 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.1s SatisfiabilityAnalysisTime, 0.3s InterpolantComputationTime, 17 NumberOfCodeBlocks, 17 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 7 ConstructedInterpolants, 0 QuantifiedInterpolants, 15 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 1 InterpolantComputations, 1 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: 1587]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1557, overapproximation of large string literal at line 1569, overapproximation of fgets at line 1555. 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); [L1569] 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) [L1569] 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] [L1570] CALL CWE190_Integer_Overflow__int_fgets_add_53_bad() [L1551] int data; [L1552] data = 0 [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=0, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1555] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1557] data = atoi(inputBuffer) [L1564] CALL CWE190_Integer_Overflow__int_fgets_add_53b_badSink(data) [L1577] CALL CWE190_Integer_Overflow__int_fgets_add_53c_badSink(data) [L1582] CALL CWE190_Integer_Overflow__int_fgets_add_53d_badSink(data) [L1587] 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 1.08ms. Allocated memory is still 167.8MB. Free memory is still 105.9MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1387.91ms. Allocated memory is still 142.6MB. Free memory was 115.0MB in the beginning and 54.8MB in the end (delta: 60.3MB). Peak memory consumption was 58.7MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 76.42ms. Allocated memory is still 142.6MB. Free memory was 54.8MB in the beginning and 52.0MB in the end (delta: 2.7MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * Boogie Preprocessor took 40.91ms. Allocated memory is still 142.6MB. Free memory was 52.0MB in the beginning and 51.0MB in the end (delta: 1.0MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 466.85ms. Allocated memory was 142.6MB in the beginning and 427.8MB in the end (delta: 285.2MB). Free memory was 51.0MB in the beginning and 390.7MB in the end (delta: -339.7MB). Peak memory consumption was 13.8MB. Max. memory is 16.1GB. * CodeCheck took 933.99ms. Allocated memory is still 427.8MB. Free memory was 390.7MB in the beginning and 352.3MB in the end (delta: 38.4MB). Peak memory consumption was 33.6MB. Max. memory is 16.1GB. * Witness Printer took 6.64ms. Allocated memory is still 427.8MB. Free memory is still 352.3MB. 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:04:13,241 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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_5bb73bd4-6ea6-411d-9392-790e7bb54181/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 2f137a637033c497cfed473fcf27b4b9fabaea72c2273fcc06e5071e541a8ec7 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:04:16,313 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:04:16,436 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-13 22:04:16,517 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:04:16,518 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:04:16,518 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:04:16,519 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:04:16,519 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:04:16,519 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:04:16,519 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:04:16,519 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:04:16,519 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:04:16,520 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:04:16,520 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:04:16,520 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-13 22:04:16,520 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-13 22:04:16,520 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:04:16,520 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:04:16,521 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:04:16,522 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:04:16,522 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-13 22:04:16,522 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:04:16,523 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:04:16,523 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:04:16,523 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:04:16,523 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:04:16,523 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-13 22:04:16,523 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:04:16,523 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-13 22:04:16,523 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_5bb73bd4-6ea6-411d-9392-790e7bb54181/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 -> 2f137a637033c497cfed473fcf27b4b9fabaea72c2273fcc06e5071e541a8ec7 [2024-11-13 22:04:16,849 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:04:16,865 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:04:16,868 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:04:16,870 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:04:16,870 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:04:16,875 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_bad.i Unable to find full path for "g++" [2024-11-13 22:04:19,050 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:04:19,491 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:04:19,491 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_53_bad.i [2024-11-13 22:04:19,520 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data/818150bae/3268b60a9a61422ab6a5c571c5133ed1/FLAGaf4e72a2a [2024-11-13 22:04:19,539 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/data/818150bae/3268b60a9a61422ab6a5c571c5133ed1 [2024-11-13 22:04:19,542 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:04:19,543 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:04:19,545 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:04:19,546 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:04:19,553 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:04:19,554 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:04:19" (1/1) ... [2024-11-13 22:04:19,556 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@b8a0807 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:19, skipping insertion in model container [2024-11-13 22:04:19,557 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:04:19" (1/1) ... [2024-11-13 22:04:19,617 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:04:20,730 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:04:20,744 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:04:20,894 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:04:21,107 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:04:21,108 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21 WrapperNode [2024-11-13 22:04:21,108 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:04:21,109 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:04:21,109 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:04:21,109 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:04:21,118 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:04:21" (1/1) ... [2024-11-13 22:04:21,160 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:04:21" (1/1) ... [2024-11-13 22:04:21,188 INFO L138 Inliner]: procedures = 506, calls = 30, calls flagged for inlining = 7, calls inlined = 7, statements flattened = 69 [2024-11-13 22:04:21,188 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:04:21,191 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:04:21,192 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:04:21,193 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:04:21,202 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,202 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,208 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,213 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,229 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,234 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,237 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,245 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,248 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:04:21,251 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:04:21,251 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:04:21,251 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:04:21,252 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,263 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:04:21,281 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:04:21,296 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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:04:21,304 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/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:04:21,342 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:04:21,342 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:04:21,342 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-13 22:04:21,342 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:04:21,342 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:04:21,342 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:04:21,570 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:04:21,572 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:04:21,789 INFO L? ?]: Removed 25 outVars from TransFormulas that were not future-live. [2024-11-13 22:04:21,789 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:04:21,875 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:04:21,875 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:04:21,876 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:04:21 BoogieIcfgContainer [2024-11-13 22:04:21,876 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:04:21,881 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:04:21,881 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:04:21,894 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:04:21,894 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:04:21" (1/1) ... [2024-11-13 22:04:21,906 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:04:21,963 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:04:21,974 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 22:04:21,975 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 22:04:21,981 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 22:04:21,982 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:04:21,983 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 22:04:21,983 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 22:04:21,988 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 22:04:21,989 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-13 22:04:22,283 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 22:04:22,286 ERROR L567 CodeCheckObserver]: First Tracecheck threw exception Proofs are not supported [2024-11-13 22:04:22,361 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 22:04:22,364 INFO L255 TraceCheckSpWp]: Trace formula consists of 56 conjuncts, 1 conjuncts are in the unsatisfiable core [2024-11-13 22:04:22,369 INFO L278 TraceCheckSpWp]: Computing forward predicates... [2024-11-13 22:04:22,397 INFO L134 CoverageAnalysis]: Checked inductivity of 0 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 0 trivial. 0 not checked. [2024-11-13 22:04:22,399 ERROR L418 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Exception during sending of exit command (exit): Broken pipe [2024-11-13 22:04:22,401 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Ended with exit code 0 [2024-11-13 22:04:22,429 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:04:22,430 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 17 states to 15 states and 17 transitions. [2024-11-13 22:04:22,430 INFO L276 IsEmpty]: Start isEmpty. Operand 15 states and 17 transitions. [2024-11-13 22:04:22,430 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-13 22:04:22,431 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:04:22,431 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 22:04:22,431 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 22:04:22,434 INFO L229 MonitoredProcess]: Starting monitored process 3 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 22:04:22,439 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Waiting until timeout for monitored process [2024-11-13 22:04:22,638 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:22,638 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:04:22,734 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:22,838 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:22,838 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:04:22,876 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:04:22,913 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Ended with exit code 0 [2024-11-13 22:04:22,914 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 22:04:22,960 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:04:22 ImpRootNode [2024-11-13 22:04:22,961 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:04:22,961 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:04:22,962 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:04:22,962 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:04:22,963 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:04:21" (3/4) ... [2024-11-13 22:04:22,966 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:04:22,967 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:04:22,968 INFO L158 Benchmark]: Toolchain (without parser) took 3424.71ms. Allocated memory is still 117.4MB. Free memory was 88.8MB in the beginning and 64.0MB in the end (delta: 24.8MB). Peak memory consumption was 24.7MB. Max. memory is 16.1GB. [2024-11-13 22:04:22,972 INFO L158 Benchmark]: CDTParser took 3.85ms. Allocated memory is still 117.4MB. Free memory is still 84.2MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:22,972 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1563.33ms. Allocated memory is still 117.4MB. Free memory was 88.8MB in the beginning and 66.2MB in the end (delta: 22.7MB). Peak memory consumption was 58.4MB. Max. memory is 16.1GB. [2024-11-13 22:04:22,973 INFO L158 Benchmark]: Boogie Procedure Inliner took 78.98ms. Allocated memory is still 117.4MB. Free memory was 66.2MB in the beginning and 63.2MB in the end (delta: 3.0MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:22,973 INFO L158 Benchmark]: Boogie Preprocessor took 56.97ms. Allocated memory is still 117.4MB. Free memory was 63.2MB in the beginning and 61.8MB in the end (delta: 1.4MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-13 22:04:22,973 INFO L158 Benchmark]: RCFGBuilder took 625.11ms. Allocated memory is still 117.4MB. Free memory was 61.8MB in the beginning and 44.5MB in the end (delta: 17.3MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:04:22,974 INFO L158 Benchmark]: CodeCheck took 1079.85ms. Allocated memory is still 117.4MB. Free memory was 44.0MB in the beginning and 64.1MB in the end (delta: -20.0MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:22,974 INFO L158 Benchmark]: Witness Printer took 5.70ms. Allocated memory is still 117.4MB. Free memory was 64.1MB in the beginning and 64.0MB in the end (delta: 42.6kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:04:22,980 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: 1.0s, OverallIterations: 2, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: 0 mSolverCounterUnknown, 22 SdHoareTripleChecker+Valid, 0.0s IncrementalHoareTripleChecker+Time, 0 mSdLazyCounter, 0 mSDsluCounter, 12 SdHoareTripleChecker+Invalid, 0.0s Time, 0 mProtectedAction, 0 SdHoareTripleChecker+Unchecked, 0 IncrementalHoareTripleChecker+Unchecked, 0 mSDsCounter, 0 IncrementalHoareTripleChecker+Valid, 0 mProtectedPredicate, 2 IncrementalHoareTripleChecker+Invalid, 2 SdHoareTripleChecker+Unknown, 0 mSolverCounterNotChecked, 0 mSolverCounterUnsat, 12 mSDtfsCounter, 2 mSolverCounterSat, 0.0s SdHoareTripleChecker+Time, 0 IncrementalHoareTripleChecker+Unknown, PredicateUnifierStatistics: 0 DeclaredPredicates, 58 GetRequests, 58 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, 17 NumberOfCodeBlocks, 17 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 7 ConstructedInterpolants, 0 QuantifiedInterpolants, 7 SizeOfPredicates, 0 NumberOfNonLiveVariables, 56 ConjunctsInSsa, 1 ConjunctsInUnsatCore, 1 InterpolantComputations, 1 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: 1587]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1557, overapproximation of large string literal at line 1569, overapproximation of fgets at line 1555. 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); [L1569] 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) [L1569] 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] [L1570] CALL CWE190_Integer_Overflow__int_fgets_add_53_bad() [L1551] int data; [L1552] data = 0 [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=0, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1555] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1557] data = atoi(inputBuffer) [L1564] CALL CWE190_Integer_Overflow__int_fgets_add_53b_badSink(data) [L1577] CALL CWE190_Integer_Overflow__int_fgets_add_53c_badSink(data) [L1582] CALL CWE190_Integer_Overflow__int_fgets_add_53d_badSink(data) [L1587] 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 3.85ms. Allocated memory is still 117.4MB. Free memory is still 84.2MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1563.33ms. Allocated memory is still 117.4MB. Free memory was 88.8MB in the beginning and 66.2MB in the end (delta: 22.7MB). Peak memory consumption was 58.4MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 78.98ms. Allocated memory is still 117.4MB. Free memory was 66.2MB in the beginning and 63.2MB in the end (delta: 3.0MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 56.97ms. Allocated memory is still 117.4MB. Free memory was 63.2MB in the beginning and 61.8MB in the end (delta: 1.4MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * RCFGBuilder took 625.11ms. Allocated memory is still 117.4MB. Free memory was 61.8MB in the beginning and 44.5MB in the end (delta: 17.3MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 1079.85ms. Allocated memory is still 117.4MB. Free memory was 44.0MB in the beginning and 64.1MB in the end (delta: -20.0MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 5.70ms. Allocated memory is still 117.4MB. Free memory was 64.1MB in the beginning and 64.0MB in the end (delta: 42.6kB). 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:04:23,015 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5bb73bd4-6ea6-411d-9392-790e7bb54181/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Forceful destruction successful, exit code 0 Received shutdown request... --- End real Ultimate output --- Execution finished normally Writing output log to file Ultimate.log Result: UNKNOWN: Overapproximated counterexample