Changes between Version 27 and Version 28 of IR


Ignore:
Timestamp:
11/22/15 21:28:46 (10 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IR

    v27 v28  
    225225  * `e` has integer type.
    226226 * Allocates `e` objects of type `t` on heap `h`
     227 * To translate the C `malloc` you first need to figure out the type of the elements being malloced.  If the argument to malloc is `n`, then you first need to insert an assertion `n%$sizeof(t)==0`, and then `$allocate(h,t,n/$sizeof(t))`.
    227228* Free: `free(p);`
    228229* Noop: `;`
    229  * **Is there a need to add annotations for "true" or "false" branch, etc.?**
     230 * **Is there a need to add annotations for "true" or "false" branch, etc.?**  If so, we can just make these parameters to the Noop.
    230231* Return: `return;` and `return e;`
    231232* Atomic_enter: **what notation?**