fact: Definition pregraph_copy_v (g: LGraph) (old_v new_v: VType) : PreGraph VType EType := let old_edges := get_edges g old_v in let new_edges := combine (repeat new_v (length old_edges)) (map snd old_edges) in let new_edge_dst_l := combine new_edges (map (dst g) old_edges) in fold_left (copy_v_add_edge new_v) new_edge_dst_l (pregraph_add_vertex g new_v).
imports: Coq.ZArith.ZArith Coq.Program.Basics Coq.micromega.Lia compcert.lib.Integers compcert.common.Values VST.veric.base VST.veric.Clight_lemmas VST.veric.val_lemmas VST.veric.shares VST.msl.seplog VST.msl.shares VST.zlist.sublist VST.floyd.coqlib3 VST.floyd.functional_base VST.floyd.data_at_rec_lemmas VST.zlist.list_solver CertiGraph.lib.EquivDec_ext CertiGraph.lib.List_ext CertiGraph.graph.graph_model CertiGraph.graph.graph_gen