Changes between Version 117 and Version 118 of IR2


Ignore:
Timestamp:
06/04/21 09:16:36 (5 years ago)
Author:
siegel
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • IR2

    v117 v118  
    295295  * `$fresh` and `$new` consume an argument of type `$type<T>` and return a value of type `T`.  For `$new`, the argument must specify a complete type.  Fresh accepts any type name.
    296296
     297Example: C code
     298{{{
     299typedef T mat[n][m];
     300mat a;
     301
     302}}}
     303might be translated
     304{{{
     305typedef T mat[][];
     306$type<mat> _type_mat = $typeof(T[n][m]);
     307mat a = $new(_type_mat);
     308
     309}}}
     310
    297311
    298312=== How to implement `$defined` using symbolic execution ===