Skip to content

Commit

Permalink
fix rangelimit of intervalvalue, support float/double
Browse files Browse the repository at this point in the history
  • Loading branch information
bjjwwang committed Dec 30, 2023
1 parent 27abd75 commit b3b3c95
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions svf/lib/AbstractExecution/SVFIR2ItvExeState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ IntervalValue SVFIR2ItvExeState::getRangeLimitFromType(const SVFType* type)
}
return IntervalValue(lb, ub);
}
else if (SVFUtil::isa<SVFOtherType>(type))
{
// handle other type like float double, set s32_t as the range
s64_t ub = static_cast<s64_t>(std::numeric_limits<s32_t>::max());
s64_t lb = static_cast<s64_t>(std::numeric_limits<s32_t>::min());
return IntervalValue(lb, ub);
}
else
{
assert(false && "cannot support");
Expand Down

0 comments on commit b3b3c95

Please sign in to comment.