Module LsegWandQFrame.
Definition lseg (sh: share) (contents: list int) (x z: val) : mpred :=
ALL tcontents: list int, listrep sh tcontents z -* listrep sh (contents ++ tcontents) x.
Hint Resolve listrep_local_facts : saturate_local.
Hint Resolve listrep_valid_pointer : valid_pointer.

Lemma listrep_null: forall sh contents x,
x = nullval ->
listrep sh contents x = !! (contents=nil) && emp.