Skip to content

Commit

Permalink
revert simpl
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Sep 24, 2023
1 parent 3358553 commit a79b9a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ir/type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,8 @@ StateValue Type::fromInt(StateValue v) const {
}

expr Type::combine_poison(const expr &boolean, const expr &orig) const {
return orig.bits() == 1
? boolean && orig == 1
: expr::mkIf(boolean, expr::mkInt(-1, orig), expr::mkInt(0, orig)) & orig;
return
expr::mkIf(boolean, expr::mkInt(-1, orig), expr::mkInt(0, orig)) & orig;
}

StateValue Type::mkUndef(State &s) const {
Expand Down

0 comments on commit a79b9a3

Please sign in to comment.