Skip to content

improve forward.destruct_it #847

@andrew-appel

Description

@andrew-appel

The following improvement to VST.floyd.forward.destruct_it unfolds type-definitions when looking for things to destruct:

Ltac destruct_it B :=
 match B with
 | ?C _ => destruct_it C
 | let '(x,y) := ?A in _ => destruct A as [x y]
 | match ?A with _ => _ end =>
    match type of A with ?tA => let uA := eval hnf in tA in  (* new *)
     match uA with
     | @sigT _ (fun x => _) => destruct A as [x A] 
     end end
 end.

For an example, see simple_cfem.verif_assemble.body_assemble_add.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions