Changes between Version 27 and Version 28 of IR
- Timestamp:
- 11/22/15 21:28:46 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IR
v27 v28 225 225 * `e` has integer type. 226 226 * 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))`. 227 228 * Free: `free(p);` 228 229 * 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. 230 231 * Return: `return;` and `return e;` 231 232 * Atomic_enter: **what notation?**
