(* Import the AST of this C program *)
(* The next line is "boilerplate", always required after importing an AST. *)
Instance CompSpecs : compspecs.Definition Vprog : varspecs.(* Functional spec of this program.  *)
Definition sum_Z : list Z -> Z := fold_right Z.add 0.

(* Specifications: *)
Lemma sum_Z_app: forall a b, sum_Z (a++b) = sum_Z a + sum_Z b.
Lemma body_sumarray: semax_body Vprog Gprog f_sumarray sumarray_spec.
Lemma body_main: semax_body Vprog Gprog f_main main_spec.
Lemma prog_correct: semax_prog prog Vprog Gprog.