./Ultimate.py --spec ../../sv-benchmarks/c/properties/no-overflow.prp --file ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i --full-output --architecture 64bit -------------------------------------------------------------------------------- Checking for overflows Using default analysis Version 527bcce2 Calling Ultimate with: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dosgi.configuration.area=/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar -data @noDefault -ultimatedata /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/config/svcomp-Overflow-64bit-Kojak_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2 --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 d64d2712d492162e95e1fa19a934e4cdeb5c33b78ef226bf74551bdc315f4229 --- Real Ultimate output --- This is Ultimate 0.2.3-dev-527bcce [2023-11-21 18:27:10,235 INFO L188 SettingsManager]: Resetting all preferences to default values... [2023-11-21 18:27:10,355 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/config/svcomp-Overflow-64bit-Kojak_Default.epf [2023-11-21 18:27:10,365 WARN L101 SettingsManager]: Preference file contains the following unknown settings: [2023-11-21 18:27:10,366 WARN L103 SettingsManager]: * de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck.Interpolating solver [2023-11-21 18:27:10,412 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2023-11-21 18:27:10,413 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2023-11-21 18:27:10,414 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2023-11-21 18:27:10,415 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2023-11-21 18:27:10,422 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2023-11-21 18:27:10,423 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2023-11-21 18:27:10,424 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2023-11-21 18:27:10,425 INFO L153 SettingsManager]: * Overapproximate operations on floating types=true [2023-11-21 18:27:10,427 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2023-11-21 18:27:10,428 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2023-11-21 18:27:10,428 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2023-11-21 18:27:10,429 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2023-11-21 18:27:10,429 INFO L153 SettingsManager]: * Check absence of signed integer overflows=true [2023-11-21 18:27:10,430 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2023-11-21 18:27:10,431 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2023-11-21 18:27:10,431 INFO L153 SettingsManager]: * Use constant arrays=true [2023-11-21 18:27:10,432 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2023-11-21 18:27:10,433 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2023-11-21 18:27:10,434 INFO L153 SettingsManager]: * Theory for external solver=ALL [2023-11-21 18:27:10,434 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2023-11-21 18:27:10,435 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2023-11-21 18:27:10,435 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2023-11-21 18:27:10,436 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2023-11-21 18:27:10,436 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2023-11-21 18:27:10,437 INFO L153 SettingsManager]: * Trace refinement strategy=PENGUIN [2023-11-21 18:27:10,439 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2023-11-21 18:27:10,439 INFO L153 SettingsManager]: * Compute Hoare Annotation of negated interpolant automaton, abstraction and CFG=true [2023-11-21 18:27:10,439 INFO L153 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/plugins/com.sun.xml.bind_2.2.0.v201505121915.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 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_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2 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 -> d64d2712d492162e95e1fa19a934e4cdeb5c33b78ef226bf74551bdc315f4229 [2023-11-21 18:27:10,749 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2023-11-21 18:27:10,800 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2023-11-21 18:27:10,804 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2023-11-21 18:27:10,806 INFO L270 PluginConnector]: Initializing CDTParser... [2023-11-21 18:27:10,807 INFO L274 PluginConnector]: CDTParser initialized [2023-11-21 18:27:10,809 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i [2023-11-21 18:27:14,262 INFO L533 CDTParser]: Created temporary CDT project at NULL [2023-11-21 18:27:14,673 INFO L384 CDTParser]: Found 1 translation units. [2023-11-21 18:27:14,674 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i [2023-11-21 18:27:14,704 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data/1b1a2cf67/3c1db22b0c0f4d78b013eda66e062681/FLAG9660b0c3d [2023-11-21 18:27:14,723 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data/1b1a2cf67/3c1db22b0c0f4d78b013eda66e062681 [2023-11-21 18:27:14,727 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2023-11-21 18:27:14,729 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2023-11-21 18:27:14,732 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2023-11-21 18:27:14,732 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2023-11-21 18:27:14,739 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2023-11-21 18:27:14,740 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 21.11 06:27:14" (1/1) ... [2023-11-21 18:27:14,741 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@69671c24 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:14, skipping insertion in model container [2023-11-21 18:27:14,742 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 21.11 06:27:14" (1/1) ... [2023-11-21 18:27:14,837 INFO L177 MainTranslator]: Built tables and reachable declarations [2023-11-21 18:27:15,282 WARN L635 FunctionHandler]: implicit declaration of function __builtin_bswap16 [2023-11-21 18:27:16,027 INFO L209 PostProcessor]: Analyzing one entry point: main [2023-11-21 18:27:16,051 INFO L202 MainTranslator]: Completed pre-run [2023-11-21 18:27:16,105 WARN L635 FunctionHandler]: implicit declaration of function __builtin_bswap16 [2023-11-21 18:27:16,217 INFO L209 PostProcessor]: Analyzing one entry point: main [2023-11-21 18:27:16,388 WARN L675 CHandler]: The function puts is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:16,388 WARN L675 CHandler]: The function __ctype_b_loc is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:16,388 WARN L675 CHandler]: The function iswxdigit is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:16,389 WARN L675 CHandler]: The function __builtin_bswap16 is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:16,389 WARN L675 CHandler]: The function time is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:16,389 WARN L675 CHandler]: The function fgets is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:16,399 INFO L206 MainTranslator]: Completed translation [2023-11-21 18:27:16,400 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16 WrapperNode [2023-11-21 18:27:16,400 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2023-11-21 18:27:16,402 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2023-11-21 18:27:16,402 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2023-11-21 18:27:16,402 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2023-11-21 18:27:16,412 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,462 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,500 INFO L138 Inliner]: procedures = 504, calls = 68, calls flagged for inlining = 8, calls inlined = 8, statements flattened = 59 [2023-11-21 18:27:16,501 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2023-11-21 18:27:16,502 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2023-11-21 18:27:16,502 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2023-11-21 18:27:16,502 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2023-11-21 18:27:16,514 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,515 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,519 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,520 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,543 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,546 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,548 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,550 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,555 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2023-11-21 18:27:16,556 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2023-11-21 18:27:16,556 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2023-11-21 18:27:16,556 INFO L274 PluginConnector]: RCFGBuilder initialized [2023-11-21 18:27:16,557 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:16" (1/1) ... [2023-11-21 18:27:16,565 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2023-11-21 18:27:16,598 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/z3 [2023-11-21 18:27:16,614 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2023-11-21 18:27:16,618 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2023-11-21 18:27:16,658 INFO L130 BoogieDeclarations]: Found specification of procedure fgets [2023-11-21 18:27:16,659 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2023-11-21 18:27:16,659 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2023-11-21 18:27:16,659 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2023-11-21 18:27:16,659 INFO L130 BoogieDeclarations]: Found specification of procedure write~unchecked~int [2023-11-21 18:27:16,659 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2023-11-21 18:27:16,660 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2023-11-21 18:27:16,660 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2023-11-21 18:27:16,660 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocOnStack [2023-11-21 18:27:16,660 INFO L130 BoogieDeclarations]: Found specification of procedure time [2023-11-21 18:27:16,660 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~int [2023-11-21 18:27:16,896 INFO L240 CfgBuilder]: Building ICFG [2023-11-21 18:27:16,898 INFO L266 CfgBuilder]: Building CFG for each procedure with an implementation [2023-11-21 18:27:17,054 INFO L281 CfgBuilder]: Performing block encoding [2023-11-21 18:27:17,116 INFO L303 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2023-11-21 18:27:17,122 INFO L308 CfgBuilder]: Removed 0 assume(true) statements. [2023-11-21 18:27:17,125 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 21.11 06:27:17 BoogieIcfgContainer [2023-11-21 18:27:17,125 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2023-11-21 18:27:17,126 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2023-11-21 18:27:17,126 INFO L270 PluginConnector]: Initializing CodeCheck... [2023-11-21 18:27:17,144 INFO L274 PluginConnector]: CodeCheck initialized [2023-11-21 18:27:17,145 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 21.11 06:27:17" (1/1) ... [2023-11-21 18:27:17,160 INFO L160 PredicateUnifier]: Initialized classic predicate unifier [2023-11-21 18:27:17,222 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2023-11-21 18:27:17,232 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 17 states to 15 states and 17 transitions. [2023-11-21 18:27:17,233 INFO L276 IsEmpty]: Start isEmpty. Operand 15 states and 17 transitions. [2023-11-21 18:27:17,242 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2023-11-21 18:27:17,242 INFO L423 CodeCheckObserver]: Error Path is FOUND. [2023-11-21 18:27:17,243 INFO L127 SolverBuilder]: Constructing new instance of SMTInterpol with explicit timeout -1 ms and remaining time -1 ms [2023-11-21 18:27:17,500 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:17,501 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2023-11-21 18:27:17,550 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:17,640 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:17,640 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2023-11-21 18:27:17,661 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:17,687 WARN L476 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2023-11-21 18:27:17,748 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 21.11 06:27:17 ImpRootNode [2023-11-21 18:27:17,748 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2023-11-21 18:27:17,751 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2023-11-21 18:27:17,751 INFO L270 PluginConnector]: Initializing Witness Printer... [2023-11-21 18:27:17,752 INFO L274 PluginConnector]: Witness Printer initialized [2023-11-21 18:27:17,753 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 21.11 06:27:17" (3/4) ... [2023-11-21 18:27:17,758 INFO L140 WitnessPrinter]: No result that supports witness generation found [2023-11-21 18:27:17,759 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2023-11-21 18:27:17,761 INFO L158 Benchmark]: Toolchain (without parser) took 3031.18ms. Allocated memory is still 203.4MB. Free memory was 160.3MB in the beginning and 111.7MB in the end (delta: 48.6MB). Peak memory consumption was 51.2MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,762 INFO L158 Benchmark]: CDTParser took 0.39ms. Allocated memory is still 134.2MB. Free memory is still 78.5MB. There was no memory consumed. Max. memory is 16.1GB. [2023-11-21 18:27:17,763 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1669.45ms. Allocated memory is still 203.4MB. Free memory was 160.3MB in the beginning and 150.5MB in the end (delta: 9.8MB). Peak memory consumption was 53.3MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,765 INFO L158 Benchmark]: Boogie Procedure Inliner took 99.23ms. Allocated memory is still 203.4MB. Free memory was 150.5MB in the beginning and 147.4MB in the end (delta: 3.1MB). Peak memory consumption was 4.2MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,766 INFO L158 Benchmark]: Boogie Preprocessor took 53.30ms. Allocated memory is still 203.4MB. Free memory was 147.4MB in the beginning and 146.3MB in the end (delta: 1.0MB). Peak memory consumption was 2.1MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,767 INFO L158 Benchmark]: RCFGBuilder took 569.25ms. Allocated memory is still 203.4MB. Free memory was 145.3MB in the beginning and 130.6MB in the end (delta: 14.7MB). Peak memory consumption was 14.7MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,769 INFO L158 Benchmark]: CodeCheck took 622.58ms. Allocated memory is still 203.4MB. Free memory was 130.6MB in the beginning and 112.8MB in the end (delta: 17.8MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,770 INFO L158 Benchmark]: Witness Printer took 8.71ms. Allocated memory is still 203.4MB. Free memory was 112.8MB in the beginning and 111.7MB in the end (delta: 1.1MB). Peak memory consumption was 2.1MB. Max. memory is 16.1GB. [2023-11-21 18:27:17,783 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, 15 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.0s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 8 NumberOfCodeBlocks, 8 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1592]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1557. 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, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1, line={4:0}] [L1414] COND TRUE line != ((void *)0) [L1569] RET printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(argc)=13, argc=13, argv={12:31}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1570] CALL CWE191_Integer_Underflow__int_fgets_sub_54_bad() [L1551] int data; [L1552] data = 0 [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; [L1555] COND TRUE, EXPR fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1557] EXPR data = atoi(inputBuffer) [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; [L1553-L1563] { char inputBuffer[(3 * sizeof(data) + 2)] = ""; if (fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0)) { data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } [L1564] CALL CWE191_Integer_Underflow__int_fgets_sub_54b_badSink(data) [L1577] CALL CWE191_Integer_Underflow__int_fgets_sub_54c_badSink(data) [L1582] CALL CWE191_Integer_Underflow__int_fgets_sub_54d_badSink(data) [L1587] CALL CWE191_Integer_Underflow__int_fgets_sub_54e_badSink(data) [L1592] data - 1 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(data)=-2147483648, data=-2147483648, 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.39ms. Allocated memory is still 134.2MB. Free memory is still 78.5MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1669.45ms. Allocated memory is still 203.4MB. Free memory was 160.3MB in the beginning and 150.5MB in the end (delta: 9.8MB). Peak memory consumption was 53.3MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 99.23ms. Allocated memory is still 203.4MB. Free memory was 150.5MB in the beginning and 147.4MB in the end (delta: 3.1MB). Peak memory consumption was 4.2MB. Max. memory is 16.1GB. * Boogie Preprocessor took 53.30ms. Allocated memory is still 203.4MB. Free memory was 147.4MB in the beginning and 146.3MB in the end (delta: 1.0MB). Peak memory consumption was 2.1MB. Max. memory is 16.1GB. * RCFGBuilder took 569.25ms. Allocated memory is still 203.4MB. Free memory was 145.3MB in the beginning and 130.6MB in the end (delta: 14.7MB). Peak memory consumption was 14.7MB. Max. memory is 16.1GB. * CodeCheck took 622.58ms. Allocated memory is still 203.4MB. Free memory was 130.6MB in the beginning and 112.8MB in the end (delta: 17.8MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * Witness Printer took 8.71ms. Allocated memory is still 203.4MB. Free memory was 112.8MB in the beginning and 111.7MB in the end (delta: 1.1MB). Peak memory consumption was 2.1MB. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2023-11-21 18:27:17,828 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/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 Using bit-precise analysis Retrying with bit-precise analysis ### Bit-precise run ### Calling Ultimate with: /usr/lib/jvm/java-11-openjdk-amd64/bin/java -Dosgi.configuration.area=/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data/config -Xmx15G -Xms4m -jar /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/plugins/org.eclipse.equinox.launcher_1.5.800.v20200727-1323.jar -data @noDefault -ultimatedata /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data -tc /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/config/KojakReach.xml -i ../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i -s /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2 --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 d64d2712d492162e95e1fa19a934e4cdeb5c33b78ef226bf74551bdc315f4229 --- Real Ultimate output --- This is Ultimate 0.2.3-dev-527bcce [2023-11-21 18:27:21,170 INFO L188 SettingsManager]: Resetting all preferences to default values... [2023-11-21 18:27:21,327 INFO L114 SettingsManager]: Loading settings from /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/config/svcomp-Overflow-64bit-Kojak_Bitvector.epf [2023-11-21 18:27:21,394 INFO L130 SettingsManager]: Preferences different from defaults after loading the file: [2023-11-21 18:27:21,395 INFO L151 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2023-11-21 18:27:21,397 INFO L153 SettingsManager]: * Ignore calls to procedures called more than once=ALWAYS [2023-11-21 18:27:21,398 INFO L151 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2023-11-21 18:27:21,399 INFO L153 SettingsManager]: * Create parallel compositions if possible=false [2023-11-21 18:27:21,400 INFO L151 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2023-11-21 18:27:21,407 INFO L153 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2023-11-21 18:27:21,408 INFO L153 SettingsManager]: * Check division by zero=IGNORE [2023-11-21 18:27:21,409 INFO L153 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2023-11-21 18:27:21,409 INFO L153 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2023-11-21 18:27:21,412 INFO L153 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2023-11-21 18:27:21,412 INFO L153 SettingsManager]: * Adapt memory model on pointer casts if necessary=true [2023-11-21 18:27:21,413 INFO L153 SettingsManager]: * Use bitvectors instead of ints=true [2023-11-21 18:27:21,413 INFO L153 SettingsManager]: * Check absence of signed integer overflows=true [2023-11-21 18:27:21,414 INFO L153 SettingsManager]: * Memory model=HoenickeLindenmann_4ByteResolution [2023-11-21 18:27:21,415 INFO L153 SettingsManager]: * Check unreachability of reach_error function=false [2023-11-21 18:27:21,416 INFO L153 SettingsManager]: * Check if freed pointer was valid=false [2023-11-21 18:27:21,417 INFO L153 SettingsManager]: * Use constant arrays=true [2023-11-21 18:27:21,418 INFO L151 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2023-11-21 18:27:21,419 INFO L153 SettingsManager]: * Timeout in seconds=1000000 [2023-11-21 18:27:21,420 INFO L153 SettingsManager]: * Theory for external solver=ALL [2023-11-21 18:27:21,420 INFO L153 SettingsManager]: * Command for calling external solver=cvc4 --incremental --print-success --lang smt [2023-11-21 18:27:21,421 INFO L153 SettingsManager]: * Choose which separate solver to use for tracechecks=External_ModelsAndUnsatCoreMode [2023-11-21 18:27:21,421 INFO L151 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2023-11-21 18:27:21,422 INFO L153 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2023-11-21 18:27:21,423 INFO L151 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2023-11-21 18:27:21,423 INFO L153 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2023-11-21 18:27:21,425 INFO L153 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopHeads [2023-11-21 18:27:21,426 INFO L153 SettingsManager]: * Trace refinement strategy=WALRUS [2023-11-21 18:27:21,426 INFO L153 SettingsManager]: * Command for external solver=cvc4 --incremental --print-success --lang smt [2023-11-21 18:27:21,427 INFO L153 SettingsManager]: * Compute Hoare Annotation of negated interpolant automaton, abstraction and CFG=true [2023-11-21 18:27:21,427 INFO L153 SettingsManager]: * Use separate solver for trace checks=false [2023-11-21 18:27:21,428 INFO L153 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode [2023-11-21 18:27:21,428 INFO L153 SettingsManager]: * Logic for external solver=AUFBV WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/plugins/com.sun.xml.bind_2.2.0.v201505121915.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 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_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2 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 -> d64d2712d492162e95e1fa19a934e4cdeb5c33b78ef226bf74551bdc315f4229 [2023-11-21 18:27:21,973 INFO L75 nceAwareModelManager]: Repository-Root is: /tmp [2023-11-21 18:27:22,009 INFO L261 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2023-11-21 18:27:22,012 INFO L217 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2023-11-21 18:27:22,014 INFO L270 PluginConnector]: Initializing CDTParser... [2023-11-21 18:27:22,015 INFO L274 PluginConnector]: CDTParser initialized [2023-11-21 18:27:22,017 INFO L431 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/../../sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i [2023-11-21 18:27:26,201 INFO L533 CDTParser]: Created temporary CDT project at NULL [2023-11-21 18:27:26,853 INFO L384 CDTParser]: Found 1 translation units. [2023-11-21 18:27:26,854 INFO L180 CDTParser]: Scanning /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/sv-benchmarks/c/Juliet_Test/CWE191_Integer_Underflow__int_fgets_sub_54_bad.i [2023-11-21 18:27:26,898 INFO L427 CDTParser]: About to delete temporary CDT project at /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data/7e5db089e/715a8d42b5ef4917b21b03fdf26591fd/FLAGabb759c43 [2023-11-21 18:27:26,921 INFO L435 CDTParser]: Successfully deleted /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/data/7e5db089e/715a8d42b5ef4917b21b03fdf26591fd [2023-11-21 18:27:26,928 INFO L299 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2023-11-21 18:27:26,932 INFO L133 ToolchainWalker]: Walking toolchain with 6 elements. [2023-11-21 18:27:26,937 INFO L112 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2023-11-21 18:27:26,938 INFO L270 PluginConnector]: Initializing CACSL2BoogieTranslator... [2023-11-21 18:27:26,944 INFO L274 PluginConnector]: CACSL2BoogieTranslator initialized [2023-11-21 18:27:26,945 INFO L184 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 21.11 06:27:26" (1/1) ... [2023-11-21 18:27:26,947 INFO L204 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@7dd190e8 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:26, skipping insertion in model container [2023-11-21 18:27:26,947 INFO L184 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 21.11 06:27:26" (1/1) ... [2023-11-21 18:27:27,056 INFO L177 MainTranslator]: Built tables and reachable declarations [2023-11-21 18:27:27,634 WARN L635 FunctionHandler]: implicit declaration of function __builtin_bswap16 [2023-11-21 18:27:28,472 INFO L209 PostProcessor]: Analyzing one entry point: main [2023-11-21 18:27:28,492 INFO L202 MainTranslator]: Completed pre-run [2023-11-21 18:27:28,533 WARN L635 FunctionHandler]: implicit declaration of function __builtin_bswap16 [2023-11-21 18:27:28,633 INFO L209 PostProcessor]: Analyzing one entry point: main [2023-11-21 18:27:28,800 WARN L675 CHandler]: The function puts is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:28,801 WARN L675 CHandler]: The function __ctype_b_loc is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:28,801 WARN L675 CHandler]: The function iswxdigit is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:28,801 WARN L675 CHandler]: The function __builtin_bswap16 is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:28,801 WARN L675 CHandler]: The function time is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:28,802 WARN L675 CHandler]: The function fgets is called, but not defined or handled by StandardFunctionHandler. [2023-11-21 18:27:28,809 INFO L206 MainTranslator]: Completed translation [2023-11-21 18:27:28,810 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28 WrapperNode [2023-11-21 18:27:28,810 INFO L131 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2023-11-21 18:27:28,812 INFO L112 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2023-11-21 18:27:28,812 INFO L270 PluginConnector]: Initializing Boogie Procedure Inliner... [2023-11-21 18:27:28,812 INFO L274 PluginConnector]: Boogie Procedure Inliner initialized [2023-11-21 18:27:28,820 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,851 INFO L184 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,879 INFO L138 Inliner]: procedures = 509, calls = 68, calls flagged for inlining = 8, calls inlined = 8, statements flattened = 58 [2023-11-21 18:27:28,880 INFO L131 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2023-11-21 18:27:28,881 INFO L112 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2023-11-21 18:27:28,881 INFO L270 PluginConnector]: Initializing Boogie Preprocessor... [2023-11-21 18:27:28,881 INFO L274 PluginConnector]: Boogie Preprocessor initialized [2023-11-21 18:27:28,891 INFO L184 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,891 INFO L184 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,896 INFO L184 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,896 INFO L184 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,906 INFO L184 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,908 INFO L184 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,912 INFO L184 PluginConnector]: Executing the observer LTLStepAnnotator from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,914 INFO L184 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,919 INFO L131 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2023-11-21 18:27:28,920 INFO L112 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2023-11-21 18:27:28,920 INFO L270 PluginConnector]: Initializing RCFGBuilder... [2023-11-21 18:27:28,920 INFO L274 PluginConnector]: RCFGBuilder initialized [2023-11-21 18:27:28,921 INFO L184 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 21.11 06:27:28" (1/1) ... [2023-11-21 18:27:28,927 INFO L173 SolverBuilder]: Constructing external solver with command: z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2023-11-21 18:27:28,943 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/z3 [2023-11-21 18:27:28,955 INFO L229 MonitoredProcess]: Starting monitored process 1 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) [2023-11-21 18:27:28,977 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (1)] Waiting until timeout for monitored process [2023-11-21 18:27:29,009 INFO L130 BoogieDeclarations]: Found specification of procedure fgets [2023-11-21 18:27:29,010 INFO L130 BoogieDeclarations]: Found specification of procedure printLine [2023-11-21 18:27:29,010 INFO L138 BoogieDeclarations]: Found implementation of procedure printLine [2023-11-21 18:27:29,010 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2023-11-21 18:27:29,010 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~intINTTYPE1 [2023-11-21 18:27:29,011 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocInit [2023-11-21 18:27:29,011 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2023-11-21 18:27:29,011 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2023-11-21 18:27:29,011 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.allocOnStack [2023-11-21 18:27:29,011 INFO L130 BoogieDeclarations]: Found specification of procedure time [2023-11-21 18:27:29,012 INFO L130 BoogieDeclarations]: Found specification of procedure write~unchecked~intINTTYPE1 [2023-11-21 18:27:29,222 INFO L240 CfgBuilder]: Building ICFG [2023-11-21 18:27:29,225 INFO L266 CfgBuilder]: Building CFG for each procedure with an implementation [2023-11-21 18:27:29,376 INFO L281 CfgBuilder]: Performing block encoding [2023-11-21 18:27:29,503 INFO L303 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2023-11-21 18:27:29,504 INFO L308 CfgBuilder]: Removed 0 assume(true) statements. [2023-11-21 18:27:29,506 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 21.11 06:27:29 BoogieIcfgContainer [2023-11-21 18:27:29,506 INFO L131 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2023-11-21 18:27:29,507 INFO L112 PluginConnector]: ------------------------CodeCheck---------------------------- [2023-11-21 18:27:29,508 INFO L270 PluginConnector]: Initializing CodeCheck... [2023-11-21 18:27:29,549 INFO L274 PluginConnector]: CodeCheck initialized [2023-11-21 18:27:29,550 INFO L184 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 21.11 06:27:29" (1/1) ... [2023-11-21 18:27:29,562 INFO L160 PredicateUnifier]: Initialized classic predicate unifier [2023-11-21 18:27:29,646 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2023-11-21 18:27:29,655 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 17 states to 15 states and 17 transitions. [2023-11-21 18:27:29,655 INFO L276 IsEmpty]: Start isEmpty. Operand 15 states and 17 transitions. [2023-11-21 18:27:29,660 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 9 [2023-11-21 18:27:29,661 INFO L423 CodeCheckObserver]: Error Path is FOUND. [2023-11-21 18:27:29,662 INFO L173 SolverBuilder]: Constructing external solver with command: cvc4 --incremental --print-success --lang smt [2023-11-21 18:27:29,662 INFO L189 MonitoredProcess]: No working directory specified, using /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/cvc4 [2023-11-21 18:27:29,668 INFO L229 MonitoredProcess]: Starting monitored process 2 with /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/cvc4 --incremental --print-success --lang smt (exit command is (exit), workingDir is null) [2023-11-21 18:27:29,700 INFO L327 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/cvc4 --incremental --print-success --lang smt (2)] Waiting until timeout for monitored process [2023-11-21 18:27:29,971 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:29,972 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2023-11-21 18:27:30,079 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:30,180 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:30,180 INFO L356 TraceCheck]: Trace is feasible, we will do another trace check, this time with branch encoders. [2023-11-21 18:27:30,232 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2023-11-21 18:27:30,254 ERROR L418 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/cvc4 --incremental --print-success --lang smt (2)] Exception during sending of exit command (exit): Broken pipe [2023-11-21 18:27:30,261 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/cvc4 --incremental --print-success --lang smt (2)] Forceful destruction successful, exit code 0 [2023-11-21 18:27:30,262 WARN L476 CodeCheckObserver]: This program is UNSAFE, Check terminated with 1 iterations. [2023-11-21 18:27:30,308 INFO L201 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 21.11 06:27:30 ImpRootNode [2023-11-21 18:27:30,308 INFO L131 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2023-11-21 18:27:30,311 INFO L112 PluginConnector]: ------------------------Witness Printer---------------------------- [2023-11-21 18:27:30,311 INFO L270 PluginConnector]: Initializing Witness Printer... [2023-11-21 18:27:30,311 INFO L274 PluginConnector]: Witness Printer initialized [2023-11-21 18:27:30,312 INFO L184 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 21.11 06:27:29" (3/4) ... [2023-11-21 18:27:30,314 INFO L140 WitnessPrinter]: No result that supports witness generation found [2023-11-21 18:27:30,316 INFO L131 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2023-11-21 18:27:30,317 INFO L158 Benchmark]: Toolchain (without parser) took 3385.05ms. Allocated memory was 79.7MB in the beginning and 98.6MB in the end (delta: 18.9MB). Free memory was 52.0MB in the beginning and 52.4MB in the end (delta: -452.5kB). Peak memory consumption was 20.0MB. Max. memory is 16.1GB. [2023-11-21 18:27:30,318 INFO L158 Benchmark]: CDTParser took 0.76ms. Allocated memory is still 79.7MB. Free memory is still 55.1MB. There was no memory consumed. Max. memory is 16.1GB. [2023-11-21 18:27:30,319 INFO L158 Benchmark]: CACSL2BoogieTranslator took 1873.78ms. Allocated memory was 79.7MB in the beginning and 98.6MB in the end (delta: 18.9MB). Free memory was 51.8MB in the beginning and 67.9MB in the end (delta: -16.1MB). Peak memory consumption was 30.9MB. Max. memory is 16.1GB. [2023-11-21 18:27:30,320 INFO L158 Benchmark]: Boogie Procedure Inliner took 68.69ms. Allocated memory is still 98.6MB. Free memory was 67.9MB in the beginning and 64.7MB in the end (delta: 3.1MB). Peak memory consumption was 4.2MB. Max. memory is 16.1GB. [2023-11-21 18:27:30,321 INFO L158 Benchmark]: Boogie Preprocessor took 38.44ms. Allocated memory is still 98.6MB. Free memory was 64.7MB in the beginning and 62.6MB in the end (delta: 2.1MB). Peak memory consumption was 2.1MB. Max. memory is 16.1GB. [2023-11-21 18:27:30,322 INFO L158 Benchmark]: RCFGBuilder took 586.51ms. Allocated memory is still 98.6MB. Free memory was 62.6MB in the beginning and 44.9MB in the end (delta: 17.7MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. [2023-11-21 18:27:30,322 INFO L158 Benchmark]: CodeCheck took 801.02ms. Allocated memory is still 98.6MB. Free memory was 44.9MB in the beginning and 52.9MB in the end (delta: -8.0MB). There was no memory consumed. Max. memory is 16.1GB. [2023-11-21 18:27:30,323 INFO L158 Benchmark]: Witness Printer took 4.91ms. Allocated memory is still 98.6MB. Free memory was 52.9MB in the beginning and 52.4MB in the end (delta: 521.9kB). There was no memory consumed. Max. memory is 16.1GB. [2023-11-21 18:27:30,338 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, 15 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.0s SatisfiabilityAnalysisTime, 0.0s InterpolantComputationTime, 8 NumberOfCodeBlocks, 8 NumberOfCodeBlocksAsserted, 1 NumberOfCheckSat, 0 ConstructedInterpolants, 0 QuantifiedInterpolants, 0 SizeOfPredicates, 0 NumberOfNonLiveVariables, 0 ConjunctsInSsa, 0 ConjunctsInUnsatCore, 0 InterpolantComputations, 0 PerfectInterpolantSequences, 0/0 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - UnprovableResult [Line: 1592]: Unable to prove that integer overflow can never occur Unable to prove that integer overflow can never occur Reason: overapproximation of atoi at line 1557. 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, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1, line={4:0}] [L1414] COND TRUE line != ((void *)0) [L1569] RET printLine("Calling bad()...") VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(argc)=0, argc=0, argv={0:0}, globalArgc=0, globalArgv={0:0}, globalFalse=0, globalFive=5, globalTrue=1] [L1570] CALL CWE191_Integer_Underflow__int_fgets_sub_54_bad() [L1551] int data; [L1552] data = 0 [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; [L1555] COND TRUE, EXPR fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0) [L1557] EXPR data = atoi(inputBuffer) [L1554] char inputBuffer[(3 * sizeof(data) + 2)] = ""; [L1553-L1563] { char inputBuffer[(3 * sizeof(data) + 2)] = ""; if (fgets(inputBuffer, (3 * sizeof(data) + 2), stdin) != ((void *)0)) { data = atoi(inputBuffer); } else { printLine("fgets() failed."); } } [L1564] CALL CWE191_Integer_Underflow__int_fgets_sub_54b_badSink(data) [L1577] CALL CWE191_Integer_Underflow__int_fgets_sub_54c_badSink(data) [L1582] CALL CWE191_Integer_Underflow__int_fgets_sub_54d_badSink(data) [L1587] CALL CWE191_Integer_Underflow__int_fgets_sub_54e_badSink(data) [L1592] data - 1 VAL [GLOBAL_CONST_FALSE=0, GLOBAL_CONST_FIVE=5, GLOBAL_CONST_TRUE=1, \old(data)=-2147483648, data=-2147483648, 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.76ms. Allocated memory is still 79.7MB. Free memory is still 55.1MB. There was no memory consumed. Max. memory is 16.1GB. * CACSL2BoogieTranslator took 1873.78ms. Allocated memory was 79.7MB in the beginning and 98.6MB in the end (delta: 18.9MB). Free memory was 51.8MB in the beginning and 67.9MB in the end (delta: -16.1MB). Peak memory consumption was 30.9MB. Max. memory is 16.1GB. * Boogie Procedure Inliner took 68.69ms. Allocated memory is still 98.6MB. Free memory was 67.9MB in the beginning and 64.7MB in the end (delta: 3.1MB). Peak memory consumption was 4.2MB. Max. memory is 16.1GB. * Boogie Preprocessor took 38.44ms. Allocated memory is still 98.6MB. Free memory was 64.7MB in the beginning and 62.6MB in the end (delta: 2.1MB). Peak memory consumption was 2.1MB. Max. memory is 16.1GB. * RCFGBuilder took 586.51ms. Allocated memory is still 98.6MB. Free memory was 62.6MB in the beginning and 44.9MB in the end (delta: 17.7MB). Peak memory consumption was 16.8MB. Max. memory is 16.1GB. * CodeCheck took 801.02ms. Allocated memory is still 98.6MB. Free memory was 44.9MB in the beginning and 52.9MB in the end (delta: -8.0MB). There was no memory consumed. Max. memory is 16.1GB. * Witness Printer took 4.91ms. Allocated memory is still 98.6MB. Free memory was 52.9MB in the beginning and 52.4MB in the end (delta: 521.9kB). There was no memory consumed. Max. memory is 16.1GB. RESULT: Ultimate could not prove your program: unable to determine feasibility of some traces [2023-11-21 18:27:30,382 INFO L540 MonitoredProcess]: [MP /tmp/vcloud_worker_vcloud-master_on_vcloud-master/run_dir_09f522f7-9909-4914-9a58-7e97882c8552/bin/ukojak-verify-i0I2FZA1j2/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