./Ultimate.py --spec ../../sv-benchmarks/c/properties/unreach-call.prp --file ../../sv-benchmarks/c/reducercommutativity/rangesum05_false-unreach-call_true-termination.i --full-output --architecture 32bit -------------------------------------------------------------------------------- Checking for ERROR reachability Using default analysis Version aa418289 Calling Ultimate with: java -Dosgi.configuration.area=/tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/data/config -Xmx12G -Xms1G -jar /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar -data @noDefault -ultimatedata /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/data -tc /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/config/KojakReach.xml -i ../../sv-benchmarks/c/reducercommutativity/rangesum05_false-unreach-call_true-termination.i -s /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/config/svcomp-Reach-32bit-Kojak_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak --witnessprinter.witness.filename witness.graphml --witnessprinter.write.witness.besides.input.file false --witnessprinter.graph.data.specification CHECK( init(main()), LTL(G ! call(__VERIFIER_error())) ) --witnessprinter.graph.data.producer Kojak --witnessprinter.graph.data.architecture 32bit --witnessprinter.graph.data.programhash 1633e43e3f340ce4ae371cafc3d1ea0a9dad5739 .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... Execution finished normally Writing output log to file Ultimate.log Writing human readable error path to file UltimateCounterExample.errorpath Result: FALSE --- Real Ultimate output --- This is Ultimate 0.1.23-aa41828 [2018-11-23 02:16:11,991 INFO L170 SettingsManager]: Resetting all preferences to default values... [2018-11-23 02:16:11,992 INFO L174 SettingsManager]: Resetting UltimateCore preferences to default values [2018-11-23 02:16:11,998 INFO L177 SettingsManager]: Ultimate Commandline Interface provides no preferences, ignoring... [2018-11-23 02:16:11,998 INFO L174 SettingsManager]: Resetting Boogie Preprocessor preferences to default values [2018-11-23 02:16:11,999 INFO L174 SettingsManager]: Resetting Boogie Procedure Inliner preferences to default values [2018-11-23 02:16:12,000 INFO L174 SettingsManager]: Resetting Abstract Interpretation preferences to default values [2018-11-23 02:16:12,001 INFO L174 SettingsManager]: Resetting LassoRanker preferences to default values [2018-11-23 02:16:12,002 INFO L174 SettingsManager]: Resetting Reaching Definitions preferences to default values [2018-11-23 02:16:12,003 INFO L174 SettingsManager]: Resetting SyntaxChecker preferences to default values [2018-11-23 02:16:12,003 INFO L177 SettingsManager]: Büchi Program Product provides no preferences, ignoring... [2018-11-23 02:16:12,003 INFO L174 SettingsManager]: Resetting LTL2Aut preferences to default values [2018-11-23 02:16:12,004 INFO L174 SettingsManager]: Resetting PEA to Boogie preferences to default values [2018-11-23 02:16:12,005 INFO L174 SettingsManager]: Resetting BlockEncodingV2 preferences to default values [2018-11-23 02:16:12,006 INFO L174 SettingsManager]: Resetting ChcToBoogie preferences to default values [2018-11-23 02:16:12,006 INFO L174 SettingsManager]: Resetting AutomataScriptInterpreter preferences to default values [2018-11-23 02:16:12,007 INFO L174 SettingsManager]: Resetting BuchiAutomizer preferences to default values [2018-11-23 02:16:12,008 INFO L174 SettingsManager]: Resetting CACSL2BoogieTranslator preferences to default values [2018-11-23 02:16:12,009 INFO L174 SettingsManager]: Resetting CodeCheck preferences to default values [2018-11-23 02:16:12,010 INFO L174 SettingsManager]: Resetting InvariantSynthesis preferences to default values [2018-11-23 02:16:12,011 INFO L174 SettingsManager]: Resetting RCFGBuilder preferences to default values [2018-11-23 02:16:12,012 INFO L174 SettingsManager]: Resetting TraceAbstraction preferences to default values [2018-11-23 02:16:12,013 INFO L177 SettingsManager]: TraceAbstractionConcurrent provides no preferences, ignoring... [2018-11-23 02:16:12,013 INFO L177 SettingsManager]: TraceAbstractionWithAFAs provides no preferences, ignoring... [2018-11-23 02:16:12,014 INFO L174 SettingsManager]: Resetting TreeAutomizer preferences to default values [2018-11-23 02:16:12,014 INFO L174 SettingsManager]: Resetting IcfgTransformer preferences to default values [2018-11-23 02:16:12,015 INFO L174 SettingsManager]: Resetting Boogie Printer preferences to default values [2018-11-23 02:16:12,015 INFO L174 SettingsManager]: Resetting ReqPrinter preferences to default values [2018-11-23 02:16:12,016 INFO L174 SettingsManager]: Resetting Witness Printer preferences to default values [2018-11-23 02:16:12,017 INFO L177 SettingsManager]: Boogie PL CUP Parser provides no preferences, ignoring... [2018-11-23 02:16:12,017 INFO L174 SettingsManager]: Resetting CDTParser preferences to default values [2018-11-23 02:16:12,017 INFO L177 SettingsManager]: AutomataScriptParser provides no preferences, ignoring... [2018-11-23 02:16:12,017 INFO L177 SettingsManager]: ReqParser provides no preferences, ignoring... [2018-11-23 02:16:12,018 INFO L174 SettingsManager]: Resetting SmtParser preferences to default values [2018-11-23 02:16:12,018 INFO L174 SettingsManager]: Resetting Witness Parser preferences to default values [2018-11-23 02:16:12,019 INFO L181 SettingsManager]: Finished resetting all preferences to default values... [2018-11-23 02:16:12,019 INFO L98 SettingsManager]: Beginning loading settings from /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/config/svcomp-Reach-32bit-Kojak_Default.epf [2018-11-23 02:16:12,029 INFO L110 SettingsManager]: Loading preferences was successful [2018-11-23 02:16:12,029 INFO L112 SettingsManager]: Preferences different from defaults after loading the file: [2018-11-23 02:16:12,030 INFO L131 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2018-11-23 02:16:12,030 INFO L133 SettingsManager]: * ... to procedures called more than once=ALWAYS [2018-11-23 02:16:12,030 INFO L131 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2018-11-23 02:16:12,031 INFO L133 SettingsManager]: * Create parallel compositions if possible=false [2018-11-23 02:16:12,031 INFO L131 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2018-11-23 02:16:12,031 INFO L133 SettingsManager]: * sizeof long=4 [2018-11-23 02:16:12,031 INFO L133 SettingsManager]: * Overapproximate operations on floating types=true [2018-11-23 02:16:12,031 INFO L133 SettingsManager]: * sizeof POINTER=4 [2018-11-23 02:16:12,031 INFO L133 SettingsManager]: * Check division by zero=IGNORE [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * sizeof long double=12 [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * Check if freed pointer was valid=false [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * Use constant arrays=true [2018-11-23 02:16:12,032 INFO L133 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2018-11-23 02:16:12,033 INFO L131 SettingsManager]: Preferences of CodeCheck differ from their defaults: [2018-11-23 02:16:12,033 INFO L133 SettingsManager]: * Timeout in seconds=1000000 [2018-11-23 02:16:12,033 INFO L131 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2018-11-23 02:16:12,033 INFO L133 SettingsManager]: * To the following directory=./dump/ [2018-11-23 02:16:12,033 INFO L133 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2018-11-23 02:16:12,033 INFO L131 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2018-11-23 02:16:12,034 INFO L133 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2018-11-23 02:16:12,034 INFO L133 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopsAndPotentialCycles [2018-11-23 02:16:12,034 INFO L133 SettingsManager]: * Trace refinement strategy=PENGUIN [2018-11-23 02:16:12,034 INFO L133 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode [2018-11-23 02:16:12,034 INFO L133 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2018-11-23 02:16:12,034 INFO L133 SettingsManager]: * Compute Hoare Annotation of negated interpolant automaton, abstraction and CFG=true 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-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Witness filename -> witness.graphml 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 ! call(__VERIFIER_error())) ) 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 -> 32bit Applying setting for plugin de.uni_freiburg.informatik.ultimate.witnessprinter: Graph data programhash -> 1633e43e3f340ce4ae371cafc3d1ea0a9dad5739 [2018-11-23 02:16:12,056 INFO L81 nceAwareModelManager]: Repository-Root is: /tmp [2018-11-23 02:16:12,065 INFO L258 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2018-11-23 02:16:12,067 INFO L214 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2018-11-23 02:16:12,068 INFO L271 PluginConnector]: Initializing CDTParser... [2018-11-23 02:16:12,068 INFO L276 PluginConnector]: CDTParser initialized [2018-11-23 02:16:12,068 INFO L418 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/../../sv-benchmarks/c/reducercommutativity/rangesum05_false-unreach-call_true-termination.i [2018-11-23 02:16:12,102 INFO L221 CDTParser]: Created temporary CDT project at /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/data/d6591edc3/ed838be0e78d4364bee4661794d905d0/FLAG424102063 [2018-11-23 02:16:12,491 INFO L307 CDTParser]: Found 1 translation units. [2018-11-23 02:16:12,492 INFO L161 CDTParser]: Scanning /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/sv-benchmarks/c/reducercommutativity/rangesum05_false-unreach-call_true-termination.i [2018-11-23 02:16:12,496 INFO L355 CDTParser]: About to delete temporary CDT project at /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/data/d6591edc3/ed838be0e78d4364bee4661794d905d0/FLAG424102063 [2018-11-23 02:16:12,505 INFO L363 CDTParser]: Successfully deleted /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/data/d6591edc3/ed838be0e78d4364bee4661794d905d0 [2018-11-23 02:16:12,506 INFO L296 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2018-11-23 02:16:12,507 INFO L131 ToolchainWalker]: Walking toolchain with 6 elements. [2018-11-23 02:16:12,508 INFO L113 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2018-11-23 02:16:12,508 INFO L271 PluginConnector]: Initializing CACSL2BoogieTranslator... [2018-11-23 02:16:12,510 INFO L276 PluginConnector]: CACSL2BoogieTranslator initialized [2018-11-23 02:16:12,510 INFO L185 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,512 INFO L205 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@16069910 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12, skipping insertion in model container [2018-11-23 02:16:12,512 INFO L185 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,517 INFO L145 MainTranslator]: Starting translation in SV-COMP mode [2018-11-23 02:16:12,530 INFO L176 MainTranslator]: Built tables and reachable declarations [2018-11-23 02:16:12,638 INFO L201 PostProcessor]: Analyzing one entry point: main [2018-11-23 02:16:12,644 INFO L191 MainTranslator]: Completed pre-run [2018-11-23 02:16:12,657 INFO L201 PostProcessor]: Analyzing one entry point: main [2018-11-23 02:16:12,665 INFO L195 MainTranslator]: Completed translation [2018-11-23 02:16:12,666 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12 WrapperNode [2018-11-23 02:16:12,666 INFO L132 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2018-11-23 02:16:12,666 INFO L113 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2018-11-23 02:16:12,666 INFO L271 PluginConnector]: Initializing Boogie Procedure Inliner... [2018-11-23 02:16:12,666 INFO L276 PluginConnector]: Boogie Procedure Inliner initialized [2018-11-23 02:16:12,673 INFO L185 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,680 INFO L185 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,731 INFO L132 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2018-11-23 02:16:12,731 INFO L113 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2018-11-23 02:16:12,731 INFO L271 PluginConnector]: Initializing Boogie Preprocessor... [2018-11-23 02:16:12,731 INFO L276 PluginConnector]: Boogie Preprocessor initialized [2018-11-23 02:16:12,739 INFO L185 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,739 INFO L185 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,741 INFO L185 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,741 INFO L185 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,746 INFO L185 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,750 INFO L185 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,751 INFO L185 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... [2018-11-23 02:16:12,752 INFO L132 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2018-11-23 02:16:12,753 INFO L113 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2018-11-23 02:16:12,753 INFO L271 PluginConnector]: Initializing RCFGBuilder... [2018-11-23 02:16:12,753 INFO L276 PluginConnector]: RCFGBuilder initialized [2018-11-23 02:16:12,754 INFO L185 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 02:16:12" (1/1) ... No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/z3 Starting monitored process 1 with z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 (exit command is (exit), workingDir is null) Waiting until toolchain timeout for monitored process 1 with z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:10000 [2018-11-23 02:16:12,791 INFO L130 BoogieDeclarations]: Found specification of procedure write~int [2018-11-23 02:16:12,792 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.alloc [2018-11-23 02:16:12,792 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2018-11-23 02:16:12,792 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2018-11-23 02:16:12,792 INFO L130 BoogieDeclarations]: Found specification of procedure read~int [2018-11-23 02:16:12,792 INFO L130 BoogieDeclarations]: Found specification of procedure rangesum [2018-11-23 02:16:12,792 INFO L138 BoogieDeclarations]: Found implementation of procedure rangesum [2018-11-23 02:16:12,792 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2018-11-23 02:16:13,275 INFO L275 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2018-11-23 02:16:13,275 INFO L280 CfgBuilder]: Removed 9 assue(true) statements. [2018-11-23 02:16:13,276 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 02:16:13 BoogieIcfgContainer [2018-11-23 02:16:13,276 INFO L132 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2018-11-23 02:16:13,276 INFO L113 PluginConnector]: ------------------------CodeCheck---------------------------- [2018-11-23 02:16:13,276 INFO L271 PluginConnector]: Initializing CodeCheck... [2018-11-23 02:16:13,286 INFO L276 PluginConnector]: CodeCheck initialized [2018-11-23 02:16:13,286 INFO L185 PluginConnector]: Executing the observer CodeCheckObserver from plugin CodeCheck for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 02:16:13" (1/1) ... [2018-11-23 02:16:13,296 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 02:16:13,322 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,330 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 22 states to 17 states and 22 transitions. [2018-11-23 02:16:13,331 INFO L276 IsEmpty]: Start isEmpty. Operand 17 states and 22 transitions. [2018-11-23 02:16:13,335 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 21 [2018-11-23 02:16:13,335 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:13,405 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,457 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,463 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:13,492 INFO L134 CoverageAnalysis]: Checked inductivity of 9 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 9 trivial. 0 not checked. [2018-11-23 02:16:13,517 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,518 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 23 states to 18 states and 23 transitions. [2018-11-23 02:16:13,518 INFO L276 IsEmpty]: Start isEmpty. Operand 18 states and 23 transitions. [2018-11-23 02:16:13,518 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 22 [2018-11-23 02:16:13,518 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:13,555 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,557 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:13,574 INFO L134 CoverageAnalysis]: Checked inductivity of 10 backedges. 4 proven. 0 refuted. 0 times theorem prover too weak. 6 trivial. 0 not checked. [2018-11-23 02:16:13,601 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,601 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 25 states to 19 states and 25 transitions. [2018-11-23 02:16:13,601 INFO L276 IsEmpty]: Start isEmpty. Operand 19 states and 25 transitions. [2018-11-23 02:16:13,602 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 25 [2018-11-23 02:16:13,602 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:13,638 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,640 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:13,664 INFO L134 CoverageAnalysis]: Checked inductivity of 22 backedges. 12 proven. 0 refuted. 0 times theorem prover too weak. 10 trivial. 0 not checked. [2018-11-23 02:16:13,693 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,694 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 27 states to 20 states and 27 transitions. [2018-11-23 02:16:13,694 INFO L276 IsEmpty]: Start isEmpty. Operand 20 states and 27 transitions. [2018-11-23 02:16:13,695 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 26 [2018-11-23 02:16:13,695 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:13,727 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,729 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:13,742 INFO L134 CoverageAnalysis]: Checked inductivity of 23 backedges. 0 proven. 1 refuted. 0 times theorem prover too weak. 22 trivial. 0 not checked. [2018-11-23 02:16:13,797 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,798 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 28 states to 21 states and 28 transitions. [2018-11-23 02:16:13,798 INFO L276 IsEmpty]: Start isEmpty. Operand 21 states and 28 transitions. [2018-11-23 02:16:13,799 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 27 [2018-11-23 02:16:13,799 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:13,830 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,832 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:13,849 INFO L134 CoverageAnalysis]: Checked inductivity of 25 backedges. 0 proven. 3 refuted. 0 times theorem prover too weak. 22 trivial. 0 not checked. [2018-11-23 02:16:13,895 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,895 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 29 states to 22 states and 29 transitions. [2018-11-23 02:16:13,895 INFO L276 IsEmpty]: Start isEmpty. Operand 22 states and 29 transitions. [2018-11-23 02:16:13,896 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 28 [2018-11-23 02:16:13,896 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:13,928 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:13,929 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:13,941 INFO L134 CoverageAnalysis]: Checked inductivity of 28 backedges. 0 proven. 6 refuted. 0 times theorem prover too weak. 22 trivial. 0 not checked. [2018-11-23 02:16:13,978 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:13,978 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 30 states to 23 states and 30 transitions. [2018-11-23 02:16:13,978 INFO L276 IsEmpty]: Start isEmpty. Operand 23 states and 30 transitions. [2018-11-23 02:16:13,979 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 29 [2018-11-23 02:16:13,979 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:14,012 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:14,015 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:14,034 INFO L134 CoverageAnalysis]: Checked inductivity of 32 backedges. 0 proven. 10 refuted. 0 times theorem prover too weak. 22 trivial. 0 not checked. [2018-11-23 02:16:14,085 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:14,085 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 30 states to 24 states and 30 transitions. [2018-11-23 02:16:14,085 INFO L276 IsEmpty]: Start isEmpty. Operand 24 states and 30 transitions. [2018-11-23 02:16:14,086 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 30 [2018-11-23 02:16:14,086 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:14,125 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:14,127 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:14,142 INFO L134 CoverageAnalysis]: Checked inductivity of 37 backedges. 10 proven. 1 refuted. 0 times theorem prover too weak. 26 trivial. 0 not checked. [2018-11-23 02:16:14,189 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:14,189 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 31 states to 25 states and 31 transitions. [2018-11-23 02:16:14,190 INFO L276 IsEmpty]: Start isEmpty. Operand 25 states and 31 transitions. [2018-11-23 02:16:14,190 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 33 [2018-11-23 02:16:14,190 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:14,227 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:14,229 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:14,249 INFO L134 CoverageAnalysis]: Checked inductivity of 58 backedges. 20 proven. 3 refuted. 0 times theorem prover too weak. 35 trivial. 0 not checked. [2018-11-23 02:16:14,305 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:14,305 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 32 states to 26 states and 32 transitions. [2018-11-23 02:16:14,305 INFO L276 IsEmpty]: Start isEmpty. Operand 26 states and 32 transitions. [2018-11-23 02:16:14,306 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 36 [2018-11-23 02:16:14,306 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:14,353 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:14,355 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:14,393 INFO L134 CoverageAnalysis]: Checked inductivity of 88 backedges. 34 proven. 6 refuted. 0 times theorem prover too weak. 48 trivial. 0 not checked. [2018-11-23 02:16:14,457 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:14,458 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 33 states to 27 states and 33 transitions. [2018-11-23 02:16:14,458 INFO L276 IsEmpty]: Start isEmpty. Operand 27 states and 33 transitions. [2018-11-23 02:16:14,459 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 39 [2018-11-23 02:16:14,459 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:14,498 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:14,500 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:14,517 INFO L134 CoverageAnalysis]: Checked inductivity of 127 backedges. 52 proven. 10 refuted. 0 times theorem prover too weak. 65 trivial. 0 not checked. [2018-11-23 02:16:14,923 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:14,923 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 33 states to 28 states and 33 transitions. [2018-11-23 02:16:14,923 INFO L276 IsEmpty]: Start isEmpty. Operand 28 states and 33 transitions. [2018-11-23 02:16:14,924 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 42 [2018-11-23 02:16:14,924 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:14,960 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:14,961 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:14,978 INFO L134 CoverageAnalysis]: Checked inductivity of 175 backedges. 76 proven. 1 refuted. 0 times theorem prover too weak. 98 trivial. 0 not checked. [2018-11-23 02:16:15,024 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:15,024 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 34 states to 29 states and 34 transitions. [2018-11-23 02:16:15,024 INFO L276 IsEmpty]: Start isEmpty. Operand 29 states and 34 transitions. [2018-11-23 02:16:15,025 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 43 [2018-11-23 02:16:15,025 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:15,061 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:15,062 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:15,087 INFO L134 CoverageAnalysis]: Checked inductivity of 177 backedges. 76 proven. 3 refuted. 0 times theorem prover too weak. 98 trivial. 0 not checked. [2018-11-23 02:16:15,167 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:15,167 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 35 states to 30 states and 35 transitions. [2018-11-23 02:16:15,168 INFO L276 IsEmpty]: Start isEmpty. Operand 30 states and 35 transitions. [2018-11-23 02:16:15,169 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 44 [2018-11-23 02:16:15,169 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:15,203 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 02:16:15,204 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 02:16:15,247 INFO L134 CoverageAnalysis]: Checked inductivity of 180 backedges. 76 proven. 6 refuted. 0 times theorem prover too weak. 98 trivial. 0 not checked. [2018-11-23 02:16:15,304 INFO L82 GeneralOperation]: Start removeUnreachable. Operand no size info available [2018-11-23 02:16:15,304 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 35 states to 31 states and 35 transitions. [2018-11-23 02:16:15,304 INFO L276 IsEmpty]: Start isEmpty. Operand 31 states and 35 transitions. [2018-11-23 02:16:15,305 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 45 [2018-11-23 02:16:15,305 INFO L427 CodeCheckObserver]: Error Path is FOUND. [2018-11-23 02:16:15,451 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2018-11-23 02:16:15,488 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2018-11-23 02:16:15,515 WARN L493 CodeCheckObserver]: This program is UNSAFE, Check terminated with 15 iterations. ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder.RCFGBacktranslator [?] #NULL.base, #NULL.offset := 0, 0;#valid := #valid[0 := 0];havoc main_#res;havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0.base, main_~#x~0.offset, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0;call main_~#x~0.base, main_~#x~0.offset := #Ultimate.alloc(20);init_nondet_#in~x.base, init_nondet_#in~x.offset := main_~#x~0.base, main_~#x~0.offset;havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x.base, init_nondet_~x.offset, init_nondet_~i~0;init_nondet_~x.base, init_nondet_~x.offset := init_nondet_#in~x.base, init_nondet_#in~x.offset;havoc init_nondet_~i~0;init_nondet_~i~0 := 0; VAL [ULTIMATE.start_init_nondet_~i~0=0, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=1, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=2, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=3, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=4, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(init_nondet_~i~0 < 5);}EndParallelCompositionhavoc main_~temp~0;havoc main_~ret~1;havoc main_~ret2~0;havoc main_~ret5~0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] CALL call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] ~x.base, ~x.offset := #in~x.base, #in~x.offset;havoc ~i~1;havoc ~ret~0;~ret~0 := 0;~cnt~0 := 0;~i~1 := 0; VAL [rangesum_~cnt~0=0, rangesum_~i~1=0, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=1, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=31] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=2, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=31] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=3, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=31] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=1, rangesum_~i~1=4, rangesum_~ret~0=2147483640, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(~i~1 < 5);}EndParallelCompositionBeginParallelComposition{ParallelCodeBlock0: assume 0 != ~cnt~0;#res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296);ParallelCodeBlock1: assume !(0 != ~cnt~0);#res := 0;}EndParallelCompositionassume true; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#res|=(- 1), |rangesum_#t~mem3|=0] [?] RET #74#return; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_#t~ret4|=(- 1), |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647;main_~ret~1 := main_#t~ret4;havoc main_#t~ret4;call main_#t~mem5 := read~int(main_~#x~0.base, main_~#x~0.offset, 4);main_~temp~0 := main_#t~mem5;havoc main_#t~mem5;call main_#t~mem6 := read~int(main_~#x~0.base, 4 + main_~#x~0.offset, 4);call write~int(main_#t~mem6, main_~#x~0.base, main_~#x~0.offset, 4);havoc main_#t~mem6;call write~int(main_~temp~0, main_~#x~0.base, 4 + main_~#x~0.offset, 4); VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483642, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] CALL call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] ~x.base, ~x.offset := #in~x.base, #in~x.offset;havoc ~i~1;havoc ~ret~0;~ret~0 := 0;~cnt~0 := 0;~i~1 := 0; VAL [rangesum_~cnt~0=0, rangesum_~i~1=0, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=1, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=45] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=2, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=45] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=3, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=45] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=1, rangesum_~i~1=4, rangesum_~ret~0=2147483640, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(~i~1 < 5);}EndParallelCompositionBeginParallelComposition{ParallelCodeBlock0: assume 0 != ~cnt~0;#res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296);ParallelCodeBlock1: assume !(0 != ~cnt~0);#res := 0;}EndParallelCompositionassume true; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#res|=(- 1), |rangesum_#t~mem3|=0] [?] RET #76#return; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483642, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_#t~ret7|=(- 1), |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647;main_~ret2~0 := main_#t~ret7;havoc main_#t~ret7;call main_#t~mem8 := read~int(main_~#x~0.base, main_~#x~0.offset, 4);main_~temp~0 := main_#t~mem8;havoc main_#t~mem8;main_~i~2 := 0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=0, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=1, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=2, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=3, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(main_~i~2 < 4);}EndParallelCompositioncall write~int(main_~temp~0, main_~#x~0.base, 16 + main_~#x~0.offset, 4); VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] CALL call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] ~x.base, ~x.offset := #in~x.base, #in~x.offset;havoc ~i~1;havoc ~ret~0;~ret~0 := 0;~cnt~0 := 0;~i~1 := 0; VAL [rangesum_~cnt~0=0, rangesum_~i~1=0, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=1, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=70] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=2, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=70] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=3, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=70] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=1, rangesum_~i~1=4, rangesum_~ret~0=(- 2147483643), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=3, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(~i~1 < 5);}EndParallelCompositionBeginParallelComposition{ParallelCodeBlock0: assume 0 != ~cnt~0;#res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296);ParallelCodeBlock1: assume !(0 != ~cnt~0);#res := 0;}EndParallelCompositionassume true; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=3, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#res|=1, |rangesum_#t~mem3|=0] [?] RET #78#return; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_#t~ret11|=1, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647;main_~ret5~0 := main_#t~ret11;havoc main_#t~ret11; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret5~0=1, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret5~0=1, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !false; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret5~0=1, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0.base, main_~#x~0.offset, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] call main_~#x~0.base, main_~#x~0.offset := #Ultimate.alloc(20); [L32] init_nondet_#in~x.base, init_nondet_#in~x.offset := main_~#x~0.base, main_~#x~0.offset; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x.base, init_nondet_~x.offset, init_nondet_~i~0; [L4-L9] init_nondet_~x.base, init_nondet_~x.offset := init_nondet_#in~x.base, init_nondet_#in~x.offset; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=0, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=1, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=2, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=3, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=4, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !(init_nondet_~i~0 < 5); [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L38] RET call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret4=-1, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] call main_#t~mem5 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] call main_#t~mem6 := read~int(main_~#x~0.base, 4 + main_~#x~0.offset, 4); [L40] call write~int(main_#t~mem6, main_~#x~0.base, main_~#x~0.offset, 4); [L40] havoc main_#t~mem6; [L40] call write~int(main_~temp~0, main_~#x~0.base, 4 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L41] RET call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret7=-1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] call main_#t~mem8 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !(main_~i~2 < 4); [L46] call write~int(main_~temp~0, main_~#x~0.base, 16 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L47] RET call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret11=1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49-L51] assume main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.preprocessor.BoogiePreprocessorBacktranslator [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0.base, main_~#x~0.offset, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] call main_~#x~0.base, main_~#x~0.offset := #Ultimate.alloc(20); [L32] init_nondet_#in~x.base, init_nondet_#in~x.offset := main_~#x~0.base, main_~#x~0.offset; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x.base, init_nondet_~x.offset, init_nondet_~i~0; [L4-L9] init_nondet_~x.base, init_nondet_~x.offset := init_nondet_#in~x.base, init_nondet_#in~x.offset; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=0, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=1, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=2, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=3, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=4, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !(init_nondet_~i~0 < 5); [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L38] RET call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret4=-1, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] call main_#t~mem5 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] call main_#t~mem6 := read~int(main_~#x~0.base, 4 + main_~#x~0.offset, 4); [L40] call write~int(main_#t~mem6, main_~#x~0.base, main_~#x~0.offset, 4); [L40] havoc main_#t~mem6; [L40] call write~int(main_~temp~0, main_~#x~0.base, 4 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L41] RET call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret7=-1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] call main_#t~mem8 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !(main_~i~2 < 4); [L46] call write~int(main_~temp~0, main_~#x~0.base, 16 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L47] RET call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret11=1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49-L51] assume main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] FCALL call main_~#x~0 := #Ultimate.alloc(20); [L32] init_nondet_#in~x := main_~#x~0; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x, init_nondet_~i~0; [L4-L9] init_nondet_~x := init_nondet_#in~x; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=0, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=1, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=2, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=3, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=4, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND TRUE !(init_nondet_~i~0 < 5) [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call main_#t~ret4 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret4=-1, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] FCALL call main_#t~mem5 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] FCALL call main_#t~mem6 := read~int({ base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); [L40] FCALL call write~int(main_#t~mem6, { base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] havoc main_#t~mem6; [L40] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call main_#t~ret7 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret7=-1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] FCALL call main_#t~mem8 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND TRUE !(main_~i~2 < 4) [L46] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 16 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call main_#t~ret11 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret11=1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49] COND TRUE main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0 VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.procedureinliner.backtranslation.InlinerBacktranslator [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] FCALL call main_~#x~0 := #Ultimate.alloc(20); [L32] init_nondet_#in~x := main_~#x~0; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x, init_nondet_~i~0; [L4-L9] init_nondet_~x := init_nondet_#in~x; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=0, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=1, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=2, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=3, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=4, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND TRUE !(init_nondet_~i~0 < 5) [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call main_#t~ret4 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret4=-1, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] FCALL call main_#t~mem5 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] FCALL call main_#t~mem6 := read~int({ base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); [L40] FCALL call write~int(main_#t~mem6, { base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] havoc main_#t~mem6; [L40] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call main_#t~ret7 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret7=-1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] FCALL call main_#t~mem8 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND TRUE !(main_~i~2 < 4) [L46] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 16 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call main_#t~ret11 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret11=1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49] COND TRUE main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0 VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L31] FCALL call ~#x~0 := #Ultimate.alloc(20); [L4-L9] ~x := #in~x; [L5] havoc ~i~0; [L6] ~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND TRUE !(~i~0 < 5) [L33] havoc ~temp~0; [L34] havoc ~ret~1; [L35] havoc ~ret2~0; [L36] havoc ~ret5~0; VAL [#NULL!base=0, #NULL!offset=0] [L38] CALL call #t~ret4 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call #t~ret4 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L38] assume -2147483648 <= #t~ret4 && #t~ret4 <= 2147483647; [L38] ~ret~1 := #t~ret4; [L38] havoc #t~ret4; [L40] FCALL call #t~mem5 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] ~temp~0 := #t~mem5; [L40] havoc #t~mem5; [L40] FCALL call #t~mem6 := read~int({ base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); [L40] FCALL call write~int(#t~mem6, { base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] havoc #t~mem6; [L40] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L41] CALL call #t~ret7 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call #t~ret7 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L41] assume -2147483648 <= #t~ret7 && #t~ret7 <= 2147483647; [L41] ~ret2~0 := #t~ret7; [L41] havoc #t~ret7; [L42] FCALL call #t~mem8 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L42] ~temp~0 := #t~mem8; [L42] havoc #t~mem8; [L43] ~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND TRUE !(~i~2 < 4) [L46] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 16 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L47] CALL call #t~ret11 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call #t~ret11 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L47] assume -2147483648 <= #t~ret11 && #t~ret11 <= 2147483647; [L47] ~ret5~0 := #t~ret11; [L47] havoc #t~ret11; VAL [#NULL!base=0, #NULL!offset=0] [L49] COND TRUE ~ret~1 != ~ret2~0 || ~ret~1 != ~ret5~0 VAL [#NULL!base=0, #NULL!offset=0] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0] ----- ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.CACSL2BoogieBacktranslator [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L31] FCALL call ~#x~0 := #Ultimate.alloc(20); [L4-L9] ~x := #in~x; [L5] havoc ~i~0; [L6] ~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND TRUE !(~i~0 < 5) [L33] havoc ~temp~0; [L34] havoc ~ret~1; [L35] havoc ~ret2~0; [L36] havoc ~ret5~0; VAL [#NULL!base=0, #NULL!offset=0] [L38] CALL call #t~ret4 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call #t~ret4 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L38] assume -2147483648 <= #t~ret4 && #t~ret4 <= 2147483647; [L38] ~ret~1 := #t~ret4; [L38] havoc #t~ret4; [L40] FCALL call #t~mem5 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] ~temp~0 := #t~mem5; [L40] havoc #t~mem5; [L40] FCALL call #t~mem6 := read~int({ base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); [L40] FCALL call write~int(#t~mem6, { base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] havoc #t~mem6; [L40] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L41] CALL call #t~ret7 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call #t~ret7 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L41] assume -2147483648 <= #t~ret7 && #t~ret7 <= 2147483647; [L41] ~ret2~0 := #t~ret7; [L41] havoc #t~ret7; [L42] FCALL call #t~mem8 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L42] ~temp~0 := #t~mem8; [L42] havoc #t~mem8; [L43] ~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND TRUE !(~i~2 < 4) [L46] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 16 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L47] CALL call #t~ret11 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call #t~ret11 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L47] assume -2147483648 <= #t~ret11 && #t~ret11 <= 2147483647; [L47] ~ret5~0 := #t~ret11; [L47] havoc #t~ret11; VAL [#NULL!base=0, #NULL!offset=0] [L49] COND TRUE ~ret~1 != ~ret2~0 || ~ret~1 != ~ret5~0 VAL [#NULL!base=0, #NULL!offset=0] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0] [L31] int x[5]; [L5] int i; [L6] i = 0 [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND FALSE !(i < 5) [L33] int temp; [L34] int ret; [L35] int ret2; [L36] int ret5; [L38] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=2147483640, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=-3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L38] RET, EXPR rangesum(x) [L38] ret = rangesum(x) [L40] EXPR x[0] [L40] temp=x[0] [L40] EXPR x[1] [L40] x[0] = x[1] [L40] x[1] = temp [L41] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=2147483640, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=-3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L41] RET, EXPR rangesum(x) [L41] ret2 = rangesum(x) [L42] EXPR x[0] [L42] temp=x[0] [L43] int i =0 ; [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND FALSE !(i<5 -1) [L46] x[5 -1] = temp [L47] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=-2147483643, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L47] RET, EXPR rangesum(x) [L47] ret5 = rangesum(x) [L49] COND TRUE ret != ret2 || ret !=ret5 [L50] __VERIFIER_error() ----- [2018-11-23 02:16:15,697 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.codecheck CFG 23.11 02:16:15 ImpRootNode [2018-11-23 02:16:15,697 INFO L132 PluginConnector]: ------------------------ END CodeCheck---------------------------- [2018-11-23 02:16:15,697 INFO L113 PluginConnector]: ------------------------Witness Printer---------------------------- [2018-11-23 02:16:15,698 INFO L271 PluginConnector]: Initializing Witness Printer... [2018-11-23 02:16:15,698 INFO L276 PluginConnector]: Witness Printer initialized [2018-11-23 02:16:15,698 INFO L185 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 02:16:13" (3/4) ... [2018-11-23 02:16:15,700 INFO L138 WitnessPrinter]: Generating witness for reachability counterexample ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder.RCFGBacktranslator [?] #NULL.base, #NULL.offset := 0, 0;#valid := #valid[0 := 0];havoc main_#res;havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0.base, main_~#x~0.offset, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0;call main_~#x~0.base, main_~#x~0.offset := #Ultimate.alloc(20);init_nondet_#in~x.base, init_nondet_#in~x.offset := main_~#x~0.base, main_~#x~0.offset;havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x.base, init_nondet_~x.offset, init_nondet_~i~0;init_nondet_~x.base, init_nondet_~x.offset := init_nondet_#in~x.base, init_nondet_#in~x.offset;havoc init_nondet_~i~0;init_nondet_~i~0 := 0; VAL [ULTIMATE.start_init_nondet_~i~0=0, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=1, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=2, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=3, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=4, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(init_nondet_~i~0 < 5);assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647;call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4);havoc init_nondet_#t~nondet1;init_nondet_#t~post0 := init_nondet_~i~0;init_nondet_~i~0 := 1 + init_nondet_#t~post0;havoc init_nondet_#t~post0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(init_nondet_~i~0 < 5);}EndParallelCompositionhavoc main_~temp~0;havoc main_~ret~1;havoc main_~ret2~0;havoc main_~ret5~0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] CALL call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] ~x.base, ~x.offset := #in~x.base, #in~x.offset;havoc ~i~1;havoc ~ret~0;~ret~0 := 0;~cnt~0 := 0;~i~1 := 0; VAL [rangesum_~cnt~0=0, rangesum_~i~1=0, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=1, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=31] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=2, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=31] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=3, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=31] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=1, rangesum_~i~1=4, rangesum_~ret~0=2147483640, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(~i~1 < 5);}EndParallelCompositionBeginParallelComposition{ParallelCodeBlock0: assume 0 != ~cnt~0;#res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296);ParallelCodeBlock1: assume !(0 != ~cnt~0);#res := 0;}EndParallelCompositionassume true; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#res|=(- 1), |rangesum_#t~mem3|=0] [?] RET #74#return; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_#t~ret4|=(- 1), |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647;main_~ret~1 := main_#t~ret4;havoc main_#t~ret4;call main_#t~mem5 := read~int(main_~#x~0.base, main_~#x~0.offset, 4);main_~temp~0 := main_#t~mem5;havoc main_#t~mem5;call main_#t~mem6 := read~int(main_~#x~0.base, 4 + main_~#x~0.offset, 4);call write~int(main_#t~mem6, main_~#x~0.base, main_~#x~0.offset, 4);havoc main_#t~mem6;call write~int(main_~temp~0, main_~#x~0.base, 4 + main_~#x~0.offset, 4); VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483642, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] CALL call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] ~x.base, ~x.offset := #in~x.base, #in~x.offset;havoc ~i~1;havoc ~ret~0;~ret~0 := 0;~cnt~0 := 0;~i~1 := 0; VAL [rangesum_~cnt~0=0, rangesum_~i~1=0, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=1, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=45] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=2, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=45] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=3, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=45] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=1, rangesum_~i~1=4, rangesum_~ret~0=2147483640, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(~i~1 < 5);}EndParallelCompositionBeginParallelComposition{ParallelCodeBlock0: assume 0 != ~cnt~0;#res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296);ParallelCodeBlock1: assume !(0 != ~cnt~0);#res := 0;}EndParallelCompositionassume true; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=(- 3), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#res|=(- 1), |rangesum_#t~mem3|=0] [?] RET #76#return; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483642, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_#t~ret7|=(- 1), |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647;main_~ret2~0 := main_#t~ret7;havoc main_#t~ret7;call main_#t~mem8 := read~int(main_~#x~0.base, main_~#x~0.offset, 4);main_~temp~0 := main_#t~mem8;havoc main_#t~mem8;main_~i~2 := 0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=0, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=1, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=2, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=3, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !!(main_~i~2 < 4);call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4);call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4);havoc main_#t~mem10;main_#t~post9 := main_~i~2;main_~i~2 := 1 + main_#t~post9;havoc main_#t~post9; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(main_~i~2 < 4);}EndParallelCompositioncall write~int(main_~temp~0, main_~#x~0.base, 16 + main_~#x~0.offset, 4); VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] CALL call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] ~x.base, ~x.offset := #in~x.base, #in~x.offset;havoc ~i~1;havoc ~ret~0;~ret~0 := 0;~cnt~0 := 0;~i~1 := 0; VAL [rangesum_~cnt~0=0, rangesum_~i~1=0, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=1, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=70] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=2, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=70] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=0, rangesum_~i~1=3, rangesum_~ret~0=0, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=70] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=1, rangesum_~i~1=4, rangesum_~ret~0=(- 2147483643), rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] assume !!(~i~1 < 5);BeginParallelComposition{ParallelCodeBlock0: assume ~i~1 > 2;call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4);~ret~0 := ~ret~0 + #t~mem3;havoc #t~mem3;~cnt~0 := 1 + ~cnt~0;ParallelCodeBlock1: assume !(~i~1 > 2);}EndParallelComposition#t~post2 := ~i~1;~i~1 := 1 + #t~post2;havoc #t~post2; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=3, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#t~mem3|=0] [?] BeginParallelComposition{ParallelCodeBlock0: assume !true;ParallelCodeBlock1: assume !(~i~1 < 5);}EndParallelCompositionBeginParallelComposition{ParallelCodeBlock0: assume 0 != ~cnt~0;#res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296);ParallelCodeBlock1: assume !(0 != ~cnt~0);#res := 0;}EndParallelCompositionassume true; VAL [rangesum_~cnt~0=2, rangesum_~i~1=5, rangesum_~ret~0=3, rangesum_~x.base=7, rangesum_~x.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |rangesum_#in~x.base|=7, |rangesum_#in~x.offset|=0, |rangesum_#res|=1, |rangesum_#t~mem3|=0] [?] RET #78#return; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_#t~ret11|=1, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647;main_~ret5~0 := main_#t~ret11;havoc main_#t~ret11; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret5~0=1, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret5~0=1, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] assume !false; VAL [ULTIMATE.start_init_nondet_~i~0=5, ULTIMATE.start_init_nondet_~x.base=7, ULTIMATE.start_init_nondet_~x.offset=0, ULTIMATE.start_main_~i~2=4, ULTIMATE.start_main_~ret2~0=(- 1), ULTIMATE.start_main_~ret5~0=1, ULTIMATE.start_main_~ret~1=(- 1), ULTIMATE.start_main_~temp~0=2147483646, |#NULL.base|=0, |#NULL.offset|=0, |ULTIMATE.start_init_nondet_#in~x.base|=7, |ULTIMATE.start_init_nondet_#in~x.offset|=0, |ULTIMATE.start_main_~#x~0.base|=7, |ULTIMATE.start_main_~#x~0.offset|=0] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0.base, main_~#x~0.offset, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] call main_~#x~0.base, main_~#x~0.offset := #Ultimate.alloc(20); [L32] init_nondet_#in~x.base, init_nondet_#in~x.offset := main_~#x~0.base, main_~#x~0.offset; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x.base, init_nondet_~x.offset, init_nondet_~i~0; [L4-L9] init_nondet_~x.base, init_nondet_~x.offset := init_nondet_#in~x.base, init_nondet_#in~x.offset; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=0, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=1, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=2, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=3, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=4, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !(init_nondet_~i~0 < 5); [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L38] RET call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret4=-1, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] call main_#t~mem5 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] call main_#t~mem6 := read~int(main_~#x~0.base, 4 + main_~#x~0.offset, 4); [L40] call write~int(main_#t~mem6, main_~#x~0.base, main_~#x~0.offset, 4); [L40] havoc main_#t~mem6; [L40] call write~int(main_~temp~0, main_~#x~0.base, 4 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L41] RET call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret7=-1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] call main_#t~mem8 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !(main_~i~2 < 4); [L46] call write~int(main_~temp~0, main_~#x~0.base, 16 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L47] RET call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret11=1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49-L51] assume main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.preprocessor.BoogiePreprocessorBacktranslator [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0.base, main_~#x~0.offset, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] call main_~#x~0.base, main_~#x~0.offset := #Ultimate.alloc(20); [L32] init_nondet_#in~x.base, init_nondet_#in~x.offset := main_~#x~0.base, main_~#x~0.offset; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x.base, init_nondet_~x.offset, init_nondet_~i~0; [L4-L9] init_nondet_~x.base, init_nondet_~x.offset := init_nondet_#in~x.base, init_nondet_#in~x.offset; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=0, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=1, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=2, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=3, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=4, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !!(init_nondet_~i~0 < 5); [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] call write~int(init_nondet_#t~nondet1, init_nondet_~x.base, init_nondet_~x.offset + 4 * init_nondet_~i~0, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L6-L8] assume !(init_nondet_~i~0 < 5); [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L38] RET call main_#t~ret4 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret4=-1, main_~#x~0.base=7, main_~#x~0.offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] call main_#t~mem5 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] call main_#t~mem6 := read~int(main_~#x~0.base, 4 + main_~#x~0.offset, 4); [L40] call write~int(main_#t~mem6, main_~#x~0.base, main_~#x~0.offset, 4); [L40] havoc main_#t~mem6; [L40] call write~int(main_~temp~0, main_~#x~0.base, 4 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=-1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x.base=7, ~x.offset=0] [L41] RET call main_#t~ret7 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret7=-1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] call main_#t~mem8 := read~int(main_~#x~0.base, main_~#x~0.offset, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !!(main_~i~2 < 4); [L44] call main_#t~mem10 := read~int(main_~#x~0.base, main_~#x~0.offset + 4 * (1 + main_~i~2), 4); [L44] call write~int(main_#t~mem10, main_~#x~0.base, main_~#x~0.offset + 4 * main_~i~2, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] assume !(main_~i~2 < 4); [L46] call write~int(main_~temp~0, main_~#x~0.base, 16 + main_~#x~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0] [L11-L27] ~x.base, ~x.offset := #in~x.base, #in~x.offset; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume !(~i~1 > 2); [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x.base=7, ~x.offset=0] [L17-L22] assume !!(~i~1 < 5); [L18-L21] assume ~i~1 > 2; [L19] call #t~mem3 := read~int(~x.base, ~x.offset + 4 * ~i~1, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L17-L22] assume !(~i~1 < 5); [L23-L26] assume 0 != ~cnt~0; [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L11-L27] ensures true; VAL [#in~x.base=7, #in~x.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x.base=7, ~x.offset=0] [L47] RET call main_#t~ret11 := rangesum(main_~#x~0.base, main_~#x~0.offset); VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_#t~ret11=1, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49-L51] assume main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL.base=0, #NULL.offset=0, init_nondet_#in~x.base=7, init_nondet_#in~x.offset=0, init_nondet_~i~0=5, init_nondet_~x.base=7, init_nondet_~x.offset=0, main_~#x~0.base=7, main_~#x~0.offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] FCALL call main_~#x~0 := #Ultimate.alloc(20); [L32] init_nondet_#in~x := main_~#x~0; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x, init_nondet_~i~0; [L4-L9] init_nondet_~x := init_nondet_#in~x; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=0, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=1, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=2, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=3, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=4, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND TRUE !(init_nondet_~i~0 < 5) [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call main_#t~ret4 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret4=-1, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] FCALL call main_#t~mem5 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] FCALL call main_#t~mem6 := read~int({ base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); [L40] FCALL call write~int(main_#t~mem6, { base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] havoc main_#t~mem6; [L40] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call main_#t~ret7 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret7=-1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] FCALL call main_#t~mem8 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND TRUE !(main_~i~2 < 4) [L46] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 16 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call main_#t~ret11 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret11=1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49] COND TRUE main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0 VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.procedureinliner.backtranslation.InlinerBacktranslator [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [?] havoc main_#res; [?] havoc main_#t~ret4, main_#t~mem5, main_#t~mem6, main_#t~ret7, main_#t~mem8, main_#t~mem10, main_#t~post9, main_~i~2, main_#t~ret11, main_~#x~0, main_~temp~0, main_~ret~1, main_~ret2~0, main_~ret5~0; [L31] FCALL call main_~#x~0 := #Ultimate.alloc(20); [L32] init_nondet_#in~x := main_~#x~0; [L32] havoc init_nondet_#t~nondet1, init_nondet_#t~post0, init_nondet_~x, init_nondet_~i~0; [L4-L9] init_nondet_~x := init_nondet_#in~x; [L5] havoc init_nondet_~i~0; [L6] init_nondet_~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=0, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=1, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=2, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=3, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=4, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND FALSE !(!(init_nondet_~i~0 < 5)) [L7] assume -2147483648 <= init_nondet_#t~nondet1 && init_nondet_#t~nondet1 <= 2147483647; [L7] FCALL call write~int(init_nondet_#t~nondet1, { base: init_nondet_~x!base, offset: init_nondet_~x!offset + 4 * init_nondet_~i~0 }, 4); [L7] havoc init_nondet_#t~nondet1; [L6] init_nondet_#t~post0 := init_nondet_~i~0; [L6] init_nondet_~i~0 := 1 + init_nondet_#t~post0; [L6] havoc init_nondet_#t~post0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L6-L8] COND TRUE !(init_nondet_~i~0 < 5) [L33] havoc main_~temp~0; [L34] havoc main_~ret~1; [L35] havoc main_~ret2~0; [L36] havoc main_~ret5~0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] CALL call main_#t~ret4 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call main_#t~ret4 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret4=-1, main_~#x~0!base=7, main_~#x~0!offset=0] [L38] assume -2147483648 <= main_#t~ret4 && main_#t~ret4 <= 2147483647; [L38] main_~ret~1 := main_#t~ret4; [L38] havoc main_#t~ret4; [L40] FCALL call main_#t~mem5 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] main_~temp~0 := main_#t~mem5; [L40] havoc main_#t~mem5; [L40] FCALL call main_#t~mem6 := read~int({ base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); [L40] FCALL call write~int(main_#t~mem6, { base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L40] havoc main_#t~mem6; [L40] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 4 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] CALL call main_#t~ret7 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call main_#t~ret7 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret7=-1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~ret~1=-1, main_~temp~0=2147483642] [L41] assume -2147483648 <= main_#t~ret7 && main_#t~ret7 <= 2147483647; [L41] main_~ret2~0 := main_#t~ret7; [L41] havoc main_#t~ret7; [L42] FCALL call main_#t~mem8 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset }, 4); [L42] main_~temp~0 := main_#t~mem8; [L42] havoc main_#t~mem8; [L43] main_~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=0, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=1, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=2, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=3, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND FALSE !(!(main_~i~2 < 4)) [L44] FCALL call main_#t~mem10 := read~int({ base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * (1 + main_~i~2) }, 4); [L44] FCALL call write~int(main_#t~mem10, { base: main_~#x~0!base, offset: main_~#x~0!offset + 4 * main_~i~2 }, 4); [L44] havoc main_#t~mem10; [L43] main_#t~post9 := main_~i~2; [L43] main_~i~2 := 1 + main_#t~post9; [L43] havoc main_#t~post9; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L43-L45] COND TRUE !(main_~i~2 < 4) [L46] FCALL call write~int(main_~temp~0, { base: main_~#x~0!base, offset: 16 + main_~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] CALL call main_#t~ret11 := rangesum(main_~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call main_#t~ret11 := rangesum(main_~#x~0); VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_#t~ret11=1, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret~1=-1, main_~temp~0=2147483646] [L47] assume -2147483648 <= main_#t~ret11 && main_#t~ret11 <= 2147483647; [L47] main_~ret5~0 := main_#t~ret11; [L47] havoc main_#t~ret11; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L49] COND TRUE main_~ret~1 != main_~ret2~0 || main_~ret~1 != main_~ret5~0 VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0, init_nondet_#in~x!base=7, init_nondet_#in~x!offset=0, init_nondet_~i~0=5, init_nondet_~x!base=7, init_nondet_~x!offset=0, main_~#x~0!base=7, main_~#x~0!offset=0, main_~i~2=4, main_~ret2~0=-1, main_~ret5~0=1, main_~ret~1=-1, main_~temp~0=2147483646] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L31] FCALL call ~#x~0 := #Ultimate.alloc(20); [L4-L9] ~x := #in~x; [L5] havoc ~i~0; [L6] ~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND TRUE !(~i~0 < 5) [L33] havoc ~temp~0; [L34] havoc ~ret~1; [L35] havoc ~ret2~0; [L36] havoc ~ret5~0; VAL [#NULL!base=0, #NULL!offset=0] [L38] CALL call #t~ret4 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call #t~ret4 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L38] assume -2147483648 <= #t~ret4 && #t~ret4 <= 2147483647; [L38] ~ret~1 := #t~ret4; [L38] havoc #t~ret4; [L40] FCALL call #t~mem5 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] ~temp~0 := #t~mem5; [L40] havoc #t~mem5; [L40] FCALL call #t~mem6 := read~int({ base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); [L40] FCALL call write~int(#t~mem6, { base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] havoc #t~mem6; [L40] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L41] CALL call #t~ret7 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call #t~ret7 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L41] assume -2147483648 <= #t~ret7 && #t~ret7 <= 2147483647; [L41] ~ret2~0 := #t~ret7; [L41] havoc #t~ret7; [L42] FCALL call #t~mem8 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L42] ~temp~0 := #t~mem8; [L42] havoc #t~mem8; [L43] ~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND TRUE !(~i~2 < 4) [L46] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 16 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L47] CALL call #t~ret11 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call #t~ret11 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L47] assume -2147483648 <= #t~ret11 && #t~ret11 <= 2147483647; [L47] ~ret5~0 := #t~ret11; [L47] havoc #t~ret11; VAL [#NULL!base=0, #NULL!offset=0] [L49] COND TRUE ~ret~1 != ~ret2~0 || ~ret~1 != ~ret5~0 VAL [#NULL!base=0, #NULL!offset=0] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0] ----- ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.CACSL2BoogieBacktranslator [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L31] FCALL call ~#x~0 := #Ultimate.alloc(20); [L4-L9] ~x := #in~x; [L5] havoc ~i~0; [L6] ~i~0 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND FALSE !(!(~i~0 < 5)) [L7] assume -2147483648 <= #t~nondet1 && #t~nondet1 <= 2147483647; [L7] FCALL call write~int(#t~nondet1, { base: ~x!base, offset: ~x!offset + 4 * ~i~0 }, 4); [L7] havoc #t~nondet1; [L6] #t~post0 := ~i~0; [L6] ~i~0 := 1 + #t~post0; [L6] havoc #t~post0; VAL [#NULL!base=0, #NULL!offset=0] [L6-L8] COND TRUE !(~i~0 < 5) [L33] havoc ~temp~0; [L34] havoc ~ret~1; [L35] havoc ~ret2~0; [L36] havoc ~ret5~0; VAL [#NULL!base=0, #NULL!offset=0] [L38] CALL call #t~ret4 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=31, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L38] RET call #t~ret4 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L38] assume -2147483648 <= #t~ret4 && #t~ret4 <= 2147483647; [L38] ~ret~1 := #t~ret4; [L38] havoc #t~ret4; [L40] FCALL call #t~mem5 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] ~temp~0 := #t~mem5; [L40] havoc #t~mem5; [L40] FCALL call #t~mem6 := read~int({ base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); [L40] FCALL call write~int(#t~mem6, { base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L40] havoc #t~mem6; [L40] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 4 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L41] CALL call #t~ret7 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=45, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=2147483640, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=-3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L41] RET call #t~ret7 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L41] assume -2147483648 <= #t~ret7 && #t~ret7 <= 2147483647; [L41] ~ret2~0 := #t~ret7; [L41] havoc #t~ret7; [L42] FCALL call #t~mem8 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset }, 4); [L42] ~temp~0 := #t~mem8; [L42] havoc #t~mem8; [L43] ~i~2 := 0; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND FALSE !(!(~i~2 < 4)) [L44] FCALL call #t~mem10 := read~int({ base: ~#x~0!base, offset: ~#x~0!offset + 4 * (1 + ~i~2) }, 4); [L44] FCALL call write~int(#t~mem10, { base: ~#x~0!base, offset: ~#x~0!offset + 4 * ~i~2 }, 4); [L44] havoc #t~mem10; [L43] #t~post9 := ~i~2; [L43] ~i~2 := 1 + #t~post9; [L43] havoc #t~post9; VAL [#NULL!base=0, #NULL!offset=0] [L43-L45] COND TRUE !(~i~2 < 4) [L46] FCALL call write~int(~temp~0, { base: ~#x~0!base, offset: 16 + ~#x~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0] [L47] CALL call #t~ret11 := rangesum(~#x~0); VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0] [L11-L27] ~x := #in~x; [L13] havoc ~i~1; [L14] havoc ~ret~0; [L15] ~ret~0 := 0; [L16] ~cnt~0 := 0; [L17] ~i~1 := 0; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, ~cnt~0=0, ~i~1=0, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=1, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=2, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND FALSE !(~i~1 > 2) [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=70, ~cnt~0=0, ~i~1=3, ~ret~0=0, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=1, ~i~1=4, ~ret~0=-2147483643, ~x!base=7, ~x!offset=0] [L17-L22] COND FALSE !(!(~i~1 < 5)) [L18] COND TRUE ~i~1 > 2 [L19] FCALL call #t~mem3 := read~int({ base: ~x!base, offset: ~x!offset + 4 * ~i~1 }, 4); [L19] ~ret~0 := ~ret~0 + #t~mem3; [L19] havoc #t~mem3; [L20] ~cnt~0 := 1 + ~cnt~0; [L17] #t~post2 := ~i~1; [L17] ~i~1 := 1 + #t~post2; [L17] havoc #t~post2; VAL [#in~x!base=7, #in~x!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem3=0, ~cnt~0=2, ~i~1=5, ~ret~0=3, ~x!base=7, ~x!offset=0] [L17-L22] COND TRUE !(~i~1 < 5) [L23] COND TRUE 0 != ~cnt~0 [L24] #res := (if (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 <= 2147483647 then (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 else (if ~ret~0 < 0 && 0 != ~ret~0 % ~cnt~0 then (if ~cnt~0 < 0 then ~ret~0 / ~cnt~0 - 1 else 1 + ~ret~0 / ~cnt~0) else ~ret~0 / ~cnt~0) % 4294967296 - 4294967296); [L47] RET call #t~ret11 := rangesum(~#x~0); VAL [#NULL!base=0, #NULL!offset=0] [L47] assume -2147483648 <= #t~ret11 && #t~ret11 <= 2147483647; [L47] ~ret5~0 := #t~ret11; [L47] havoc #t~ret11; VAL [#NULL!base=0, #NULL!offset=0] [L49] COND TRUE ~ret~1 != ~ret2~0 || ~ret~1 != ~ret5~0 VAL [#NULL!base=0, #NULL!offset=0] [L50] assert false; VAL [#NULL!base=0, #NULL!offset=0] [L31] int x[5]; [L5] int i; [L6] i = 0 [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND FALSE !(i < 5) [L33] int temp; [L34] int ret; [L35] int ret2; [L36] int ret5; [L38] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=2147483640, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=-3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L38] RET, EXPR rangesum(x) [L38] ret = rangesum(x) [L40] EXPR x[0] [L40] temp=x[0] [L40] EXPR x[1] [L40] x[0] = x[1] [L40] x[1] = temp [L41] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=2147483640, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=-3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L41] RET, EXPR rangesum(x) [L41] ret2 = rangesum(x) [L42] EXPR x[0] [L42] temp=x[0] [L43] int i =0 ; [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND FALSE !(i<5 -1) [L46] x[5 -1] = temp [L47] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=-2147483643, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L47] RET, EXPR rangesum(x) [L47] ret5 = rangesum(x) [L49] COND TRUE ret != ret2 || ret !=ret5 [L50] __VERIFIER_error() ----- [2018-11-23 02:16:16,193 INFO L145 WitnessManager]: Wrote witness to /tmp/vcloud-vcloud-master/worker/working_dir_0faddde3-64c7-4d0f-b596-99cccec98bc4/bin-2019/ukojak/witness.graphml [2018-11-23 02:16:16,193 INFO L132 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2018-11-23 02:16:16,194 INFO L168 Benchmark]: Toolchain (without parser) took 3687.11 ms. Allocated memory was 1.0 GB in the beginning and 1.3 GB in the end (delta: 227.0 MB). Free memory was 952.7 MB in the beginning and 1.1 GB in the end (delta: -178.1 MB). Peak memory consumption was 48.9 MB. Max. memory is 11.5 GB. [2018-11-23 02:16:16,195 INFO L168 Benchmark]: CDTParser took 0.10 ms. Allocated memory is still 1.0 GB. Free memory is still 980.1 MB. There was no memory consumed. Max. memory is 11.5 GB. [2018-11-23 02:16:16,195 INFO L168 Benchmark]: CACSL2BoogieTranslator took 158.17 ms. Allocated memory is still 1.0 GB. Free memory was 952.7 MB in the beginning and 941.8 MB in the end (delta: 10.9 MB). Peak memory consumption was 10.9 MB. Max. memory is 11.5 GB. [2018-11-23 02:16:16,195 INFO L168 Benchmark]: Boogie Procedure Inliner took 64.81 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 166.2 MB). Free memory was 939.1 MB in the beginning and 1.2 GB in the end (delta: -222.3 MB). Peak memory consumption was 14.0 MB. Max. memory is 11.5 GB. [2018-11-23 02:16:16,196 INFO L168 Benchmark]: Boogie Preprocessor took 21.48 ms. Allocated memory is still 1.2 GB. Free memory is still 1.2 GB. There was no memory consumed. Max. memory is 11.5 GB. [2018-11-23 02:16:16,196 INFO L168 Benchmark]: RCFGBuilder took 523.32 ms. Allocated memory is still 1.2 GB. Free memory was 1.2 GB in the beginning and 1.1 GB in the end (delta: 34.3 MB). Peak memory consumption was 34.3 MB. Max. memory is 11.5 GB. [2018-11-23 02:16:16,196 INFO L168 Benchmark]: CodeCheck took 2420.77 ms. Allocated memory was 1.2 GB in the beginning and 1.3 GB in the end (delta: 60.8 MB). Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: -19.1 MB). Peak memory consumption was 41.7 MB. Max. memory is 11.5 GB. [2018-11-23 02:16:16,196 INFO L168 Benchmark]: Witness Printer took 495.94 ms. Allocated memory is still 1.3 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 15.4 MB). Peak memory consumption was 15.4 MB. Max. memory is 11.5 GB. [2018-11-23 02:16:16,198 INFO L336 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, 28 locations, 1 error locations. UNSAFE Result, 2.2s OverallTime, 15 OverallIterations, 0 TraceHistogramMax, 0.0s AutomataDifference, 0.0s DeadEndRemovalTime, 0.0s HoareAnnotationTime, HoareTripleCheckerStatistics: 139264 SDtfs, 0 SDslu, 0 SDs, 0 SdLazy, 118502 SolverSat, 78090 SolverUnsat, 0 SolverUnknown, 0 SolverNotchecked, 2.1s Time, PredicateUnifierStatistics: 0 DeclaredPredicates, 2461 GetRequests, 2385 SyntacticMatches, 26 SemanticMatches, 50 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 799 ImplicationChecksByTransitivity, 0.7s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=-1occurred in iteration=-1, traceCheckStatistics: 0.1s SsaConstructionTime, 0.3s SatisfiabilityAnalysisTime, 0.3s InterpolantComputationTime, 475 NumberOfCodeBlocks, 475 NumberOfCodeBlocksAsserted, 15 NumberOfCheckSat, 417 ConstructedInterpolants, 0 QuantifiedInterpolants, 15741 SizeOfPredicates, 14 NumberOfNonLiveVariables, 2196 ConjunctsInSsa, 54 ConjunctsInUnsatCore, 14 InterpolantComputations, 3 PerfectInterpolantSequences, 941/991 InterpolantCoveringCapability, InterpolantConsolidationStatistics: No data available, PathInvariantsStatistics: No data available, 0/0 InterpolantCoveringCapability, TotalInterpolationStatistics: No data available, 0.0s AbstIntTime, 0 AbstIntIterations, 0 AbstIntStrong, NaN AbsIntWeakeningRatio, NaN AbsIntAvgWeakeningVarsNumRemoved, NaN AbsIntAvgWeakenedConjuncts, 0.0s DumpTime, AutomataMinimizationStatistics: No data available, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: No data available, ReuseStatistics: No data available - CounterExampleResult [Line: 50]: a call of __VERIFIER_error() is reachable a call of __VERIFIER_error() is reachable We found a FailurePath: [L31] int x[5]; [L5] int i; [L6] i = 0 [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND TRUE i < 5 [L7] x[i] = __VERIFIER_nondet_int() [L6] i++ [L6] COND FALSE !(i < 5) [L33] int temp; [L34] int ret; [L35] int ret2; [L36] int ret5; [L38] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=31] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=2147483640, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=-3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L38] RET, EXPR rangesum(x) [L38] ret = rangesum(x) [L40] EXPR x[0] [L40] temp=x[0] [L40] EXPR x[1] [L40] x[0] = x[1] [L40] x[1] = temp [L41] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=45] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=2147483640, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=-3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L41] RET, EXPR rangesum(x) [L41] ret2 = rangesum(x) [L42] EXPR x[0] [L42] temp=x[0] [L43] int i =0 ; [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND TRUE i<5 -1 [L44] EXPR x[i+1] [L44] x[i] = x[i+1] [L43] i++ [L43] COND FALSE !(i<5 -1) [L46] x[5 -1] = temp [L47] CALL, EXPR rangesum(x) VAL [x={7:0}] [L13] int i; [L14] long long ret; [L15] ret = 0 [L16] int cnt = 0; [L17] i = 0 VAL [cnt=0, i=0, ret=0, x={7:0}, x={7:0}] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=1, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=2, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND FALSE !(i > 5/2) [L17] i++ VAL [cnt=0, i=3, ret=0, x={7:0}, x={7:0}, x[i]=70] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=1, i=4, ret=-2147483643, x={7:0}, x={7:0}, x[i]=0] [L17] COND TRUE i < 5 [L18] COND TRUE i > 5/2 [L19] EXPR x[i] [L19] ret = ret + x[i] [L20] cnt = cnt + 1 [L17] i++ VAL [cnt=2, i=5, ret=3, x={7:0}, x={7:0}, x[i]=0] [L17] COND FALSE !(i < 5) [L23] COND TRUE cnt !=0 [L24] return ret / cnt; [L47] RET, EXPR rangesum(x) [L47] ret5 = rangesum(x) [L49] COND TRUE ret != ret2 || ret !=ret5 [L50] __VERIFIER_error() * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.10 ms. Allocated memory is still 1.0 GB. Free memory is still 980.1 MB. There was no memory consumed. Max. memory is 11.5 GB. * CACSL2BoogieTranslator took 158.17 ms. Allocated memory is still 1.0 GB. Free memory was 952.7 MB in the beginning and 941.8 MB in the end (delta: 10.9 MB). Peak memory consumption was 10.9 MB. Max. memory is 11.5 GB. * Boogie Procedure Inliner took 64.81 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 166.2 MB). Free memory was 939.1 MB in the beginning and 1.2 GB in the end (delta: -222.3 MB). Peak memory consumption was 14.0 MB. Max. memory is 11.5 GB. * Boogie Preprocessor took 21.48 ms. Allocated memory is still 1.2 GB. Free memory is still 1.2 GB. There was no memory consumed. Max. memory is 11.5 GB. * RCFGBuilder took 523.32 ms. Allocated memory is still 1.2 GB. Free memory was 1.2 GB in the beginning and 1.1 GB in the end (delta: 34.3 MB). Peak memory consumption was 34.3 MB. Max. memory is 11.5 GB. * CodeCheck took 2420.77 ms. Allocated memory was 1.2 GB in the beginning and 1.3 GB in the end (delta: 60.8 MB). Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: -19.1 MB). Peak memory consumption was 41.7 MB. Max. memory is 11.5 GB. * Witness Printer took 495.94 ms. Allocated memory is still 1.3 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 15.4 MB). Peak memory consumption was 15.4 MB. Max. memory is 11.5 GB. RESULT: Ultimate proved your program to be incorrect! Received shutdown request...