Ignore:
Timestamp:
Feb 6, 2013, 1:01:34 PM (7 years ago)
Author:
garnier
Message:

Regions are no more stored in blocks. block_region now tests the id, it being below 0 implying Code region, XData otherwise.
Changes propagated through the front-end and common. Some more work might be required in the back-end, but it should be
trivial to fix related problems.

Motivation: no way to /elegantly/ prove that two blocks with the same id but different regions are non-sensical.
Prevented some proofs to go through in memory injections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/common/ByteValues.ma

    r2470 r2608  
    55include "common/Pointers.ma".
    66include "utilities/hide.ma".
     7
    78
    89definition cpointer ≝ Σp.ptype p = Code.
     
    1011unification hint 0 ≔ ⊢ cpointer ≡ Sig pointer (λp.ptype p = Code).
    1112unification hint 0 ≔ ⊢ xpointer ≡ Sig pointer   (λp.ptype p = XData).
     13
    1214
    1315(* this is like a code pointer, but with unbounded offset.
Note: See TracChangeset for help on using the changeset viewer.