./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_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_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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_dd5670ef-e641-485c-9d4f-058fd06ce155/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 e1b811ebaac96e30d95d25d077da4e563845fb857f9aa9457153539bb79aef42 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:13:54,091 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:13:54,178 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-13 22:13:54,185 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-13 22:13:54,186 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-13 22:13:54,221 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:13:54,222 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:13:54,222 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:13:54,223 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:13:54,223 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:13:54,223 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:13:54,223 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:13:54,223 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-13 22:13:54,223 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:13:54,227 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:13:54,227 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:13:54,227 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:13:54,227 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:13:54,227 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:13:54,228 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:13:54,228 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:13:54,228 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:13:54,228 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:13:54,228 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:13:54,229 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:13:54,229 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:13:54,229 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:13:54,229 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:13:54,230 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:13:54,230 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:13:54,230 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-13 22:13:54,230 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-13 22:13:54,230 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_dd5670ef-e641-485c-9d4f-058fd06ce155/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 -> e1b811ebaac96e30d95d25d077da4e563845fb857f9aa9457153539bb79aef42 [2024-11-13 22:13:54,556 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:13:54,566 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:13:54,570 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:13:54,573 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:13:54,573 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:13:54,574 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_bad.i Unable to find full path for "g++" [2024-11-13 22:13:56,483 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:13:57,088 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:13:57,089 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_bad.i [2024-11-13 22:13:57,125 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data/a89dff37a/a549377cde134876818064a51a5f97fd/FLAGc475bb894 [2024-11-13 22:13:57,148 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data/a89dff37a/a549377cde134876818064a51a5f97fd [2024-11-13 22:13:57,150 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:13:57,152 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:13:57,154 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:13:57,156 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:13:57,160 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:13:57,161 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:13:57" (1/1) ... [2024-11-13 22:13:57,162 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@192fa3b1 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:57, skipping insertion in model container [2024-11-13 22:13:57,164 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:13:57" (1/1) ... [2024-11-13 22:13:57,234 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:13:58,321 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:13:58,330 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:13:58,421 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:13:58,555 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:13:58,556 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58 WrapperNode [2024-11-13 22:13:58,557 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:13:58,559 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:13:58,559 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:13:58,559 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:13:58,565 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:13:58" (1/1) ... [2024-11-13 22:13:58,597 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:13:58" (1/1) ... [2024-11-13 22:13:58,631 INFO L138 Inliner]: procedures = 499, calls = 36, calls flagged for inlining = 5, calls inlined = 5, statements flattened = 81 [2024-11-13 22:13:58,631 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:13:58,632 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:13:58,632 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:13:58,632 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:13:58,640 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,640 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,649 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,649 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,659 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,665 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,666 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,671 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,673 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:13:58,678 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:13:58,678 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:13:58,678 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:13:58,679 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:13:58" (1/1) ... [2024-11-13 22:13:58,689 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:13:58,713 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:13:58,728 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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:13:58,731 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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:13:58,755 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:13:58,756 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure read~int [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:13:58,756 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocOnStack [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure write~int [2024-11-13 22:13:58,756 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-13 22:13:58,962 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:13:58,964 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:13:59,127 INFO L? ?]: Removed 25 outVars from TransFormulas that were not future-live. [2024-11-13 22:13:59,127 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:13:59,162 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:13:59,162 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:13:59,163 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:13:59 BoogieIcfgContainer [2024-11-13 22:13:59,163 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:13:59,164 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:13:59,164 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:13:59,172 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:13:59,173 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:13:59" (1/1) ... [2024-11-13 22:13:59,183 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:13:59,232 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:13:59,244 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 22:13:59,244 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 22:13:59,249 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 22:13:59,249 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:13:59,250 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 22:13:59,418 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:13:59,418 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:13:59,476 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:13:59,618 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:13:59,618 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:13:59,642 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:13:59,664 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2024-11-13 22:13:59,699 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:13:59 ImpRootNode [2024-11-13 22:13:59,699 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:13:59,700 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:13:59,700 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:13:59,700 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:13:59,702 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:13:59" (3/4) ... [2024-11-13 22:13:59,704 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:13:59,705 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:13:59,706 INFO L158 Benchmark]: Toolchain (without parser) took 2554.32ms. Allocated memory is still 142.6MB. Free memory was 115.2MB in the beginning and 80.0MB in the end (delta: 35.1MB). Peak memory consumption was 39.1MB. Max. memory is 16.1GB. [2024-11-13 22:13:59,706 INFO L158 Benchmark]: CDTParser took 1.65ms. Allocated memory is still 167.8MB. Free memory is still 105.8MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:13:59,707 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1403.75ms. Allocated memory is still 142.6MB. Free memory was 114.8MB in the beginning and 55.8MB in the end (delta: 59.1MB). Peak memory consumption was 58.7MB. Max. memory is 16.1GB. [2024-11-13 22:13:59,710 INFO L158 Benchmark]: Boogie Procedure Inliner took 72.47ms. Allocated memory is still 142.6MB. Free memory was 55.8MB in the beginning and 53.1MB in the end (delta: 2.7MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-13 22:13:59,710 INFO L158 Benchmark]: Boogie Preprocessor took 45.46ms. Allocated memory is still 142.6MB. Free memory was 53.1MB in the beginning and 52.0MB in the end (delta: 1.1MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:13:59,710 INFO L158 Benchmark]: RCFGBuilder took 485.23ms. Allocated memory is still 142.6MB. Free memory was 52.0MB in the beginning and 103.9MB in the end (delta: -51.8MB). Peak memory consumption was 13.9MB. Max. memory is 16.1GB. [2024-11-13 22:13:59,711 INFO L158 Benchmark]: CodeCheck took 535.97ms. Allocated memory is still 142.6MB. Free memory was 103.9MB in the beginning and 80.0MB in the end (delta: 23.8MB). Peak memory consumption was 25.2MB. Max. memory is 16.1GB. [2024-11-13 22:13:59,711 INFO L158 Benchmark]: Witness Printer took 5.04ms. Allocated memory is still 142.6MB. Free memory is still 80.0MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:13:59,716 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.5s, OverallIterations: 1, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: , PredicateUnifierStatistics: 0 DeclaredPredicates, 0 GetRequests, 0 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 8 NumberOfCodeBlocks, 8 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1583]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1562, overapproximation of large string literal at line 1575, overapproximation of fgets at line 1560. 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); [L1575] 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) [L1575] 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] [L1576] CALL CWE191_Integer_Underflow__int_fgets_predec_67_bad() [L1555] int data; [L1556] CWE191_Integer_Underflow__int_fgets_predec_67_structType myStruct; [L1557] data = 0 [L1559] 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, myStruct={27377:0}] [L1560] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1562] data = atoi(inputBuffer) [L1569] myStruct.structFirst = data [L1570] CALL CWE191_Integer_Underflow__int_fgets_predec_67b_badSink(myStruct) [L1581] EXPR myStruct.structFirst [L1581] int data = myStruct.structFirst; [L1583] --data 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.65ms. Allocated memory is still 167.8MB. Free memory is still 105.8MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1403.75ms. Allocated memory is still 142.6MB. Free memory was 114.8MB in the beginning and 55.8MB in the end (delta: 59.1MB). Peak memory consumption was 58.7MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 72.47ms. Allocated memory is still 142.6MB. Free memory was 55.8MB in the beginning and 53.1MB in the end (delta: 2.7MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * Boogie Preprocessor took 45.46ms. Allocated memory is still 142.6MB. Free memory was 53.1MB in the beginning and 52.0MB in the end (delta: 1.1MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 485.23ms. Allocated memory is still 142.6MB. Free memory was 52.0MB in the beginning and 103.9MB in the end (delta: -51.8MB). Peak memory consumption was 13.9MB. Max. memory is 16.1GB. * CodeCheck took 535.97ms. Allocated memory is still 142.6MB. Free memory was 103.9MB in the beginning and 80.0MB in the end (delta: 23.8MB). Peak memory consumption was 25.2MB. Max. memory is 16.1GB. * Witness Printer took 5.04ms. Allocated memory is still 142.6MB. Free memory is still 80.0MB. 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:13:59,750 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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_dd5670ef-e641-485c-9d4f-058fd06ce155/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 e1b811ebaac96e30d95d25d077da4e563845fb857f9aa9457153539bb79aef42 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:14:02,519 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:14:02,620 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-13 22:14:02,686 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:14:02,688 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:14:02,688 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:14:02,689 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:14:02,689 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:14:02,690 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:14:02,690 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:14:02,691 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:14:02,691 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:14:02,691 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:14:02,691 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:14:02,692 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-13 22:14:02,692 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-13 22:14:02,692 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:14:02,692 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:14:02,693 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-13 22:14:02,693 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:14:02,693 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:14:02,693 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:14:02,693 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:14:02,693 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:14:02,693 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:14:02,694 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:14:02,694 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-13 22:14:02,694 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:14:02,694 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:14:02,694 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:14:02,694 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:14:02,694 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:14:02,695 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-13 22:14:02,695 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:14:02,695 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-13 22:14:02,695 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_dd5670ef-e641-485c-9d4f-058fd06ce155/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 -> e1b811ebaac96e30d95d25d077da4e563845fb857f9aa9457153539bb79aef42 [2024-11-13 22:14:03,062 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:14:03,074 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:14:03,077 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:14:03,081 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:14:03,082 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:14:03,084 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_bad.i Unable to find full path for "g++" [2024-11-13 22:14:05,107 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:14:05,566 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:14:05,570 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_67_bad.i [2024-11-13 22:14:05,605 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data/90738759c/ca1e2dbb463d475aa0f9a8b2af9f61e0/FLAG44c91f418 [2024-11-13 22:14:05,627 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/data/90738759c/ca1e2dbb463d475aa0f9a8b2af9f61e0 [2024-11-13 22:14:05,629 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:14:05,631 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:14:05,634 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:14:05,635 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:14:05,641 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:14:05,642 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:14:05" (1/1) ... [2024-11-13 22:14:05,645 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@3936473 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:05, skipping insertion in model container [2024-11-13 22:14:05,645 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:14:05" (1/1) ... [2024-11-13 22:14:05,700 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:14:06,676 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:14:06,691 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:14:06,812 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:14:06,971 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:14:06,972 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06 WrapperNode [2024-11-13 22:14:06,972 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:14:06,973 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:14:06,973 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:14:06,973 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:14:06,979 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:14:06" (1/1) ... [2024-11-13 22:14:07,002 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:14:06" (1/1) ... [2024-11-13 22:14:07,022 INFO L138 Inliner]: procedures = 504, calls = 36, calls flagged for inlining = 5, calls inlined = 5, statements flattened = 80 [2024-11-13 22:14:07,023 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:14:07,023 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:14:07,023 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:14:07,023 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:14:07,029 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,030 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,033 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,034 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,043 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,045 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,048 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,049 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,053 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:14:07,054 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:14:07,054 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:14:07,054 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:14:07,055 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:14:06" (1/1) ... [2024-11-13 22:14:07,061 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:14:07,075 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:14:07,088 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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:14:07,093 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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:14:07,125 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:14:07,126 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:14:07,126 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure read~intINTTYPE4 [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocOnStack [2024-11-13 22:14:07,126 INFO L130 BoogieDeclarations]: Found specification of procedure write~intINTTYPE4 [2024-11-13 22:14:07,348 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:14:07,350 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:14:07,591 INFO L? ?]: Removed 24 outVars from TransFormulas that were not future-live. [2024-11-13 22:14:07,592 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:14:07,643 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:14:07,644 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:14:07,644 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:14:07 BoogieIcfgContainer [2024-11-13 22:14:07,644 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:14:07,645 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:14:07,645 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:14:07,655 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:14:07,655 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:14:07" (1/1) ... [2024-11-13 22:14:07,663 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:14:07,702 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:14:07,711 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 18 states to 16 states and 18 transitions. [2024-11-13 22:14:07,712 INFO L276 IsEmpty]: Start isEmpty. Operand 16 states and 18 transitions. [2024-11-13 22:14:07,716 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 22:14:07,716 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:14:07,717 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 22:14:07,717 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 22:14:07,722 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 22:14:07,724 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-13 22:14:08,093 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:14:08,094 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:14:08,249 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:14:08,465 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:14:08,465 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:14:08,597 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:14:08,623 ERROR L418 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Exception during sending of exit command (exit): Broken pipe [2024-11-13 22:14:08,627 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Ended with exit code 0 [2024-11-13 22:14:08,627 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2024-11-13 22:14:08,672 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:14:08 ImpRootNode [2024-11-13 22:14:08,672 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:14:08,673 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:14:08,673 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:14:08,674 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:14:08,675 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:14:07" (3/4) ... [2024-11-13 22:14:08,677 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:14:08,678 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:14:08,682 INFO L158 Benchmark]: Toolchain (without parser) took 3048.17ms. Allocated memory is still 117.4MB. Free memory was 92.5MB in the beginning and 71.8MB in the end (delta: 20.8MB). Peak memory consumption was 19.5MB. Max. memory is 16.1GB. [2024-11-13 22:14:08,682 INFO L158 Benchmark]: CDTParser took 0.44ms. Allocated memory is still 83.9MB. Free memory was 51.9MB in the beginning and 51.8MB in the end (delta: 107.9kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:14:08,682 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1338.76ms. Allocated memory is still 117.4MB. Free memory was 92.4MB in the beginning and 80.4MB in the end (delta: 12.0MB). Peak memory consumption was 57.9MB. Max. memory is 16.1GB. [2024-11-13 22:14:08,683 INFO L158 Benchmark]: Boogie Procedure Inliner took 49.87ms. Allocated memory is still 117.4MB. Free memory was 80.4MB in the beginning and 77.7MB in the end (delta: 2.7MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:14:08,683 INFO L158 Benchmark]: Boogie Preprocessor took 29.72ms. Allocated memory is still 117.4MB. Free memory was 77.7MB in the beginning and 75.7MB in the end (delta: 2.0MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:14:08,683 INFO L158 Benchmark]: RCFGBuilder took 590.82ms. Allocated memory is still 117.4MB. Free memory was 75.7MB in the beginning and 56.9MB in the end (delta: 18.8MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:14:08,684 INFO L158 Benchmark]: CodeCheck took 1027.05ms. Allocated memory is still 117.4MB. Free memory was 56.9MB in the beginning and 72.4MB in the end (delta: -15.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:14:08,684 INFO L158 Benchmark]: Witness Printer took 5.76ms. Allocated memory is still 117.4MB. Free memory was 72.4MB in the beginning and 71.8MB in the end (delta: 605.8kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:14:08,690 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: 1, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: , PredicateUnifierStatistics: 0 DeclaredPredicates, 0 GetRequests, 0 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 8 NumberOfCodeBlocks, 8 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1583]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1562, overapproximation of large string literal at line 1575, overapproximation of fgets at line 1560. 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); [L1575] 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) [L1575] 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] [L1576] CALL CWE191_Integer_Underflow__int_fgets_predec_67_bad() [L1555] int data; [L1556] CWE191_Integer_Underflow__int_fgets_predec_67_structType myStruct; [L1557] data = 0 [L1559] 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, myStruct={11:0}] [L1560] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1562] data = atoi(inputBuffer) [L1569] myStruct.structFirst = data [L1570] CALL CWE191_Integer_Underflow__int_fgets_predec_67b_badSink(myStruct) [L1581] EXPR myStruct.structFirst [L1581] int data = myStruct.structFirst; [L1583] --data VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.44ms. Allocated memory is still 83.9MB. Free memory was 51.9MB in the beginning and 51.8MB in the end (delta: 107.9kB). There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1338.76ms. Allocated memory is still 117.4MB. Free memory was 92.4MB in the beginning and 80.4MB in the end (delta: 12.0MB). Peak memory consumption was 57.9MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 49.87ms. Allocated memory is still 117.4MB. Free memory was 80.4MB in the beginning and 77.7MB in the end (delta: 2.7MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 29.72ms. Allocated memory is still 117.4MB. Free memory was 77.7MB in the beginning and 75.7MB in the end (delta: 2.0MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 590.82ms. Allocated memory is still 117.4MB. Free memory was 75.7MB in the beginning and 56.9MB in the end (delta: 18.8MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 1027.05ms. Allocated memory is still 117.4MB. Free memory was 56.9MB in the beginning and 72.4MB in the end (delta: -15.5MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 5.76ms. Allocated memory is still 117.4MB. Free memory was 72.4MB in the beginning and 71.8MB in the end (delta: 605.8kB). 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:14:08,725 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_dd5670ef-e641-485c-9d4f-058fd06ce155/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