./Ultimate.py --spec ../../sv-benchmarks/c/properties/unreach-call.prp --file ../../sv-benchmarks/c/ldv-sets/test_mutex_double_lock_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_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/data/config -Xmx12G -Xms1G -jar /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar -data @noDefault -ultimatedata /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/data -tc /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/config/AutomizerReach.xml -i ../../sv-benchmarks/c/ldv-sets/test_mutex_double_lock_false-unreach-call_true-termination.i -s /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/config/svcomp-Reach-32bit-Automizer_Default.epf --cacsl2boogietranslator.entry.function main --witnessprinter.witness.directory /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/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 ad29ac750d7eee43ee0f4c2b7f90b5e7c26b142d ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 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 07:38:23,373 INFO L170 SettingsManager]: Resetting all preferences to default values... [2018-11-23 07:38:23,374 INFO L174 SettingsManager]: Resetting UltimateCore preferences to default values [2018-11-23 07:38:23,383 INFO L177 SettingsManager]: Ultimate Commandline Interface provides no preferences, ignoring... [2018-11-23 07:38:23,383 INFO L174 SettingsManager]: Resetting Boogie Preprocessor preferences to default values [2018-11-23 07:38:23,384 INFO L174 SettingsManager]: Resetting Boogie Procedure Inliner preferences to default values [2018-11-23 07:38:23,385 INFO L174 SettingsManager]: Resetting Abstract Interpretation preferences to default values [2018-11-23 07:38:23,386 INFO L174 SettingsManager]: Resetting LassoRanker preferences to default values [2018-11-23 07:38:23,387 INFO L174 SettingsManager]: Resetting Reaching Definitions preferences to default values [2018-11-23 07:38:23,388 INFO L174 SettingsManager]: Resetting SyntaxChecker preferences to default values [2018-11-23 07:38:23,389 INFO L177 SettingsManager]: Büchi Program Product provides no preferences, ignoring... [2018-11-23 07:38:23,389 INFO L174 SettingsManager]: Resetting LTL2Aut preferences to default values [2018-11-23 07:38:23,389 INFO L174 SettingsManager]: Resetting PEA to Boogie preferences to default values [2018-11-23 07:38:23,390 INFO L174 SettingsManager]: Resetting BlockEncodingV2 preferences to default values [2018-11-23 07:38:23,391 INFO L174 SettingsManager]: Resetting ChcToBoogie preferences to default values [2018-11-23 07:38:23,391 INFO L174 SettingsManager]: Resetting AutomataScriptInterpreter preferences to default values [2018-11-23 07:38:23,392 INFO L174 SettingsManager]: Resetting BuchiAutomizer preferences to default values [2018-11-23 07:38:23,393 INFO L174 SettingsManager]: Resetting CACSL2BoogieTranslator preferences to default values [2018-11-23 07:38:23,395 INFO L174 SettingsManager]: Resetting CodeCheck preferences to default values [2018-11-23 07:38:23,396 INFO L174 SettingsManager]: Resetting InvariantSynthesis preferences to default values [2018-11-23 07:38:23,397 INFO L174 SettingsManager]: Resetting RCFGBuilder preferences to default values [2018-11-23 07:38:23,398 INFO L174 SettingsManager]: Resetting TraceAbstraction preferences to default values [2018-11-23 07:38:23,399 INFO L177 SettingsManager]: TraceAbstractionConcurrent provides no preferences, ignoring... [2018-11-23 07:38:23,399 INFO L177 SettingsManager]: TraceAbstractionWithAFAs provides no preferences, ignoring... [2018-11-23 07:38:23,400 INFO L174 SettingsManager]: Resetting TreeAutomizer preferences to default values [2018-11-23 07:38:23,400 INFO L174 SettingsManager]: Resetting IcfgTransformer preferences to default values [2018-11-23 07:38:23,401 INFO L174 SettingsManager]: Resetting Boogie Printer preferences to default values [2018-11-23 07:38:23,402 INFO L174 SettingsManager]: Resetting ReqPrinter preferences to default values [2018-11-23 07:38:23,402 INFO L174 SettingsManager]: Resetting Witness Printer preferences to default values [2018-11-23 07:38:23,403 INFO L177 SettingsManager]: Boogie PL CUP Parser provides no preferences, ignoring... [2018-11-23 07:38:23,403 INFO L174 SettingsManager]: Resetting CDTParser preferences to default values [2018-11-23 07:38:23,404 INFO L177 SettingsManager]: AutomataScriptParser provides no preferences, ignoring... [2018-11-23 07:38:23,404 INFO L177 SettingsManager]: ReqParser provides no preferences, ignoring... [2018-11-23 07:38:23,404 INFO L174 SettingsManager]: Resetting SmtParser preferences to default values [2018-11-23 07:38:23,405 INFO L174 SettingsManager]: Resetting Witness Parser preferences to default values [2018-11-23 07:38:23,406 INFO L181 SettingsManager]: Finished resetting all preferences to default values... [2018-11-23 07:38:23,406 INFO L98 SettingsManager]: Beginning loading settings from /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/config/svcomp-Reach-32bit-Automizer_Default.epf [2018-11-23 07:38:23,416 INFO L110 SettingsManager]: Loading preferences was successful [2018-11-23 07:38:23,416 INFO L112 SettingsManager]: Preferences different from defaults after loading the file: [2018-11-23 07:38:23,416 INFO L131 SettingsManager]: Preferences of Boogie Procedure Inliner differ from their defaults: [2018-11-23 07:38:23,417 INFO L133 SettingsManager]: * ... calls to implemented procedures=ONLY_FOR_CONCURRENT_PROGRAMS [2018-11-23 07:38:23,417 INFO L131 SettingsManager]: Preferences of BlockEncodingV2 differ from their defaults: [2018-11-23 07:38:23,417 INFO L133 SettingsManager]: * Create parallel compositions if possible=false [2018-11-23 07:38:23,417 INFO L133 SettingsManager]: * Use SBE=true [2018-11-23 07:38:23,418 INFO L131 SettingsManager]: Preferences of CACSL2BoogieTranslator differ from their defaults: [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * sizeof long=4 [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * Overapproximate operations on floating types=true [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * sizeof POINTER=4 [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * Check division by zero=IGNORE [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * Pointer to allocated memory at dereference=IGNORE [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * If two pointers are subtracted or compared they have the same base address=IGNORE [2018-11-23 07:38:23,418 INFO L133 SettingsManager]: * Check array bounds for arrays that are off heap=IGNORE [2018-11-23 07:38:23,419 INFO L133 SettingsManager]: * sizeof long double=12 [2018-11-23 07:38:23,419 INFO L133 SettingsManager]: * Check if freed pointer was valid=false [2018-11-23 07:38:23,419 INFO L133 SettingsManager]: * Use constant arrays=true [2018-11-23 07:38:23,419 INFO L133 SettingsManager]: * Pointer base address is valid at dereference=IGNORE [2018-11-23 07:38:23,419 INFO L131 SettingsManager]: Preferences of RCFGBuilder differ from their defaults: [2018-11-23 07:38:23,419 INFO L133 SettingsManager]: * Size of a code block=SequenceOfStatements [2018-11-23 07:38:23,419 INFO L133 SettingsManager]: * To the following directory=./dump/ [2018-11-23 07:38:23,420 INFO L133 SettingsManager]: * SMT solver=External_DefaultMode [2018-11-23 07:38:23,420 INFO L133 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in -t:2000 [2018-11-23 07:38:23,420 INFO L131 SettingsManager]: Preferences of TraceAbstraction differ from their defaults: [2018-11-23 07:38:23,420 INFO L133 SettingsManager]: * Compute Interpolants along a Counterexample=FPandBP [2018-11-23 07:38:23,420 INFO L133 SettingsManager]: * Positions where we compute the Hoare Annotation=LoopsAndPotentialCycles [2018-11-23 07:38:23,420 INFO L133 SettingsManager]: * Trace refinement strategy=CAMEL [2018-11-23 07:38:23,420 INFO L133 SettingsManager]: * SMT solver=External_ModelsAndUnsatCoreMode [2018-11-23 07:38:23,421 INFO L133 SettingsManager]: * Command for external solver=z3 SMTLIB2_COMPLIANT=true -memory:2024 -smt2 -in [2018-11-23 07:38:23,421 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_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/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 -> ad29ac750d7eee43ee0f4c2b7f90b5e7c26b142d [2018-11-23 07:38:23,444 INFO L81 nceAwareModelManager]: Repository-Root is: /tmp [2018-11-23 07:38:23,452 INFO L258 ainManager$Toolchain]: [Toolchain 1]: Applicable parser(s) successfully (re)initialized [2018-11-23 07:38:23,454 INFO L214 ainManager$Toolchain]: [Toolchain 1]: Toolchain selected. [2018-11-23 07:38:23,455 INFO L271 PluginConnector]: Initializing CDTParser... [2018-11-23 07:38:23,455 INFO L276 PluginConnector]: CDTParser initialized [2018-11-23 07:38:23,455 INFO L418 ainManager$Toolchain]: [Toolchain 1]: Parsing single file: /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/../../sv-benchmarks/c/ldv-sets/test_mutex_double_lock_false-unreach-call_true-termination.i [2018-11-23 07:38:23,492 INFO L221 CDTParser]: Created temporary CDT project at /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/data/796a1d289/3a169e5451a54d348eaca47cf14f3e1e/FLAG01a05c2f7 [2018-11-23 07:38:23,851 INFO L307 CDTParser]: Found 1 translation units. [2018-11-23 07:38:23,851 INFO L161 CDTParser]: Scanning /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/sv-benchmarks/c/ldv-sets/test_mutex_double_lock_false-unreach-call_true-termination.i [2018-11-23 07:38:23,861 INFO L355 CDTParser]: About to delete temporary CDT project at /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/data/796a1d289/3a169e5451a54d348eaca47cf14f3e1e/FLAG01a05c2f7 [2018-11-23 07:38:23,870 INFO L363 CDTParser]: Successfully deleted /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/data/796a1d289/3a169e5451a54d348eaca47cf14f3e1e [2018-11-23 07:38:23,872 INFO L296 ainManager$Toolchain]: ####################### [Toolchain 1] ####################### [2018-11-23 07:38:23,873 INFO L131 ToolchainWalker]: Walking toolchain with 6 elements. [2018-11-23 07:38:23,874 INFO L113 PluginConnector]: ------------------------CACSL2BoogieTranslator---------------------------- [2018-11-23 07:38:23,874 INFO L271 PluginConnector]: Initializing CACSL2BoogieTranslator... [2018-11-23 07:38:23,876 INFO L276 PluginConnector]: CACSL2BoogieTranslator initialized [2018-11-23 07:38:23,877 INFO L185 PluginConnector]: Executing the observer ACSLObjectContainerObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 23.11 07:38:23" (1/1) ... [2018-11-23 07:38:23,878 INFO L205 PluginConnector]: Invalid model from CACSL2BoogieTranslator for observer de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator.ACSLObjectContainerObserver@383c9ba and model type de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:23, skipping insertion in model container [2018-11-23 07:38:23,878 INFO L185 PluginConnector]: Executing the observer CACSL2BoogieTranslatorObserver from plugin CACSL2BoogieTranslator for "CDTParser AST 23.11 07:38:23" (1/1) ... [2018-11-23 07:38:23,884 INFO L145 MainTranslator]: Starting translation in SV-COMP mode [2018-11-23 07:38:23,914 INFO L176 MainTranslator]: Built tables and reachable declarations [2018-11-23 07:38:24,137 INFO L201 PostProcessor]: Analyzing one entry point: main [2018-11-23 07:38:24,194 INFO L191 MainTranslator]: Completed pre-run [2018-11-23 07:38:24,238 INFO L201 PostProcessor]: Analyzing one entry point: main [2018-11-23 07:38:24,272 INFO L195 MainTranslator]: Completed translation [2018-11-23 07:38:24,272 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24 WrapperNode [2018-11-23 07:38:24,272 INFO L132 PluginConnector]: ------------------------ END CACSL2BoogieTranslator---------------------------- [2018-11-23 07:38:24,273 INFO L113 PluginConnector]: ------------------------Boogie Procedure Inliner---------------------------- [2018-11-23 07:38:24,273 INFO L271 PluginConnector]: Initializing Boogie Procedure Inliner... [2018-11-23 07:38:24,273 INFO L276 PluginConnector]: Boogie Procedure Inliner initialized [2018-11-23 07:38:24,280 INFO L185 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,289 INFO L185 PluginConnector]: Executing the observer Inliner from plugin Boogie Procedure Inliner for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,294 INFO L132 PluginConnector]: ------------------------ END Boogie Procedure Inliner---------------------------- [2018-11-23 07:38:24,294 INFO L113 PluginConnector]: ------------------------Boogie Preprocessor---------------------------- [2018-11-23 07:38:24,295 INFO L271 PluginConnector]: Initializing Boogie Preprocessor... [2018-11-23 07:38:24,295 INFO L276 PluginConnector]: Boogie Preprocessor initialized [2018-11-23 07:38:24,301 INFO L185 PluginConnector]: Executing the observer EnsureBoogieModelObserver from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,301 INFO L185 PluginConnector]: Executing the observer TypeChecker from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,304 INFO L185 PluginConnector]: Executing the observer ConstExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,304 INFO L185 PluginConnector]: Executing the observer StructExpander from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,315 INFO L185 PluginConnector]: Executing the observer UnstructureCode from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,319 INFO L185 PluginConnector]: Executing the observer FunctionInliner from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,321 INFO L185 PluginConnector]: Executing the observer BoogieSymbolTableConstructor from plugin Boogie Preprocessor for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... [2018-11-23 07:38:24,323 INFO L132 PluginConnector]: ------------------------ END Boogie Preprocessor---------------------------- [2018-11-23 07:38:24,324 INFO L113 PluginConnector]: ------------------------RCFGBuilder---------------------------- [2018-11-23 07:38:24,324 INFO L271 PluginConnector]: Initializing RCFGBuilder... [2018-11-23 07:38:24,324 INFO L276 PluginConnector]: RCFGBuilder initialized [2018-11-23 07:38:24,325 INFO L185 PluginConnector]: Executing the observer RCFGBuilderObserver from plugin RCFGBuilder for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (1/1) ... No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/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 07:38:24,356 INFO L130 BoogieDeclarations]: Found specification of procedure #Ultimate.alloc [2018-11-23 07:38:24,356 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_initialize [2018-11-23 07:38:24,357 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_initialize [2018-11-23 07:38:24,357 INFO L130 BoogieDeclarations]: Found specification of procedure __ldv_list_add [2018-11-23 07:38:24,357 INFO L138 BoogieDeclarations]: Found implementation of procedure __ldv_list_add [2018-11-23 07:38:24,357 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_set_empty [2018-11-23 07:38:24,357 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_set_empty [2018-11-23 07:38:24,357 INFO L130 BoogieDeclarations]: Found specification of procedure __ldv_list_del [2018-11-23 07:38:24,357 INFO L138 BoogieDeclarations]: Found implementation of procedure __ldv_list_del [2018-11-23 07:38:24,357 INFO L130 BoogieDeclarations]: Found specification of procedure mutex_unlock [2018-11-23 07:38:24,358 INFO L138 BoogieDeclarations]: Found implementation of procedure mutex_unlock [2018-11-23 07:38:24,358 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_list_add [2018-11-23 07:38:24,358 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_list_add [2018-11-23 07:38:24,358 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.init [2018-11-23 07:38:24,358 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.init [2018-11-23 07:38:24,358 INFO L130 BoogieDeclarations]: Found specification of procedure mutex_lock [2018-11-23 07:38:24,358 INFO L138 BoogieDeclarations]: Found implementation of procedure mutex_lock [2018-11-23 07:38:24,358 INFO L130 BoogieDeclarations]: Found specification of procedure main [2018-11-23 07:38:24,358 INFO L138 BoogieDeclarations]: Found implementation of procedure main [2018-11-23 07:38:24,358 INFO L130 BoogieDeclarations]: Found specification of procedure write~$Pointer$ [2018-11-23 07:38:24,358 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_set_add [2018-11-23 07:38:24,358 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_set_add [2018-11-23 07:38:24,359 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_is_in_set [2018-11-23 07:38:24,359 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_is_in_set [2018-11-23 07:38:24,359 INFO L130 BoogieDeclarations]: Found specification of procedure read~$Pointer$ [2018-11-23 07:38:24,359 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_list_empty [2018-11-23 07:38:24,359 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_list_empty [2018-11-23 07:38:24,359 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.dealloc [2018-11-23 07:38:24,359 INFO L130 BoogieDeclarations]: Found specification of procedure write~init~$Pointer$ [2018-11-23 07:38:24,359 INFO L130 BoogieDeclarations]: Found specification of procedure foo [2018-11-23 07:38:24,359 INFO L138 BoogieDeclarations]: Found implementation of procedure foo [2018-11-23 07:38:24,360 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_list_del [2018-11-23 07:38:24,365 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_list_del [2018-11-23 07:38:24,365 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_successful_malloc [2018-11-23 07:38:24,365 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_successful_malloc [2018-11-23 07:38:24,366 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_check_final_state [2018-11-23 07:38:24,366 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_check_final_state [2018-11-23 07:38:24,366 INFO L130 BoogieDeclarations]: Found specification of procedure ldv_set_del [2018-11-23 07:38:24,366 INFO L138 BoogieDeclarations]: Found implementation of procedure ldv_set_del [2018-11-23 07:38:24,366 INFO L130 BoogieDeclarations]: Found specification of procedure ULTIMATE.start [2018-11-23 07:38:24,366 INFO L138 BoogieDeclarations]: Found implementation of procedure ULTIMATE.start [2018-11-23 07:38:24,674 INFO L275 CfgBuilder]: Using the 1 location(s) as analysis (start of procedure ULTIMATE.start) [2018-11-23 07:38:24,675 INFO L280 CfgBuilder]: Removed 2 assue(true) statements. [2018-11-23 07:38:24,675 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 07:38:24 BoogieIcfgContainer [2018-11-23 07:38:24,675 INFO L132 PluginConnector]: ------------------------ END RCFGBuilder---------------------------- [2018-11-23 07:38:24,676 INFO L113 PluginConnector]: ------------------------TraceAbstraction---------------------------- [2018-11-23 07:38:24,676 INFO L271 PluginConnector]: Initializing TraceAbstraction... [2018-11-23 07:38:24,679 INFO L276 PluginConnector]: TraceAbstraction initialized [2018-11-23 07:38:24,679 INFO L185 PluginConnector]: Executing the observer TraceAbstractionObserver from plugin TraceAbstraction for "CDTParser AST 23.11 07:38:23" (1/3) ... [2018-11-23 07:38:24,680 INFO L205 PluginConnector]: Invalid model from TraceAbstraction for observer de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction.TraceAbstractionObserver@7dd3efad and model type de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction AST 23.11 07:38:24, skipping insertion in model container [2018-11-23 07:38:24,680 INFO L185 PluginConnector]: Executing the observer TraceAbstractionObserver from plugin TraceAbstraction for "de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator AST 23.11 07:38:24" (2/3) ... [2018-11-23 07:38:24,680 INFO L205 PluginConnector]: Invalid model from TraceAbstraction for observer de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction.TraceAbstractionObserver@7dd3efad and model type de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction AST 23.11 07:38:24, skipping insertion in model container [2018-11-23 07:38:24,680 INFO L185 PluginConnector]: Executing the observer TraceAbstractionObserver from plugin TraceAbstraction for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 07:38:24" (3/3) ... [2018-11-23 07:38:24,681 INFO L112 eAbstractionObserver]: Analyzing ICFG test_mutex_double_lock_false-unreach-call_true-termination.i [2018-11-23 07:38:24,687 INFO L156 ceAbstractionStarter]: Automizer settings: Hoare:true NWA Interpolation:FPandBP Determinization: PREDICATE_ABSTRACTION [2018-11-23 07:38:24,693 INFO L168 ceAbstractionStarter]: Appying trace abstraction to program that has 3 error locations. [2018-11-23 07:38:24,703 INFO L257 AbstractCegarLoop]: Starting to check reachability of 3 error locations. [2018-11-23 07:38:24,724 INFO L133 ementStrategyFactory]: Using default assertion order modulation [2018-11-23 07:38:24,725 INFO L382 AbstractCegarLoop]: Interprodecural is true [2018-11-23 07:38:24,725 INFO L383 AbstractCegarLoop]: Hoare is true [2018-11-23 07:38:24,725 INFO L384 AbstractCegarLoop]: Compute interpolants for FPandBP [2018-11-23 07:38:24,725 INFO L385 AbstractCegarLoop]: Backedges is STRAIGHT_LINE [2018-11-23 07:38:24,725 INFO L386 AbstractCegarLoop]: Determinization is PREDICATE_ABSTRACTION [2018-11-23 07:38:24,725 INFO L387 AbstractCegarLoop]: Difference is false [2018-11-23 07:38:24,725 INFO L388 AbstractCegarLoop]: Minimize is MINIMIZE_SEVPA [2018-11-23 07:38:24,725 INFO L393 AbstractCegarLoop]: ======== Iteration 0==of CEGAR loop == AllErrorsAtOnce======== [2018-11-23 07:38:24,740 INFO L276 IsEmpty]: Start isEmpty. Operand 101 states. [2018-11-23 07:38:24,744 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 31 [2018-11-23 07:38:24,744 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 07:38:24,745 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] [2018-11-23 07:38:24,747 INFO L423 AbstractCegarLoop]: === Iteration 1 === [mutex_unlockErr0ASSERT_VIOLATIONERROR_FUNCTION, ldv_check_final_stateErr0ASSERT_VIOLATIONERROR_FUNCTION, mutex_lockErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 07:38:24,751 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 07:38:24,751 INFO L82 PathProgramCache]: Analyzing trace with hash -1594759354, now seen corresponding path program 1 times [2018-11-23 07:38:24,752 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 07:38:24,752 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 07:38:24,786 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:24,786 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:24,786 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:24,830 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:24,873 INFO L134 CoverageAnalysis]: Checked inductivity of 3 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 3 trivial. 0 not checked. [2018-11-23 07:38:24,875 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 0 imperfect interpolant sequences. [2018-11-23 07:38:24,875 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [2] imperfect sequences [] total 2 [2018-11-23 07:38:24,879 INFO L459 AbstractCegarLoop]: Interpolant automaton has 2 states [2018-11-23 07:38:24,890 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 2 interpolants. [2018-11-23 07:38:24,891 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=1, Invalid=1, Unknown=0, NotChecked=0, Total=2 [2018-11-23 07:38:24,893 INFO L87 Difference]: Start difference. First operand 101 states. Second operand 2 states. [2018-11-23 07:38:24,920 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 07:38:24,921 INFO L93 Difference]: Finished difference Result 188 states and 225 transitions. [2018-11-23 07:38:24,921 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 2 states. [2018-11-23 07:38:24,922 INFO L78 Accepts]: Start accepts. Automaton has 2 states. Word has length 30 [2018-11-23 07:38:24,922 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 07:38:24,930 INFO L225 Difference]: With dead ends: 188 [2018-11-23 07:38:24,931 INFO L226 Difference]: Without dead ends: 92 [2018-11-23 07:38:24,933 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 2 GetRequests, 2 SyntacticMatches, 0 SemanticMatches, 0 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 0 ImplicationChecksByTransitivity, 0.0s TimeCoverageRelationStatistics Valid=1, Invalid=1, Unknown=0, NotChecked=0, Total=2 [2018-11-23 07:38:24,944 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 92 states. [2018-11-23 07:38:24,958 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 92 to 92. [2018-11-23 07:38:24,959 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 92 states. [2018-11-23 07:38:24,960 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 92 states to 92 states and 102 transitions. [2018-11-23 07:38:24,961 INFO L78 Accepts]: Start accepts. Automaton has 92 states and 102 transitions. Word has length 30 [2018-11-23 07:38:24,962 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 07:38:24,962 INFO L480 AbstractCegarLoop]: Abstraction has 92 states and 102 transitions. [2018-11-23 07:38:24,962 INFO L481 AbstractCegarLoop]: Interpolant automaton has 2 states. [2018-11-23 07:38:24,962 INFO L276 IsEmpty]: Start isEmpty. Operand 92 states and 102 transitions. [2018-11-23 07:38:24,963 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 31 [2018-11-23 07:38:24,963 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 07:38:24,963 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] [2018-11-23 07:38:24,964 INFO L423 AbstractCegarLoop]: === Iteration 2 === [mutex_unlockErr0ASSERT_VIOLATIONERROR_FUNCTION, ldv_check_final_stateErr0ASSERT_VIOLATIONERROR_FUNCTION, mutex_lockErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 07:38:24,964 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 07:38:24,964 INFO L82 PathProgramCache]: Analyzing trace with hash -1879861572, now seen corresponding path program 1 times [2018-11-23 07:38:24,964 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 07:38:24,964 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 07:38:24,965 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:24,965 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:24,965 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:24,985 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:25,042 INFO L134 CoverageAnalysis]: Checked inductivity of 3 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 3 trivial. 0 not checked. [2018-11-23 07:38:25,043 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 0 imperfect interpolant sequences. [2018-11-23 07:38:25,043 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [4] imperfect sequences [] total 4 [2018-11-23 07:38:25,044 INFO L459 AbstractCegarLoop]: Interpolant automaton has 4 states [2018-11-23 07:38:25,044 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 4 interpolants. [2018-11-23 07:38:25,044 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=5, Invalid=7, Unknown=0, NotChecked=0, Total=12 [2018-11-23 07:38:25,044 INFO L87 Difference]: Start difference. First operand 92 states and 102 transitions. Second operand 4 states. [2018-11-23 07:38:25,067 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 07:38:25,067 INFO L93 Difference]: Finished difference Result 98 states and 110 transitions. [2018-11-23 07:38:25,067 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 4 states. [2018-11-23 07:38:25,067 INFO L78 Accepts]: Start accepts. Automaton has 4 states. Word has length 30 [2018-11-23 07:38:25,068 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 07:38:25,069 INFO L225 Difference]: With dead ends: 98 [2018-11-23 07:38:25,069 INFO L226 Difference]: Without dead ends: 96 [2018-11-23 07:38:25,070 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 07:38:25,070 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 96 states. [2018-11-23 07:38:25,079 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 96 to 96. [2018-11-23 07:38:25,079 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 96 states. [2018-11-23 07:38:25,081 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 96 states to 96 states and 108 transitions. [2018-11-23 07:38:25,081 INFO L78 Accepts]: Start accepts. Automaton has 96 states and 108 transitions. Word has length 30 [2018-11-23 07:38:25,082 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 07:38:25,082 INFO L480 AbstractCegarLoop]: Abstraction has 96 states and 108 transitions. [2018-11-23 07:38:25,082 INFO L481 AbstractCegarLoop]: Interpolant automaton has 4 states. [2018-11-23 07:38:25,082 INFO L276 IsEmpty]: Start isEmpty. Operand 96 states and 108 transitions. [2018-11-23 07:38:25,083 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 31 [2018-11-23 07:38:25,083 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 07:38:25,083 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] [2018-11-23 07:38:25,083 INFO L423 AbstractCegarLoop]: === Iteration 3 === [mutex_unlockErr0ASSERT_VIOLATIONERROR_FUNCTION, ldv_check_final_stateErr0ASSERT_VIOLATIONERROR_FUNCTION, mutex_lockErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 07:38:25,083 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 07:38:25,083 INFO L82 PathProgramCache]: Analyzing trace with hash -305258267, now seen corresponding path program 1 times [2018-11-23 07:38:25,084 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 07:38:25,084 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 07:38:25,085 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:25,085 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:25,085 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:25,099 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:25,197 INFO L134 CoverageAnalysis]: Checked inductivity of 3 backedges. 0 proven. 0 refuted. 0 times theorem prover too weak. 3 trivial. 0 not checked. [2018-11-23 07:38:25,198 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 0 imperfect interpolant sequences. [2018-11-23 07:38:25,198 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [5] imperfect sequences [] total 5 [2018-11-23 07:38:25,198 INFO L459 AbstractCegarLoop]: Interpolant automaton has 5 states [2018-11-23 07:38:25,198 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 5 interpolants. [2018-11-23 07:38:25,198 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=7, Invalid=13, Unknown=0, NotChecked=0, Total=20 [2018-11-23 07:38:25,198 INFO L87 Difference]: Start difference. First operand 96 states and 108 transitions. Second operand 5 states. [2018-11-23 07:38:25,552 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 07:38:25,553 INFO L93 Difference]: Finished difference Result 257 states and 311 transitions. [2018-11-23 07:38:25,553 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 9 states. [2018-11-23 07:38:25,553 INFO L78 Accepts]: Start accepts. Automaton has 5 states. Word has length 30 [2018-11-23 07:38:25,554 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 07:38:25,555 INFO L225 Difference]: With dead ends: 257 [2018-11-23 07:38:25,555 INFO L226 Difference]: Without dead ends: 175 [2018-11-23 07:38:25,556 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 12 GetRequests, 5 SyntacticMatches, 0 SemanticMatches, 7 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 5 ImplicationChecksByTransitivity, 0.1s TimeCoverageRelationStatistics Valid=27, Invalid=45, Unknown=0, NotChecked=0, Total=72 [2018-11-23 07:38:25,556 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 175 states. [2018-11-23 07:38:25,578 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 175 to 140. [2018-11-23 07:38:25,578 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 140 states. [2018-11-23 07:38:25,580 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 140 states to 140 states and 168 transitions. [2018-11-23 07:38:25,580 INFO L78 Accepts]: Start accepts. Automaton has 140 states and 168 transitions. Word has length 30 [2018-11-23 07:38:25,580 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 07:38:25,581 INFO L480 AbstractCegarLoop]: Abstraction has 140 states and 168 transitions. [2018-11-23 07:38:25,581 INFO L481 AbstractCegarLoop]: Interpolant automaton has 5 states. [2018-11-23 07:38:25,581 INFO L276 IsEmpty]: Start isEmpty. Operand 140 states and 168 transitions. [2018-11-23 07:38:25,583 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 79 [2018-11-23 07:38:25,583 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 07:38:25,583 INFO L402 BasicCegarLoop]: trace histogram [5, 5, 5, 5, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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] [2018-11-23 07:38:25,583 INFO L423 AbstractCegarLoop]: === Iteration 4 === [mutex_unlockErr0ASSERT_VIOLATIONERROR_FUNCTION, ldv_check_final_stateErr0ASSERT_VIOLATIONERROR_FUNCTION, mutex_lockErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 07:38:25,584 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 07:38:25,584 INFO L82 PathProgramCache]: Analyzing trace with hash -1875239642, now seen corresponding path program 1 times [2018-11-23 07:38:25,584 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 07:38:25,584 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 07:38:25,585 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:25,586 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:25,586 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:25,603 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:25,653 INFO L134 CoverageAnalysis]: Checked inductivity of 66 backedges. 2 proven. 12 refuted. 0 times theorem prover too weak. 52 trivial. 0 not checked. [2018-11-23 07:38:25,654 INFO L300 seRefinementStrategy]: The current sequences of interpolants are not accepted, trying to find more. [2018-11-23 07:38:25,654 INFO L223 ckRefinementStrategy]: Switched to mode Z3_FP No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/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 07:38:25,664 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:25,719 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:25,727 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 07:38:25,747 INFO L134 CoverageAnalysis]: Checked inductivity of 66 backedges. 41 proven. 0 refuted. 0 times theorem prover too weak. 25 trivial. 0 not checked. [2018-11-23 07:38:25,763 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 1 imperfect interpolant sequences. [2018-11-23 07:38:25,763 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [4] imperfect sequences [4] total 4 [2018-11-23 07:38:25,764 INFO L459 AbstractCegarLoop]: Interpolant automaton has 4 states [2018-11-23 07:38:25,764 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 4 interpolants. [2018-11-23 07:38:25,764 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=5, Invalid=7, Unknown=0, NotChecked=0, Total=12 [2018-11-23 07:38:25,765 INFO L87 Difference]: Start difference. First operand 140 states and 168 transitions. Second operand 4 states. [2018-11-23 07:38:25,786 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 07:38:25,786 INFO L93 Difference]: Finished difference Result 254 states and 306 transitions. [2018-11-23 07:38:25,787 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 4 states. [2018-11-23 07:38:25,787 INFO L78 Accepts]: Start accepts. Automaton has 4 states. Word has length 78 [2018-11-23 07:38:25,788 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 07:38:25,789 INFO L225 Difference]: With dead ends: 254 [2018-11-23 07:38:25,789 INFO L226 Difference]: Without dead ends: 146 [2018-11-23 07:38:25,790 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 81 GetRequests, 78 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 07:38:25,791 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 146 states. [2018-11-23 07:38:25,806 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 146 to 146. [2018-11-23 07:38:25,806 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 146 states. [2018-11-23 07:38:25,807 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 146 states to 146 states and 174 transitions. [2018-11-23 07:38:25,808 INFO L78 Accepts]: Start accepts. Automaton has 146 states and 174 transitions. Word has length 78 [2018-11-23 07:38:25,808 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 07:38:25,808 INFO L480 AbstractCegarLoop]: Abstraction has 146 states and 174 transitions. [2018-11-23 07:38:25,808 INFO L481 AbstractCegarLoop]: Interpolant automaton has 4 states. [2018-11-23 07:38:25,808 INFO L276 IsEmpty]: Start isEmpty. Operand 146 states and 174 transitions. [2018-11-23 07:38:25,810 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 79 [2018-11-23 07:38:25,810 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 07:38:25,810 INFO L402 BasicCegarLoop]: trace histogram [5, 5, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 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] [2018-11-23 07:38:25,811 INFO L423 AbstractCegarLoop]: === Iteration 5 === [mutex_unlockErr0ASSERT_VIOLATIONERROR_FUNCTION, ldv_check_final_stateErr0ASSERT_VIOLATIONERROR_FUNCTION, mutex_lockErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 07:38:25,811 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 07:38:25,811 INFO L82 PathProgramCache]: Analyzing trace with hash 885640952, now seen corresponding path program 1 times [2018-11-23 07:38:25,811 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 07:38:25,811 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 07:38:25,813 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:25,813 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:25,813 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:25,835 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:26,027 INFO L134 CoverageAnalysis]: Checked inductivity of 60 backedges. 1 proven. 36 refuted. 0 times theorem prover too weak. 23 trivial. 0 not checked. [2018-11-23 07:38:26,027 INFO L300 seRefinementStrategy]: The current sequences of interpolants are not accepted, trying to find more. [2018-11-23 07:38:26,027 INFO L223 ckRefinementStrategy]: Switched to mode Z3_FP No working directory specified, using /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/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 07:38:26,034 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:26,080 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is unsat [2018-11-23 07:38:26,085 INFO L273 TraceCheckSpWp]: Computing forward predicates... [2018-11-23 07:38:26,143 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 07:38:26,148 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 07:38:26,148 INFO L267 ElimStorePlain]: Start of recursive call 3: End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,150 INFO L267 ElimStorePlain]: Start of recursive call 2: 1 dim-1 vars, End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,167 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 07:38:26,174 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 07:38:26,174 INFO L267 ElimStorePlain]: Start of recursive call 5: End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,177 INFO L267 ElimStorePlain]: Start of recursive call 4: 1 dim-1 vars, End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,182 INFO L267 ElimStorePlain]: Start of recursive call 1: 2 dim-2 vars, End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,182 INFO L202 ElimStorePlain]: Needed 5 recursive calls to eliminate 2 variables, input treesize:24, output treesize:10 [2018-11-23 07:38:26,231 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 07:38:26,233 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 07:38:26,233 INFO L267 ElimStorePlain]: Start of recursive call 3: End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,236 INFO L267 ElimStorePlain]: Start of recursive call 2: 1 dim-1 vars, End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,251 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 07:38:26,252 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 07:38:26,252 INFO L267 ElimStorePlain]: Start of recursive call 5: End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,254 INFO L267 ElimStorePlain]: Start of recursive call 4: 1 dim-1 vars, End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,258 INFO L267 ElimStorePlain]: Start of recursive call 1: 2 dim-2 vars, End of recursive call: and 1 xjuncts. [2018-11-23 07:38:26,258 INFO L202 ElimStorePlain]: Needed 5 recursive calls to eliminate 2 variables, input treesize:24, output treesize:10 [2018-11-23 07:38:26,416 INFO L134 CoverageAnalysis]: Checked inductivity of 60 backedges. 35 proven. 0 refuted. 0 times theorem prover too weak. 25 trivial. 0 not checked. [2018-11-23 07:38:26,431 INFO L312 seRefinementStrategy]: Constructing automaton from 1 perfect and 1 imperfect interpolant sequences. [2018-11-23 07:38:26,431 INFO L327 seRefinementStrategy]: Number of different interpolants: perfect sequences [10] imperfect sequences [13] total 21 [2018-11-23 07:38:26,432 INFO L459 AbstractCegarLoop]: Interpolant automaton has 21 states [2018-11-23 07:38:26,432 INFO L142 InterpolantAutomaton]: Constructing interpolant automaton starting with 21 interpolants. [2018-11-23 07:38:26,432 INFO L144 InterpolantAutomaton]: CoverageRelationStatistics Valid=70, Invalid=350, Unknown=0, NotChecked=0, Total=420 [2018-11-23 07:38:26,433 INFO L87 Difference]: Start difference. First operand 146 states and 174 transitions. Second operand 21 states. [2018-11-23 07:38:27,708 INFO L144 Difference]: Subtrahend was deterministic. Have not used determinization. [2018-11-23 07:38:27,708 INFO L93 Difference]: Finished difference Result 362 states and 428 transitions. [2018-11-23 07:38:27,708 INFO L142 InterpolantAutomaton]: Switched to read-only mode: deterministic interpolant automaton has 33 states. [2018-11-23 07:38:27,708 INFO L78 Accepts]: Start accepts. Automaton has 21 states. Word has length 78 [2018-11-23 07:38:27,709 INFO L84 Accepts]: Finished accepts. some prefix is accepted. [2018-11-23 07:38:27,711 INFO L225 Difference]: With dead ends: 362 [2018-11-23 07:38:27,711 INFO L226 Difference]: Without dead ends: 230 [2018-11-23 07:38:27,712 INFO L631 BasicCegarLoop]: 0 DeclaredPredicates, 135 GetRequests, 90 SyntacticMatches, 0 SemanticMatches, 45 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 477 ImplicationChecksByTransitivity, 0.7s TimeCoverageRelationStatistics Valid=433, Invalid=1729, Unknown=0, NotChecked=0, Total=2162 [2018-11-23 07:38:27,713 INFO L82 GeneralOperation]: Start minimizeSevpa. Operand 230 states. [2018-11-23 07:38:27,730 INFO L88 GeneralOperation]: Finished minimizeSevpa. Reduced states from 230 to 160. [2018-11-23 07:38:27,731 INFO L82 GeneralOperation]: Start removeUnreachable. Operand 160 states. [2018-11-23 07:38:27,732 INFO L88 GeneralOperation]: Finished removeUnreachable. Reduced from 160 states to 160 states and 183 transitions. [2018-11-23 07:38:27,732 INFO L78 Accepts]: Start accepts. Automaton has 160 states and 183 transitions. Word has length 78 [2018-11-23 07:38:27,732 INFO L84 Accepts]: Finished accepts. word is rejected. [2018-11-23 07:38:27,733 INFO L480 AbstractCegarLoop]: Abstraction has 160 states and 183 transitions. [2018-11-23 07:38:27,733 INFO L481 AbstractCegarLoop]: Interpolant automaton has 21 states. [2018-11-23 07:38:27,733 INFO L276 IsEmpty]: Start isEmpty. Operand 160 states and 183 transitions. [2018-11-23 07:38:27,734 INFO L282 IsEmpty]: Finished isEmpty. Found accepting run of length 69 [2018-11-23 07:38:27,734 INFO L394 BasicCegarLoop]: Found error trace [2018-11-23 07:38:27,734 INFO L402 BasicCegarLoop]: trace histogram [3, 3, 3, 3, 2, 2, 2, 2, 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, 1, 1, 1, 1, 1, 1] [2018-11-23 07:38:27,734 INFO L423 AbstractCegarLoop]: === Iteration 6 === [mutex_unlockErr0ASSERT_VIOLATIONERROR_FUNCTION, ldv_check_final_stateErr0ASSERT_VIOLATIONERROR_FUNCTION, mutex_lockErr0ASSERT_VIOLATIONERROR_FUNCTION]=== [2018-11-23 07:38:27,734 INFO L141 PredicateUnifier]: Initialized classic predicate unifier [2018-11-23 07:38:27,734 INFO L82 PathProgramCache]: Analyzing trace with hash 559822637, now seen corresponding path program 1 times [2018-11-23 07:38:27,735 INFO L223 ckRefinementStrategy]: Switched to mode SMTINTERPOL_TREE_INTERPOLANTS [2018-11-23 07:38:27,735 INFO L69 tionRefinementEngine]: Using refinement strategy CamelRefinementStrategy [2018-11-23 07:38:27,736 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:27,736 INFO L103 rtionOrderModulation]: Keeping assertion order NOT_INCREMENTALLY [2018-11-23 07:38:27,736 INFO L119 rtionOrderModulation]: Craig_TreeInterpolation forces the order to NOT_INCREMENTALLY [2018-11-23 07:38:27,760 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2018-11-23 07:38:27,781 INFO L136 AnnotateAndAsserter]: Conjunction of SSA is sat [2018-11-23 07:38:27,802 INFO L469 BasicCegarLoop]: Counterexample might be feasible ----- class de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder.RCFGBacktranslator [?] CALL call ULTIMATE.init(); VAL [|#NULL.base|=18, |#NULL.offset|=13, |old(#NULL.base)|=18, |old(#NULL.offset)|=13, |old(~#mutexes~0.base)|=15, |old(~#mutexes~0.offset)|=17, |~#mutexes~0.base|=15, |~#mutexes~0.offset|=17] [?] #NULL.base, #NULL.offset := 0, 0;#valid := #valid[0 := 0];call ~#mutexes~0.base, ~#mutexes~0.offset := #Ultimate.alloc(8);call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, ~#mutexes~0.offset, 4);call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, 4 + ~#mutexes~0.offset, 4); VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=18, |old(#NULL.offset)|=13, |old(~#mutexes~0.base)|=15, |old(~#mutexes~0.offset)|=17, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=18, |old(#NULL.offset)|=13, |old(~#mutexes~0.base)|=15, |old(~#mutexes~0.offset)|=17, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #175#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret32 := main(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call foo(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call ldv_initialize(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #135#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |~#mutexes~0.base|=19, |~#mutexes~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=14, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=14, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=14, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=14, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=14, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=14, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #137#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret30.base|=14, |foo_#t~ret30.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m1~0.base, ~m1~0.offset := #t~ret30.base, #t~ret30.offset;havoc #t~ret30.base, #t~ret30.offset; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |~#mutexes~0.base|=19, |~#mutexes~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=20, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=20, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=20, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=20, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=20, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=20, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #139#return; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret31.base|=20, |foo_#t~ret31.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m2~0.base, ~m2~0.offset := #t~ret31.base, #t~ret31.offset;havoc #t~ret31.base, #t~ret31.offset; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, foo_~m2~0.base=20, foo_~m2~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~e.base, ~e.offset := #in~e.base, #in~e.offset;~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=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] #res := 0; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #165#return; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !(0 != #t~ret27);havoc #t~ret27; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~new.base, ~new.offset := #in~new.base, #in~new.offset;~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~e.base, ~e.offset := #in~e.base, #in~e.offset;~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=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] #res := 0; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #169#return; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume 0 == #t~ret17;havoc #t~ret17;havoc ~le~0.base, ~le~0.offset; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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, |~#mutexes~0.base|=19, |~#mutexes~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=16, 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|=16, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=16, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=16, 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|=16, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=16, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #171#return; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret18.base|=16, |ldv_set_add_#t~ret18.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset;havoc #t~ret18.base, #t~ret18.offset;call write~$Pointer$(~new.base, ~new.offset, ~le~0.base, ~le~0.offset, 4); VAL [ldv_set_add_~le~0.base=16, ldv_set_add_~le~0.offset=0, ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |~#mutexes~0.base|=19, |~#mutexes~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=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=19, |ldv_list_add_#t~mem6.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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|=16, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=19, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=19, |__ldv_list_add_#in~prev.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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=16, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=19, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=19, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=16, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=19, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=19, |__ldv_list_add_#in~prev.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [__ldv_list_add_~new.base=16, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=19, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=19, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=16, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=19, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=19, |__ldv_list_add_#in~prev.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #133#return; VAL [ldv_list_add_~head.base=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=19, |ldv_list_add_#t~mem6.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] havoc #t~mem6.base, #t~mem6.offset; VAL [ldv_list_add_~head.base=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_list_add_~head.base=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #173#return; VAL [ldv_set_add_~le~0.base=16, ldv_set_add_~le~0.offset=0, ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_set_add_~le~0.base=16, ldv_set_add_~le~0.offset=0, ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #167#return; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #141#return; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, foo_~m2~0.base=20, foo_~m2~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~e.base, ~e.offset := #in~e.base, #in~e.offset;~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=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset);call #t~mem25.base, #t~mem25.offset := read~$Pointer$(~m~1.base, ~m~1.offset, 4); VAL [ldv_is_in_set_~__mptr~3.base=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#t~mem25.base|=14, |ldv_is_in_set_#t~mem25.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume #t~mem25.base == ~e.base && #t~mem25.offset == ~e.offset;havoc #t~mem25.base, #t~mem25.offset;#res := 1; VAL [ldv_is_in_set_~__mptr~3.base=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #165#return; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume 0 != #t~ret27;havoc #t~ret27; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !false; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call ULTIMATE.init(); VAL [#NULL.base=18, #NULL.offset=13, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=15, ~#mutexes~0.offset=17] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L652] call ~#mutexes~0.base, ~#mutexes~0.offset := #Ultimate.alloc(8); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, ~#mutexes~0.offset, 4); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, 4 + ~#mutexes~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L679] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L653-L654] ensures true; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] RET call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] CALL call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L669] RET call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret30.base=14, #t~ret30.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] ~m1~0.base, ~m1~0.offset := #t~ret30.base, #t~ret30.offset; [L669] havoc #t~ret30.base, #t~ret30.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] CALL call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L670] RET call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret31.base=20, #t~ret31.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] ~m2~0.base, ~m2~0.offset := #t~ret31.base, #t~ret31.offset; [L670] havoc #t~ret31.base, #t~ret31.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L671] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume !(0 != #t~ret27); [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L657] CALL call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L622-L629] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L622-L629] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623-L628] assume 0 == #t~ret17; [L623] havoc #t~ret17; [L624] havoc ~le~0.base, ~le~0.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L625] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=16, #t~ret18.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L625] havoc #t~ret18.base, #t~ret18.offset; [L626] call write~$Pointer$(~new.base, ~new.offset, ~le~0.base, ~le~0.offset, 4); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L627] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L593-L596] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L593-L596] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L595] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L579-L587] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L579-L587] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L579-L587] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L583] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L584] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L585] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L586] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L579-L587] ensures true; VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L595] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L593-L596] ensures true; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L627] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L611] ensures true; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L657] RET call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L655-L658] ensures true; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L671] RET call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L672] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L642-L646] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L643] call #t~mem25.base, #t~mem25.offset := read~$Pointer$(~m~1.base, ~m~1.offset, 4); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25.base=14, #t~mem25.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L643-L645] assume #t~mem25.base == ~e.base && #t~mem25.offset == ~e.offset; [L643] havoc #t~mem25.base, #t~mem25.offset; [L644] #res := 1; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume 0 != #t~ret27; [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assert false; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.preprocessor.BoogiePreprocessorBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL.base=18, #NULL.offset=13, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=15, ~#mutexes~0.offset=17] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L652] call ~#mutexes~0.base, ~#mutexes~0.offset := #Ultimate.alloc(8); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, ~#mutexes~0.offset, 4); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, 4 + ~#mutexes~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L679] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L653-L654] ensures true; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] RET call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] CALL call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L669] RET call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret30.base=14, #t~ret30.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] ~m1~0.base, ~m1~0.offset := #t~ret30.base, #t~ret30.offset; [L669] havoc #t~ret30.base, #t~ret30.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] CALL call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L670] RET call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret31.base=20, #t~ret31.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] ~m2~0.base, ~m2~0.offset := #t~ret31.base, #t~ret31.offset; [L670] havoc #t~ret31.base, #t~ret31.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L671] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume !(0 != #t~ret27); [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L657] CALL call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L622-L629] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L622-L629] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623-L628] assume 0 == #t~ret17; [L623] havoc #t~ret17; [L624] havoc ~le~0.base, ~le~0.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L625] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=16, #t~ret18.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L625] havoc #t~ret18.base, #t~ret18.offset; [L626] call write~$Pointer$(~new.base, ~new.offset, ~le~0.base, ~le~0.offset, 4); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L627] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L593-L596] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L593-L596] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L595] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L579-L587] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L579-L587] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L579-L587] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L583] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L584] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L585] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L586] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L579-L587] ensures true; VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L595] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L593-L596] ensures true; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L627] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L611] ensures true; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L657] RET call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L655-L658] ensures true; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L671] RET call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L672] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L642-L646] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L643] call #t~mem25.base, #t~mem25.offset := read~$Pointer$(~m~1.base, ~m~1.offset, 4); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25.base=14, #t~mem25.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L643-L645] assume #t~mem25.base == ~e.base && #t~mem25.offset == ~e.offset; [L643] havoc #t~mem25.base, #t~mem25.offset; [L644] #res := 1; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume 0 != #t~ret27; [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assert false; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.procedureinliner.backtranslation.InlinerBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL!base=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] ----- [2018-11-23 07:38:27,925 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 15 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# [2018-11-23 07:38:27,926 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 17 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=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L652] struct ldv_list_head mutexes = { &(mutexes), &(mutexes) }; VAL [\old(mutexes)=null, \old(mutexes)=null, mutexes={19:0}] [L679] CALL foo() VAL [mutexes={19:0}] [L668] FCALL ldv_initialize() VAL [mutexes={19:0}] [L669] CALL, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [\old(size)=8, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=8, \result={14:0}, malloc(size)={14:0}, mutexes={19:0}, ptr={14:0}, size=8] [L669] RET, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [ldv_successful_malloc(sizeof(struct mutex))={14:0}, mutexes={19:0}] [L669] struct mutex *m1 = ldv_successful_malloc(sizeof(struct mutex)); [L670] CALL, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [\old(size)=8, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=8, \result={20:0}, malloc(size)={20:0}, mutexes={19:0}, ptr={20:0}, size=8] [L670] RET, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [ldv_successful_malloc(sizeof(struct mutex))={20:0}, m1={14:0}, mutexes={19:0}] [L670] struct mutex *m2 = ldv_successful_malloc(sizeof(struct mutex)); [L671] CALL mutex_lock(m1) VAL [m={14:0}, mutexes={19:0}] [L656] CALL ldv_is_in_set(m, &mutexes) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND FALSE !(&m->list != (s)) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L647] return 0; VAL [\result=0, __mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L656] RET ldv_is_in_set(m, &mutexes) VAL [ldv_is_in_set(m, &mutexes)=0, m={14:0}, m={14:0}, mutexes={19:0}] [L656] COND FALSE !(ldv_is_in_set(m, &mutexes)) [L657] CALL ldv_set_add(m, &mutexes) VAL [mutexes={19:0}, new={14:0}, s={19:0}] [L623] CALL, EXPR ldv_is_in_set(new, s) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND FALSE !(&m->list != (s)) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L647] return 0; VAL [\result=0, __mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L623] RET, EXPR ldv_is_in_set(new, s) VAL [ldv_is_in_set(new, s)=0, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L623] COND TRUE !ldv_is_in_set(new, s) [L624] struct ldv_list_element *le; VAL [mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L625] CALL, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(size)=12, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=12, \result={16:0}, malloc(size)={16:0}, mutexes={19:0}, ptr={16:0}, size=12] [L625] RET, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [ldv_successful_malloc(sizeof(struct ldv_list_element))={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L625] le = (struct ldv_list_element*)ldv_successful_malloc(sizeof(struct ldv_list_element)) [L626] le->e = new VAL [le={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L627] CALL ldv_list_add(&le->list, s) VAL [head={19:0}, mutexes={19:0}, new={16:4}] [L595] EXPR head->next VAL [head={19:0}, head={19:0}, head->next={19:0}, mutexes={19:0}, new={16:4}, new={16:4}] [L595] CALL __ldv_list_add(new, head, head->next) VAL [mutexes={19:0}, new={16:4}, next={19:0}, prev={19:0}] [L583] next->prev = new [L584] new->next = next [L585] new->prev = prev [L586] prev->next = new VAL [mutexes={19:0}, new={16:4}, new={16:4}, next={19:0}, next={19:0}, prev={19:0}, prev={19:0}] [L595] RET __ldv_list_add(new, head, head->next) VAL [head={19:0}, head={19:0}, head->next={19:0}, mutexes={19:0}, new={16:4}, new={16:4}] [L627] RET ldv_list_add(&le->list, s) VAL [le={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L657] RET ldv_set_add(m, &mutexes) VAL [m={14:0}, m={14:0}, mutexes={19:0}] [L671] RET mutex_lock(m1) VAL [m1={14:0}, m2={20:0}, mutexes={19:0}] [L672] CALL mutex_lock(m1) VAL [m={14:0}, mutexes={19:0}] [L656] CALL ldv_is_in_set(m, &mutexes) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND TRUE &m->list != (s) [L643] EXPR m->e VAL [__mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, m->e={14:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L643] COND TRUE m->e == e [L644] return 1; VAL [\result=1, __mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L656] RET ldv_is_in_set(m, &mutexes) VAL [ldv_is_in_set(m, &mutexes)=1, m={14:0}, m={14:0}, mutexes={19:0}] [L656] COND TRUE ldv_is_in_set(m, &mutexes) [L656] __VERIFIER_error() VAL [m={14:0}, m={14:0}, mutexes={19:0}] ----- [2018-11-23 07:38:27,974 INFO L202 PluginConnector]: Adding new model de.uni_freiburg.informatik.ultimate.plugins.generator.traceabstraction CFG 23.11 07:38:27 BoogieIcfgContainer [2018-11-23 07:38:27,974 INFO L132 PluginConnector]: ------------------------ END TraceAbstraction---------------------------- [2018-11-23 07:38:27,975 INFO L113 PluginConnector]: ------------------------Witness Printer---------------------------- [2018-11-23 07:38:27,975 INFO L271 PluginConnector]: Initializing Witness Printer... [2018-11-23 07:38:27,975 INFO L276 PluginConnector]: Witness Printer initialized [2018-11-23 07:38:27,976 INFO L185 PluginConnector]: Executing the observer RCFGCatcher from plugin Witness Printer for "de.uni_freiburg.informatik.ultimate.plugins.generator.rcfgbuilder CFG 23.11 07:38:24" (3/4) ... [2018-11-23 07:38:27,978 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|=18, |#NULL.offset|=13, |old(#NULL.base)|=18, |old(#NULL.offset)|=13, |old(~#mutexes~0.base)|=15, |old(~#mutexes~0.offset)|=17, |~#mutexes~0.base|=15, |~#mutexes~0.offset|=17] [?] #NULL.base, #NULL.offset := 0, 0;#valid := #valid[0 := 0];call ~#mutexes~0.base, ~#mutexes~0.offset := #Ultimate.alloc(8);call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, ~#mutexes~0.offset, 4);call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, 4 + ~#mutexes~0.offset, 4); VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=18, |old(#NULL.offset)|=13, |old(~#mutexes~0.base)|=15, |old(~#mutexes~0.offset)|=17, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [|#NULL.base|=0, |#NULL.offset|=0, |old(#NULL.base)|=18, |old(#NULL.offset)|=13, |old(~#mutexes~0.base)|=15, |old(~#mutexes~0.offset)|=17, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #175#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret32 := main(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call foo(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call ldv_initialize(); VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #135#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |~#mutexes~0.base|=19, |~#mutexes~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=14, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=14, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=14, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=14, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=14, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=14, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #137#return; VAL [|#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret30.base|=14, |foo_#t~ret30.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m1~0.base, ~m1~0.offset := #t~ret30.base, #t~ret30.offset;havoc #t~ret30.base, #t~ret30.offset; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |~#mutexes~0.base|=19, |~#mutexes~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=20, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=20, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=20, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=20, ldv_successful_malloc_~ptr~0.offset=0, ldv_successful_malloc_~size=8, |#NULL.base|=0, |#NULL.offset|=0, |ldv_successful_malloc_#in~size|=8, |ldv_successful_malloc_#res.base|=20, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=20, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #139#return; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |foo_#t~ret31.base|=20, |foo_#t~ret31.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m2~0.base, ~m2~0.offset := #t~ret31.base, #t~ret31.offset;havoc #t~ret31.base, #t~ret31.offset; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, foo_~m2~0.base=20, foo_~m2~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~e.base, ~e.offset := #in~e.base, #in~e.offset;~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=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] #res := 0; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #165#return; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !(0 != #t~ret27);havoc #t~ret27; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~new.base, ~new.offset := #in~new.base, #in~new.offset;~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~e.base, ~e.offset := #in~e.base, #in~e.offset;~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=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] #res := 0; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=19, ldv_is_in_set_~__mptr~3.offset=0, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=19, ldv_is_in_set_~m~1.offset=(- 4), ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #169#return; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret17|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume 0 == #t~ret17;havoc #t~ret17;havoc ~le~0.base, ~le~0.offset; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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, |~#mutexes~0.base|=19, |~#mutexes~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=16, 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|=16, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=16, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_successful_malloc_~ptr~0.base=16, 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|=16, |ldv_successful_malloc_#res.offset|=0, |ldv_successful_malloc_#t~malloc5.base|=16, |ldv_successful_malloc_#t~malloc5.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #171#return; VAL [ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |ldv_set_add_#t~ret18.base|=16, |ldv_set_add_#t~ret18.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset;havoc #t~ret18.base, #t~ret18.offset;call write~$Pointer$(~new.base, ~new.offset, ~le~0.base, ~le~0.offset, 4); VAL [ldv_set_add_~le~0.base=16, ldv_set_add_~le~0.offset=0, ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |~#mutexes~0.base|=19, |~#mutexes~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=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=19, |ldv_list_add_#t~mem6.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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|=16, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=19, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=19, |__ldv_list_add_#in~prev.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~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=16, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=19, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=19, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=16, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=19, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=19, |__ldv_list_add_#in~prev.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [__ldv_list_add_~new.base=16, __ldv_list_add_~new.offset=4, __ldv_list_add_~next.base=19, __ldv_list_add_~next.offset=0, __ldv_list_add_~prev.base=19, __ldv_list_add_~prev.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |__ldv_list_add_#in~new.base|=16, |__ldv_list_add_#in~new.offset|=4, |__ldv_list_add_#in~next.base|=19, |__ldv_list_add_#in~next.offset|=0, |__ldv_list_add_#in~prev.base|=19, |__ldv_list_add_#in~prev.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #133#return; VAL [ldv_list_add_~head.base=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |ldv_list_add_#t~mem6.base|=19, |ldv_list_add_#t~mem6.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] havoc #t~mem6.base, #t~mem6.offset; VAL [ldv_list_add_~head.base=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_list_add_~head.base=19, ldv_list_add_~head.offset=0, ldv_list_add_~new.base=16, ldv_list_add_~new.offset=4, |#NULL.base|=0, |#NULL.offset|=0, |ldv_list_add_#in~head.base|=19, |ldv_list_add_#in~head.offset|=0, |ldv_list_add_#in~new.base|=16, |ldv_list_add_#in~new.offset|=4, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #173#return; VAL [ldv_set_add_~le~0.base=16, ldv_set_add_~le~0.offset=0, ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_set_add_~le~0.base=16, ldv_set_add_~le~0.offset=0, ldv_set_add_~new.base=14, ldv_set_add_~new.offset=0, ldv_set_add_~s.base=19, ldv_set_add_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_set_add_#in~new.base|=14, |ldv_set_add_#in~new.offset|=0, |ldv_set_add_#in~s.base|=19, |ldv_set_add_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #167#return; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #141#return; VAL [foo_~m1~0.base=14, foo_~m1~0.offset=0, foo_~m2~0.base=20, foo_~m2~0.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [|#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] ~e.base, ~e.offset := #in~e.base, #in~e.offset;~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=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset);call #t~mem25.base, #t~mem25.offset := read~$Pointer$(~m~1.base, ~m~1.offset, 4); VAL [ldv_is_in_set_~__mptr~3.base=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#t~mem25.base|=14, |ldv_is_in_set_#t~mem25.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume #t~mem25.base == ~e.base && #t~mem25.offset == ~e.offset;havoc #t~mem25.base, #t~mem25.offset;#res := 1; VAL [ldv_is_in_set_~__mptr~3.base=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume true; VAL [ldv_is_in_set_~__mptr~3.base=16, ldv_is_in_set_~__mptr~3.offset=4, ldv_is_in_set_~e.base=14, ldv_is_in_set_~e.offset=0, ldv_is_in_set_~m~1.base=16, ldv_is_in_set_~m~1.offset=0, ldv_is_in_set_~s.base=19, ldv_is_in_set_~s.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |ldv_is_in_set_#in~e.base|=14, |ldv_is_in_set_#in~e.offset|=0, |ldv_is_in_set_#in~s.base|=19, |ldv_is_in_set_#in~s.offset|=0, |ldv_is_in_set_#res|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] RET #165#return; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |mutex_lock_#t~ret27|=1, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume 0 != #t~ret27;havoc #t~ret27; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] assume !false; VAL [mutex_lock_~m.base=14, mutex_lock_~m.offset=0, |#NULL.base|=0, |#NULL.offset|=0, |mutex_lock_#in~m.base|=14, |mutex_lock_#in~m.offset|=0, |~#mutexes~0.base|=19, |~#mutexes~0.offset|=0] [?] CALL call ULTIMATE.init(); VAL [#NULL.base=18, #NULL.offset=13, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=15, ~#mutexes~0.offset=17] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L652] call ~#mutexes~0.base, ~#mutexes~0.offset := #Ultimate.alloc(8); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, ~#mutexes~0.offset, 4); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, 4 + ~#mutexes~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L679] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L653-L654] ensures true; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] RET call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] CALL call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L669] RET call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret30.base=14, #t~ret30.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] ~m1~0.base, ~m1~0.offset := #t~ret30.base, #t~ret30.offset; [L669] havoc #t~ret30.base, #t~ret30.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] CALL call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L670] RET call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret31.base=20, #t~ret31.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] ~m2~0.base, ~m2~0.offset := #t~ret31.base, #t~ret31.offset; [L670] havoc #t~ret31.base, #t~ret31.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L671] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume !(0 != #t~ret27); [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L657] CALL call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L622-L629] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L622-L629] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623-L628] assume 0 == #t~ret17; [L623] havoc #t~ret17; [L624] havoc ~le~0.base, ~le~0.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L625] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=16, #t~ret18.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L625] havoc #t~ret18.base, #t~ret18.offset; [L626] call write~$Pointer$(~new.base, ~new.offset, ~le~0.base, ~le~0.offset, 4); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L627] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L593-L596] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L593-L596] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L595] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L579-L587] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L579-L587] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L579-L587] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L583] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L584] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L585] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L586] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L579-L587] ensures true; VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L595] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L593-L596] ensures true; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L627] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L611] ensures true; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L657] RET call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L655-L658] ensures true; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L671] RET call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L672] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L642-L646] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L643] call #t~mem25.base, #t~mem25.offset := read~$Pointer$(~m~1.base, ~m~1.offset, 4); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25.base=14, #t~mem25.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L643-L645] assume #t~mem25.base == ~e.base && #t~mem25.offset == ~e.offset; [L643] havoc #t~mem25.base, #t~mem25.offset; [L644] #res := 1; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume 0 != #t~ret27; [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assert false; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.preprocessor.BoogiePreprocessorBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL.base=18, #NULL.offset=13, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=15, ~#mutexes~0.offset=17] [?] #NULL.base, #NULL.offset := 0, 0; [?] #valid := #valid[0 := 0]; [L652] call ~#mutexes~0.base, ~#mutexes~0.offset := #Ultimate.alloc(8); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, ~#mutexes~0.offset, 4); [L652] call write~init~$Pointer$(~#mutexes~0.base, ~#mutexes~0.offset, ~#mutexes~0.base, 4 + ~#mutexes~0.offset, 4); VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] ensures true; VAL [#NULL.base=0, #NULL.offset=0, old(#NULL.base)=18, old(#NULL.offset)=13, old(~#mutexes~0.base)=15, old(~#mutexes~0.offset)=17, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L679] CALL call foo(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L653-L654] ensures true; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L668] RET call ldv_initialize(); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] CALL call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=14, #res.offset=0, #t~malloc5.base=14, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=14, ~ptr~0.offset=0, ~size=8] [L669] RET call #t~ret30.base, #t~ret30.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret30.base=14, #t~ret30.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L669] ~m1~0.base, ~m1~0.offset := #t~ret30.base, #t~ret30.offset; [L669] havoc #t~ret30.base, #t~ret30.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] CALL call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L562-L566] ensures true; VAL [#in~size=8, #NULL.base=0, #NULL.offset=0, #res.base=20, #res.offset=0, #t~malloc5.base=20, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=20, ~ptr~0.offset=0, ~size=8] [L670] RET call #t~ret31.base, #t~ret31.offset := ldv_successful_malloc(8); VAL [#NULL.base=0, #NULL.offset=0, #t~ret31.base=20, #t~ret31.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0] [L670] ~m2~0.base, ~m2~0.offset := #t~ret31.base, #t~ret31.offset; [L670] havoc #t~ret31.base, #t~ret31.offset; VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L671] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume !(0 != #t~ret27); [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L657] CALL call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L622-L629] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L622-L629] ~s.base, ~s.offset := #in~s.base, #in~s.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L642-L646] assume !(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L647] #res := 0; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=19, ~__mptr~3.offset=0, ~e.base=14, ~e.offset=0, ~m~1.base=19, ~m~1.offset=-4, ~s.base=19, ~s.offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new.base, ~new.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret17=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L623-L628] assume 0 == #t~ret17; [L623] havoc #t~ret17; [L624] havoc ~le~0.base, ~le~0.offset; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] CALL call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~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=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L562-L566] ensures true; VAL [#in~size=12, #NULL.base=0, #NULL.offset=0, #res.base=16, #res.offset=0, #t~malloc5.base=16, #t~malloc5.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~ptr~0.base=16, ~ptr~0.offset=0, ~size=12] [L625] RET call #t~ret18.base, #t~ret18.offset := ldv_successful_malloc(12); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret18.base=16, #t~ret18.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L625] ~le~0.base, ~le~0.offset := #t~ret18.base, #t~ret18.offset; [L625] havoc #t~ret18.base, #t~ret18.offset; [L626] call write~$Pointer$(~new.base, ~new.offset, ~le~0.base, ~le~0.offset, 4); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L627] CALL call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L593-L596] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L593-L596] ~head.base, ~head.offset := #in~head.base, #in~head.offset; [L595] call #t~mem6.base, #t~mem6.offset := read~$Pointer$(~head.base, ~head.offset, 4); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] CALL call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L579-L587] ~new.base, ~new.offset := #in~new.base, #in~new.offset; [L579-L587] ~prev.base, ~prev.offset := #in~prev.base, #in~prev.offset; [L579-L587] ~next.base, ~next.offset := #in~next.base, #in~next.offset; [L583] call write~$Pointer$(~new.base, ~new.offset, ~next.base, 4 + ~next.offset, 4); [L584] call write~$Pointer$(~next.base, ~next.offset, ~new.base, ~new.offset, 4); [L585] call write~$Pointer$(~prev.base, ~prev.offset, ~new.base, 4 + ~new.offset, 4); [L586] call write~$Pointer$(~new.base, ~new.offset, ~prev.base, ~prev.offset, 4); VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L579-L587] ensures true; VAL [#in~new.base=16, #in~new.offset=4, #in~next.base=19, #in~next.offset=0, #in~prev.base=19, #in~prev.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~new.base=16, ~new.offset=4, ~next.base=19, ~next.offset=0, ~prev.base=19, ~prev.offset=0] [L595] RET call __ldv_list_add(~new.base, ~new.offset, ~head.base, ~head.offset, #t~mem6.base, #t~mem6.offset); VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, #t~mem6.base=19, #t~mem6.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L595] havoc #t~mem6.base, #t~mem6.offset; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L593-L596] ensures true; VAL [#in~head.base=19, #in~head.offset=0, #in~new.base=16, #in~new.offset=4, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~head.base=19, ~head.offset=0, ~new.base=16, ~new.offset=4] [L627] RET call ldv_list_add(~le~0.base, 4 + ~le~0.offset, ~s.base, ~s.offset); VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L611] ensures true; VAL [#in~new.base=14, #in~new.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~le~0.base=16, ~le~0.offset=0, ~new.base=14, ~new.offset=0, ~s.base=19, ~s.offset=0] [L657] RET call ldv_set_add(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L655-L658] ensures true; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L671] RET call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m1~0.base=14, ~m1~0.offset=0, ~m2~0.base=20, ~m2~0.offset=0] [L672] CALL call mutex_lock(~m1~0.base, ~m1~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L655-L658] ~m.base, ~m.offset := #in~m.base, #in~m.offset; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0] [L640-L648] ~e.base, ~e.offset := #in~e.base, #in~e.offset; [L640-L648] ~s.base, ~s.offset := #in~s.base, #in~s.offset; [L641] havoc ~m~1.base, ~m~1.offset; [L642] call #t~mem23.base, #t~mem23.offset := read~$Pointer$(~s.base, ~s.offset, 4); [L642] ~__mptr~3.base, ~__mptr~3.offset := #t~mem23.base, #t~mem23.offset; [L642] havoc #t~mem23.base, #t~mem23.offset; [L642] ~m~1.base, ~m~1.offset := ~__mptr~3.base, ~__mptr~3.offset - 4; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L642-L646] assume !!(~m~1.base != ~s.base || 4 + ~m~1.offset != ~s.offset); [L643] call #t~mem25.base, #t~mem25.offset := read~$Pointer$(~m~1.base, ~m~1.offset, 4); VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #t~mem25.base=14, #t~mem25.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L643-L645] assume #t~mem25.base == ~e.base && #t~mem25.offset == ~e.offset; [L643] havoc #t~mem25.base, #t~mem25.offset; [L644] #res := 1; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L613] ensures true; VAL [#in~e.base=14, #in~e.offset=0, #in~s.base=19, #in~s.offset=0, #NULL.base=0, #NULL.offset=0, #res=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~__mptr~3.base=16, ~__mptr~3.offset=4, ~e.base=14, ~e.offset=0, ~m~1.base=16, ~m~1.offset=0, ~s.base=19, ~s.offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m.base, ~m.offset, ~#mutexes~0.base, ~#mutexes~0.offset); VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, #t~ret27=1, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assume 0 != #t~ret27; [L656] havoc #t~ret27; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [L656] assert false; VAL [#in~m.base=14, #in~m.offset=0, #NULL.base=0, #NULL.offset=0, ~#mutexes~0.base=19, ~#mutexes~0.offset=0, ~m.base=14, ~m.offset=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] ----- ----- class de.uni_freiburg.informatik.ultimate.boogie.procedureinliner.backtranslation.InlinerBacktranslator [?] CALL call ULTIMATE.init(); VAL [#NULL!base=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [?] CALL call ULTIMATE.init(); VAL [#NULL!base=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] ----- [2018-11-23 07:38:28,305 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 17 could not be translated for associated CType STRUCT~~ldv_list_head?next~*ldv_list_head?prev~*ldv_list_head# [2018-11-23 07:38:28,305 WARN L1272 BoogieBacktranslator]: Unfinished Backtranslation: IntegerLiteral 15 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=18, #NULL!offset=13, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=15, ~#mutexes~0!offset=17] [?] #NULL := { base: 0, offset: 0 }; [?] #valid[0] := 0; [L652] FCALL call ~#mutexes~0 := #Ultimate.alloc(8); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: ~#mutexes~0!offset }, 4); [L652] FCALL call write~init~$Pointer$(~#mutexes~0, { base: ~#mutexes~0!base, offset: 4 + ~#mutexes~0!offset }, 4); VAL [#NULL!base=0, #NULL!offset=0, old(#NULL!base)=18, old(#NULL!offset)=13, old(~#mutexes~0!base)=15, old(~#mutexes~0!offset)=17, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] RET call ULTIMATE.init(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [?] CALL call #t~ret32 := main(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L679] CALL call foo(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] CALL call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L668] RET call ldv_initialize(); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] CALL call #t~ret30 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=14, #res!offset=0, #t~malloc5!base=14, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=14, ~ptr~0!offset=0, ~size=8] [L669] RET call #t~ret30 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret30!base=14, #t~ret30!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L669] ~m1~0 := #t~ret30; [L669] havoc #t~ret30; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] CALL call #t~ret31 := ldv_successful_malloc(8); VAL [#in~size=8, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=8, #NULL!base=0, #NULL!offset=0, #res!base=20, #res!offset=0, #t~malloc5!base=20, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=20, ~ptr~0!offset=0, ~size=8] [L670] RET call #t~ret31 := ldv_successful_malloc(8); VAL [#NULL!base=0, #NULL!offset=0, #t~ret31!base=20, #t~ret31!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0] [L670] ~m2~0 := #t~ret31; [L670] havoc #t~ret31; VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L671] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND FALSE !(0 != #t~ret27) [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L657] CALL call ldv_set_add(~m, ~#mutexes~0); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L622-L629] ~new := #in~new; [L622-L629] ~s := #in~s; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] CALL call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L642-L646] COND TRUE !({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s) VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L647] #res := 0; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=19, ~__mptr~3!offset=0, ~e!base=14, ~e!offset=0, ~m~1!base=19, ~m~1!offset=-4, ~s!base=19, ~s!offset=0] [L623] RET call #t~ret17 := ldv_is_in_set(~new, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] assume -2147483648 <= #t~ret17 && #t~ret17 <= 2147483647; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret17=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L623] COND TRUE 0 == #t~ret17 [L623] havoc #t~ret17; [L624] havoc ~le~0; VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] CALL call #t~ret18 := ldv_successful_malloc(12); VAL [#in~size=12, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~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=16, #res!offset=0, #t~malloc5!base=16, #t~malloc5!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~ptr~0!base=16, ~ptr~0!offset=0, ~size=12] [L625] RET call #t~ret18 := ldv_successful_malloc(12); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret18!base=16, #t~ret18!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L625] ~le~0 := #t~ret18; [L625] havoc #t~ret18; [L626] FCALL call write~$Pointer$(~new, { base: ~le~0!base, offset: ~le~0!offset }, 4); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L627] CALL call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L593-L596] ~new := #in~new; [L593-L596] ~head := #in~head; [L595] FCALL call #t~mem6 := read~$Pointer$({ base: ~head!base, offset: ~head!offset }, 4); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] CALL call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L579-L587] ~new := #in~new; [L579-L587] ~prev := #in~prev; [L579-L587] ~next := #in~next; [L583] FCALL call write~$Pointer$(~new, { base: ~next!base, offset: 4 + ~next!offset }, 4); [L584] FCALL call write~$Pointer$(~next, { base: ~new!base, offset: ~new!offset }, 4); [L585] FCALL call write~$Pointer$(~prev, { base: ~new!base, offset: 4 + ~new!offset }, 4); [L586] FCALL call write~$Pointer$(~new, { base: ~prev!base, offset: ~prev!offset }, 4); VAL [#in~new!base=16, #in~new!offset=4, #in~next!base=19, #in~next!offset=0, #in~prev!base=19, #in~prev!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~new!base=16, ~new!offset=4, ~next!base=19, ~next!offset=0, ~prev!base=19, ~prev!offset=0] [L595] RET call __ldv_list_add(~new, ~head, #t~mem6); VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, #t~mem6!base=19, #t~mem6!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L595] havoc #t~mem6; VAL [#in~head!base=19, #in~head!offset=0, #in~new!base=16, #in~new!offset=4, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~head!base=19, ~head!offset=0, ~new!base=16, ~new!offset=4] [L627] RET call ldv_list_add({ base: ~le~0!base, offset: 4 + ~le~0!offset }, ~s); VAL [#in~new!base=14, #in~new!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~le~0!base=16, ~le~0!offset=0, ~new!base=14, ~new!offset=0, ~s!base=19, ~s!offset=0] [L657] RET call ldv_set_add(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L671] RET call mutex_lock(~m1~0); VAL [#NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m1~0!base=14, ~m1~0!offset=0, ~m2~0!base=20, ~m2~0!offset=0] [L672] CALL call mutex_lock(~m1~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L655-L658] ~m := #in~m; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] CALL call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0] [L640-L648] ~e := #in~e; [L640-L648] ~s := #in~s; [L641] havoc ~m~1; [L642] FCALL call #t~mem23 := read~$Pointer$({ base: ~s!base, offset: ~s!offset }, 4); [L642] ~__mptr~3 := #t~mem23; [L642] havoc #t~mem23; [L642] ~m~1 := { base: ~__mptr~3!base, offset: ~__mptr~3!offset - 4 }; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L642-L646] COND FALSE !(!({ base: ~m~1!base, offset: 4 + ~m~1!offset } != ~s)) [L643] FCALL call #t~mem25 := read~$Pointer$({ base: ~m~1!base, offset: ~m~1!offset }, 4); VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #t~mem25!base=14, #t~mem25!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L643] COND TRUE #t~mem25 == ~e [L643] havoc #t~mem25; [L644] #res := 1; VAL [#in~e!base=14, #in~e!offset=0, #in~s!base=19, #in~s!offset=0, #NULL!base=0, #NULL!offset=0, #res=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~__mptr~3!base=16, ~__mptr~3!offset=4, ~e!base=14, ~e!offset=0, ~m~1!base=16, ~m~1!offset=0, ~s!base=19, ~s!offset=0] [L656] RET call #t~ret27 := ldv_is_in_set(~m, ~#mutexes~0); VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assume -2147483648 <= #t~ret27 && #t~ret27 <= 2147483647; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, #t~ret27=1, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] COND TRUE 0 != #t~ret27 [L656] havoc #t~ret27; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L656] assert false; VAL [#in~m!base=14, #in~m!offset=0, #NULL!base=0, #NULL!offset=0, ~#mutexes~0!base=19, ~#mutexes~0!offset=0, ~m!base=14, ~m!offset=0] [L652] struct ldv_list_head mutexes = { &(mutexes), &(mutexes) }; VAL [\old(mutexes)=null, \old(mutexes)=null, mutexes={19:0}] [L679] CALL foo() VAL [mutexes={19:0}] [L668] FCALL ldv_initialize() VAL [mutexes={19:0}] [L669] CALL, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [\old(size)=8, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=8, \result={14:0}, malloc(size)={14:0}, mutexes={19:0}, ptr={14:0}, size=8] [L669] RET, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [ldv_successful_malloc(sizeof(struct mutex))={14:0}, mutexes={19:0}] [L669] struct mutex *m1 = ldv_successful_malloc(sizeof(struct mutex)); [L670] CALL, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [\old(size)=8, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=8, \result={20:0}, malloc(size)={20:0}, mutexes={19:0}, ptr={20:0}, size=8] [L670] RET, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [ldv_successful_malloc(sizeof(struct mutex))={20:0}, m1={14:0}, mutexes={19:0}] [L670] struct mutex *m2 = ldv_successful_malloc(sizeof(struct mutex)); [L671] CALL mutex_lock(m1) VAL [m={14:0}, mutexes={19:0}] [L656] CALL ldv_is_in_set(m, &mutexes) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND FALSE !(&m->list != (s)) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L647] return 0; VAL [\result=0, __mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L656] RET ldv_is_in_set(m, &mutexes) VAL [ldv_is_in_set(m, &mutexes)=0, m={14:0}, m={14:0}, mutexes={19:0}] [L656] COND FALSE !(ldv_is_in_set(m, &mutexes)) [L657] CALL ldv_set_add(m, &mutexes) VAL [mutexes={19:0}, new={14:0}, s={19:0}] [L623] CALL, EXPR ldv_is_in_set(new, s) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND FALSE !(&m->list != (s)) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L647] return 0; VAL [\result=0, __mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L623] RET, EXPR ldv_is_in_set(new, s) VAL [ldv_is_in_set(new, s)=0, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L623] COND TRUE !ldv_is_in_set(new, s) [L624] struct ldv_list_element *le; VAL [mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L625] CALL, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(size)=12, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=12, \result={16:0}, malloc(size)={16:0}, mutexes={19:0}, ptr={16:0}, size=12] [L625] RET, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [ldv_successful_malloc(sizeof(struct ldv_list_element))={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L625] le = (struct ldv_list_element*)ldv_successful_malloc(sizeof(struct ldv_list_element)) [L626] le->e = new VAL [le={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L627] CALL ldv_list_add(&le->list, s) VAL [head={19:0}, mutexes={19:0}, new={16:4}] [L595] EXPR head->next VAL [head={19:0}, head={19:0}, head->next={19:0}, mutexes={19:0}, new={16:4}, new={16:4}] [L595] CALL __ldv_list_add(new, head, head->next) VAL [mutexes={19:0}, new={16:4}, next={19:0}, prev={19:0}] [L583] next->prev = new [L584] new->next = next [L585] new->prev = prev [L586] prev->next = new VAL [mutexes={19:0}, new={16:4}, new={16:4}, next={19:0}, next={19:0}, prev={19:0}, prev={19:0}] [L595] RET __ldv_list_add(new, head, head->next) VAL [head={19:0}, head={19:0}, head->next={19:0}, mutexes={19:0}, new={16:4}, new={16:4}] [L627] RET ldv_list_add(&le->list, s) VAL [le={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L657] RET ldv_set_add(m, &mutexes) VAL [m={14:0}, m={14:0}, mutexes={19:0}] [L671] RET mutex_lock(m1) VAL [m1={14:0}, m2={20:0}, mutexes={19:0}] [L672] CALL mutex_lock(m1) VAL [m={14:0}, mutexes={19:0}] [L656] CALL ldv_is_in_set(m, &mutexes) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND TRUE &m->list != (s) [L643] EXPR m->e VAL [__mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, m->e={14:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L643] COND TRUE m->e == e [L644] return 1; VAL [\result=1, __mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L656] RET ldv_is_in_set(m, &mutexes) VAL [ldv_is_in_set(m, &mutexes)=1, m={14:0}, m={14:0}, mutexes={19:0}] [L656] COND TRUE ldv_is_in_set(m, &mutexes) [L656] __VERIFIER_error() VAL [m={14:0}, m={14:0}, mutexes={19:0}] ----- [2018-11-23 07:38:28,441 INFO L145 WitnessManager]: Wrote witness to /tmp/vcloud-vcloud-master/worker/working_dir_b8c8f7f7-c6d5-44e6-b0ed-1acefc4b7da6/bin-2019/uautomizer/witness.graphml [2018-11-23 07:38:28,441 INFO L132 PluginConnector]: ------------------------ END Witness Printer---------------------------- [2018-11-23 07:38:28,442 INFO L168 Benchmark]: Toolchain (without parser) took 4569.55 ms. Allocated memory was 1.0 GB in the beginning and 1.3 GB in the end (delta: 237.0 MB). Free memory was 957.5 MB in the beginning and 839.0 MB in the end (delta: 118.5 MB). Peak memory consumption was 355.4 MB. Max. memory is 11.5 GB. [2018-11-23 07:38:28,443 INFO L168 Benchmark]: CDTParser took 0.12 ms. Allocated memory is still 1.0 GB. Free memory is still 985.4 MB. There was no memory consumed. Max. memory is 11.5 GB. [2018-11-23 07:38:28,444 INFO L168 Benchmark]: CACSL2BoogieTranslator took 398.56 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 172.5 MB). Free memory was 957.5 MB in the beginning and 1.1 GB in the end (delta: -188.9 MB). Peak memory consumption was 29.2 MB. Max. memory is 11.5 GB. [2018-11-23 07:38:28,444 INFO L168 Benchmark]: Boogie Procedure Inliner took 21.61 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 07:38:28,444 INFO L168 Benchmark]: Boogie Preprocessor took 29.17 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: 3.4 MB). Peak memory consumption was 3.4 MB. Max. memory is 11.5 GB. [2018-11-23 07:38:28,445 INFO L168 Benchmark]: RCFGBuilder took 351.18 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: 38.2 MB). Peak memory consumption was 38.2 MB. Max. memory is 11.5 GB. [2018-11-23 07:38:28,445 INFO L168 Benchmark]: TraceAbstraction took 3298.96 ms. Allocated memory was 1.2 GB in the beginning and 1.3 GB in the end (delta: 64.5 MB). Free memory was 1.1 GB in the beginning and 854.3 MB in the end (delta: 250.5 MB). Peak memory consumption was 315.0 MB. Max. memory is 11.5 GB. [2018-11-23 07:38:28,446 INFO L168 Benchmark]: Witness Printer took 466.64 ms. Allocated memory is still 1.3 GB. Free memory was 854.3 MB in the beginning and 839.0 MB in the end (delta: 15.3 MB). Peak memory consumption was 15.3 MB. Max. memory is 11.5 GB. [2018-11-23 07:38:28,448 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.12 ms. Allocated memory is still 1.0 GB. Free memory is still 985.4 MB. There was no memory consumed. Max. memory is 11.5 GB. * CACSL2BoogieTranslator took 398.56 ms. Allocated memory was 1.0 GB in the beginning and 1.2 GB in the end (delta: 172.5 MB). Free memory was 957.5 MB in the beginning and 1.1 GB in the end (delta: -188.9 MB). Peak memory consumption was 29.2 MB. Max. memory is 11.5 GB. * Boogie Procedure Inliner took 21.61 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 29.17 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: 3.4 MB). Peak memory consumption was 3.4 MB. Max. memory is 11.5 GB. * RCFGBuilder took 351.18 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: 38.2 MB). Peak memory consumption was 38.2 MB. Max. memory is 11.5 GB. * TraceAbstraction took 3298.96 ms. Allocated memory was 1.2 GB in the beginning and 1.3 GB in the end (delta: 64.5 MB). Free memory was 1.1 GB in the beginning and 854.3 MB in the end (delta: 250.5 MB). Peak memory consumption was 315.0 MB. Max. memory is 11.5 GB. * Witness Printer took 466.64 ms. Allocated memory is still 1.3 GB. Free memory was 854.3 MB in the beginning and 839.0 MB in the end (delta: 15.3 MB). Peak memory consumption was 15.3 MB. Max. memory is 11.5 GB. * Results from de.uni_freiburg.informatik.ultimate.plugins.generator.cacsl2boogietranslator: - GenericResult: Unfinished Backtranslation Unfinished Backtranslation: IntegerLiteral 15 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 17 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 17 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 15 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: 656]: a call of __VERIFIER_error() is reachable a call of __VERIFIER_error() is reachable We found a FailurePath: [L652] struct ldv_list_head mutexes = { &(mutexes), &(mutexes) }; VAL [\old(mutexes)=null, \old(mutexes)=null, mutexes={19:0}] [L679] CALL foo() VAL [mutexes={19:0}] [L668] FCALL ldv_initialize() VAL [mutexes={19:0}] [L669] CALL, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [\old(size)=8, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=8, \result={14:0}, malloc(size)={14:0}, mutexes={19:0}, ptr={14:0}, size=8] [L669] RET, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [ldv_successful_malloc(sizeof(struct mutex))={14:0}, mutexes={19:0}] [L669] struct mutex *m1 = ldv_successful_malloc(sizeof(struct mutex)); [L670] CALL, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [\old(size)=8, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=8, \result={20:0}, malloc(size)={20:0}, mutexes={19:0}, ptr={20:0}, size=8] [L670] RET, EXPR ldv_successful_malloc(sizeof(struct mutex)) VAL [ldv_successful_malloc(sizeof(struct mutex))={20:0}, m1={14:0}, mutexes={19:0}] [L670] struct mutex *m2 = ldv_successful_malloc(sizeof(struct mutex)); [L671] CALL mutex_lock(m1) VAL [m={14:0}, mutexes={19:0}] [L656] CALL ldv_is_in_set(m, &mutexes) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND FALSE !(&m->list != (s)) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L647] return 0; VAL [\result=0, __mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L656] RET ldv_is_in_set(m, &mutexes) VAL [ldv_is_in_set(m, &mutexes)=0, m={14:0}, m={14:0}, mutexes={19:0}] [L656] COND FALSE !(ldv_is_in_set(m, &mutexes)) [L657] CALL ldv_set_add(m, &mutexes) VAL [mutexes={19:0}, new={14:0}, s={19:0}] [L623] CALL, EXPR ldv_is_in_set(new, s) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND FALSE !(&m->list != (s)) VAL [__mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L647] return 0; VAL [\result=0, __mptr={19:0}, e={14:0}, e={14:0}, m={19:-4}, mutexes={19:0}, s={19:0}, s={19:0}] [L623] RET, EXPR ldv_is_in_set(new, s) VAL [ldv_is_in_set(new, s)=0, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L623] COND TRUE !ldv_is_in_set(new, s) [L624] struct ldv_list_element *le; VAL [mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L625] CALL, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [\old(size)=12, mutexes={19:0}] [L563] void *ptr = malloc(size); [L565] return ptr; VAL [\old(size)=12, \result={16:0}, malloc(size)={16:0}, mutexes={19:0}, ptr={16:0}, size=12] [L625] RET, EXPR ldv_successful_malloc(sizeof(struct ldv_list_element)) VAL [ldv_successful_malloc(sizeof(struct ldv_list_element))={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L625] le = (struct ldv_list_element*)ldv_successful_malloc(sizeof(struct ldv_list_element)) [L626] le->e = new VAL [le={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L627] CALL ldv_list_add(&le->list, s) VAL [head={19:0}, mutexes={19:0}, new={16:4}] [L595] EXPR head->next VAL [head={19:0}, head={19:0}, head->next={19:0}, mutexes={19:0}, new={16:4}, new={16:4}] [L595] CALL __ldv_list_add(new, head, head->next) VAL [mutexes={19:0}, new={16:4}, next={19:0}, prev={19:0}] [L583] next->prev = new [L584] new->next = next [L585] new->prev = prev [L586] prev->next = new VAL [mutexes={19:0}, new={16:4}, new={16:4}, next={19:0}, next={19:0}, prev={19:0}, prev={19:0}] [L595] RET __ldv_list_add(new, head, head->next) VAL [head={19:0}, head={19:0}, head->next={19:0}, mutexes={19:0}, new={16:4}, new={16:4}] [L627] RET ldv_list_add(&le->list, s) VAL [le={16:0}, mutexes={19:0}, new={14:0}, new={14:0}, s={19:0}, s={19:0}] [L657] RET ldv_set_add(m, &mutexes) VAL [m={14:0}, m={14:0}, mutexes={19:0}] [L671] RET mutex_lock(m1) VAL [m1={14:0}, m2={20:0}, mutexes={19:0}] [L672] CALL mutex_lock(m1) VAL [m={14:0}, mutexes={19:0}] [L656] CALL ldv_is_in_set(m, &mutexes) VAL [e={14:0}, mutexes={19:0}, s={19:0}] [L641] struct ldv_list_element *m; [L642] EXPR (s)->next [L642] const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); [L642] m = ({ const typeof( ((typeof(*m) *)0)->list ) *__mptr = ((s)->next); (typeof(*m) *)( (char *)__mptr - ((size_t) &((typeof(*m) *)0)->list) );}) VAL [__mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L642] COND TRUE &m->list != (s) [L643] EXPR m->e VAL [__mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, m->e={14:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L643] COND TRUE m->e == e [L644] return 1; VAL [\result=1, __mptr={16:4}, e={14:0}, e={14:0}, m={16:0}, mutexes={19:0}, s={19:0}, s={19:0}] [L656] RET ldv_is_in_set(m, &mutexes) VAL [ldv_is_in_set(m, &mutexes)=1, m={14:0}, m={14:0}, mutexes={19:0}] [L656] COND TRUE ldv_is_in_set(m, &mutexes) [L656] __VERIFIER_error() VAL [m={14:0}, m={14:0}, mutexes={19:0}] - StatisticsResult: Ultimate Automizer benchmark data CFG has 18 procedures, 101 locations, 3 error locations. UNSAFE Result, 3.2s OverallTime, 6 OverallIterations, 5 TraceHistogramMax, 1.7s AutomataDifference, 0.0s DeadEndRemovalTime, 0.0s HoareAnnotationTime, HoareTripleCheckerStatistics: 554 SDtfs, 634 SDslu, 1181 SDs, 0 SdLazy, 1544 SolverSat, 246 SolverUnsat, 0 SolverUnknown, 0 SolverNotchecked, 0.9s Time, PredicateUnifierStatistics: 0 DeclaredPredicates, 234 GetRequests, 177 SyntacticMatches, 1 SemanticMatches, 56 ConstructedPredicates, 0 IntricatePredicates, 0 DeprecatedPredicates, 482 ImplicationChecksByTransitivity, 0.9s Time, 0.0s BasicInterpolantAutomatonTime, BiggestAbstraction: size=160occurred in iteration=5, 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, 5 MinimizatonAttempts, 105 StatesRemovedByMinimization, 2 NontrivialMinimizations, HoareAnnotationStatistics: No data available, RefinementEngineStatistics: TraceCheckStatistics: 0.0s SsaConstructionTime, 0.1s SatisfiabilityAnalysisTime, 0.7s InterpolantComputationTime, 470 NumberOfCodeBlocks, 470 NumberOfCodeBlocksAsserted, 8 NumberOfCheckSat, 395 ConstructedInterpolants, 0 QuantifiedInterpolants, 121260 SizeOfPredicates, 16 NumberOfNonLiveVariables, 868 ConjunctsInSsa, 60 ConjunctsInUnsatCore, 7 InterpolantComputations, 5 PerfectInterpolantSequences, 213/261 InterpolantCoveringCapability, InvariantSynthesisStatistics: No data available, InterpolantConsolidationStatistics: No data available, ReuseStatistics: No data available RESULT: Ultimate proved your program to be incorrect! Received shutdown request...