--  A parent package whose state lives in a private child, with a body split into a
--  subunit.
with Ada.Text_IO;

package Ledger
  with Abstract_State => State, Initializes => State
is
   procedure Add (Amount : Integer)
     with Global => (In_Out => State),
          Pre => Amount in -1_000 .. 1_000;

   function Balance return Integer
     with Global => State;

   procedure Report
     with Global => (Input => State, In_Out => Ada.Text_IO.File_System);
end Ledger;
