Skip to content
Snippets Groups Projects
Commit c82ea6d5 authored by David Bühler's avatar David Bühler Committed by Andre Maroneze
Browse files

[Eva] Base: rewrites is_valid_offset and valid_offset.

- 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.
parent a7d9d161
No related branches found
No related tags found
No related merge requests found
Showing
with 196 additions and 148 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment