Join points
bluerock.auto.cpp.delayed_case_tactics.
This file provides two tactics wp_if and wp_switch, with variants,
for dealing with join points produced by if and switch statements.
-
wp_if-- advance past abranch.stmtperforming an immediate case split. This should only be used if the continuation is "simple". -
wp_if wpp--wppis aregion -> WithPrePost(specify with function spec syntax) that describes the branches as a function with the given specification. Unlike a function call, the branches get access to, but must preserve the frame. -
wpe_if wpp-- similar towp_if wppbut applies to conditional expressions. -
wpe_if PQ wpp-- similar towpe_if wppbutPQ, aregion -> mpred, specifies a postcondition to be proved after freeing the temporaries of the enclosing expression. -
wp_switch-- same aswp_ifbut forbranch.cases -
wp_switch wpp-- same aswp_if wppbut forbranch.cases -
wp_switch P-- wherePis aregion -> mpredstates thatPis the (big-footprint) specification of the join point.