Skip to content
Snippets Groups Projects
  • David Bühler's avatar
    c82ea6d5
    [Eva] Base: rewrites is_valid_offset and valid_offset. · c82ea6d5
    David Bühler authored
    - shares and moves the functions [reduce_offset_by_validity] of Locations and
      Precise_locs into base.ml.
    - replaces the boolean argument ~for_writing into the new type access, that
      represents Read, Write or No_access. Without any access, offsets must point
      into or just beyond the base validity.
    - fixes the support of accesses of size 0: they are now invalid:
      + in bases with Invalid validity;
      + one past a base validity unless the base ends with an empty struct.
    c82ea6d5
    History
    [Eva] Base: rewrites is_valid_offset and valid_offset.
    David Bühler authored
    - shares and moves the functions [reduce_offset_by_validity] of Locations and
      Precise_locs into base.ml.
    - replaces the boolean argument ~for_writing into the new type access, that
      represents Read, Write or No_access. Without any access, offsets must point
      into or just beyond the base validity.
    - fixes the support of accesses of size 0: they are now invalid:
      + in bases with Invalid validity;
      + one past a base validity unless the base ends with an empty struct.