./Ultimate.py --spec ../../sv-benchmarks/c/properties/unreach-call.prp --file ../../sv-benchmarks/c/ldv-sets/test_add_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_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/data/config -Xmx12G -Xms1G -jar /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar -data @noDefault -ultimatedata /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/data -tc /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/config/AutomizerReach.xml -i ../../sv-benchmarks/c/ldv-sets/test_add_false-unreach-call_true-termination.i -s /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/config/svcomp-Reach-32bit-Automizer_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer --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 Automizer --witnessprinter.graph.data.architecture 32bit --witnessprinter.graph.data.programhash 278390a66d79c26df0bb9007834f9da647c0b479 .................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................... 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 15:42:26,707 INFO L170 SettingsManager]: Resetting all preferences to default values... [2018-11-23 15:42:26,708 INFO L174 SettingsManager]: Resetting UltimateCore preferences to default values [2018-11-23 15:42:26,715 INFO L177 SettingsManager]: Ultimate Commandline Interface provides no preferences, ignoring... [2018-11-23 15:42:26,715 INFO L174 SettingsManager]: Resetting Boogie Preprocessor preferences to default values [2018-11-23 15:42:26,716 INFO L174 SettingsManager]: Resetting Boogie Procedure Inliner preferences to default values [2018-11-23 15:42:26,716 INFO L174 SettingsManager]: Resetting Abstract Interpretation preferences to default values [2018-11-23 15:42:26,717 INFO L174 SettingsManager]: Resetting LassoRanker preferences to default values [2018-11-23 15:42:26,718 INFO L174 SettingsManager]: Resetting Reaching Definitions preferences to default values [2018-11-23 15:42:26,719 INFO L174 SettingsManager]: Resetting SyntaxChecker preferences to default values [2018-11-23 15:42:26,719 INFO L177 SettingsManager]: Büchi Program Product provides no preferences, ignoring... [2018-11-23 15:42:26,720 INFO L174 SettingsManager]: Resetting LTL2Aut preferences to default values [2018-11-23 15:42:26,720 INFO L174 SettingsManager]: Resetting PEA to Boogie preferences to default values [2018-11-23 15:42:26,721 INFO L174 SettingsManager]: Resetting BlockEncodingV2 preferences to default values [2018-11-23 15:42:26,721 INFO L174 SettingsManager]: Resetting ChcToBoogie preferences to default values [2018-11-23 15:42:26,722 INFO L174 SettingsManager]: Resetting AutomataScriptInterpreter preferences to default values [2018-11-23 15:42:26,723 INFO L174 SettingsManager]: Resetting BuchiAutomizer preferences to default values [2018-11-23 15:42:26,724 INFO L174 SettingsManager]: Resetting CACSL2BoogieTranslator preferences to default values [2018-11-23 15:42:26,725 INFO L174 SettingsManager]: Resetting CodeCheck preferences to default values [2018-11-23 15:42:26,726 INFO L174 SettingsManager]: Resetting InvariantSynthesis preferences to default values [2018-11-23 15:42:26,727 INFO L174 SettingsManager]: Resetting RCFGBuilder preferences to default values [2018-11-23 15:42:26,728 INFO L174 SettingsManager]: Resetting TraceAbstraction preferences to default values [2018-11-23 15:42:26,729 INFO L177 SettingsManager]: TraceAbstractionConcurrent provides no preferences, ignoring... [2018-11-23 15:42:26,729 INFO L177 SettingsManager]: TraceAbstractionWithAFAs provides no preferences, ignoring... [2018-11-23 15:42:26,730 INFO L174 SettingsManager]: Resetting TreeAutomizer preferences to default values [2018-11-23 15:42:26,730 INFO L174 SettingsManager]: Resetting IcfgTransformer preferences to default values [2018-11-23 15:42:26,731 INFO L174 SettingsManager]: Resetting Boogie Printer preferences to default values [2018-11-23 15:42:26,732 INFO L174 SettingsManager]: Resetting ReqPrinter preferences to default values [2018-11-23 15:42:26,732 INFO L174 SettingsManager]: Resetting Witness Printer preferences to default values [2018-11-23 15:42:26,733 INFO L177 SettingsManager]: Boogie PL CUP Parser provides no preferences, ignoring... [2018-11-23 15:42:26,733 INFO L174 SettingsManager]: Resetting CDTParser preferences to default values [2018-11-23 15:42:26,734 INFO L177 SettingsManager]: AutomataScriptParser provides no preferences, ignoring... [2018-11-23 15:42:26,734 INFO L177 SettingsManager]: ReqParser provides no preferences, ignoring... [2018-11-23 15:42:26,734 INFO L174 SettingsManager]: Resetting SmtParser preferences to default values [2018-11-23 15:42:26,734 INFO L174 SettingsManager]: Resetting Witness Parser preferences to default values [2018-11-23 15:42:26,735 INFO L181 SettingsManager]: Finished resetting all preferences to default values... [2018-11-23 15:42:26,735 INFO L98 SettingsManager]: Beginning loading settings from /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/config/svcomp-Reach-32bit-Automizer_Default.epf [2018-11-23 15:42:26,744 INFO L110 SettingsManager]: Loading preferences was successful [2018-11-23 15:42:26,745 INFO L112 SettingsManager]: Preferences different from defaults after loading the file: [2018-11-23 15:42:26,745 INFO L131 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2018-11-23 15:42:26,745 INFO L133 SettingsManager]: * ... calls to implemented procedures=ONLY_FOR_CONCURRENT_PROGRAMS [2018-11-23 15:42:26,746 INFO L131 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2018-11-23 15:42:26,746 INFO L133 SettingsManager]: * Create parallel compositions if possible=false [2018-11-23 15:42:26,746 INFO L133 SettingsManager]: * Use SBE=true [2018-11-23 15:42:26,746 INFO L131 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * sizeof long=4 [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * Overapproximate operations on floating types=true [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * sizeof POINTER=4 [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * Check division by zero=IGNORE [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2018-11-23 15:42:26,747 INFO L133 SettingsManager]: * sizeof long double=12 [2018-11-23 15:42:26,748 INFO L133 SettingsManager]: * Check if freed pointer was valid=false [2018-11-23 15:42:26,748 INFO L133 SettingsManager]: * Use constant arrays=true [2018-11-23 15:42:26,748 INFO L133 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2018-11-23 15:42:26,748 INFO L131 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2018-11-23 15:42:26,748 INFO L133 SettingsManager]: * Size of a code block=SequenceOfStatements [2018-11-23 15:42:26,748 INFO L133 SettingsManager]: * To the following directory=./dump/ [2018-11-23 15:42:26,748 INFO L133 SettingsManager]: * SMT solver=External_DefaultMode [2018-11-23 15:42:26,749 INFO L133 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:2000 [2018-11-23 15:42:26,749 INFO L131 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2018-11-23 15:42:26,749 INFO L133 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2018-11-23 15:42:26,749 INFO L133 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopsAndPotentialCycles [2018-11-23 15:42:26,749 INFO L133 SettingsManager]: * Trace refinement strategy=CAMEL [2018-11-23 15:42:26,749 INFO L133 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode [2018-11-23 15:42:26,749 INFO L133 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2018-11-23 15:42:26,750 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_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer 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 -> Automizer 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 -> 278390a66d79c26df0bb9007834f9da647c0b479 [2018-11-23 15:42:26,773 INFO L81 nceAwareModelManager]: Repository-Root is: /tmp [2018-11-23 15:42:26,783 INFO L258 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2018-11-23 15:42:26,785 INFO L214 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2018-11-23 15:42:26,787 INFO L271 PluginConnector]: Initializing CDTParser... [2018-11-23 15:42:26,787 INFO L276 PluginConnector]: CDTParser initialized [2018-11-23 15:42:26,787 INFO L418 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/../../sv-benchmarks/c/ldv-sets/test_add_false-unreach-call_true-termination.i [2018-11-23 15:42:26,827 INFO L221 CDTParser]: Created temporary CDT project at /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/data/b055f2c55/3730892d33d340ac92b7565330450cce/FLAG7dbd66ba6 [2018-11-23 15:42:27,299 INFO L307 CDTParser]: Found 1 translation units. [2018-11-23 15:42:27,299 INFO L161 CDTParser]: Scanning /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/sv-benchmarks/c/ldv-sets/test_add_false-unreach-call_true-termination.i [2018-11-23 15:42:27,309 INFO L355 CDTParser]: About to delete temporary CDT project at /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/data/b055f2c55/3730892d33d340ac92b7565330450cce/FLAG7dbd66ba6 [2018-11-23 15:42:27,808 INFO L363 CDTParser]: Successfully deleted /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/data/b055f2c55/3730892d33d340ac92b7565330450cce [2018-11-23 15:42:27,811 INFO L296 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2018-11-23 15:42:27,812 INFO L131 ToolchainWalker]: Walking toolchain with 6 elements. [2018-11-23 15:42:27,813 INFO L113 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2018-11-23 15:42:27,813 INFO L271 PluginConnector]: Initializing CACSL2BoogieTranslator... [2018-11-23 15:42:27,816 INFO L276 PluginConnector]: CACSL2BoogieTranslator initialized [2018-11-23 15:42:27,817 INFO L185 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 23.11 03:42:27" (1/1) ... [2018-11-23 15:42:27,819 INFO L205 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@3a85c141 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:27, skipping insertion in model container [2018-11-23 15:42:27,819 INFO L185 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 23.11 03:42:27" (1/1) ... [2018-11-23 15:42:27,826 INFO L145 MainTranslator]: Starting translation in SV-COMP mode [2018-11-23 15:42:27,855 INFO L176 MainTranslator]: Built tables and reachable declarations [2018-11-23 15:42:28,064 INFO L201 PostProcessor]: Analyzing one entry point: main [2018-11-23 15:42:28,072 INFO L191 MainTranslator]: Completed pre-run [2018-11-23 15:42:28,150 INFO L201 PostProcessor]: Analyzing one entry point: main [2018-11-23 15:42:28,180 INFO L195 MainTranslator]: Completed translation [2018-11-23 15:42:28,180 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28 WrapperNode [2018-11-23 15:42:28,180 INFO L132 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2018-11-23 15:42:28,181 INFO L113 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2018-11-23 15:42:28,181 INFO L271 PluginConnector]: Initializing Boogie Procedure Inliner... [2018-11-23 15:42:28,181 INFO L276 PluginConnector]: Boogie Procedure Inliner initialized [2018-11-23 15:42:28,186 INFO L185 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,197 INFO L185 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,204 INFO L132 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2018-11-23 15:42:28,204 INFO L113 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2018-11-23 15:42:28,204 INFO L271 PluginConnector]: Initializing Boogie Preprocessor... [2018-11-23 15:42:28,204 INFO L276 PluginConnector]: Boogie Preprocessor initialized [2018-11-23 15:42:28,211 INFO L185 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,211 INFO L185 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,214 INFO L185 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,214 INFO L185 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,222 INFO L185 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,227 INFO L185 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,228 INFO L185 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... [2018-11-23 15:42:28,229 INFO L132 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2018-11-23 15:42:28,230 INFO L113 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2018-11-23 15:42:28,230 INFO L271 PluginConnector]: Initializing RCFGBuilder... [2018-11-23 15:42:28,230 INFO L276 PluginConnector]: RCFGBuilder initialized [2018-11-23 15:42:28,230 INFO L185 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (1/1) ... No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/z3 Starting monitored process 1 with z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:2000 (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:2000 [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.alloc [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure read~int [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure __ldv_list_add [2018-11-23 15:42:28,269 INFO L138 BoogieDeclarations]: Found implementation of procedure __ldv_list_add [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure write~int [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_list_add [2018-11-23 15:42:28,269 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_list_add [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.init [2018-11-23 15:42:28,269 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.init [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure main [2018-11-23 15:42:28,269 INFO L138 BoogieDeclarations]: Found implementation of procedure main [2018-11-23 15:42:28,269 INFO L130 BoogieDeclarations]: Found specification of procedure write~$Pointer$ [2018-11-23 15:42:28,270 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_set_add [2018-11-23 15:42:28,270 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_set_add [2018-11-23 15:42:28,270 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_is_in_set [2018-11-23 15:42:28,270 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_is_in_set [2018-11-23 15:42:28,270 INFO L130 BoogieDeclarations]: Found specification of procedure read~$Pointer$ [2018-11-23 15:42:28,270 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~$Pointer$ [2018-11-23 15:42:28,270 INFO L130 BoogieDeclarations]: Found specification of procedure foo [2018-11-23 15:42:28,270 INFO L138 BoogieDeclarations]: Found implementation of procedure foo [2018-11-23 15:42:28,270 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_successful_malloc [2018-11-23 15:42:28,271 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_successful_malloc [2018-11-23 15:42:28,271 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2018-11-23 15:42:28,272 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2018-11-23 15:42:28,496 INFO L275 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2018-11-23 15:42:28,496 INFO L280 CfgBuilder]: Removed 1 assue(true) statements. [2018-11-23 15:42:28,497 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 03:42:28 BoogieIcfgContainer [2018-11-23 15:42:28,497 INFO L132 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2018-11-23 15:42:28,497 INFO L113 PluginConnector]: ------------------------TraceAbstraction---------------------------- [2018-11-23 15:42:28,497 INFO L271 PluginConnector]: Initializing TraceAbstraction... [2018-11-23 15:42:28,499 INFO L276 PluginConnector]: TraceAbstraction initialized [2018-11-23 15:42:28,499 INFO L185 PluginConnector]: Executing the observer TraceAbstractionObserver from plugin TraceAbstraction for "CDTParser AST 23.11 03:42:27" (1/3) ... [2018-11-23 15:42:28,499 INFO L205 PluginConnector]: Invalid model from TraceAbstraction for observer de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction.TraceAbstractionObserver@31bb2da5 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction AST 23.11 03:42:28, skipping insertion in model container [2018-11-23 15:42:28,499 INFO L185 PluginConnector]: Executing the observer TraceAbstractionObserver from plugin TraceAbstraction for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 03:42:28" (2/3) ... [2018-11-23 15:42:28,500 INFO L205 PluginConnector]: Invalid model from TraceAbstraction for observer de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction.TraceAbstractionObserver@31bb2da5 and model type de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction AST 23.11 03:42:28, skipping insertion in model container [2018-11-23 15:42:28,500 INFO L185 PluginConnector]: Executing the observer TraceAbstractionObserver from plugin TraceAbstraction for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 03:42:28" (3/3) ... [2018-11-23 15:42:28,501 INFO L112 eAbstractionObserver]: Analyzing ICFG test_add_false-unreach-call_true-termination.i [2018-11-23 15:42:28,506 INFO L156 ceAbstractionStarter]: Automizer settings: Hoare:true NWA Interpolation:FPandBP Determinization: PREDICATE_ABSTRACTION [2018-11-23 15:42:28,511 INFO L168 ceAbstractionStarter]: Appying trace abstraction to program that has 1 error locations. [2018-11-23 15:42:28,520 INFO L257 AbstractCegarLoop]: Starting to check reachability of 1 error locations. [2018-11-23 15:42:28,537 INFO L133 ementStrategyFactory]: Using default assertion order modulation [2018-11-23 15:42:28,537 INFO L382 AbstractCegarLoop]: Interprodecural is true [2018-11-23 15:42:28,537 INFO L383 AbstractCegarLoop]: Hoare is true [2018-11-23 15:42:28,537 INFO L384 AbstractCegarLoop]: Compute interpolants for FPandBP [2018-11-23 15:42:28,537 INFO L385 AbstractCegarLoop]: Backedges is STRAIGHT_LINE [2018-11-23 15:42:28,537 INFO L386 AbstractCegarLoop]: Determinization is PREDICATE_ABSTRACTION [2018-11-23 15:42:28,537 INFO L387 AbstractCegarLoop]: Difference is false [2018-11-23 15:42:28,537 INFO L388 AbstractCegarLoop]: Minimize is MINIMIZE_SEVPA [2018-11-23 15:42:28,537 INFO L393 AbstractCegarLoop]: ======== Iteration 0==of CEGAR loop == AllErrorsAtOnce======== [2018-11-23 15:42:28,550 INFO L276 IsEmpty]: Start isEmpty. Operand 47 states. [2018-11-23 15:42:28,554 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 29 [2018-11-23 15:42:28,554 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 15:42:28,554 INFO L402 BasicCegarLoop]: trace histogram [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [2018-11-23 15:42:28,557 INFO L423 AbstractCegarLoop]: === Iteration 1 === [fooErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 15:42:28,561 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 15:42:28,561 INFO L82 PathProgramCache]: Analyzing trace with hash -1442632694, now seen corresponding path program 1 times [2018-11-23 15:42:28,563 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 15:42:28,563 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 15:42:28,599 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:28,599 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 15:42:28,599 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:28,643 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 15:42:28,713 INFO L134 CoverageAnalysis]: Checked inductivity of 5 backedges. 0 proven. 2 refuted. 0 times theorem prover too weak. 3 trivial. 0 not checked. [2018-11-23 15:42:28,716 INFO L300 seRefinementStrategy]: The current sequences of interpolants are not accepted, trying to find more. [2018-11-23 15:42:28,716 INFO L223 ckRefinementStrategy]: Switched to mode Z3_FP No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/z3 Starting monitored process 2 with z3 -smt2 -in SMTLIB2_COMPLIANT=true -t:12000 (exit command is (exit), workingDir is null) Waiting until toolchain timeout for monitored process 2 with z3 -smt2 -in SMTLIB2_COMPLIANT=true -t:12000 [2018-11-23 15:42:28,726 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 15:42:28,760 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 15:42:28,767 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 15:42:28,784 INFO L134 CoverageAnalysis]: Checked inductivity of 5 backedges. 5 proven. 0 refuted. 0 times theorem prover too weak. 0 trivial. 0 not checked. [2018-11-23 15:42:28,808 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 1 imperfect interpolant sequences. [2018-11-23 15:42:28,808 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [4] imperfect sequences [4] total 4 [2018-11-23 15:42:28,810 INFO L459 AbstractCegarLoop]: Interpolant automaton has 4 states [2018-11-23 15:42:28,818 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 4 interpolants. [2018-11-23 15:42:28,818 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=5, Invalid=7, Unknown=0, NotChecked=0, Total=12 [2018-11-23 15:42:28,819 INFO L87 Difference]: Start difference. First operand 47 states. Second operand 4 states. [2018-11-23 15:42:28,849 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 15:42:28,849 INFO L93 Difference]: Finished difference Result 88 states and 101 transitions. [2018-11-23 15:42:28,849 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 4 states. [2018-11-23 15:42:28,850 INFO L78 Accepts]: Start accepts. Automaton has 4 states. Word has length 28 [2018-11-23 15:42:28,850 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 15:42:28,856 INFO L225 Difference]: With dead ends: 88 [2018-11-23 15:42:28,856 INFO L226 Difference]: Without dead ends: 44 [2018-11-23 15:42:28,858 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 31 GetRequests, 28 SyntacticMatches, 1 SemanticMatches, 2 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s TimeCoverageRelationStatistics Valid=5, Invalid=7, Unknown=0, NotChecked=0, Total=12 [2018-11-23 15:42:28,868 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 44 states. [2018-11-23 15:42:28,883 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 44 to 44. [2018-11-23 15:42:28,884 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 44 states. [2018-11-23 15:42:28,885 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 44 states to 44 states and 48 transitions. [2018-11-23 15:42:28,886 INFO L78 Accepts]: Start accepts. Automaton has 44 states and 48 transitions. Word has length 28 [2018-11-23 15:42:28,886 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 15:42:28,886 INFO L480 AbstractCegarLoop]: Abstraction has 44 states and 48 transitions. [2018-11-23 15:42:28,886 INFO L481 AbstractCegarLoop]: Interpolant automaton has 4 states. [2018-11-23 15:42:28,886 INFO L276 IsEmpty]: Start isEmpty. Operand 44 states and 48 transitions. [2018-11-23 15:42:28,888 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 29 [2018-11-23 15:42:28,888 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 15:42:28,888 INFO L402 BasicCegarLoop]: trace histogram [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [2018-11-23 15:42:28,888 INFO L423 AbstractCegarLoop]: === Iteration 2 === [fooErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 15:42:28,888 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 15:42:28,888 INFO L82 PathProgramCache]: Analyzing trace with hash 542758643, now seen corresponding path program 1 times [2018-11-23 15:42:28,888 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 15:42:28,888 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 15:42:28,889 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:28,889 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 15:42:28,890 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:28,906 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 15:42:28,933 INFO L134 CoverageAnalysis]: Checked inductivity of 4 backedges. 2 proven. 0 refuted. 0 times theorem prover too weak. 2 trivial. 0 not checked. [2018-11-23 15:42:28,933 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 0 imperfect interpolant sequences. [2018-11-23 15:42:28,933 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [4] imperfect sequences [] total 4 [2018-11-23 15:42:28,934 INFO L459 AbstractCegarLoop]: Interpolant automaton has 4 states [2018-11-23 15:42:28,934 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 4 interpolants. [2018-11-23 15:42:28,934 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=5, Invalid=7, Unknown=0, NotChecked=0, Total=12 [2018-11-23 15:42:28,935 INFO L87 Difference]: Start difference. First operand 44 states and 48 transitions. Second operand 4 states. [2018-11-23 15:42:28,946 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 15:42:28,946 INFO L93 Difference]: Finished difference Result 48 states and 51 transitions. [2018-11-23 15:42:28,947 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 4 states. [2018-11-23 15:42:28,947 INFO L78 Accepts]: Start accepts. Automaton has 4 states. Word has length 28 [2018-11-23 15:42:28,947 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 15:42:28,948 INFO L225 Difference]: With dead ends: 48 [2018-11-23 15:42:28,948 INFO L226 Difference]: Without dead ends: 44 [2018-11-23 15:42:28,949 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 4 GetRequests, 2 SyntacticMatches, 0 SemanticMatches, 2 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s TimeCoverageRelationStatistics Valid=5, Invalid=7, Unknown=0, NotChecked=0, Total=12 [2018-11-23 15:42:28,949 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 44 states. [2018-11-23 15:42:28,953 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 44 to 44. [2018-11-23 15:42:28,953 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 44 states. [2018-11-23 15:42:28,954 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 44 states to 44 states and 47 transitions. [2018-11-23 15:42:28,954 INFO L78 Accepts]: Start accepts. Automaton has 44 states and 47 transitions. Word has length 28 [2018-11-23 15:42:28,954 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 15:42:28,954 INFO L480 AbstractCegarLoop]: Abstraction has 44 states and 47 transitions. [2018-11-23 15:42:28,954 INFO L481 AbstractCegarLoop]: Interpolant automaton has 4 states. [2018-11-23 15:42:28,954 INFO L276 IsEmpty]: Start isEmpty. Operand 44 states and 47 transitions. [2018-11-23 15:42:28,955 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 29 [2018-11-23 15:42:28,955 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 15:42:28,955 INFO L402 BasicCegarLoop]: trace histogram [2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [2018-11-23 15:42:28,956 INFO L423 AbstractCegarLoop]: === Iteration 3 === [fooErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 15:42:28,956 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 15:42:28,956 INFO L82 PathProgramCache]: Analyzing trace with hash 2117361948, now seen corresponding path program 1 times [2018-11-23 15:42:28,956 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 15:42:28,956 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 15:42:28,957 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:28,957 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 15:42:28,958 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:28,972 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 15:42:29,241 INFO L134 CoverageAnalysis]: Checked inductivity of 5 backedges. 0 proven. 4 refuted. 0 times theorem prover too weak. 1 trivial. 0 not checked. [2018-11-23 15:42:29,241 INFO L300 seRefinementStrategy]: The current sequences of interpolants are not accepted, trying to find more. [2018-11-23 15:42:29,241 INFO L223 ckRefinementStrategy]: Switched to mode Z3_FP No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/z3 Starting monitored process 3 with z3 -smt2 -in SMTLIB2_COMPLIANT=true -t:12000 (exit command is (exit), workingDir is null) Waiting until toolchain timeout for monitored process 3 with z3 -smt2 -in SMTLIB2_COMPLIANT=true -t:12000 [2018-11-23 15:42:29,251 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 15:42:29,280 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 15:42:29,284 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 15:42:29,322 INFO L478 Elim1Store]: Elim1 did not use preprocessing eliminated variable of array dimension 2, 0 stores, 1 select indices, 1 select index equivalence classes, 0 disjoint index pairs (out of 0 index pairs), introduced 1 new quantified variables, introduced 0 case distinctions, treesize of input 7 treesize of output 5 [2018-11-23 15:42:29,329 INFO L478 Elim1Store]: Elim1 did not use preprocessing eliminated variable of array dimension 1, 0 stores, 1 select indices, 1 select index equivalence classes, 0 disjoint index pairs (out of 0 index pairs), introduced 0 new quantified variables, introduced 0 case distinctions, treesize of input 5 treesize of output 1 [2018-11-23 15:42:29,329 INFO L267 ElimStorePlain]: Start of recursive call 3: End of recursive call: and 1 xjuncts. [2018-11-23 15:42:29,331 INFO L267 ElimStorePlain]: Start of recursive call 2: 1 dim-1 vars, End of recursive call: and 1 xjuncts. [2018-11-23 15:42:29,337 INFO L478 Elim1Store]: Elim1 did not use preprocessing eliminated variable of array dimension 2, 0 stores, 1 select indices, 1 select index equivalence classes, 0 disjoint index pairs (out of 0 index pairs), introduced 1 new quantified variables, introduced 0 case distinctions, treesize of input 7 treesize of output 5 [2018-11-23 15:42:29,339 INFO L478 Elim1Store]: Elim1 did not use preprocessing eliminated variable of array dimension 1, 0 stores, 1 select indices, 1 select index equivalence classes, 0 disjoint index pairs (out of 0 index pairs), introduced 0 new quantified variables, introduced 0 case distinctions, treesize of input 5 treesize of output 1 [2018-11-23 15:42:29,339 INFO L267 ElimStorePlain]: Start of recursive call 5: End of recursive call: and 1 xjuncts. [2018-11-23 15:42:29,340 INFO L267 ElimStorePlain]: Start of recursive call 4: 1 dim-1 vars, End of recursive call: and 1 xjuncts. [2018-11-23 15:42:29,347 INFO L267 ElimStorePlain]: Start of recursive call 1: 2 dim-2 vars, End of recursive call: and 1 xjuncts. [2018-11-23 15:42:29,347 INFO L202 ElimStorePlain]: Needed 5 recursive calls to eliminate 2 variables, input treesize:24, output treesize:10 [2018-11-23 15:42:29,438 INFO L134 CoverageAnalysis]: Checked inductivity of 5 backedges. 5 proven. 0 refuted. 0 times theorem prover too weak. 0 trivial. 0 not checked. [2018-11-23 15:42:29,453 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 1 imperfect interpolant sequences. [2018-11-23 15:42:29,453 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [7] imperfect sequences [8] total 12 [2018-11-23 15:42:29,454 INFO L459 AbstractCegarLoop]: Interpolant automaton has 12 states [2018-11-23 15:42:29,454 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 12 interpolants. [2018-11-23 15:42:29,454 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=31, Invalid=101, Unknown=0, NotChecked=0, Total=132 [2018-11-23 15:42:29,454 INFO L87 Difference]: Start difference. First operand 44 states and 47 transitions. Second operand 12 states. [2018-11-23 15:42:29,898 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 15:42:29,898 INFO L93 Difference]: Finished difference Result 89 states and 96 transitions. [2018-11-23 15:42:29,898 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 15 states. [2018-11-23 15:42:29,898 INFO L78 Accepts]: Start accepts. Automaton has 12 states. Word has length 28 [2018-11-23 15:42:29,898 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 15:42:29,899 INFO L225 Difference]: With dead ends: 89 [2018-11-23 15:42:29,899 INFO L226 Difference]: Without dead ends: 67 [2018-11-23 15:42:29,900 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 53 GetRequests, 30 SyntacticMatches, 4 SemanticMatches, 19 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 58 ImplicationChecksByTransitivity, 0.5s TimeCoverageRelationStatistics Valid=112, Invalid=308, Unknown=0, NotChecked=0, Total=420 [2018-11-23 15:42:29,900 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 67 states. [2018-11-23 15:42:29,906 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 67 to 46. [2018-11-23 15:42:29,906 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 46 states. [2018-11-23 15:42:29,907 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 46 states to 46 states and 48 transitions. [2018-11-23 15:42:29,907 INFO L78 Accepts]: Start accepts. Automaton has 46 states and 48 transitions. Word has length 28 [2018-11-23 15:42:29,909 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 15:42:29,909 INFO L480 AbstractCegarLoop]: Abstraction has 46 states and 48 transitions. [2018-11-23 15:42:29,909 INFO L481 AbstractCegarLoop]: Interpolant automaton has 12 states. [2018-11-23 15:42:29,909 INFO L276 IsEmpty]: Start isEmpty. Operand 46 states and 48 transitions. [2018-11-23 15:42:29,910 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 43 [2018-11-23 15:42:29,910 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 15:42:29,910 INFO L402 BasicCegarLoop]: trace histogram [2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] [2018-11-23 15:42:29,910 INFO L423 AbstractCegarLoop]: === Iteration 4 === [fooErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 15:42:29,910 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 15:42:29,910 INFO L82 PathProgramCache]: Analyzing trace with hash -2034835195, now seen corresponding path program 1 times [2018-11-23 15:42:29,911 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 15:42:29,911 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 15:42:29,912 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:29,912 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 15:42:29,912 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 15:42:29,939 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2018-11-23 15:42:29,962 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2018-11-23 15:42:29,984 INFO L469 BasicCegarLoop]: Counterexample might be feasible ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder.RCFGBacktranslator [?] CALL call ULTIMATE.init(); VAL [|#NULL.base|=23, |#NULL.offset|=14, |old(#NULL.base)|=23, |old(#NULL.offset)|=14, |old(~#s1~0.base)|=18, |old(~#s1~0.offset)|=16, |~#s1~0.base|=18, |~#s1~0.offset|=16] [?] #NULL.base, #NULL.offset := 0, 0;#valid := #valid[0 := 0];call ~#s1~0.base, ~#s1~0.offset := #Ultimate.alloc(8);call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, ~#s1~0.offset, 4);call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, 4 + ~#s1~0.offset, 4); VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=23, |old(#NULL.offset)|=14, |old(~#s1~0.base)|=18, |old(~#s1~0.offset)|=16, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=23, |old(#NULL.offset)|=14, |old(~#s1~0.base)|=18, |old(~#s1~0.offset)|=16, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #77#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret29 := main(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call foo(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647;~j~0 := #t~nondet27;havoc #t~nondet27; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~new := #in~new;~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~e := #in~e;~s.base, ~s.offset := #in~s.base, #in~s.offset;havoc ~m~1.base, ~m~1.offset;call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4);~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset;havoc #t~mem23.base, #t~mem23.offset;~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] #res := 0; VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #71#return; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume 0 == #t~ret17;havoc #t~ret17;havoc ~le~0.base, ~le~0.offset; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=12, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~size := #in~size;call #t~malloc5.base, #t~malloc5.offset := #Ultimate.alloc(~size);~ptr~0.base, ~ptr~0.offset := #t~malloc5.base, #t~malloc5.offset;assume 0 != (if ~ptr~0.base != 0 || ~ptr~0.offset != 0 then 1 else 0);#res.base, #res.offset := ~ptr~0.base, ~ptr~0.offset; VAL [ldv_successful_malloc_~ptr~0.base=21, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=12, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=12, |ldv_successful_malloc_#res.base|=21, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=21, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=21, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=12, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=12, |ldv_successful_malloc_#res.base|=21, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=21, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #73#return; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret18.base|=21, |ldv_set_add_#t~ret18.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset;havoc #t~ret18.base, #t~ret18.offset;call write~int(~new, ~le~0.base, ~le~0.offset, 4); VAL [ldv_set_add_~le~0.base=21, ldv_set_add_~le~0.offset=0, ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~new.base, ~new.offset := #in~new.base, #in~new.offset;~head.base, ~head.offset := #in~head.base, #in~head.offset;call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=17, |ldv_list_add_#t~mem6.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=21, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=17, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=17, |__ldv_list_add_#in~prev.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~new.base, ~new.offset := #in~new.base, #in~new.offset;~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset;~next.base, ~next.offset := #in~next.base, #in~next.offset;call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4);call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4);call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4);call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [__ldv_list_add_~new.base=21, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=17, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=17, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=21, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=17, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=17, |__ldv_list_add_#in~prev.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [__ldv_list_add_~new.base=21, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=17, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=17, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=21, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=17, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=17, |__ldv_list_add_#in~prev.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #63#return; VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=17, |ldv_list_add_#t~mem6.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] havoc #t~mem6.base, #t~mem6.offset; VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #75#return; VAL [ldv_set_add_~le~0.base=21, ldv_set_add_~le~0.offset=0, ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_set_add_~le~0.base=21, ldv_set_add_~le~0.offset=0, ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #65#return; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~e := #in~e;~s.base, ~s.offset := #in~s.base, #in~s.offset;havoc ~m~1.base, ~m~1.offset;call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4);~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset;havoc #t~mem23.base, #t~mem23.offset;~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset);call #t~mem25 := read~int(~m~1.base, ~m~1.offset, 4); VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#t~mem25|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume #t~mem25 == ~e;havoc #t~mem25;#res := 1; VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #67#return; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret28|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret28|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume 0 != #t~ret28;havoc #t~ret28; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume !false; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call ULTIMATE.init(); VAL [#NULL.base=23, #NULL.offset=14, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=18, ~#s1~0.offset=16] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L649] call ~#s1~0.base, ~#s1~0.offset := #Ultimate.alloc(8); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, ~#s1~0.offset, 4); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, 4 + ~#s1~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L658] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L639-L643] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620-L625] assume 0 == #t~ret17; [L620] havoc #t~ret17; [L621] havoc ~le~0.base, ~le~0.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L562-L566] ~size := #in~size; [L563] call #t~malloc5.base, #t~malloc5.offset := #Ultimate.alloc(~size); [L563] ~ptr~0.base, ~ptr~0.offset := #t~malloc5.base, #t~malloc5.offset; [L564] assume 0 != (if ~ptr~0.base != 0 || ~ptr~0.offset != 0 then 1 else 0); [L565] #res.base, #res.offset := ~ptr~0.base, ~ptr~0.offset; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L622] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=21, #t~ret18.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L622] havoc #t~ret18.base, #t~ret18.offset; [L623] call write~int(~new, ~le~0.base, ~le~0.offset, 4); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L624] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L590-L593] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L590-L593] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L592] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L576-L584] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L576-L584] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L576-L584] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L580] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L581] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L582] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L583] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L576-L584] ensures true; VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L592] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L590-L593] ensures true; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L624] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L608] ensures true; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L639-L643] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L640] call #t~mem25 := read~int(~m~1.base, ~m~1.offset, 4); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L640-L642] assume #t~mem25 == ~e; [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume 0 != #t~ret28; [L654] havoc #t~ret28; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assert false; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.preprocessor.BoogiePreprocessorBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL.base=23, #NULL.offset=14, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=18, ~#s1~0.offset=16] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L649] call ~#s1~0.base, ~#s1~0.offset := #Ultimate.alloc(8); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, ~#s1~0.offset, 4); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, 4 + ~#s1~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L658] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L639-L643] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620-L625] assume 0 == #t~ret17; [L620] havoc #t~ret17; [L621] havoc ~le~0.base, ~le~0.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L562-L566] ~size := #in~size; [L563] call #t~malloc5.base, #t~malloc5.offset := #Ultimate.alloc(~size); [L563] ~ptr~0.base, ~ptr~0.offset := #t~malloc5.base, #t~malloc5.offset; [L564] assume 0 != (if ~ptr~0.base != 0 || ~ptr~0.offset != 0 then 1 else 0); [L565] #res.base, #res.offset := ~ptr~0.base, ~ptr~0.offset; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L622] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=21, #t~ret18.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L622] havoc #t~ret18.base, #t~ret18.offset; [L623] call write~int(~new, ~le~0.base, ~le~0.offset, 4); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L624] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L590-L593] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L590-L593] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L592] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L576-L584] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L576-L584] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L576-L584] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L580] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L581] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L582] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L583] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L576-L584] ensures true; VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L592] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L590-L593] ensures true; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L624] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L608] ensures true; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L639-L643] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L640] call #t~mem25 := read~int(~m~1.base, ~m~1.offset, 4); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L640-L642] assume #t~mem25 == ~e; [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume 0 != #t~ret28; [L654] havoc #t~ret28; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assert false; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.procedureinliner.backtranslation.InlinerBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] ----- [2018-11-23 15:42:30,052 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 16 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# [2018-11-23 15:42:30,053 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 18 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.CACSL2BoogieBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L649] struct ldv_list_head s1 = { &(s1), &(s1) }; VAL [\old(s1)=null, \old(s1)=null, s1={17:0}] [L658] CALL foo() VAL [s1={17:0}] [L652] int j = __VERIFIER_nondet_int(); [L653] CALL ldv_set_add(j, &s1) VAL [\old(new)=0, s={17:0}, s1={17:0}] [L620] CALL, EXPR ldv_is_in_set(new, s) VAL [\old(e)=0, s={17:0}, s1={17:0}] [L638] struct ldv_list_element *m; [L639] EXPR (s)->next [L639] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L639] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [\old(e)=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L639] COND FALSE !(&m->list != (s)) VAL [\old(e)=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L644] return 0; VAL [\old(e)=0, \result=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L620] RET, EXPR ldv_is_in_set(new, s) VAL [\old(new)=0, ldv_is_in_set(new, s)=0, new=0, s={17:0}, s={17:0}, s1={17:0}] [L620] COND TRUE !ldv_is_in_set(new, s) [L621] struct ldv_list_element *le; VAL [\old(new)=0, new=0, s={17:0}, s={17:0}, s1={17:0}] [L622] CALL, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(size)=12, s1={17:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=12, \result={21:0}, malloc(size)={21:0}, ptr={21:0}, s1={17:0}, size=12] [L622] RET, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(new)=0, ldv_successful_malloc(sizeof(struct ldv_list_element))={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L622] le = (struct ldv_list_element*)ldv_successful_malloc(sizeof(struct ldv_list_element)) [L623] le->e = new VAL [\old(new)=0, le={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L624] CALL ldv_list_add(&le->list, s) VAL [head={17:0}, new={21:4}, s1={17:0}] [L592] EXPR head->next VAL [head={17:0}, head={17:0}, head->next={17:0}, new={21:4}, new={21:4}, s1={17:0}] [L592] CALL __ldv_list_add(new, head, head->next) VAL [new={21:4}, next={17:0}, prev={17:0}, s1={17:0}] [L580] next->prev = new [L581] new->next = next [L582] new->prev = prev [L583] prev->next = new VAL [new={21:4}, new={21:4}, next={17:0}, next={17:0}, prev={17:0}, prev={17:0}, s1={17:0}] [L592] RET __ldv_list_add(new, head, head->next) VAL [head={17:0}, head={17:0}, head->next={17:0}, new={21:4}, new={21:4}, s1={17:0}] [L624] RET ldv_list_add(&le->list, s) VAL [\old(new)=0, le={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L653] RET ldv_set_add(j, &s1) VAL [j=0, s1={17:0}] [L654] CALL ldv_is_in_set(j, &s1) VAL [\old(e)=0, s={17:0}, s1={17:0}] [L638] struct ldv_list_element *m; [L639] EXPR (s)->next [L639] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L639] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [\old(e)=0, __mptr={21:4}, e=0, m={21:0}, s={17:0}, s={17:0}, s1={17:0}] [L639] COND TRUE &m->list != (s) [L640] EXPR m->e VAL [\old(e)=0, __mptr={21:4}, e=0, m={21:0}, m->e=0, s={17:0}, s={17:0}, s1={17:0}] [L640] COND TRUE m->e == e [L641] return 1; VAL [\old(e)=0, \result=1, __mptr={21:4}, e=0, m={21:0}, s={17:0}, s={17:0}, s1={17:0}] [L654] RET ldv_is_in_set(j, &s1) VAL [j=0, ldv_is_in_set(j, &s1)=1, s1={17:0}] [L654] COND TRUE ldv_is_in_set(j, &s1) [L654] __VERIFIER_error() VAL [j=0, s1={17:0}] ----- [2018-11-23 15:42:30,067 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction CFG 23.11 03:42:30 BoogieIcfgContainer [2018-11-23 15:42:30,068 INFO L132 PluginConnector]: ------------------------ END TraceAbstraction---------------------------- [2018-11-23 15:42:30,068 INFO L113 PluginConnector]: ------------------------Witness Printer---------------------------- [2018-11-23 15:42:30,068 INFO L271 PluginConnector]: Initializing Witness Printer... [2018-11-23 15:42:30,068 INFO L276 PluginConnector]: Witness Printer initialized [2018-11-23 15:42:30,069 INFO L185 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 03:42:28" (3/4) ... [2018-11-23 15:42:30,071 INFO L138 WitnessPrinter]: Generating witness for reachability counterexample ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder.RCFGBacktranslator [?] CALL call ULTIMATE.init(); VAL [|#NULL.base|=23, |#NULL.offset|=14, |old(#NULL.base)|=23, |old(#NULL.offset)|=14, |old(~#s1~0.base)|=18, |old(~#s1~0.offset)|=16, |~#s1~0.base|=18, |~#s1~0.offset|=16] [?] #NULL.base, #NULL.offset := 0, 0;#valid := #valid[0 := 0];call ~#s1~0.base, ~#s1~0.offset := #Ultimate.alloc(8);call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, ~#s1~0.offset, 4);call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, 4 + ~#s1~0.offset, 4); VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=23, |old(#NULL.offset)|=14, |old(~#s1~0.base)|=18, |old(~#s1~0.offset)|=16, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=23, |old(#NULL.offset)|=14, |old(~#s1~0.base)|=18, |old(~#s1~0.offset)|=16, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #77#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret29 := main(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call foo(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647;~j~0 := #t~nondet27;havoc #t~nondet27; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~new := #in~new;~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~e := #in~e;~s.base, ~s.offset := #in~s.base, #in~s.offset;havoc ~m~1.base, ~m~1.offset;call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4);~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset;havoc #t~mem23.base, #t~mem23.offset;~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] #res := 0; VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=17, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=17, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #71#return; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume 0 == #t~ret17;havoc #t~ret17;havoc ~le~0.base, ~le~0.offset; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=12, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~size := #in~size;call #t~malloc5.base, #t~malloc5.offset := #Ultimate.alloc(~size);~ptr~0.base, ~ptr~0.offset := #t~malloc5.base, #t~malloc5.offset;assume 0 != (if ~ptr~0.base != 0 || ~ptr~0.offset != 0 then 1 else 0);#res.base, #res.offset := ~ptr~0.base, ~ptr~0.offset; VAL [ldv_successful_malloc_~ptr~0.base=21, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=12, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=12, |ldv_successful_malloc_#res.base|=21, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=21, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=21, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=12, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=12, |ldv_successful_malloc_#res.base|=21, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=21, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #73#return; VAL [ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret18.base|=21, |ldv_set_add_#t~ret18.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset;havoc #t~ret18.base, #t~ret18.offset;call write~int(~new, ~le~0.base, ~le~0.offset, 4); VAL [ldv_set_add_~le~0.base=21, ldv_set_add_~le~0.offset=0, ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~new.base, ~new.offset := #in~new.base, #in~new.offset;~head.base, ~head.offset := #in~head.base, #in~head.offset;call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=17, |ldv_list_add_#t~mem6.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=21, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=17, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=17, |__ldv_list_add_#in~prev.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~new.base, ~new.offset := #in~new.base, #in~new.offset;~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset;~next.base, ~next.offset := #in~next.base, #in~next.offset;call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4);call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4);call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4);call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [__ldv_list_add_~new.base=21, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=17, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=17, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=21, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=17, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=17, |__ldv_list_add_#in~prev.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [__ldv_list_add_~new.base=21, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=17, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=17, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=21, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=17, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=17, |__ldv_list_add_#in~prev.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #63#return; VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=17, |ldv_list_add_#t~mem6.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] havoc #t~mem6.base, #t~mem6.offset; VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_list_add_~head.base=17, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=21, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=17, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=21, |ldv_list_add_#in~new.offset|=4, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #75#return; VAL [ldv_set_add_~le~0.base=21, ldv_set_add_~le~0.offset=0, ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_set_add_~le~0.base=21, ldv_set_add_~le~0.offset=0, ldv_set_add_~new=0, ldv_set_add_~s.base=17, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new|=0, |ldv_set_add_#in~s.base|=17, |ldv_set_add_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #65#return; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] ~e := #in~e;~s.base, ~s.offset := #in~s.base, #in~s.offset;havoc ~m~1.base, ~m~1.offset;call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4);~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset;havoc #t~mem23.base, #t~mem23.offset;~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset);call #t~mem25 := read~int(~m~1.base, ~m~1.offset, 4); VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#t~mem25|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume #t~mem25 == ~e;havoc #t~mem25;#res := 1; VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=21, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e=0, ldv_is_in_set_~m~1.base=21, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=17, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e|=0, |ldv_is_in_set_#in~s.base|=17, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] RET #67#return; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret28|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret28|=1, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume 0 != #t~ret28;havoc #t~ret28; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] assume !false; VAL [foo_~j~0=0, |#NULL.base|=0, |#NULL.offset|=0, |~#s1~0.base|=17, |~#s1~0.offset|=0] [?] CALL call ULTIMATE.init(); VAL [#NULL.base=23, #NULL.offset=14, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=18, ~#s1~0.offset=16] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L649] call ~#s1~0.base, ~#s1~0.offset := #Ultimate.alloc(8); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, ~#s1~0.offset, 4); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, 4 + ~#s1~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L658] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L639-L643] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620-L625] assume 0 == #t~ret17; [L620] havoc #t~ret17; [L621] havoc ~le~0.base, ~le~0.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L562-L566] ~size := #in~size; [L563] call #t~malloc5.base, #t~malloc5.offset := #Ultimate.alloc(~size); [L563] ~ptr~0.base, ~ptr~0.offset := #t~malloc5.base, #t~malloc5.offset; [L564] assume 0 != (if ~ptr~0.base != 0 || ~ptr~0.offset != 0 then 1 else 0); [L565] #res.base, #res.offset := ~ptr~0.base, ~ptr~0.offset; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L622] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=21, #t~ret18.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L622] havoc #t~ret18.base, #t~ret18.offset; [L623] call write~int(~new, ~le~0.base, ~le~0.offset, 4); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L624] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L590-L593] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L590-L593] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L592] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L576-L584] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L576-L584] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L576-L584] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L580] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L581] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L582] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L583] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L576-L584] ensures true; VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L592] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L590-L593] ensures true; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L624] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L608] ensures true; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L639-L643] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L640] call #t~mem25 := read~int(~m~1.base, ~m~1.offset, 4); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L640-L642] assume #t~mem25 == ~e; [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume 0 != #t~ret28; [L654] havoc #t~ret28; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assert false; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.preprocessor.BoogiePreprocessorBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL.base=23, #NULL.offset=14, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=18, ~#s1~0.offset=16] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L649] call ~#s1~0.base, ~#s1~0.offset := #Ultimate.alloc(8); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, ~#s1~0.offset, 4); [L649] call write~init~$Pointer$(~#s1~0.base, ~#s1~0.offset, ~#s1~0.base, 4 + ~#s1~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=23, old(#NULL.offset)=14, old(~#s1~0.base)=18, old(~#s1~0.offset)=16, ~#s1~0.base=17, ~#s1~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L658] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L639-L643] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=17, ~__mptr~3.offset=0, ~e=0, ~m~1.base=17, ~m~1.offset=-4, ~s.base=17, ~s.offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L620-L625] assume 0 == #t~ret17; [L620] havoc #t~ret17; [L621] havoc ~le~0.base, ~le~0.offset; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L562-L566] ~size := #in~size; [L563] call #t~malloc5.base, #t~malloc5.offset := #Ultimate.alloc(~size); [L563] ~ptr~0.base, ~ptr~0.offset := #t~malloc5.base, #t~malloc5.offset; [L564] assume 0 != (if ~ptr~0.base != 0 || ~ptr~0.offset != 0 then 1 else 0); [L565] #res.base, #res.offset := ~ptr~0.base, ~ptr~0.offset; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=21, #res.offset=0, #t~malloc5.base=21, #t~malloc5.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~ptr~0.base=21, ~ptr~0.offset=0, ~size=12] [L622] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=21, #t~ret18.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L622] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L622] havoc #t~ret18.base, #t~ret18.offset; [L623] call write~int(~new, ~le~0.base, ~le~0.offset, 4); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L624] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L590-L593] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L590-L593] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L592] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L576-L584] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L576-L584] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L576-L584] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L580] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L581] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L582] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L583] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L576-L584] ensures true; VAL [#in~new.base=21, #in~new.offset=4, #in~next.base=17, #in~next.offset=0, #in~prev.base=17, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~new.base=21, ~new.offset=4, ~next.base=17, ~next.offset=0, ~prev.base=17, ~prev.offset=0] [L592] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=17, #t~mem6.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L592] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L590-L593] ensures true; VAL [#in~head.base=17, #in~head.offset=0, #in~new.base=21, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~head.base=17, ~head.offset=0, ~new.base=21, ~new.offset=4] [L624] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L608] ensures true; VAL [#in~new=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~le~0.base=21, ~le~0.offset=0, ~new=0, ~s.base=17, ~s.offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L638] havoc ~m~1.base, ~m~1.offset; [L639] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L639] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L639] havoc #t~mem23.base, #t~mem23.offset; [L639] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L639-L643] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L640] call #t~mem25 := read~int(~m~1.base, ~m~1.offset, 4); VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L640-L642] assume #t~mem25 == ~e; [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L610] ensures true; VAL [#in~e=0, #in~s.base=17, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~__mptr~3.base=21, ~__mptr~3.offset=4, ~e=0, ~m~1.base=21, ~m~1.offset=0, ~s.base=17, ~s.offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0.base, ~#s1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL.base=0, #NULL.offset=0, #t~ret28=1, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assume 0 != #t~ret28; [L654] havoc #t~ret28; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [L654] assert false; VAL [#NULL.base=0, #NULL.offset=0, ~#s1~0.base=17, ~#s1~0.offset=0, ~j~0=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.procedureinliner.backtranslation.InlinerBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] ----- [2018-11-23 15:42:30,186 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 16 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# [2018-11-23 15:42:30,186 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 18 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.CACSL2BoogieBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL!base=23, #NULL!offset=14, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=18, ~#s1~0!offset=16] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L649] FCALL call ~#s1~0 := #Ultimate.alloc(8); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: ~#s1~0!offset }, 4); [L649] FCALL call write~init~$Pointer$(~#s1~0, { base: ~#s1~0!base, offset: 4 + ~#s1~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=23, old(#NULL!offset)=14, old(~#s1~0!base)=18, old(~#s1~0!offset)=16, ~#s1~0!base=17, ~#s1~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [?] CALL call #t~ret29 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L658] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L652] assume -2147483648 <= #t~nondet27 && #t~nondet27 <= 2147483647; [L652] ~j~0 := #t~nondet27; [L652] havoc #t~nondet27; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L653] CALL call ldv_set_add(~j~0, ~#s1~0); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L619-L626] ~new := #in~new; [L619-L626] ~s := #in~s; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L639-L643] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L644] #res := 0; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=17, ~__mptr~3!offset=0, ~e=0, ~m~1!base=17, ~m~1!offset=-4, ~s!base=17, ~s!offset=0] [L620] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L620] COND TRUE 0 == #t~ret17 [L620] havoc #t~ret17; [L621] havoc ~le~0; VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L562-L566] ~size := #in~size; [L563] FCALL call #t~malloc5 := #Ultimate.alloc(~size); [L563] ~ptr~0 := #t~malloc5; [L564] assume 0 != (if ~ptr~0 != { base: 0, offset: 0 } then 1 else 0); [L565] #res := ~ptr~0; VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, #res!base=21, #res!offset=0, #t~malloc5!base=21, #t~malloc5!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~ptr~0!base=21, ~ptr~0!offset=0, ~size=12] [L622] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=21, #t~ret18!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L622] ~le~0 := #t~ret18; [L622] havoc #t~ret18; [L623] FCALL call write~int(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L624] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L590-L593] ~new := #in~new; [L590-L593] ~head := #in~head; [L592] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L576-L584] ~new := #in~new; [L576-L584] ~prev := #in~prev; [L576-L584] ~next := #in~next; [L580] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L581] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L582] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L583] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=21, #in~new!offset=4, #in~next!base=17, #in~next!offset=0, #in~prev!base=17, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~new!base=21, ~new!offset=4, ~next!base=17, ~next!offset=0, ~prev!base=17, ~prev!offset=0] [L592] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=17, #t~mem6!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L592] havoc #t~mem6; VAL [#in~head!base=17, #in~head!offset=0, #in~new!base=21, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~head!base=17, ~head!offset=0, ~new!base=21, ~new!offset=4] [L624] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~le~0!base=21, ~le~0!offset=0, ~new=0, ~s!base=17, ~s!offset=0] [L653] RET call ldv_set_add(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] CALL call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0] [L637-L645] ~e := #in~e; [L637-L645] ~s := #in~s; [L638] havoc ~m~1; [L639] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L639] ~__mptr~3 := #t~mem23; [L639] havoc #t~mem23; [L639] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L639-L643] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L640] FCALL call #t~mem25 := read~int({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L640] COND TRUE #t~mem25 == ~e [L640] havoc #t~mem25; [L641] #res := 1; VAL [#in~e=0, #in~s!base=17, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~__mptr~3!base=21, ~__mptr~3!offset=4, ~e=0, ~m~1!base=21, ~m~1!offset=0, ~s!base=17, ~s!offset=0] [L654] RET call #t~ret28 := ldv_is_in_set(~j~0, ~#s1~0); VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assume -2147483648 <= #t~ret28 && #t~ret28 <= 2147483647; VAL [#NULL!base=0, #NULL!offset=0, #t~ret28=1, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] COND TRUE 0 != #t~ret28 [L654] havoc #t~ret28; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L654] assert false; VAL [#NULL!base=0, #NULL!offset=0, ~#s1~0!base=17, ~#s1~0!offset=0, ~j~0=0] [L649] struct ldv_list_head s1 = { &(s1), &(s1) }; VAL [\old(s1)=null, \old(s1)=null, s1={17:0}] [L658] CALL foo() VAL [s1={17:0}] [L652] int j = __VERIFIER_nondet_int(); [L653] CALL ldv_set_add(j, &s1) VAL [\old(new)=0, s={17:0}, s1={17:0}] [L620] CALL, EXPR ldv_is_in_set(new, s) VAL [\old(e)=0, s={17:0}, s1={17:0}] [L638] struct ldv_list_element *m; [L639] EXPR (s)->next [L639] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L639] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [\old(e)=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L639] COND FALSE !(&m->list != (s)) VAL [\old(e)=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L644] return 0; VAL [\old(e)=0, \result=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L620] RET, EXPR ldv_is_in_set(new, s) VAL [\old(new)=0, ldv_is_in_set(new, s)=0, new=0, s={17:0}, s={17:0}, s1={17:0}] [L620] COND TRUE !ldv_is_in_set(new, s) [L621] struct ldv_list_element *le; VAL [\old(new)=0, new=0, s={17:0}, s={17:0}, s1={17:0}] [L622] CALL, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(size)=12, s1={17:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=12, \result={21:0}, malloc(size)={21:0}, ptr={21:0}, s1={17:0}, size=12] [L622] RET, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(new)=0, ldv_successful_malloc(sizeof(struct ldv_list_element))={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L622] le = (struct ldv_list_element*)ldv_successful_malloc(sizeof(struct ldv_list_element)) [L623] le->e = new VAL [\old(new)=0, le={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L624] CALL ldv_list_add(&le->list, s) VAL [head={17:0}, new={21:4}, s1={17:0}] [L592] EXPR head->next VAL [head={17:0}, head={17:0}, head->next={17:0}, new={21:4}, new={21:4}, s1={17:0}] [L592] CALL __ldv_list_add(new, head, head->next) VAL [new={21:4}, next={17:0}, prev={17:0}, s1={17:0}] [L580] next->prev = new [L581] new->next = next [L582] new->prev = prev [L583] prev->next = new VAL [new={21:4}, new={21:4}, next={17:0}, next={17:0}, prev={17:0}, prev={17:0}, s1={17:0}] [L592] RET __ldv_list_add(new, head, head->next) VAL [head={17:0}, head={17:0}, head->next={17:0}, new={21:4}, new={21:4}, s1={17:0}] [L624] RET ldv_list_add(&le->list, s) VAL [\old(new)=0, le={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L653] RET ldv_set_add(j, &s1) VAL [j=0, s1={17:0}] [L654] CALL ldv_is_in_set(j, &s1) VAL [\old(e)=0, s={17:0}, s1={17:0}] [L638] struct ldv_list_element *m; [L639] EXPR (s)->next [L639] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L639] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [\old(e)=0, __mptr={21:4}, e=0, m={21:0}, s={17:0}, s={17:0}, s1={17:0}] [L639] COND TRUE &m->list != (s) [L640] EXPR m->e VAL [\old(e)=0, __mptr={21:4}, e=0, m={21:0}, m->e=0, s={17:0}, s={17:0}, s1={17:0}] [L640] COND TRUE m->e == e [L641] return 1; VAL [\old(e)=0, \result=1, __mptr={21:4}, e=0, m={21:0}, s={17:0}, s={17:0}, s1={17:0}] [L654] RET ldv_is_in_set(j, &s1) VAL [j=0, ldv_is_in_set(j, &s1)=1, s1={17:0}] [L654] COND TRUE ldv_is_in_set(j, &s1) [L654] __VERIFIER_error() VAL [j=0, s1={17:0}] ----- [2018-11-23 15:42:30,262 INFO L145 WitnessManager]: Wrote witness to /tmp/vcloud-vcloud-master/worker/working_dir_ffc3bbab-5c46-4eda-890e-4e5771675d2c/bin-2019/uautomizer/witness.graphml [2018-11-23 15:42:30,262 INFO L132 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2018-11-23 15:42:30,263 INFO L168 Benchmark]: Toolchain (without parser) took 2450.95 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 135.3 MB). Free memory was 956.6 MB in the beginning and 1.1 GB in the end (delta: -151.8 MB). There was no memory consumed. Max. memory is 11.5 GB. [2018-11-23 15:42:30,264 INFO L168 Benchmark]: CDTParser took 0.14 ms. Allocated memory is still 1.0 GB. Free memory is still 982.9 MB. There was no memory consumed. Max. memory is 11.5 GB. [2018-11-23 15:42:30,264 INFO L168 Benchmark]: CACSL2BoogieTranslator took 367.60 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 135.3 MB). Free memory was 956.6 MB in the beginning and 1.1 GB in the end (delta: -159.3 MB). Peak memory consumption was 26.5 MB. Max. memory is 11.5 GB. [2018-11-23 15:42:30,264 INFO L168 Benchmark]: Boogie Procedure Inliner took 23.17 ms. Allocated memory is still 1.2 GB. Free memory is still 1.1 GB. There was no memory consumed. Max. memory is 11.5 GB. [2018-11-23 15:42:30,265 INFO L168 Benchmark]: Boogie Preprocessor took 25.08 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 5.4 MB). Peak memory consumption was 5.4 MB. Max. memory is 11.5 GB. [2018-11-23 15:42:30,265 INFO L168 Benchmark]: RCFGBuilder took 267.11 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 19.7 MB). Peak memory consumption was 19.7 MB. Max. memory is 11.5 GB. [2018-11-23 15:42:30,265 INFO L168 Benchmark]: TraceAbstraction took 1570.63 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: -27.7 MB). Peak memory consumption was 228.8 MB. Max. memory is 11.5 GB. [2018-11-23 15:42:30,266 INFO L168 Benchmark]: Witness Printer took 193.97 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 10.2 MB). Peak memory consumption was 10.2 MB. Max. memory is 11.5 GB. [2018-11-23 15:42:30,268 INFO L336 ainManager$Toolchain]: ####################### End [Toolchain 1] ####################### --- Results --- * Results from de.uni_freiburg.informatik.ultimate.core: - StatisticsResult: Toolchain Benchmarks Benchmark results are: * CDTParser took 0.14 ms. Allocated memory is still 1.0 GB. Free memory is still 982.9 MB. There was no memory consumed. Max. memory is 11.5 GB. * CACSL2BoogieTranslator took 367.60 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 135.3 MB). Free memory was 956.6 MB in the beginning and 1.1 GB in the end (delta: -159.3 MB). Peak memory consumption was 26.5 MB. Max. memory is 11.5 GB. * Boogie Procedure Inliner took 23.17 ms. Allocated memory is still 1.2 GB. Free memory is still 1.1 GB. There was no memory consumed. Max. memory is 11.5 GB. * Boogie Preprocessor took 25.08 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 5.4 MB). Peak memory consumption was 5.4 MB. Max. memory is 11.5 GB. * RCFGBuilder took 267.11 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 19.7 MB). Peak memory consumption was 19.7 MB. Max. memory is 11.5 GB. * TraceAbstraction took 1570.63 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: -27.7 MB). Peak memory consumption was 228.8 MB. Max. memory is 11.5 GB. * Witness Printer took 193.97 ms. Allocated memory is still 1.2 GB. Free memory was 1.1 GB in the beginning and 1.1 GB in the end (delta: 10.2 MB). Peak memory consumption was 10.2 MB. Max. memory is 11.5 GB. * Results from de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator: - GenericResult: Unfinished Backtranslation Unfinished Backtranslation: IntegerLiteral 16 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# - GenericResult: Unfinished Backtranslation Unfinished Backtranslation: IntegerLiteral 18 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# - GenericResult: Unfinished Backtranslation Unfinished Backtranslation: IntegerLiteral 16 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# - GenericResult: Unfinished Backtranslation Unfinished Backtranslation: IntegerLiteral 18 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# * Results from de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction: - CounterExampleResult [Line: 654]: a call of __VERIFIER_error() is reachable a call of __VERIFIER_error() is reachable We found a FailurePath: [L649] struct ldv_list_head s1 = { &(s1), &(s1) }; VAL [\old(s1)=null, \old(s1)=null, s1={17:0}] [L658] CALL foo() VAL [s1={17:0}] [L652] int j = __VERIFIER_nondet_int(); [L653] CALL ldv_set_add(j, &s1) VAL [\old(new)=0, s={17:0}, s1={17:0}] [L620] CALL, EXPR ldv_is_in_set(new, s) VAL [\old(e)=0, s={17:0}, s1={17:0}] [L638] struct ldv_list_element *m; [L639] EXPR (s)->next [L639] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L639] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [\old(e)=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L639] COND FALSE !(&m->list != (s)) VAL [\old(e)=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L644] return 0; VAL [\old(e)=0, \result=0, __mptr={17:0}, e=0, m={17:-4}, s={17:0}, s={17:0}, s1={17:0}] [L620] RET, EXPR ldv_is_in_set(new, s) VAL [\old(new)=0, ldv_is_in_set(new, s)=0, new=0, s={17:0}, s={17:0}, s1={17:0}] [L620] COND TRUE !ldv_is_in_set(new, s) [L621] struct ldv_list_element *le; VAL [\old(new)=0, new=0, s={17:0}, s={17:0}, s1={17:0}] [L622] CALL, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(size)=12, s1={17:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=12, \result={21:0}, malloc(size)={21:0}, ptr={21:0}, s1={17:0}, size=12] [L622] RET, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(new)=0, ldv_successful_malloc(sizeof(struct ldv_list_element))={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L622] le = (struct ldv_list_element*)ldv_successful_malloc(sizeof(struct ldv_list_element)) [L623] le->e = new VAL [\old(new)=0, le={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L624] CALL ldv_list_add(&le->list, s) VAL [head={17:0}, new={21:4}, s1={17:0}] [L592] EXPR head->next VAL [head={17:0}, head={17:0}, head->next={17:0}, new={21:4}, new={21:4}, s1={17:0}] [L592] CALL __ldv_list_add(new, head, head->next) VAL [new={21:4}, next={17:0}, prev={17:0}, s1={17:0}] [L580] next->prev = new [L581] new->next = next [L582] new->prev = prev [L583] prev->next = new VAL [new={21:4}, new={21:4}, next={17:0}, next={17:0}, prev={17:0}, prev={17:0}, s1={17:0}] [L592] RET __ldv_list_add(new, head, head->next) VAL [head={17:0}, head={17:0}, head->next={17:0}, new={21:4}, new={21:4}, s1={17:0}] [L624] RET ldv_list_add(&le->list, s) VAL [\old(new)=0, le={21:0}, new=0, s={17:0}, s={17:0}, s1={17:0}] [L653] RET ldv_set_add(j, &s1) VAL [j=0, s1={17:0}] [L654] CALL ldv_is_in_set(j, &s1) VAL [\old(e)=0, s={17:0}, s1={17:0}] [L638] struct ldv_list_element *m; [L639] EXPR (s)->next [L639] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L639] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [\old(e)=0, __mptr={21:4}, e=0, m={21:0}, s={17:0}, s={17:0}, s1={17:0}] [L639] COND TRUE &m->list != (s) [L640] EXPR m->e VAL [\old(e)=0, __mptr={21:4}, e=0, m={21:0}, m->e=0, s={17:0}, s={17:0}, s1={17:0}] [L640] COND TRUE m->e == e [L641] return 1; VAL [\old(e)=0, \result=1, __mptr={21:4}, e=0, m={21:0}, s={17:0}, s={17:0}, s1={17:0}] [L654] RET ldv_is_in_set(j, &s1) VAL [j=0, ldv_is_in_set(j, &s1)=1, s1={17:0}] [L654] COND TRUE ldv_is_in_set(j, &s1) [L654] __VERIFIER_error() VAL [j=0, s1={17:0}] - StatisticsResult: Ultimate Automizer benchmark data CFG has 9 procedures, 47 locations, 1 error locations. UNSAFE Result, 1.5s OverallTime, 4 OverallIterations, 2 TraceHistogramMax, 0.5s AutomataDifference, 0.0s DeadEndRemovalTime, 0.0s HoareAnnotationTime, HoareTripleCheckerStatistics: 127 SDtfs, 87 SDslu, 274 SDs, 0 SdLazy, 261 SolverSat, 33 SolverUnsat, 0 SolverUnknown, 0 SolverNotchecked, 0.2s Time, PredicateUnifierStatistics: 0 DeclaredPredicates, 88 GetRequests, 60 SyntacticMatches, 5 SemanticMatches, 23 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 58 ImplicationChecksByTransitivity, 0.5s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=47occurred in iteration=0, traceCheckStatistics: No data available, 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: 0.0s AutomataMinimizationTime, 3 MinimizatonAttempts, 21 StatesRemovedByMinimization, 1 NontrivialMinimizations, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: TraceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.5s InterpolantComputationTime, 182 NumberOfCodeBlocks, 182 NumberOfCodeBlocksAsserted, 6 NumberOfCheckSat, 135 ConstructedInterpolants, 0 QuantifiedInterpolants, 24354 SizeOfPredicates, 14 NumberOfNonLiveVariables, 328 ConjunctsInSsa, 40 ConjunctsInUnsatCore, 5 InterpolantComputations, 3 PerfectInterpolantSequences, 18/24 InterpolantCoveringCapability, InvariantSynthesisStatistics: No data available, InterpolantConsolidationStatistics: No data available, ReuseStatistics: No data available RESULT: Ultimate proved your program to be incorrect! Received shutdown request...