Skip to content

Commit

Permalink
Merge pull request #1508 from jumormt/master
Browse files Browse the repository at this point in the history
Fix bit wise operator for bounded double
  • Loading branch information
yuleisui authored Aug 3, 2024
2 parents 0f7aa5d + 363086c commit 7592349
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions svf/include/AE/Core/NumericValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -432,19 +432,19 @@ class BoundedDouble

friend BoundedDouble operator^(const BoundedDouble &lhs, const BoundedDouble &rhs)
{
int lInt = std::round(rhs._fVal), rInt = std::round(rhs._fVal);
int lInt = std::round(lhs._fVal), rInt = std::round(rhs._fVal);
return lInt ^ rInt;
}

friend BoundedDouble operator&(const BoundedDouble &lhs, const BoundedDouble &rhs)
{
int lInt = std::round(rhs._fVal), rInt = std::round(rhs._fVal);
int lInt = std::round(lhs._fVal), rInt = std::round(rhs._fVal);
return lInt & rInt;
}

friend BoundedDouble operator|(const BoundedDouble &lhs, const BoundedDouble &rhs)
{
int lInt = std::round(rhs._fVal), rInt = std::round(rhs._fVal);
int lInt = std::round(lhs._fVal), rInt = std::round(rhs._fVal);
return lInt | rInt;
}

Expand Down

0 comments on commit 7592349

Please sign in to comment.