           {*******************************************************}
                               {FDL Declarations}
                             {Examiner GPL Edition}

           {*******************************************************}


                  {procedure Zone_File_Parser.FillBlockInfo}


title procedure fillblockinfo;

  function round__(real) : integer;
  type character = integer;
  type natural = integer;
  type positive = integer;
  type dns_types__byte = integer;
  type dns_types__query_type = (dns_types__a, dns_types__ns, 
     dns_types__cname, dns_types__soa, dns_types__wks, 
     dns_types__ptr, dns_types__mx, dns_types__aaaa, 
     dns_types__srv, dns_types__a6, dns_types__opt, dns_types__ds, 
     dns_types__rrsig, dns_types__nsec, dns_types__dnskey, 
     dns_types__any, dns_types__caa, dns_types__error, 
     dns_types__unimplemented);
  type unsigned_types__unsigned8 = integer;
  type unsigned_types__unsigned16 = integer;
  type unsigned_types__unsigned32 = integer;
  type rr_type__rritemtype = (rr_type__domainnameortimespec, 
     rr_type__number, rr_type__class, rr_type__recordindicator, 
     rr_type__ipv4, rr_type__ipv6, rr_type__lparen, 
     rr_type__rparen, rr_type__control, rr_type__comment, 
     rr_type__other);
  type rr_type__linelengthindex = integer;
  type rr_type__nsec_record_type__recordtypeindexvalue = integer;
  type rr_type__nsec_record_type__recordtypearrayindex = integer;
  type rr_type__nsec_record_type__blocknumbervalue = integer;
  type rr_type__nsec_record_type__blocknumberarrayindex = integer;
  type rr_type__nsec_record_type__blocklengthvalue = integer;
  type rr_type__nsec_record_type__bitmapindex = integer;
  type blockmapindex = integer;
  type string = array [positive] of character;
  const null__string : string = pending;
  type rr_type__nsec_record_type__recordtypearraytype = array [
     rr_type__nsec_record_type__recordtypearrayindex] of 
     dns_types__query_type;
  type rr_type__nsec_record_type__blocknumberarraytype = array [
     rr_type__nsec_record_type__blocknumberarrayindex] of 
     dns_types__byte;
  type rr_type__nsec_record_type__bitmaparraytype = array [
     rr_type__nsec_record_type__bitmapindex] of dns_types__byte;
  type blockmaptype = array [blockmapindex] of boolean;
  type blocklengthmaptype = array [blockmapindex] of 
     rr_type__nsec_record_type__blocklengthvalue;
  type rr_type__nsec_record_type__bitmapsarrayarraytype = array [
     rr_type__nsec_record_type__blocknumberarrayindex] of 
     rr_type__nsec_record_type__bitmaparraytype;
  const rr_type__maxlinelength : integer = pending;
  const rr_type__nsec_record_type__maxnumberofrecordtypes : 
     integer = pending;
  const rr_type__nsec_record_type__maxnumberofblocks : integer = pending;
  const blockmapindex__base__first : unsigned_types__unsigned8 = pending; 
  const blockmapindex__base__last : unsigned_types__unsigned8 = pending; 
  const rr_type__nsec_record_type__bitmapindex__base__first : 
     integer = pending; 
  const rr_type__nsec_record_type__bitmapindex__base__last : 
     integer = pending; 
  const rr_type__nsec_record_type__blocklengthvalue__base__first : 
     integer = pending; 
  const rr_type__nsec_record_type__blocklengthvalue__base__last : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumberarrayindex__base__first : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumberarrayindex__base__last : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumbervalue__base__first : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumbervalue__base__last : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypearrayindex__base__first : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypearrayindex__base__last : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypeindexvalue__base__first : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypeindexvalue__base__last : 
     integer = pending; 
  const rr_type__linelengthindex__base__first : integer = pending; 
  const rr_type__linelengthindex__base__last : integer = pending; 
  const rr_type__rritemtype__base__first : rr_type__rritemtype = pending; 
  const rr_type__rritemtype__base__last : rr_type__rritemtype = pending; 
  const unsigned_types__unsigned32__base__first : 
     unsigned_types__unsigned32 = pending; 
  const unsigned_types__unsigned32__base__last : 
     unsigned_types__unsigned32 = pending; 
  const unsigned_types__unsigned16__base__first : 
     unsigned_types__unsigned16 = pending; 
  const unsigned_types__unsigned16__base__last : 
     unsigned_types__unsigned16 = pending; 
  const unsigned_types__unsigned8__base__first : 
     unsigned_types__unsigned8 = pending; 
  const unsigned_types__unsigned8__base__last : 
     unsigned_types__unsigned8 = pending; 
  const dns_types__query_type__base__first : 
     dns_types__query_type = pending; 
  const dns_types__query_type__base__last : dns_types__query_type = pending; 
  const dns_types__byte__base__first : dns_types__byte = pending; 
  const dns_types__byte__base__last : dns_types__byte = pending; 
  const positive__base__first : integer = pending; 
  const positive__base__last : integer = pending; 
  const natural__base__first : integer = pending; 
  const natural__base__last : integer = pending; 
  const character__base__first : character = pending; 
  const character__base__last : character = pending; 
  const integer__base__first : integer = pending; 
  const integer__base__last : integer = pending; 
  const blockmapindex__first : unsigned_types__unsigned8 = pending; 
  const blockmapindex__last : unsigned_types__unsigned8 = pending; 
  const blockmapindex__modulus : integer = pending; 
  const blockmapindex__size : integer = pending; 
  const rr_type__nsec_record_type__bitmapindex__first : integer = pending; 
  const rr_type__nsec_record_type__bitmapindex__last : integer = pending; 
  const rr_type__nsec_record_type__bitmapindex__size : integer = pending; 
  const rr_type__nsec_record_type__blocklengthvalue__first : 
     integer = pending; 
  const rr_type__nsec_record_type__blocklengthvalue__last : 
     integer = pending; 
  const rr_type__nsec_record_type__blocklengthvalue__size : integer = pending; 
  const rr_type__nsec_record_type__blocknumberarrayindex__first : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumberarrayindex__last : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumberarrayindex__size : integer = pending; 
  const rr_type__nsec_record_type__blocknumbervalue__first : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumbervalue__last : 
     integer = pending; 
  const rr_type__nsec_record_type__blocknumbervalue__size : integer = pending; 
  const rr_type__nsec_record_type__recordtypearrayindex__first : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypearrayindex__last : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypearrayindex__size : integer = pending; 
  const rr_type__nsec_record_type__recordtypeindexvalue__first : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypeindexvalue__last : 
     integer = pending; 
  const rr_type__nsec_record_type__recordtypeindexvalue__size : integer = pending; 
  const rr_type__linelengthindex__first : integer = pending; 
  const rr_type__linelengthindex__last : integer = pending; 
  const rr_type__linelengthindex__size : integer = pending; 
  const rr_type__rritemtype__first : rr_type__rritemtype = pending; 
  const rr_type__rritemtype__last : rr_type__rritemtype = pending; 
  const rr_type__rritemtype__size : integer = pending; 
  const unsigned_types__unsigned32__first : 
     unsigned_types__unsigned32 = pending; 
  const unsigned_types__unsigned32__last : 
     unsigned_types__unsigned32 = pending; 
  const unsigned_types__unsigned32__modulus : integer = pending; 
  const unsigned_types__unsigned32__size : integer = pending; 
  const unsigned_types__unsigned16__first : 
     unsigned_types__unsigned16 = pending; 
  const unsigned_types__unsigned16__last : 
     unsigned_types__unsigned16 = pending; 
  const unsigned_types__unsigned16__modulus : integer = pending; 
  const unsigned_types__unsigned16__size : integer = pending; 
  const unsigned_types__unsigned8__first : 
     unsigned_types__unsigned8 = pending; 
  const unsigned_types__unsigned8__last : 
     unsigned_types__unsigned8 = pending; 
  const unsigned_types__unsigned8__modulus : integer = pending; 
  const unsigned_types__unsigned8__size : integer = pending; 
  const dns_types__query_type__first : dns_types__query_type = pending; 
  const dns_types__query_type__last : dns_types__query_type = pending; 
  const dns_types__query_type__size : integer = pending; 
  const dns_types__byte__first : dns_types__byte = pending; 
  const dns_types__byte__last : dns_types__byte = pending; 
  const dns_types__byte__modulus : integer = pending; 
  const dns_types__byte__size : integer = pending; 
  const positive__first : integer = pending; 
  const positive__last : integer = pending; 
  const positive__size : integer = pending; 
  const natural__first : integer = pending; 
  const natural__last : integer = pending; 
  const natural__size : integer = pending; 
  const character__first : character = pending; 
  const character__last : character = pending; 
  const character__size : integer = pending; 
  const integer__first : integer = pending; 
  const integer__last : integer = pending; 
  const integer__size : integer = pending; 
  var rrstring : string;
  var numberofrecordtypes : integer;
  var recordtypes : 
     rr_type__nsec_record_type__recordtypearraytype;
  var numberofblocks : integer;
  var blocknumbers : 
     rr_type__nsec_record_type__blocknumberarraytype;
  var bitmaps : rr_type__nsec_record_type__bitmapsarrayarraytype;
  var linecount : unsigned_types__unsigned32;
  var success : boolean;
  var blockmap : blockmaptype;
  var blocklengthmap : blocklengthmaptype;
  var begidx : integer;
  var endidx : integer;
  var foundtype : rr_type__rritemtype;
  var recordtype : dns_types__query_type;
  var blocknumberoffirstrecordtype : unsigned_types__unsigned8;
  var blockindex : integer;
  var loop__2__i : unsigned_types__unsigned8;
  var loop__3__i : integer;
  var loop__4__j : integer;
  var numberofrecordtypes__entry__loop__3 : integer;
  var numberofblocks__entry__loop__4 : integer;
  function parser_utilities__getrecordtype(string, integer, 
     integer) : dns_types__query_type;
  function from_query_type(dns_types__query_type) : 
     unsigned_types__unsigned16;
  var foundtype__2 : rr_type__rritemtype;
  var endidx__2 : integer;
  var begidx__2 : integer;
  var foundtype__1 : rr_type__rritemtype;
  var endidx__1 : integer;
  var begidx__1 : integer;

end;
