Changes between Version 117 and Version 118 of IR2
- Timestamp:
- 06/04/21 09:16:36 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
IR2
v117 v118 295 295 * `$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. 296 296 297 Example: C code 298 {{{ 299 typedef T mat[n][m]; 300 mat a; 301 302 }}} 303 might be translated 304 {{{ 305 typedef T mat[][]; 306 $type<mat> _type_mat = $typeof(T[n][m]); 307 mat a = $new(_type_mat); 308 309 }}} 310 297 311 298 312 === How to implement `$defined` using symbolic execution ===
