./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_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_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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_f95103de-52bd-440c-ab38-acfafbbb7268/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 b8142922a8001a921becd6027012df2e90a59571fee7e1d2176d44a6fe229b2b --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 21:11:29,623 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 21:11:29,747 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-13 21:11:29,754 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-13 21:11:29,755 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-13 21:11:29,805 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 21:11:29,806 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 21:11:29,806 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 21:11:29,807 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 21:11:29,808 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 21:11:29,809 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 21:11:29,810 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 21:11:29,810 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-13 21:11:29,810 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 21:11:29,810 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 21:11:29,811 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 21:11:29,811 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 21:11:29,811 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 21:11:29,812 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 21:11:29,812 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 21:11:29,812 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 21:11:29,812 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 21:11:29,812 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 21:11:29,812 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 21:11:29,813 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 21:11:29,813 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 21:11:29,813 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:11:29,813 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 21:11:29,813 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 21:11:29,814 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 21:11:29,814 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-13 21:11:29,815 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-13 21:11:29,815 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_f95103de-52bd-440c-ab38-acfafbbb7268/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 -> b8142922a8001a921becd6027012df2e90a59571fee7e1d2176d44a6fe229b2b [2024-11-13 21:11:30,192 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 21:11:30,207 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 21:11:30,211 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 21:11:30,214 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 21:11:30,215 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 21:11:30,216 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_bad.i Unable to find full path for "g++" [2024-11-13 21:11:32,349 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 21:11:32,855 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 21:11:32,856 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_bad.i [2024-11-13 21:11:32,907 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data/36a1961b5/740997b3a341421c8ad55325f9308bfe/FLAG195bf0c94 [2024-11-13 21:11:32,938 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data/36a1961b5/740997b3a341421c8ad55325f9308bfe [2024-11-13 21:11:32,941 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 21:11:32,943 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 21:11:32,946 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 21:11:32,947 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 21:11:32,953 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 21:11:32,954 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:11:32" (1/1) ... [2024-11-13 21:11:32,956 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@264f3892 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:32, skipping insertion in model container [2024-11-13 21:11:32,956 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:11:32" (1/1) ... [2024-11-13 21:11:33,019 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 21:11:34,339 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:11:34,351 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 21:11:34,502 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:11:34,689 INFO L204 MainTranslator]: Completed translation [2024-11-13 21:11:34,689 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34 WrapperNode [2024-11-13 21:11:34,690 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 21:11:34,691 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 21:11:34,691 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 21:11:34,691 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 21:11:34,698 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:11:34" (1/1) ... [2024-11-13 21:11:34,730 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:11:34" (1/1) ... [2024-11-13 21:11:34,769 INFO L138 Inliner]: procedures = 498, calls = 27, calls flagged for inlining = 4, calls inlined = 4, statements flattened = 71 [2024-11-13 21:11:34,770 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 21:11:34,771 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 21:11:34,771 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 21:11:34,771 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 21:11:34,780 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,780 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,786 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,787 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,797 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,807 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,808 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,809 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,816 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 21:11:34,817 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 21:11:34,817 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 21:11:34,817 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 21:11:34,818 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:34" (1/1) ... [2024-11-13 21:11:34,832 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:11:34,861 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 21:11:34,881 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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:11:34,889 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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:11:34,921 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 21:11:34,921 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 21:11:34,921 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 21:11:34,921 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 21:11:34,922 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 21:11:34,922 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-13 21:11:35,074 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 21:11:35,077 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 21:11:35,253 INFO L? ?]: Removed 20 outVars from TransFormulas that were not future-live. [2024-11-13 21:11:35,253 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 21:11:35,316 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 21:11:35,317 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 21:11:35,317 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:11:35 BoogieIcfgContainer [2024-11-13 21:11:35,317 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 21:11:35,318 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 21:11:35,318 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 21:11:35,334 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 21:11:35,334 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:11:35" (1/1) ... [2024-11-13 21:11:35,344 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 21:11:35,395 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:11:35,406 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 23 states to 19 states and 23 transitions. [2024-11-13 21:11:35,407 INFO L276 IsEmpty]: Start isEmpty. Operand 19 states and 23 transitions. [2024-11-13 21:11:35,412 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 21:11:35,412 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:11:35,413 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 21:11:35,533 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 21:11:35,665 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:11:35,734 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:11:35,738 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 26 states to 19 states and 22 transitions. [2024-11-13 21:11:35,738 INFO L276 IsEmpty]: Start isEmpty. Operand 19 states and 22 transitions. [2024-11-13 21:11:35,739 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 11 [2024-11-13 21:11:35,739 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:11:35,739 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 21:11:35,826 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:35,828 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:11:35,861 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:35,944 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:35,944 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:11:35,969 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:36,002 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 21:11:36,048 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 09:11:36 ImpRootNode [2024-11-13 21:11:36,049 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 21:11:36,050 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 21:11:36,050 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 21:11:36,051 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 21:11:36,052 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:11:35" (3/4) ... [2024-11-13 21:11:36,055 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 21:11:36,056 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 21:11:36,061 INFO L158 Benchmark]: Toolchain (without parser) took 3114.25ms. Allocated memory is still 117.4MB. Free memory was 90.8MB in the beginning and 38.5MB in the end (delta: 52.3MB). Peak memory consumption was 49.6MB. Max. memory is 16.1GB. [2024-11-13 21:11:36,061 INFO L158 Benchmark]: CDTParser took 0.34ms. Allocated memory is still 167.8MB. Free memory is still 103.5MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:36,087 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1743.92ms. Allocated memory is still 117.4MB. Free memory was 90.5MB in the beginning and 83.2MB in the end (delta: 7.2MB). Peak memory consumption was 66.4MB. Max. memory is 16.1GB. [2024-11-13 21:11:36,087 INFO L158 Benchmark]: Boogie Procedure Inliner took 79.14ms. Allocated memory is still 117.4MB. Free memory was 83.2MB in the beginning and 80.4MB in the end (delta: 2.8MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:36,088 INFO L158 Benchmark]: Boogie Preprocessor took 45.59ms. Allocated memory is still 117.4MB. Free memory was 80.4MB in the beginning and 79.2MB in the end (delta: 1.2MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-13 21:11:36,088 INFO L158 Benchmark]: RCFGBuilder took 500.49ms. Allocated memory is still 117.4MB. Free memory was 79.2MB in the beginning and 64.9MB in the end (delta: 14.3MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-13 21:11:36,089 INFO L158 Benchmark]: CodeCheck took 730.92ms. Allocated memory is still 117.4MB. Free memory was 64.9MB in the beginning and 38.5MB in the end (delta: 26.4MB). Peak memory consumption was 25.2MB. Max. memory is 16.1GB. [2024-11-13 21:11:36,089 INFO L158 Benchmark]: Witness Printer took 7.02ms. Allocated memory is still 117.4MB. Free memory is still 38.5MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:36,093 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, 19 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.7s, OverallIterations: 2, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: 0 mSolverCounterUnknown, 21 SdHoareTripleChecker+Valid, 0.0s IncrementalHoareTripleChecker+Time, 0 mSdLazyCounter, 2 mSDsluCounter, 17 SdHoareTripleChecker+Invalid, 0.0s Time, 0 mProtectedAction, 0 SdHoareTripleChecker+Unchecked, 0 IncrementalHoareTripleChecker+Unchecked, 2 mSDsCounter, 2 IncrementalHoareTripleChecker+Valid, 0 mProtectedPredicate, 7 IncrementalHoareTripleChecker+Invalid, 9 SdHoareTripleChecker+Unknown, 0 mSolverCounterNotChecked, 2 mSolverCounterUnsat, 15 mSDtfsCounter, 7 mSolverCounterSat, 0.0s SdHoareTripleChecker+Time, 0 IncrementalHoareTripleChecker+Unknown, PredicateUnifierStatistics: 0 DeclaredPredicates, 64 GetRequests, 62 SyntacticMatches, 0 SemanticMatches, 2 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.1s InterpolantComputationTime, 18 NumberOfCodeBlocks, 18 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 7 ConstructedInterpolants, 0 QuantifiedInterpolants, 13 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: 1571]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1560, overapproximation of large string literal at line 1580, overapproximation of fgets at line 1558. 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); [L1548] static int staticTrue = 1; [L1549] static int staticFalse = 0; [L1580] 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, staticFalse=0, staticTrue=1] [L1414] COND TRUE line != ((void *)0) [L1580] 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, staticFalse=0, staticTrue=1] [L1581] CALL CWE191_Integer_Underflow__int_fgets_predec_05_bad() [L1552] int data; [L1553] data = 0 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, staticFalse=0, staticTrue=1] [L1554] COND TRUE \read(staticTrue) [L1557] 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, staticFalse=0, staticTrue=1] [L1558] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1560] data = atoi(inputBuffer) [L1568] COND TRUE \read(staticTrue) VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=-2147483648, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1, staticFalse=0, staticTrue=1] [L1571] --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, staticFalse=0, staticTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.34ms. Allocated memory is still 167.8MB. Free memory is still 103.5MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1743.92ms. Allocated memory is still 117.4MB. Free memory was 90.5MB in the beginning and 83.2MB in the end (delta: 7.2MB). Peak memory consumption was 66.4MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 79.14ms. Allocated memory is still 117.4MB. Free memory was 83.2MB in the beginning and 80.4MB in the end (delta: 2.8MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 45.59ms. Allocated memory is still 117.4MB. Free memory was 80.4MB in the beginning and 79.2MB in the end (delta: 1.2MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * RCFGBuilder took 500.49ms. Allocated memory is still 117.4MB. Free memory was 79.2MB in the beginning and 64.9MB in the end (delta: 14.3MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * CodeCheck took 730.92ms. Allocated memory is still 117.4MB. Free memory was 64.9MB in the beginning and 38.5MB in the end (delta: 26.4MB). Peak memory consumption was 25.2MB. Max. memory is 16.1GB. * Witness Printer took 7.02ms. Allocated memory is still 117.4MB. Free memory is still 38.5MB. There was no memory consumed. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2024-11-13 21:11:36,134 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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_f95103de-52bd-440c-ab38-acfafbbb7268/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 b8142922a8001a921becd6027012df2e90a59571fee7e1d2176d44a6fe229b2b --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 21:11:39,307 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 21:11:39,453 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-13 21:11:39,501 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 21:11:39,502 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 21:11:39,503 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 21:11:39,503 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 21:11:39,503 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 21:11:39,505 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 21:11:39,505 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 21:11:39,506 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 21:11:39,506 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 21:11:39,507 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 21:11:39,507 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 21:11:39,507 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-13 21:11:39,507 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-13 21:11:39,507 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 21:11:39,508 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 21:11:39,508 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-13 21:11:39,509 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 21:11:39,509 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:11:39,509 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 21:11:39,509 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 21:11:39,509 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 21:11:39,509 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-13 21:11:39,510 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 21:11:39,530 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-13 21:11:39,530 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_f95103de-52bd-440c-ab38-acfafbbb7268/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 -> b8142922a8001a921becd6027012df2e90a59571fee7e1d2176d44a6fe229b2b [2024-11-13 21:11:39,939 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 21:11:39,949 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 21:11:39,952 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 21:11:39,954 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 21:11:39,954 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 21:11:39,956 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_bad.i Unable to find full path for "g++" [2024-11-13 21:11:42,118 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 21:11:42,715 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 21:11:42,716 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_predec_05_bad.i [2024-11-13 21:11:42,754 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data/d85770d40/fe46b99f1fe446089e09b3b0c3eebcd4/FLAG7b71a3fdc [2024-11-13 21:11:42,782 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/data/d85770d40/fe46b99f1fe446089e09b3b0c3eebcd4 [2024-11-13 21:11:42,785 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 21:11:42,786 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 21:11:42,790 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 21:11:42,790 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 21:11:42,797 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 21:11:42,798 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:11:42" (1/1) ... [2024-11-13 21:11:42,801 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@2c86b081 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:42, skipping insertion in model container [2024-11-13 21:11:42,801 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 09:11:42" (1/1) ... [2024-11-13 21:11:42,870 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 21:11:44,214 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:11:44,235 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 21:11:44,376 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 21:11:44,573 INFO L204 MainTranslator]: Completed translation [2024-11-13 21:11:44,573 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44 WrapperNode [2024-11-13 21:11:44,573 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 21:11:44,574 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 21:11:44,575 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 21:11:44,575 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 21:11:44,582 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:11:44" (1/1) ... [2024-11-13 21:11:44,607 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:11:44" (1/1) ... [2024-11-13 21:11:44,639 INFO L138 Inliner]: procedures = 503, calls = 27, calls flagged for inlining = 4, calls inlined = 4, statements flattened = 70 [2024-11-13 21:11:44,640 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 21:11:44,640 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 21:11:44,640 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 21:11:44,641 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 21:11:44,649 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,650 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,654 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,654 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,670 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,675 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,681 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,682 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,686 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 21:11:44,687 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 21:11:44,687 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 21:11:44,687 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 21:11:44,688 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 09:11:44" (1/1) ... [2024-11-13 21:11:44,694 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 21:11:44,708 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 21:11:44,719 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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:11:44,722 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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:11:44,744 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 21:11:44,744 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 21:11:44,744 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-13 21:11:44,744 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 21:11:44,744 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 21:11:44,744 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 21:11:44,924 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 21:11:44,927 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 21:11:45,144 INFO L? ?]: Removed 19 outVars from TransFormulas that were not future-live. [2024-11-13 21:11:45,144 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 21:11:45,222 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 21:11:45,222 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 21:11:45,222 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:11:45 BoogieIcfgContainer [2024-11-13 21:11:45,223 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 21:11:45,223 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 21:11:45,224 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 21:11:45,235 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 21:11:45,235 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:11:45" (1/1) ... [2024-11-13 21:11:45,244 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 21:11:45,298 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:11:45,311 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 23 states to 19 states and 23 transitions. [2024-11-13 21:11:45,311 INFO L276 IsEmpty]: Start isEmpty. Operand 19 states and 23 transitions. [2024-11-13 21:11:45,317 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2024-11-13 21:11:45,318 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:11:45,319 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 21:11:45,319 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 21:11:45,323 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 21:11:45,326 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-13 21:11:45,498 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 21:11:45,500 ERROR L567 CodeCheckObserver]: First Tracecheck threw exception Proofs are not supported [2024-11-13 21:11:45,544 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 21:11:45,548 INFO L255 TraceCheckSpWp]: Trace formula consists of 37 conjuncts, 2 conjuncts are in the unsatisfiable core [2024-11-13 21:11:45,554 INFO L278 TraceCheckSpWp]: Computing forward predicates... [2024-11-13 21:11:45,604 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:11:45,608 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Forceful destruction successful, exit code 0 [2024-11-13 21:11:45,662 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 21:11:45,664 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 24 states to 20 states and 24 transitions. [2024-11-13 21:11:45,664 INFO L276 IsEmpty]: Start isEmpty. Operand 20 states and 24 transitions. [2024-11-13 21:11:45,665 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 11 [2024-11-13 21:11:45,665 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 21:11:45,666 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 21:11:45,666 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 21:11:45,669 INFO L229 MonitoredProcess]: Starting monitored process 3 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 21:11:45,672 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Waiting until timeout for monitored process [2024-11-13 21:11:45,852 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:45,853 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:11:45,934 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:46,062 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:46,062 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 21:11:46,088 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 21:11:46,117 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Ended with exit code 0 [2024-11-13 21:11:46,118 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 21:11:46,163 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 09:11:46 ImpRootNode [2024-11-13 21:11:46,164 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 21:11:46,164 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 21:11:46,164 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 21:11:46,165 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 21:11:46,166 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 09:11:45" (3/4) ... [2024-11-13 21:11:46,168 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 21:11:46,169 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 21:11:46,171 INFO L158 Benchmark]: Toolchain (without parser) took 3383.65ms. Allocated memory is still 117.4MB. Free memory was 89.6MB in the beginning and 54.5MB in the end (delta: 35.1MB). Peak memory consumption was 39.3MB. Max. memory is 16.1GB. [2024-11-13 21:11:46,173 INFO L158 Benchmark]: CDTParser took 0.40ms. Allocated memory is still 117.4MB. Free memory was 85.0MB in the beginning and 84.9MB in the end (delta: 51.3kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:46,174 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1783.95ms. Allocated memory is still 117.4MB. Free memory was 89.4MB in the beginning and 58.9MB in the end (delta: 30.5MB). Peak memory consumption was 49.9MB. Max. memory is 16.1GB. [2024-11-13 21:11:46,174 INFO L158 Benchmark]: Boogie Procedure Inliner took 65.22ms. Allocated memory is still 117.4MB. Free memory was 58.9MB in the beginning and 56.0MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:46,175 INFO L158 Benchmark]: Boogie Preprocessor took 45.61ms. Allocated memory is still 117.4MB. Free memory was 56.0MB in the beginning and 54.4MB in the end (delta: 1.6MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:46,175 INFO L158 Benchmark]: RCFGBuilder took 536.12ms. Allocated memory is still 117.4MB. Free memory was 54.4MB in the beginning and 81.4MB in the end (delta: -27.1MB). Peak memory consumption was 21.2MB. Max. memory is 16.1GB. [2024-11-13 21:11:46,175 INFO L158 Benchmark]: CodeCheck took 940.19ms. Allocated memory is still 117.4MB. Free memory was 81.4MB in the beginning and 54.5MB in the end (delta: 26.9MB). Peak memory consumption was 33.6MB. Max. memory is 16.1GB. [2024-11-13 21:11:46,176 INFO L158 Benchmark]: Witness Printer took 4.66ms. Allocated memory is still 117.4MB. Free memory is still 54.5MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 21:11:46,180 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, 19 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.9s, OverallIterations: 2, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: 0 mSolverCounterUnknown, 19 SdHoareTripleChecker+Valid, 0.0s IncrementalHoareTripleChecker+Time, 0 mSdLazyCounter, 0 mSDsluCounter, 13 SdHoareTripleChecker+Invalid, 0.0s Time, 0 mProtectedAction, 0 SdHoareTripleChecker+Unchecked, 0 IncrementalHoareTripleChecker+Unchecked, 2 mSDsCounter, 3 IncrementalHoareTripleChecker+Valid, 0 mProtectedPredicate, 5 IncrementalHoareTripleChecker+Invalid, 8 SdHoareTripleChecker+Unknown, 0 mSolverCounterNotChecked, 3 mSolverCounterUnsat, 11 mSDtfsCounter, 5 mSolverCounterSat, 0.0s SdHoareTripleChecker+Time, 0 IncrementalHoareTripleChecker+Unknown, PredicateUnifierStatistics: 0 DeclaredPredicates, 60 GetRequests, 58 SyntacticMatches, 0 SemanticMatches, 2 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.0s SatisfiabilityAnalysisTime, 0.1s InterpolantComputationTime, 18 NumberOfCodeBlocks, 18 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 7 ConstructedInterpolants, 0 QuantifiedInterpolants, 9 SizeOfPredicates, 0 NumberOfNonLiveVariables, 37 ConjunctsInSsa, 2 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: 1571]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1560, overapproximation of large string literal at line 1580, overapproximation of fgets at line 1558. 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); [L1548] static int staticTrue = 1; [L1549] static int staticFalse = 0; [L1580] 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, staticFalse=0, staticTrue=1] [L1414] COND TRUE line != ((void *)0) [L1580] 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, staticFalse=0, staticTrue=1] [L1581] CALL CWE191_Integer_Underflow__int_fgets_predec_05_bad() [L1552] int data; [L1553] data = 0 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, staticFalse=0, staticTrue=1] [L1554] COND TRUE \read(staticTrue) [L1557] 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, staticFalse=0, staticTrue=1] [L1558] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1560] data = atoi(inputBuffer) [L1568] COND TRUE \read(staticTrue) VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=-2147483648, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1, staticFalse=0, staticTrue=1] [L1571] --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, staticFalse=0, staticTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.40ms. Allocated memory is still 117.4MB. Free memory was 85.0MB in the beginning and 84.9MB in the end (delta: 51.3kB). There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1783.95ms. Allocated memory is still 117.4MB. Free memory was 89.4MB in the beginning and 58.9MB in the end (delta: 30.5MB). Peak memory consumption was 49.9MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 65.22ms. Allocated memory is still 117.4MB. Free memory was 58.9MB in the beginning and 56.0MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 45.61ms. Allocated memory is still 117.4MB. Free memory was 56.0MB in the beginning and 54.4MB in the end (delta: 1.6MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 536.12ms. Allocated memory is still 117.4MB. Free memory was 54.4MB in the beginning and 81.4MB in the end (delta: -27.1MB). Peak memory consumption was 21.2MB. Max. memory is 16.1GB. * CodeCheck took 940.19ms. Allocated memory is still 117.4MB. Free memory was 81.4MB in the beginning and 54.5MB in the end (delta: 26.9MB). Peak memory consumption was 33.6MB. Max. memory is 16.1GB. * Witness Printer took 4.66ms. Allocated memory is still 117.4MB. Free memory is still 54.5MB. There was no memory consumed. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2024-11-13 21:11:46,213 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_f95103de-52bd-440c-ab38-acfafbbb7268/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