--  F2: an enclave's type has a ghost model and an invariant
package Lists
  with Annotate => (Verada, Enclave)
is
   type List is limited private;
   function Length (L : List) return Natural;
private
   type Node;
   type Node_Ptr is access Node;
   type Node is record
      Value : Integer;
      Next : Node_Ptr;
   end record;
   type List is limited record
      Head : Node_Ptr;
      Count : Natural := 0;
   end record;
   function Length (L : List) return Natural is (L.Count);
end Lists;
