./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_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_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/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_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/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_06d70bc4-0400-4994-bedc-3533c46c8fd9/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 67ffb06f55f3e3a0d5de3e3e30d88dbb86aea47b00f25ab682eaebca9ddb1d73 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 21:37:32,029 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 21:37:32,112 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-13 21:37:32,117 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-13 21:37:32,118 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-13 21:37:32,145 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 21:37:32,147 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 21:37:32,148 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 21:37:32,149 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 21:37:32,149 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 21:37:32,149 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 21:37:32,150 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 21:37:32,151 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 21:37:32,152 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 21:37:32,152 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 21:37:32,152 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 21:37:32,152 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 21:37:32,153 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 21:37:32,154 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 21:37:32,154 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:37:32,154 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 21:37:32,155 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 21:37:32,155 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 21:37:32,155 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-13 21:37:32,155 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-13 21:37:32,155 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_06d70bc4-0400-4994-bedc-3533c46c8fd9/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 -> 67ffb06f55f3e3a0d5de3e3e30d88dbb86aea47b00f25ab682eaebca9ddb1d73 [2024-11-13 21:37:32,514 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 21:37:32,528 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 21:37:32,535 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 21:37:32,537 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 21:37:32,537 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 21:37:32,539 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_bad.i Unable to find full path for "g++" [2024-11-13 21:37:34,622 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 21:37:35,128 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 21:37:35,129 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_bad.i [2024-11-13 21:37:35,178 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data/5f30dabf6/7cd9f335836c4023947a707305471536/FLAG28abdec4b [2024-11-13 21:37:35,207 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data/5f30dabf6/7cd9f335836c4023947a707305471536 [2024-11-13 21:37:35,210 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 21:37:35,211 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 21:37:35,213 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 21:37:35,213 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 21:37:35,218 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 21:37:35,219 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:37:35" (1/1) ... [2024-11-13 21:37:35,220 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@2af3625f and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:35, skipping insertion in model container [2024-11-13 21:37:35,220 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:37:35" (1/1) ... [2024-11-13 21:37:35,291 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 21:37:36,546 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:37:36,555 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 21:37:36,661 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:37:36,877 INFO L204 MainTranslator]: Completed translation [2024-11-13 21:37:36,879 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36 WrapperNode [2024-11-13 21:37:36,880 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 21:37:36,881 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 21:37:36,881 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 21:37:36,881 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 21:37:36,889 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,929 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,966 INFO L138 Inliner]: procedures = 502, calls = 31, calls flagged for inlining = 8, calls inlined = 8, statements flattened = 72 [2024-11-13 21:37:36,967 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 21:37:36,967 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 21:37:36,968 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 21:37:36,968 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 21:37:36,979 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,979 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,984 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,988 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,993 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:36,999 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:37,000 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:37,002 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:37,004 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 21:37:37,005 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 21:37:37,006 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 21:37:37,006 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 21:37:37,007 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:36" (1/1) ... [2024-11-13 21:37:37,014 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:37:37,031 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 21:37:37,051 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2024-11-13 21:37:37,058 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2024-11-13 21:37:37,092 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 21:37:37,092 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 21:37:37,092 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 21:37:37,092 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 21:37:37,093 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 21:37:37,093 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-13 21:37:37,263 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 21:37:37,265 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 21:37:37,419 INFO L? ?]: Removed 28 outVars from TransFormulas that were not future-live. [2024-11-13 21:37:37,419 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 21:37:37,488 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 21:37:37,489 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 21:37:37,489 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:37:37 BoogieIcfgContainer [2024-11-13 21:37:37,489 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 21:37:37,490 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 21:37:37,490 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 21:37:37,505 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 21:37:37,505 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:37:37" (1/1) ... [2024-11-13 21:37:37,516 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 21:37:37,565 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:37:37,577 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 21:37:37,578 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 21:37:37,583 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 21:37:37,583 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:37:37,584 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 21:37:37,758 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 21:37:38,178 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 21:37:38,273 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:37:38,274 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 21 states to 18 states and 21 transitions. [2024-11-13 21:37:38,274 INFO L276 IsEmpty]: Start isEmpty. Operand 18 states and 21 transitions. [2024-11-13 21:37:38,275 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-13 21:37:38,275 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:37:38,276 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 21:37:38,334 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:38,334 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:37:38,355 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:38,473 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:38,473 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:37:38,501 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:38,525 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 21:37:38,559 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 09:37:38 ImpRootNode [2024-11-13 21:37:38,559 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 21:37:38,560 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 21:37:38,561 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 21:37:38,561 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 21:37:38,562 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:37:37" (3/4) ... [2024-11-13 21:37:38,564 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 21:37:38,565 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 21:37:38,566 INFO L158 Benchmark]: Toolchain (without parser) took 3354.59ms. Allocated memory is still 117.4MB. Free memory was 90.7MB in the beginning and 71.9MB in the end (delta: 18.8MB). Peak memory consumption was 24.7MB. Max. memory is 16.1GB. [2024-11-13 21:37:38,567 INFO L158 Benchmark]: CDTParser took 0.48ms. Allocated memory is still 142.6MB. Free memory is still 77.8MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:38,567 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1667.60ms. Allocated memory is still 117.4MB. Free memory was 90.4MB in the beginning and 80.5MB in the end (delta: 9.9MB). Peak memory consumption was 66.5MB. Max. memory is 16.1GB. [2024-11-13 21:37:38,567 INFO L158 Benchmark]: Boogie Procedure Inliner took 85.87ms. Allocated memory is still 117.4MB. Free memory was 80.5MB in the beginning and 77.6MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:38,568 INFO L158 Benchmark]: Boogie Preprocessor took 37.20ms. Allocated memory is still 117.4MB. Free memory was 77.6MB in the beginning and 76.4MB in the end (delta: 1.2MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:38,568 INFO L158 Benchmark]: RCFGBuilder took 483.96ms. Allocated memory is still 117.4MB. Free memory was 76.4MB in the beginning and 62.0MB in the end (delta: 14.4MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 21:37:38,569 INFO L158 Benchmark]: CodeCheck took 1069.56ms. Allocated memory is still 117.4MB. Free memory was 62.0MB in the beginning and 72.6MB in the end (delta: -10.6MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:38,569 INFO L158 Benchmark]: Witness Printer took 4.71ms. Allocated memory is still 117.4MB. Free memory was 71.9MB in the beginning and 71.9MB in the end (delta: 11.7kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:38,572 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, 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.4s 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: 1592]: 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_54_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_54b_badSink(data) [L1577] CALL CWE190_Integer_Overflow__int_fgets_add_54c_badSink(data) [L1582] CALL CWE190_Integer_Overflow__int_fgets_add_54d_badSink(data) [L1587] CALL CWE190_Integer_Overflow__int_fgets_add_54e_badSink(data) [L1592] 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.48ms. Allocated memory is still 142.6MB. Free memory is still 77.8MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1667.60ms. Allocated memory is still 117.4MB. Free memory was 90.4MB in the beginning and 80.5MB in the end (delta: 9.9MB). Peak memory consumption was 66.5MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 85.87ms. Allocated memory is still 117.4MB. Free memory was 80.5MB in the beginning and 77.6MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 37.20ms. Allocated memory is still 117.4MB. Free memory was 77.6MB in the beginning and 76.4MB in the end (delta: 1.2MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 483.96ms. Allocated memory is still 117.4MB. Free memory was 76.4MB in the beginning and 62.0MB in the end (delta: 14.4MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 1069.56ms. Allocated memory is still 117.4MB. Free memory was 62.0MB in the beginning and 72.6MB in the end (delta: -10.6MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 4.71ms. Allocated memory is still 117.4MB. Free memory was 71.9MB in the beginning and 71.9MB in the end (delta: 11.7kB). 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 21:37:38,604 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/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_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/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_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/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_06d70bc4-0400-4994-bedc-3533c46c8fd9/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 67ffb06f55f3e3a0d5de3e3e30d88dbb86aea47b00f25ab682eaebca9ddb1d73 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 21:37:41,835 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 21:37:41,977 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-13 21:37:42,006 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 21:37:42,007 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 21:37:42,007 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 21:37:42,008 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 21:37:42,008 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 21:37:42,008 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-13 21:37:42,009 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-13 21:37:42,010 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 21:37:42,010 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 21:37:42,010 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-13 21:37:42,010 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 21:37:42,010 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 21:37:42,010 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 21:37:42,010 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 21:37:42,011 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 21:37:42,011 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 21:37:42,011 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 21:37:42,011 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-13 21:37:42,011 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 21:37:42,011 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:37:42,012 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 21:37:42,012 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 21:37:42,012 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 21:37:42,012 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-13 21:37:42,012 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 21:37:42,012 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-13 21:37:42,012 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_06d70bc4-0400-4994-bedc-3533c46c8fd9/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 -> 67ffb06f55f3e3a0d5de3e3e30d88dbb86aea47b00f25ab682eaebca9ddb1d73 [2024-11-13 21:37:42,348 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 21:37:42,359 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 21:37:42,362 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 21:37:42,363 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 21:37:42,364 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 21:37:42,365 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_bad.i Unable to find full path for "g++" [2024-11-13 21:37:44,571 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 21:37:45,115 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 21:37:45,116 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_add_54_bad.i [2024-11-13 21:37:45,161 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data/23ad91ac7/17dd7a21bb9046629d6bf63cef547ffb/FLAGaab4e603b [2024-11-13 21:37:45,189 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/data/23ad91ac7/17dd7a21bb9046629d6bf63cef547ffb [2024-11-13 21:37:45,194 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 21:37:45,197 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 21:37:45,199 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 21:37:45,199 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 21:37:45,206 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 21:37:45,208 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:37:45" (1/1) ... [2024-11-13 21:37:45,211 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@1898c6d and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:45, skipping insertion in model container [2024-11-13 21:37:45,212 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:37:45" (1/1) ... [2024-11-13 21:37:45,290 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 21:37:46,473 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:37:46,493 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 21:37:46,643 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:37:46,834 INFO L204 MainTranslator]: Completed translation [2024-11-13 21:37:46,835 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46 WrapperNode [2024-11-13 21:37:46,835 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 21:37:46,836 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 21:37:46,836 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 21:37:46,836 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 21:37:46,844 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,893 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,932 INFO L138 Inliner]: procedures = 507, calls = 31, calls flagged for inlining = 8, calls inlined = 8, statements flattened = 71 [2024-11-13 21:37:46,932 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 21:37:46,933 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 21:37:46,933 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 21:37:46,933 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 21:37:46,945 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,945 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,950 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,954 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,972 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,978 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,985 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,986 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:46,990 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 21:37:46,991 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 21:37:46,991 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 21:37:46,991 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 21:37:46,992 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:37:46" (1/1) ... [2024-11-13 21:37:47,000 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:37:47,016 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 21:37:47,032 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2024-11-13 21:37:47,035 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2024-11-13 21:37:47,063 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 21:37:47,063 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 21:37:47,064 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-13 21:37:47,064 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 21:37:47,064 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 21:37:47,064 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 21:37:47,252 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 21:37:47,253 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 21:37:47,458 INFO L? ?]: Removed 27 outVars from TransFormulas that were not future-live. [2024-11-13 21:37:47,458 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 21:37:47,524 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 21:37:47,525 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 21:37:47,525 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:37:47 BoogieIcfgContainer [2024-11-13 21:37:47,525 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 21:37:47,526 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 21:37:47,526 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 21:37:47,538 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 21:37:47,538 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:37:47" (1/1) ... [2024-11-13 21:37:47,556 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 21:37:47,610 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:37:47,619 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 21:37:47,619 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 21:37:47,624 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 21:37:47,624 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:37:47,625 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 21:37:47,625 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 21:37:47,629 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 21:37:47,631 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-13 21:37:47,805 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 21:37:47,809 ERROR L567 CodeCheckObserver]: First Tracecheck threw exception Proofs are not supported [2024-11-13 21:37:47,865 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 21:37:47,868 INFO L255 TraceCheckSpWp]: Trace formula consists of 58 conjuncts, 1 conjuncts are in the unsatisfiable core [2024-11-13 21:37:47,873 INFO L278 TraceCheckSpWp]: Computing forward predicates... [2024-11-13 21:37:47,904 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 21:37:47,909 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Ended with exit code 0 [2024-11-13 21:37:47,937 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:37:47,938 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 17 states to 15 states and 17 transitions. [2024-11-13 21:37:47,939 INFO L276 IsEmpty]: Start isEmpty. Operand 15 states and 17 transitions. [2024-11-13 21:37:47,939 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-13 21:37:47,939 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:37:47,940 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 21:37:47,940 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 21:37:47,943 INFO L229 MonitoredProcess]: Starting monitored process 3 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 21:37:47,946 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Waiting until timeout for monitored process [2024-11-13 21:37:48,158 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:48,158 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:37:48,249 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:48,359 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:48,359 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:37:48,386 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:37:48,414 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Ended with exit code 0 [2024-11-13 21:37:48,416 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 21:37:48,457 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 09:37:48 ImpRootNode [2024-11-13 21:37:48,458 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 21:37:48,459 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 21:37:48,459 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 21:37:48,459 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 21:37:48,460 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:37:47" (3/4) ... [2024-11-13 21:37:48,463 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 21:37:48,464 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 21:37:48,467 INFO L158 Benchmark]: Toolchain (without parser) took 3268.73ms. Allocated memory is still 83.9MB. Free memory was 57.4MB in the beginning and 47.9MB in the end (delta: 9.5MB). Peak memory consumption was 12.2MB. Max. memory is 16.1GB. [2024-11-13 21:37:48,468 INFO L158 Benchmark]: CDTParser took 0.47ms. Allocated memory is still 83.9MB. Free memory is still 64.5MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:48,468 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1636.98ms. Allocated memory is still 83.9MB. Free memory was 57.4MB in the beginning and 52.5MB in the end (delta: 5.0MB). Peak memory consumption was 58.2MB. Max. memory is 16.1GB. [2024-11-13 21:37:48,472 INFO L158 Benchmark]: Boogie Procedure Inliner took 96.54ms. Allocated memory is still 83.9MB. Free memory was 52.5MB 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 21:37:48,473 INFO L158 Benchmark]: Boogie Preprocessor took 56.84ms. Allocated memory is still 83.9MB. Free memory was 49.4MB in the beginning and 47.8MB in the end (delta: 1.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:48,473 INFO L158 Benchmark]: RCFGBuilder took 534.59ms. Allocated memory is still 83.9MB. Free memory was 47.8MB in the beginning and 30.9MB in the end (delta: 17.0MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 21:37:48,473 INFO L158 Benchmark]: CodeCheck took 931.87ms. Allocated memory is still 83.9MB. Free memory was 30.9MB in the beginning and 48.4MB in the end (delta: -17.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:48,474 INFO L158 Benchmark]: Witness Printer took 5.37ms. Allocated memory is still 83.9MB. Free memory was 48.4MB in the beginning and 47.9MB in the end (delta: 451.6kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:37:48,476 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.8s, 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.1s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 17 NumberOfCodeBlocks, 17 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 7 ConstructedInterpolants, 0 QuantifiedInterpolants, 7 SizeOfPredicates, 0 NumberOfNonLiveVariables, 58 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: 1592]: 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_54_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_54b_badSink(data) [L1577] CALL CWE190_Integer_Overflow__int_fgets_add_54c_badSink(data) [L1582] CALL CWE190_Integer_Overflow__int_fgets_add_54d_badSink(data) [L1587] CALL CWE190_Integer_Overflow__int_fgets_add_54e_badSink(data) [L1592] 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.47ms. Allocated memory is still 83.9MB. Free memory is still 64.5MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1636.98ms. Allocated memory is still 83.9MB. Free memory was 57.4MB in the beginning and 52.5MB in the end (delta: 5.0MB). Peak memory consumption was 58.2MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 96.54ms. Allocated memory is still 83.9MB. Free memory was 52.5MB 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 56.84ms. Allocated memory is still 83.9MB. Free memory was 49.4MB in the beginning and 47.8MB in the end (delta: 1.5MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 534.59ms. Allocated memory is still 83.9MB. Free memory was 47.8MB in the beginning and 30.9MB in the end (delta: 17.0MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 931.87ms. Allocated memory is still 83.9MB. Free memory was 30.9MB in the beginning and 48.4MB in the end (delta: -17.5MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 5.37ms. Allocated memory is still 83.9MB. Free memory was 48.4MB in the beginning and 47.9MB in the end (delta: 451.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 21:37:48,520 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_06d70bc4-0400-4994-bedc-3533c46c8fd9/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