Skip to content

Commit 947e436

Browse files
committed
XPR: add simplifications for addressofvar
1 parent 3b77c9d commit 947e436

File tree

4 files changed

+140
-75
lines changed

4 files changed

+140
-75
lines changed

CodeHawk/CH/xprlib/xprUtil.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ let substitute_expr (subst:substitution_t) (expr:xpr_t) =
267267
let rec aux exp =
268268
match exp with
269269
| XVar v -> subst v
270+
| XOp ((Xf "addressofvar"), _) -> exp
270271
| XOp (op,l) -> XOp (op, List.map (fun e -> aux e) l)
271272
| XAttr (s, e) -> XAttr (s, aux e)
272273
| _ -> exp

0 commit comments

Comments
 (0)