Changes between Version 4 and Version 5 of Library_IR


Ignore:
Timestamp:
12/10/15 17:21:38 (10 years ago)
Author:
zmanchun
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Library_IR

    v4 v5  
    3131The header `pointer.cvh` declares functions taking pointers as the arguments for different purposes, including:
    3232
    33 * `fun[lib="civlc"] $set_default(obj: Pointer)`
     33* `fun[lib="pointer"] $set_default(obj: Pointer)`
    3434 * sets the leaf nodes of a variable to be the default value of zero
    35 * `fun[lib="civlc"] $apply(obj1: Pointer, op: Operation, obj2: Pointer, result: Pointer)`
     35* `fun[lib="pointer"] $apply(obj1: Pointer, op: Operation, obj2: Pointer, result: Pointer)`
    3636 * applies a binary operator `op` to two objects
    3737* `fun[lib="pointer"] $equals(x: Pointer, y: Pointer): Bool`
     38* `fun[lib="pointer"] $assert_equals(x: Pointer, y: Pointer, ...)`
     39  * asserts that two objects are equal to each other
     40  * takes additional arguments for error message if the assertion is violated
    3841 * equality checking
    3942 * this function returns true iff the objects pointed to by the pointers `x` and `y` have the same type and value.