Skip to content

Commit

Permalink
ASM mode: fix ptr refinement with p+n physical pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Nov 22, 2023
1 parent 05ebde4 commit 3bb251a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ir/pointer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,9 @@ expr Pointer::refined(const Pointer &other) const {

return expr::mkIf(isNull(), other.isNull(),
expr::mkIf(isLocal(), std::move(local), nonlocal) &&
isBlockAlive().implies(other_deref.isBlockAlive()));
// FIXME: this should be disabled just for phy pointers
(is_asm ? expr(true)
: isBlockAlive().implies(other_deref.isBlockAlive())));
}

expr Pointer::fninputRefined(const Pointer &other, set<expr> &undef,
Expand Down

0 comments on commit 3bb251a

Please # to comment.