./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i --full-output --architecture 64bit -------------------------------------------------------------------------------- Checking for overflows Using default analysis Version d790fecc Calling Ultimate with: /usr/bin/java -Dosgi.configuration.area=/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar -data @noDefault -ultimatedata /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/config/svcomp-Overflow-64bit-Kojak_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3 --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 7565a7437b9d20454e209c76ad0b654b2f87c4541485d2a2bf11964b00adcda2 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-d790fec [2024-11-25 03:14:11,316 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-25 03:14:11,410 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/config/svcomp-Overflow-64bit-Kojak_Default.epf [2024-11-25 03:14:11,420 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2024-11-25 03:14:11,420 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2024-11-25 03:14:11,455 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-25 03:14:11,458 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-25 03:14:11,458 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-25 03:14:11,459 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-25 03:14:11,459 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-25 03:14:11,459 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-25 03:14:11,459 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-25 03:14:11,460 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2024-11-25 03:14:11,460 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-25 03:14:11,460 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-25 03:14:11,460 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-25 03:14:11,461 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-25 03:14:11,462 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-25 03:14:11,462 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-25 03:14:11,462 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-25 03:14:11,462 INFO L153 SettingsManager]: * Behaviour of calls to undefined functions=OVERAPPROXIMATE_BEHAVIOUR [2024-11-25 03:14:11,462 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-25 03:14:11,462 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-25 03:14:11,462 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-25 03:14:11,463 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-25 03:14:11,463 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-25 03:14:11,463 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-25 03:14:11,463 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-25 03:14:11,463 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-25 03:14:11,463 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-25 03:14:11,463 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2024-11-25 03:14:11,464 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2024-11-25 03:14:11,464 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_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3 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 -> 7565a7437b9d20454e209c76ad0b654b2f87c4541485d2a2bf11964b00adcda2 [2024-11-25 03:14:11,765 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-25 03:14:11,777 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-25 03:14:11,780 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-25 03:14:11,782 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-25 03:14:11,782 INFO L274 PluginConnector]: CDTParser initialized [2024-11-25 03:14:11,783 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i [2024-11-25 03:14:14,812 INFO L533 CDTParser]: Created temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/1026678c4/0d1309f59a7e4c06a0673f22b8bb2a0c/FLAGa9485277e [2024-11-25 03:14:15,281 INFO L384 CDTParser]: Found 1 translation units. [2024-11-25 03:14:15,282 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i [2024-11-25 03:14:15,313 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/1026678c4/0d1309f59a7e4c06a0673f22b8bb2a0c/FLAGa9485277e [2024-11-25 03:14:15,332 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/1026678c4/0d1309f59a7e4c06a0673f22b8bb2a0c [2024-11-25 03:14:15,335 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-25 03:14:15,336 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-25 03:14:15,342 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-25 03:14:15,342 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-25 03:14:15,347 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-25 03:14:15,348 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 25.11 03:14:15" (1/1) ... [2024-11-25 03:14:15,349 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@4bc3d9bd and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:15, skipping insertion in model container [2024-11-25 03:14:15,350 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 25.11 03:14:15" (1/1) ... [2024-11-25 03:14:15,407 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-25 03:14:16,330 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-25 03:14:16,340 INFO L200 MainTranslator]: Completed pre-run [2024-11-25 03:14:16,449 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-25 03:14:16,566 INFO L204 MainTranslator]: Completed translation [2024-11-25 03:14:16,567 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16 WrapperNode [2024-11-25 03:14:16,567 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-25 03:14:16,567 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-25 03:14:16,567 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-25 03:14:16,568 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-25 03:14:16,574 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,593 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,614 INFO L138 Inliner]: procedures = 499, calls = 33, calls flagged for inlining = 5, calls inlined = 5, statements flattened = 69 [2024-11-25 03:14:16,614 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-25 03:14:16,615 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-25 03:14:16,615 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-25 03:14:16,615 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-25 03:14:16,622 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,623 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,625 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,625 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,631 INFO L184 PluginConnector]: Executing the observer ReplaceArrayAssignments from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,632 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,634 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,635 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,636 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,638 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-25 03:14:16,639 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-25 03:14:16,639 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-25 03:14:16,639 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-25 03:14:16,640 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:16" (1/1) ... [2024-11-25 03:14:16,654 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-25 03:14:16,684 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/z3 [2024-11-25 03:14:16,703 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2024-11-25 03:14:16,706 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2024-11-25 03:14:16,732 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-25 03:14:16,732 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-25 03:14:16,732 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2024-11-25 03:14:16,733 INFO L130 BoogieDeclarations]: Found specification of procedure read~int [2024-11-25 03:14:16,733 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-25 03:14:16,733 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-25 03:14:16,733 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-25 03:14:16,733 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocOnStack [2024-11-25 03:14:16,733 INFO L130 BoogieDeclarations]: Found specification of procedure write~int [2024-11-25 03:14:16,733 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2024-11-25 03:14:16,903 INFO L234 CfgBuilder]: Building ICFG [2024-11-25 03:14:16,905 INFO L260 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-25 03:14:17,015 INFO L? ?]: Removed 28 outVars from TransFormulas that were not future-live. [2024-11-25 03:14:17,015 INFO L283 CfgBuilder]: Performing block encoding [2024-11-25 03:14:17,067 INFO L307 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-25 03:14:17,067 INFO L312 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-25 03:14:17,067 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 25.11 03:14:17 BoogieIcfgContainer [2024-11-25 03:14:17,067 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-25 03:14:17,068 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-25 03:14:17,068 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-25 03:14:17,080 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-25 03:14:17,080 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 25.11 03:14:17" (1/1) ... [2024-11-25 03:14:17,087 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-25 03:14:17,131 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-25 03:14:17,140 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 20 states to 17 states and 20 transitions. [2024-11-25 03:14:17,141 INFO L276 IsEmpty]: Start isEmpty. Operand 17 states and 20 transitions. [2024-11-25 03:14:17,145 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-25 03:14:17,145 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-25 03:14:17,146 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2024-11-25 03:14:17,339 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:17,340 INFO L357 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-25 03:14:17,388 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:17,546 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:17,547 INFO L357 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-25 03:14:17,574 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:17,595 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2024-11-25 03:14:17,639 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 25.11 03:14:17 ImpRootNode [2024-11-25 03:14:17,639 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-25 03:14:17,640 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-25 03:14:17,640 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-25 03:14:17,640 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-25 03:14:17,640 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 25.11 03:14:17" (3/4) ... [2024-11-25 03:14:17,643 INFO L149 WitnessPrinter]: No result that supports witness generation found [2024-11-25 03:14:17,644 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-25 03:14:17,644 INFO L158 Benchmark]: Toolchain (without parser) took 2308.21ms. Allocated memory is still 142.6MB. Free memory was 114.5MB in the beginning and 82.3MB in the end (delta: 32.2MB). Peak memory consumption was 30.8MB. Max. memory is 16.1GB. [2024-11-25 03:14:17,648 INFO L158 Benchmark]: CDTParser took 0.57ms. Allocated memory is still 117.4MB. Free memory is still 72.1MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:17,649 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1225.04ms. Allocated memory is still 142.6MB. Free memory was 114.3MB in the beginning and 55.8MB in the end (delta: 58.5MB). Peak memory consumption was 58.7MB. Max. memory is 16.1GB. [2024-11-25 03:14:17,650 INFO L158 Benchmark]: Boogie Procedure Inliner took 46.70ms. Allocated memory is still 142.6MB. Free memory was 55.8MB in the beginning and 53.2MB in the end (delta: 2.6MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. [2024-11-25 03:14:17,650 INFO L158 Benchmark]: Boogie Preprocessor took 23.67ms. Allocated memory is still 142.6MB. Free memory was 53.2MB in the beginning and 52.0MB in the end (delta: 1.2MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:17,651 INFO L158 Benchmark]: RCFGBuilder took 428.59ms. Allocated memory is still 142.6MB. Free memory was 52.0MB in the beginning and 106.6MB in the end (delta: -54.6MB). Peak memory consumption was 14.0MB. Max. memory is 16.1GB. [2024-11-25 03:14:17,651 INFO L158 Benchmark]: CodeCheck took 570.78ms. Allocated memory is still 142.6MB. Free memory was 106.6MB in the beginning and 82.9MB in the end (delta: 23.7MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-25 03:14:17,651 INFO L158 Benchmark]: Witness Printer took 4.21ms. Allocated memory is still 142.6MB. Free memory was 82.9MB in the beginning and 82.3MB in the end (delta: 674.1kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:17,656 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, 17 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.5s, OverallIterations: 1, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: , PredicateUnifierStatistics: 0 DeclaredPredicates, 0 GetRequests, 0 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 9 NumberOfCodeBlocks, 9 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available, ConComCheckerStatistics: No data available - UnprovableResult [Line: 1580]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1557, overapproximation of fgets at line 1555. Possible FailurePath: [L1522] const int GLOBAL_CONST_TRUE = 1; [L1523] const int GLOBAL_CONST_FALSE = 0; [L1524] const int GLOBAL_CONST_FIVE = 5; [L1525] int globalTrue = 1; [L1526] int globalFalse = 0; [L1527] int globalFive = 5; [L1546] int globalArgc = 0; [L1547] char** globalArgv = ((void *)0); [L1569] CALL printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(line)={3:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1414] COND TRUE line != ((void *)0) [L1569] RET printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1570] CALL CWE191_Integer_Underflow__int_fgets_multiply_64_bad() [L1551] int data; [L1552] data = 0 [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data={8406:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1555] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1557] data = atoi(inputBuffer) [L1564] CALL CWE191_Integer_Underflow__int_fgets_multiply_64b_badSink(&data) [L1576] int * dataPtr = (int *)dataVoidPtr; [L1577] EXPR \read(*dataPtr) [L1577] int data = (*dataPtr); [L1578] COND TRUE data < 0 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data=-1073741825, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1580] data * 2 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.57ms. Allocated memory is still 117.4MB. Free memory is still 72.1MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1225.04ms. Allocated memory is still 142.6MB. Free memory was 114.3MB in the beginning and 55.8MB in the end (delta: 58.5MB). Peak memory consumption was 58.7MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 46.70ms. Allocated memory is still 142.6MB. Free memory was 55.8MB in the beginning and 53.2MB in the end (delta: 2.6MB). Peak memory consumption was 8.4MB. Max. memory is 16.1GB. * Boogie Preprocessor took 23.67ms. Allocated memory is still 142.6MB. Free memory was 53.2MB in the beginning and 52.0MB in the end (delta: 1.2MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 428.59ms. Allocated memory is still 142.6MB. Free memory was 52.0MB in the beginning and 106.6MB in the end (delta: -54.6MB). Peak memory consumption was 14.0MB. Max. memory is 16.1GB. * CodeCheck took 570.78ms. Allocated memory is still 142.6MB. Free memory was 106.6MB in the beginning and 82.9MB in the end (delta: 23.7MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * Witness Printer took 4.21ms. Allocated memory is still 142.6MB. Free memory was 82.9MB in the beginning and 82.3MB in the end (delta: 674.1kB). 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-25 03:14:17,673 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/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_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/plugins/org.eclipse.equinox.launcher_1.6.800.v20240513-1750.jar -data @noDefault -ultimatedata /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3 --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 7565a7437b9d20454e209c76ad0b654b2f87c4541485d2a2bf11964b00adcda2 --- Real Ultimate output --- This is Ultimate 0.3.0-dev-d790fec [2024-11-25 03:14:20,291 INFO L188 SettingsManager]: Resetting all preferences to default values... [2024-11-25 03:14:20,409 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2024-11-25 03:14:20,482 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2024-11-25 03:14:20,483 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2024-11-25 03:14:20,485 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2024-11-25 03:14:20,486 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2024-11-25 03:14:20,486 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2024-11-25 03:14:20,486 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2024-11-25 03:14:20,486 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2024-11-25 03:14:20,486 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2024-11-25 03:14:20,486 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2024-11-25 03:14:20,486 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Check absence of signed integer overflows=ASSERTandASSUME [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2024-11-25 03:14:20,487 INFO L153 SettingsManager]: * Behaviour of calls to undefined functions=OVERAPPROXIMATE_BEHAVIOUR [2024-11-25 03:14:20,489 INFO L153 SettingsManager]: * Use constant arrays=true [2024-11-25 03:14:20,490 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2024-11-25 03:14:20,490 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2024-11-25 03:14:20,490 INFO L153 SettingsManager]: * Theory for external solver=ALL [2024-11-25 03:14:20,490 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2024-11-25 03:14:20,490 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2024-11-25 03:14:20,491 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2024-11-25 03:14:20,491 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-25 03:14:20,491 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2024-11-25 03:14:20,491 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2024-11-25 03:14:20,492 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2024-11-25 03:14:20,492 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2024-11-25 03:14:20,492 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2024-11-25 03:14:20,492 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2024-11-25 03:14:20,492 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_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3 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 -> 7565a7437b9d20454e209c76ad0b654b2f87c4541485d2a2bf11964b00adcda2 [2024-11-25 03:14:20,775 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2024-11-25 03:14:20,783 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2024-11-25 03:14:20,785 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2024-11-25 03:14:20,786 INFO L270 PluginConnector]: Initializing CDTParser... [2024-11-25 03:14:20,787 INFO L274 PluginConnector]: CDTParser initialized [2024-11-25 03:14:20,788 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i [2024-11-25 03:14:23,667 INFO L533 CDTParser]: Created temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/71577f02f/edd0dde46a234426a90f5cd23b293f32/FLAGb54763857 [2024-11-25 03:14:24,108 INFO L384 CDTParser]: Found 1 translation units. [2024-11-25 03:14:24,109 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_multiply_64_bad.i [2024-11-25 03:14:24,143 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/71577f02f/edd0dde46a234426a90f5cd23b293f32/FLAGb54763857 [2024-11-25 03:14:24,237 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/data/71577f02f/edd0dde46a234426a90f5cd23b293f32 [2024-11-25 03:14:24,241 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2024-11-25 03:14:24,243 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2024-11-25 03:14:24,246 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2024-11-25 03:14:24,246 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2024-11-25 03:14:24,252 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2024-11-25 03:14:24,252 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 25.11 03:14:24" (1/1) ... [2024-11-25 03:14:24,256 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@367498d7 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:24, skipping insertion in model container [2024-11-25 03:14:24,257 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 25.11 03:14:24" (1/1) ... [2024-11-25 03:14:24,319 INFO L175 MainTranslator]: Built tables and reachable declarations [2024-11-25 03:14:25,247 WARN L1063 CHandler]: saw a pointer cast to a type that we could not get a type size for, not adapting memory model [2024-11-25 03:14:25,256 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-25 03:14:25,281 INFO L200 MainTranslator]: Completed pre-run [2024-11-25 03:14:25,443 INFO L210 PostProcessor]: Analyzing one entry point: main [2024-11-25 03:14:25,591 INFO L204 MainTranslator]: Completed translation [2024-11-25 03:14:25,592 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25 WrapperNode [2024-11-25 03:14:25,592 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2024-11-25 03:14:25,593 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2024-11-25 03:14:25,593 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2024-11-25 03:14:25,593 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2024-11-25 03:14:25,599 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,623 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,643 INFO L138 Inliner]: procedures = 504, calls = 33, calls flagged for inlining = 5, calls inlined = 5, statements flattened = 68 [2024-11-25 03:14:25,644 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2024-11-25 03:14:25,644 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2024-11-25 03:14:25,644 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2024-11-25 03:14:25,644 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2024-11-25 03:14:25,651 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,652 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,655 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,655 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,663 INFO L184 PluginConnector]: Executing the observer ReplaceArrayAssignments from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,664 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,666 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,668 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,669 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,673 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2024-11-25 03:14:25,673 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2024-11-25 03:14:25,673 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2024-11-25 03:14:25,674 INFO L274 PluginConnector]: RCFGBuilder initialized [2024-11-25 03:14:25,675 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 25.11 03:14:25" (1/1) ... [2024-11-25 03:14:25,680 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2024-11-25 03:14:25,695 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/z3 [2024-11-25 03:14:25,708 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2024-11-25 03:14:25,714 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2024-11-25 03:14:25,732 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2024-11-25 03:14:25,732 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2024-11-25 03:14:25,732 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2024-11-25 03:14:25,732 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2024-11-25 03:14:25,732 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2024-11-25 03:14:25,733 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2024-11-25 03:14:25,733 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2024-11-25 03:14:25,733 INFO L130 BoogieDeclarations]: Found specification of procedure read~intINTTYPE4 [2024-11-25 03:14:25,733 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocOnStack [2024-11-25 03:14:25,733 INFO L130 BoogieDeclarations]: Found specification of procedure write~intINTTYPE4 [2024-11-25 03:14:25,880 INFO L234 CfgBuilder]: Building ICFG [2024-11-25 03:14:25,882 INFO L260 CfgBuilder]: Building CFG for each procedure with an implementation [2024-11-25 03:14:26,051 INFO L? ?]: Removed 28 outVars from TransFormulas that were not future-live. [2024-11-25 03:14:26,051 INFO L283 CfgBuilder]: Performing block encoding [2024-11-25 03:14:26,117 INFO L307 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2024-11-25 03:14:26,119 INFO L312 CfgBuilder]: Removed 0 assume(true) statements. [2024-11-25 03:14:26,120 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 25.11 03:14:26 BoogieIcfgContainer [2024-11-25 03:14:26,120 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2024-11-25 03:14:26,121 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2024-11-25 03:14:26,121 INFO L270 PluginConnector]: Initializing CodeCheck... [2024-11-25 03:14:26,128 INFO L274 PluginConnector]: CodeCheck initialized [2024-11-25 03:14:26,128 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 25.11 03:14:26" (1/1) ... [2024-11-25 03:14:26,134 INFO L157 PredicateUnifier]: Initialized classic predicate unifier [2024-11-25 03:14:26,173 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2024-11-25 03:14:26,182 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 20 states to 17 states and 20 transitions. [2024-11-25 03:14:26,183 INFO L276 IsEmpty]: Start isEmpty. Operand 17 states and 20 transitions. [2024-11-25 03:14:26,187 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 10 [2024-11-25 03:14:26,187 INFO L420 CodeCheckObserver]: Error Path is FOUND. [2024-11-25 03:14:26,188 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2024-11-25 03:14:26,188 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/cvc4 [2024-11-25 03:14:26,190 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2024-11-25 03:14:26,193 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2024-11-25 03:14:26,507 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:26,507 INFO L357 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-25 03:14:26,590 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:26,737 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:26,737 INFO L357 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2024-11-25 03:14:26,807 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2024-11-25 03:14:26,843 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/cvc4 --incremental --print-success --lang smt (2)] Forceful destruction successful, exit code 0 [2024-11-25 03:14:26,844 WARN L473 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2024-11-25 03:14:26,883 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 25.11 03:14:26 ImpRootNode [2024-11-25 03:14:26,883 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2024-11-25 03:14:26,885 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2024-11-25 03:14:26,885 INFO L270 PluginConnector]: Initializing Witness Printer... [2024-11-25 03:14:26,885 INFO L274 PluginConnector]: Witness Printer initialized [2024-11-25 03:14:26,886 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 25.11 03:14:26" (3/4) ... [2024-11-25 03:14:26,889 INFO L149 WitnessPrinter]: No result that supports witness generation found [2024-11-25 03:14:26,890 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2024-11-25 03:14:26,891 INFO L158 Benchmark]: Toolchain (without parser) took 2647.98ms. Allocated memory was 117.4MB in the beginning and 268.4MB in the end (delta: 151.0MB). Free memory was 88.3MB in the beginning and 224.0MB in the end (delta: -135.7MB). Peak memory consumption was 15.0MB. Max. memory is 16.1GB. [2024-11-25 03:14:26,891 INFO L158 Benchmark]: CDTParser took 0.27ms. Allocated memory is still 117.4MB. Free memory is still 83.3MB. There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:26,892 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1346.27ms. Allocated memory is still 117.4MB. Free memory was 88.3MB in the beginning and 67.5MB in the end (delta: 20.7MB). Peak memory consumption was 58.1MB. Max. memory is 16.1GB. [2024-11-25 03:14:26,892 INFO L158 Benchmark]: Boogie Procedure Inliner took 50.78ms. Allocated memory is still 117.4MB. Free memory was 67.5MB in the beginning and 64.6MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:26,892 INFO L158 Benchmark]: Boogie Preprocessor took 28.69ms. Allocated memory is still 117.4MB. Free memory was 64.6MB in the beginning and 63.1MB in the end (delta: 1.5MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:26,893 INFO L158 Benchmark]: RCFGBuilder took 447.04ms. Allocated memory is still 117.4MB. Free memory was 63.1MB in the beginning and 45.6MB in the end (delta: 17.5MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2024-11-25 03:14:26,893 INFO L158 Benchmark]: CodeCheck took 762.49ms. Allocated memory was 117.4MB in the beginning and 268.4MB in the end (delta: 151.0MB). Free memory was 45.6MB in the beginning and 224.6MB in the end (delta: -179.0MB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:26,893 INFO L158 Benchmark]: Witness Printer took 5.33ms. Allocated memory is still 268.4MB. Free memory was 224.6MB in the beginning and 224.0MB in the end (delta: 688.1kB). There was no memory consumed. Max. memory is 16.1GB. [2024-11-25 03:14:26,898 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, 17 locations, 2 error locations. Started 1 CEGAR loops. OverallTime: 0.7s, OverallIterations: 1, TraceHistogramMax: 0, PathProgramHistogramMax: 0, EmptinessCheckTime: 0.0s, AutomataDifference: 0.0s, DeadEndRemovalTime: 0.0s, HoareAnnotationTime: 0.0s, InitialAbstractionConstructionTime: 0.0s, HoareTripleCheckerStatistics: , PredicateUnifierStatistics: 0 DeclaredPredicates, 0 GetRequests, 0 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, InterpolantAutomatonStates: 0, traceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 9 NumberOfCodeBlocks, 9 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available, ConComCheckerStatistics: No data available - UnprovableResult [Line: 1580]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1557, overapproximation of fgets at line 1555. Possible FailurePath: [L1522] const int GLOBAL_CONST_TRUE = 1; [L1523] const int GLOBAL_CONST_FALSE = 0; [L1524] const int GLOBAL_CONST_FIVE = 5; [L1525] int globalTrue = 1; [L1526] int globalFalse = 0; [L1527] int globalFive = 5; [L1546] int globalArgc = 0; [L1547] char** globalArgv = ((void *)0); [L1569] CALL printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(line)={3:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1414] COND TRUE line != ((void *)0) [L1569] RET printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1570] CALL CWE191_Integer_Underflow__int_fgets_multiply_64_bad() [L1551] int data; [L1552] data = 0 [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, data={5:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1555] COND TRUE fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1557] data = atoi(inputBuffer) [L1564] CALL CWE191_Integer_Underflow__int_fgets_multiply_64b_badSink(&data) [L1576] int * dataPtr = (int *)dataVoidPtr; [L1577] EXPR \read(*dataPtr) [L1577] int data = (*dataPtr); [L1578] COND TRUE data < 0 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] [L1580] data * 2 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.27ms. Allocated memory is still 117.4MB. Free memory is still 83.3MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1346.27ms. Allocated memory is still 117.4MB. Free memory was 88.3MB in the beginning and 67.5MB in the end (delta: 20.7MB). Peak memory consumption was 58.1MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 50.78ms. Allocated memory is still 117.4MB. Free memory was 67.5MB in the beginning and 64.6MB in the end (delta: 2.9MB). There was no memory consumed. Max. memory is 16.1GB. * Boogie Preprocessor took 28.69ms. Allocated memory is still 117.4MB. Free memory was 64.6MB in the beginning and 63.1MB in the end (delta: 1.5MB). There was no memory consumed. Max. memory is 16.1GB. * RCFGBuilder took 447.04ms. Allocated memory is still 117.4MB. Free memory was 63.1MB in the beginning and 45.6MB in the end (delta: 17.5MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 762.49ms. Allocated memory was 117.4MB in the beginning and 268.4MB in the end (delta: 151.0MB). Free memory was 45.6MB in the beginning and 224.6MB in the end (delta: -179.0MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 5.33ms. Allocated memory is still 268.4MB. Free memory was 224.6MB in the beginning and 224.0MB in the end (delta: 688.1kB). 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-25 03:14:26,925 INFO L552 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_5d76253e-386b-4342-848e-1b0845fcaa76/bin/ukojak-verify-ENZ3QT5qd3/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