./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_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_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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_1cb1352d-e76c-4212-833a-27fb60f7d64d/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 6eed82af7d554aeac57c848eced5bce04045d572bdc3208b06d88ec5a173a95c --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:03:22,930 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:03:22,990 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-13 22:03:22,995 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-13 22:03:22,996 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-13 22:03:23,019 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:03:23,020 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:03:23,020 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:03:23,021 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:03:23,021 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:03:23,021 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:03:23,022 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:03:23,023 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:03:23,023 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:03:23,023 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:03:23,023 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:03:23,023 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:03:23,023 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:03:23,023 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:03:23,024 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:03:23,024 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:03:23,024 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:03:23,024 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:03:23,024 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:03:23,024 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-13 22:03:23,024 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-13 22:03:23,024 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_1cb1352d-e76c-4212-833a-27fb60f7d64d/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 -> 6eed82af7d554aeac57c848eced5bce04045d572bdc3208b06d88ec5a173a95c [2024-11-13 22:03:23,334 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:03:23,347 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:03:23,350 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:03:23,352 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:03:23,353 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:03:23,355 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_bad.i Unable to find full path for "g++" [2024-11-13 22:03:25,470 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:03:25,946 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:03:25,947 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_bad.i [2024-11-13 22:03:25,989 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data/8cb4d8e59/c2e7030259514b25be428e661363f0c6/FLAG34834653a [2024-11-13 22:03:26,012 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data/8cb4d8e59/c2e7030259514b25be428e661363f0c6 [2024-11-13 22:03:26,016 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:03:26,018 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:03:26,020 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:03:26,021 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:03:26,025 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:03:26,026 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:03:26" (1/1) ... [2024-11-13 22:03:26,027 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@67c95001 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:26, skipping insertion in model container [2024-11-13 22:03:26,030 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:03:26" (1/1) ... [2024-11-13 22:03:26,093 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:03:27,178 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:03:27,189 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:03:27,332 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:03:27,466 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:03:27,466 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27 WrapperNode [2024-11-13 22:03:27,467 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:03:27,468 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:03:27,468 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:03:27,468 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:03:27,475 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:03:27" (1/1) ... [2024-11-13 22:03:27,511 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:03:27" (1/1) ... [2024-11-13 22:03:27,540 INFO L138 Inliner]: procedures = 499, calls = 28, calls flagged for inlining = 5, calls inlined = 5, statements flattened = 72 [2024-11-13 22:03:27,542 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:03:27,543 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:03:27,543 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:03:27,543 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:03:27,551 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,552 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,556 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,560 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,571 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,573 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,575 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,576 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,578 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:03:27,579 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:03:27,579 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:03:27,579 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:03:27,580 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:27" (1/1) ... [2024-11-13 22:03:27,586 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:03:27,599 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:03:27,615 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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:03:27,624 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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:03:27,648 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:03:27,648 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:03:27,648 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:03:27,648 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:03:27,649 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:03:27,649 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-13 22:03:27,809 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:03:27,811 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:03:27,965 INFO L? ?]: Removed 23 outVars from TransFormulas that were not future-live. [2024-11-13 22:03:27,965 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:03:28,017 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:03:28,018 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:03:28,018 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:03:28 BoogieIcfgContainer [2024-11-13 22:03:28,018 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:03:28,019 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:03:28,019 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:03:28,031 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:03:28,032 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:03:28" (1/1) ... [2024-11-13 22:03:28,041 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:03:28,086 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:03:28,097 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 21 states to 18 states and 21 transitions. [2024-11-13 22:03:28,097 INFO L276 IsEmpty]: Start isEmpty. Operand 18 states and 21 transitions. [2024-11-13 22:03:28,102 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-13 22:03:28,102 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:03:28,106 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 22:03:28,290 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 22:03:28,586 INFO L134 CoverageAnalysis]: Checked inductivity of 0 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 0 trivial. 0 not checked. [2024-11-13 22:03:28,705 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:03:28,705 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 26 states to 21 states and 26 transitions. [2024-11-13 22:03:28,705 INFO L276 IsEmpty]: Start isEmpty. Operand 21 states and 26 transitions. [2024-11-13 22:03:28,706 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 11 [2024-11-13 22:03:28,706 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:03:28,707 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-13 22:03:28,763 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:28,763 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:03:28,790 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:28,880 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:28,880 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:03:28,899 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:28,925 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 22:03:28,963 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:03:28 ImpRootNode [2024-11-13 22:03:28,963 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:03:28,964 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:03:28,964 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:03:28,964 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:03:28,965 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:03:28" (3/4) ... [2024-11-13 22:03:28,967 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:03:28,968 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:03:28,972 INFO L158 Benchmark]: Toolchain (without parser) took 2951.99ms. Allocated memory is still 167.8MB. Free memory was 127.3MB in the beginning and 94.5MB in the end (delta: 32.8MB). Peak memory consumption was 31.9MB. Max. memory is 16.1GB. [2024-11-13 22:03:28,972 INFO L158 Benchmark]: CDTParser took 0.62ms. Allocated memory is still 167.8MB. Free memory is still 105.6MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:28,973 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1446.93ms. Allocated memory is still 167.8MB. Free memory was 127.3MB in the beginning and 67.0MB in the end (delta: 60.3MB). Peak memory consumption was 50.3MB. Max. memory is 16.1GB. [2024-11-13 22:03:28,973 INFO L158 Benchmark]: Boogie Procedure Inliner took 74.53ms. Allocated memory is still 167.8MB. Free memory was 67.0MB in the beginning and 64.5MB in the end (delta: 2.5MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-13 22:03:28,973 INFO L158 Benchmark]: Boogie Preprocessor took 35.29ms. Allocated memory is still 167.8MB. Free memory was 64.2MB in the beginning and 63.2MB in the end (delta: 926.4kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:28,974 INFO L158 Benchmark]: RCFGBuilder took 439.79ms. Allocated memory is still 167.8MB. Free memory was 63.2MB in the beginning and 47.7MB in the end (delta: 15.5MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:03:28,974 INFO L158 Benchmark]: CodeCheck took 944.25ms. Allocated memory is still 167.8MB. Free memory was 47.7MB in the beginning and 94.6MB in the end (delta: -46.9MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:28,974 INFO L158 Benchmark]: Witness Printer took 4.31ms. Allocated memory is still 167.8MB. Free memory was 94.6MB in the beginning and 94.5MB in the end (delta: 50.7kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:28,978 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, 18 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.9s, OverallIterations: 2, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: 0 mSolverCounterUnknown, 16 SdHoareTripleChecker+Valid, 0.1s IncrementalHoareTripleChecker+Time, 0 mSdLazyCounter, 0 mSDsluCounter, 13 SdHoareTripleChecker+Invalid, 0.0s Time, 0 mProtectedAction, 0 SdHoareTripleChecker+Unchecked, 0 IncrementalHoareTripleChecker+Unchecked, 2 mSDsCounter, 6 IncrementalHoareTripleChecker+Valid, 0 mProtectedPredicate, 14 IncrementalHoareTripleChecker+Invalid, 20 SdHoareTripleChecker+Unknown, 0 mSolverCounterNotChecked, 6 mSolverCounterUnsat, 11 mSDtfsCounter, 14 mSolverCounterSat, 0.0s SdHoareTripleChecker+Time, 0 IncrementalHoareTripleChecker+Unknown, PredicateUnifierStatistics: 0 DeclaredPredicates, 66 GetRequests, 60 SyntacticMatches, 0 SemanticMatches, 6 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.1s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.3s InterpolantComputationTime, 19 NumberOfCodeBlocks, 19 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 8 ConstructedInterpolants, 0 QuantifiedInterpolants, 20 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: 1582]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1558, overapproximation of large string literal at line 1571, overapproximation of fgets at line 1556. 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] int CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal = 0; [L1571] CALL printLine("Calling bad()...") VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=0, 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) [L1571] RET printLine("Calling bad()...") VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=0, GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1572] CALL CWE190_Integer_Overflow__int_fgets_postinc_22_bad() [L1552] int data; [L1553] data = 0 [L1555] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=0, 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] [L1556] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1558] data = atoi(inputBuffer) [L1565] CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal = 1 [L1566] CALL CWE190_Integer_Overflow__int_fgets_postinc_22_badSink(data) [L1579] COND TRUE \read(CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal) [L1582] data++ VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=1, 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.62ms. Allocated memory is still 167.8MB. Free memory is still 105.6MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1446.93ms. Allocated memory is still 167.8MB. Free memory was 127.3MB in the beginning and 67.0MB in the end (delta: 60.3MB). Peak memory consumption was 50.3MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 74.53ms. Allocated memory is still 167.8MB. Free memory was 67.0MB in the beginning and 64.5MB in the end (delta: 2.5MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * Boogie Preprocessor took 35.29ms. Allocated memory is still 167.8MB. Free memory was 64.2MB in the beginning and 63.2MB in the end (delta: 926.4kB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 439.79ms. Allocated memory is still 167.8MB. Free memory was 63.2MB in the beginning and 47.7MB in the end (delta: 15.5MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 944.25ms. Allocated memory is still 167.8MB. Free memory was 47.7MB in the beginning and 94.6MB in the end (delta: -46.9MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 4.31ms. Allocated memory is still 167.8MB. Free memory was 94.6MB in the beginning and 94.5MB in the end (delta: 50.7kB). There was no memory consumed. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2024-11-13 22:03:29,001 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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_1cb1352d-e76c-4212-833a-27fb60f7d64d/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 6eed82af7d554aeac57c848eced5bce04045d572bdc3208b06d88ec5a173a95c --- Real Ultimate output --- This is Ultimate 0.3.0-dev-826ab2b [2024-11-13 22:03:31,748 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-13 22:03:31,835 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-13 22:03:31,883 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-13 22:03:31,884 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-13 22:03:31,884 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-13 22:03:31,885 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-13 22:03:31,885 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-13 22:03:31,885 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Allow undefined functions=false [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-13 22:03:31,886 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-13 22:03:31,886 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:03:31,887 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-13 22:03:31,887 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-13 22:03:31,887 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:03:31,887 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-13 22:03:31,887 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-13 22:03:31,887 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-13 22:03:31,887 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-13 22:03:31,887 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-13 22:03:31,888 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-13 22:03:31,888 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_1cb1352d-e76c-4212-833a-27fb60f7d64d/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 -> 6eed82af7d554aeac57c848eced5bce04045d572bdc3208b06d88ec5a173a95c [2024-11-13 22:03:32,222 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-13 22:03:32,231 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-13 22:03:32,233 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-13 22:03:32,234 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-13 22:03:32,235 INFO L274 PluginConnector]: CDTParser initialized [2024-11-13 22:03:32,236 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/../../sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_bad.i Unable to find full path for "g++" [2024-11-13 22:03:34,133 INFO L533 CDTParser]: Created temporary CDT project at NULL [2024-11-13 22:03:34,593 INFO L384 CDTParser]: Found 1 translation units. [2024-11-13 22:03:34,593 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/sv-benchmarks/c/Juliet_Test/CWE190_Integer_Overflow__int_fgets_postinc_22_bad.i [2024-11-13 22:03:34,619 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data/782f491ab/8bd08d822a88465680238b68751031c4/FLAG2c84f49a5 [2024-11-13 22:03:34,635 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/data/782f491ab/8bd08d822a88465680238b68751031c4 [2024-11-13 22:03:34,637 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-13 22:03:34,639 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-13 22:03:34,640 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-13 22:03:34,641 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-13 22:03:34,645 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-13 22:03:34,646 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:03:34" (1/1) ... [2024-11-13 22:03:34,647 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@1195c145 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:34, skipping insertion in model container [2024-11-13 22:03:34,647 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 13.11 10:03:34" (1/1) ... [2024-11-13 22:03:34,710 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-13 22:03:35,648 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:03:35,663 INFO L200 MainTranslator]: Completed pre-run [2024-11-13 22:03:35,822 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-13 22:03:35,978 INFO L204 MainTranslator]: Completed translation [2024-11-13 22:03:35,979 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35 WrapperNode [2024-11-13 22:03:35,979 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-13 22:03:35,980 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-13 22:03:35,980 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-13 22:03:35,980 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-13 22:03:35,987 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:03:35" (1/1) ... [2024-11-13 22:03:36,012 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:03:35" (1/1) ... [2024-11-13 22:03:36,030 INFO L138 Inliner]: procedures = 504, calls = 28, calls flagged for inlining = 5, calls inlined = 5, statements flattened = 71 [2024-11-13 22:03:36,031 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-13 22:03:36,032 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-13 22:03:36,032 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-13 22:03:36,032 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-13 22:03:36,039 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,040 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,043 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,043 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,050 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,052 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,055 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,056 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,059 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-13 22:03:36,060 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-13 22:03:36,060 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-13 22:03:36,060 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-13 22:03:36,061 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 13.11 10:03:35" (1/1) ... [2024-11-13 22:03:36,067 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-13 22:03:36,081 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/z3 [2024-11-13 22:03:36,095 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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:03:36,104 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/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:03:36,135 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-13 22:03:36,135 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-13 22:03:36,135 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-13 22:03:36,135 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-13 22:03:36,136 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-13 22:03:36,136 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-13 22:03:36,334 INFO L238 CfgBuilder]: Building ICFG [2024-11-13 22:03:36,337 INFO L264 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-13 22:03:36,546 INFO L? ?]: Removed 22 outVars from TransFormulas that were not future-live. [2024-11-13 22:03:36,546 INFO L287 CfgBuilder]: Performing block encoding [2024-11-13 22:03:36,609 INFO L311 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-13 22:03:36,609 INFO L316 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-13 22:03:36,611 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:03:36 BoogieIcfgContainer [2024-11-13 22:03:36,611 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-13 22:03:36,612 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-13 22:03:36,612 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-13 22:03:36,623 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-13 22:03:36,623 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:03:36" (1/1) ... [2024-11-13 22:03:36,631 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-13 22:03:36,681 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:03:36,691 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 21 states to 18 states and 21 transitions. [2024-11-13 22:03:36,692 INFO L276 IsEmpty]: Start isEmpty. Operand 18 states and 21 transitions. [2024-11-13 22:03:36,695 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-13 22:03:36,696 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:03:36,697 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 22:03:36,697 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 22:03:36,702 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 22:03:36,703 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-13 22:03:36,904 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 22:03:36,907 ERROR L567 CodeCheckObserver]: First Tracecheck threw exception Proofs are not supported [2024-11-13 22:03:37,020 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2024-11-13 22:03:37,023 INFO L255 TraceCheckSpWp]: Trace formula consists of 56 conjuncts, 1 conjuncts are in the unsatisfiable core [2024-11-13 22:03:37,026 INFO L278 TraceCheckSpWp]: Computing forward predicates... [2024-11-13 22:03:37,056 INFO L134 CoverageAnalysis]: Checked inductivity of 0 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 0 trivial. 0 not checked. [2024-11-13 22:03:37,060 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (2)] Ended with exit code 0 [2024-11-13 22:03:37,083 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-13 22:03:37,085 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 20 states to 17 states and 20 transitions. [2024-11-13 22:03:37,085 INFO L276 IsEmpty]: Start isEmpty. Operand 17 states and 20 transitions. [2024-11-13 22:03:37,086 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 11 [2024-11-13 22:03:37,087 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-13 22:03:37,087 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-13 22:03:37,088 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 [2024-11-13 22:03:37,090 INFO L229 MonitoredProcess]: Starting monitored process 3 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-13 22:03:37,094 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Waiting until timeout for monitored process [2024-11-13 22:03:37,275 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:37,275 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:03:37,337 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:37,454 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:37,454 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-13 22:03:37,484 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-13 22:03:37,513 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/cvc4 --incremental --print-success --lang smt (3)] Ended with exit code 0 [2024-11-13 22:03:37,514 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 2 iterations. [2024-11-13 22:03:37,550 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 13.11 10:03:37 ImpRootNode [2024-11-13 22:03:37,550 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-13 22:03:37,551 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-13 22:03:37,551 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-13 22:03:37,552 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-13 22:03:37,553 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 13.11 10:03:36" (3/4) ... [2024-11-13 22:03:37,555 INFO L145 WitnessPrinter]: No result that supports witness generation found [2024-11-13 22:03:37,556 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-13 22:03:37,557 INFO L158 Benchmark]: Toolchain (without parser) took 2918.17ms. Allocated memory is still 117.4MB. Free memory was 89.3MB in the beginning and 65.7MB in the end (delta: 23.6MB). Peak memory consumption was 24.4MB. Max. memory is 16.1GB. [2024-11-13 22:03:37,559 INFO L158 Benchmark]: CDTParser took 0.37ms. Allocated memory is still 117.4MB. Free memory is still 84.1MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:37,559 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1338.95ms. Allocated memory is still 117.4MB. Free memory was 89.1MB in the beginning and 68.2MB in the end (delta: 20.9MB). Peak memory consumption was 58.3MB. Max. memory is 16.1GB. [2024-11-13 22:03:37,560 INFO L158 Benchmark]: Boogie Procedure Inliner took 51.15ms. Allocated memory is still 117.4MB. Free memory was 67.7MB in the beginning and 65.1MB in the end (delta: 2.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:37,560 INFO L158 Benchmark]: Boogie Preprocessor took 27.85ms. Allocated memory is still 117.4MB. Free memory was 65.1MB in the beginning and 63.6MB in the end (delta: 1.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:37,560 INFO L158 Benchmark]: RCFGBuilder took 550.87ms. Allocated memory is still 117.4MB. Free memory was 63.6MB in the beginning and 46.2MB in the end (delta: 17.4MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-13 22:03:37,561 INFO L158 Benchmark]: CodeCheck took 938.97ms. Allocated memory is still 117.4MB. Free memory was 46.2MB in the beginning and 65.7MB in the end (delta: -19.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:37,561 INFO L158 Benchmark]: Witness Printer took 5.21ms. Allocated memory is still 117.4MB. Free memory was 65.7MB in the beginning and 65.7MB in the end (delta: 35.5kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-13 22:03:37,569 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, 18 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, 25 SdHoareTripleChecker+Valid, 0.0s IncrementalHoareTripleChecker+Time, 0 mSdLazyCounter, 0 mSDsluCounter, 14 SdHoareTripleChecker+Invalid, 0.0s Time, 0 mProtectedAction, 0 SdHoareTripleChecker+Unchecked, 0 IncrementalHoareTripleChecker+Unchecked, 0 mSDsCounter, 0 IncrementalHoareTripleChecker+Valid, 0 mProtectedPredicate, 2 IncrementalHoareTripleChecker+Invalid, 2 SdHoareTripleChecker+Unknown, 0 mSolverCounterNotChecked, 0 mSolverCounterUnsat, 14 mSDtfsCounter, 2 mSolverCounterSat, 0.0s SdHoareTripleChecker+Time, 0 IncrementalHoareTripleChecker+Unknown, PredicateUnifierStatistics: 0 DeclaredPredicates, 66 GetRequests, 66 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, 19 NumberOfCodeBlocks, 19 NumberOfCodeBlocksAsserted, 2 NumberOfCheckSat, 8 ConstructedInterpolants, 0 QuantifiedInterpolants, 8 SizeOfPredicates, 0 NumberOfNonLiveVariables, 56 ConjunctsInSsa, 1 ConjunctsInUnsatCore, 1 InterpolantComputations, 1 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1582]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1558, overapproximation of large string literal at line 1571, overapproximation of fgets at line 1556. 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] int CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal = 0; [L1571] CALL printLine("Calling bad()...") VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=0, 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) [L1571] RET printLine("Calling bad()...") VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=0, GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1572] CALL CWE190_Integer_Overflow__int_fgets_postinc_22_bad() [L1552] int data; [L1553] data = 0 [L1555] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=0, 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] [L1556] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1558] data = atoi(inputBuffer) [L1565] CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal = 1 [L1566] CALL CWE190_Integer_Overflow__int_fgets_postinc_22_badSink(data) [L1579] COND TRUE \read(CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal) [L1582] data++ VAL [CWE190_Integer_Overflow__int_fgets_postinc_22_badGlobal=1, 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.37ms. Allocated memory is still 117.4MB. Free memory is still 84.1MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1338.95ms. Allocated memory is still 117.4MB. Free memory was 89.1MB in the beginning and 68.2MB in the end (delta: 20.9MB). Peak memory consumption was 58.3MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 51.15ms. Allocated memory is still 117.4MB. Free memory was 67.7MB in the beginning and 65.1MB in the end (delta: 2.5MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 27.85ms. Allocated memory is still 117.4MB. Free memory was 65.1MB in the beginning and 63.6MB in the end (delta: 1.5MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 550.87ms. Allocated memory is still 117.4MB. Free memory was 63.6MB in the beginning and 46.2MB in the end (delta: 17.4MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 938.97ms. Allocated memory is still 117.4MB. Free memory was 46.2MB in the beginning and 65.7MB in the end (delta: -19.5MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 5.21ms. Allocated memory is still 117.4MB. Free memory was 65.7MB in the beginning and 65.7MB in the end (delta: 35.5kB). 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:03:37,604 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_1cb1352d-e76c-4212-833a-27fb60f7d64d/bin/ukojak-verify-EEHR8qb7sm/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Forceful destruction successful, exit code 0 Received shutdown request... --- End real Ultimate output --- Execution finished normally Writing output log to file Ultimate.log Result: UNKNOWN: Overapproximated counterexample