Skip to content

Commit

Permalink
Merge pull request #1310 from bjjwwang/1230
Browse files Browse the repository at this point in the history
Fix bugs for big program
  • Loading branch information
yuleisui authored Dec 31, 2023
2 parents 01d4ef1 + b3b3c95 commit 94bc3fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 4 additions & 2 deletions svf/include/Util/SVFStat.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
#ifndef SVF_SVFSTAT_H
#define SVF_SVFSTAT_H

#include <string>

namespace SVF
{

Expand All @@ -41,9 +43,9 @@ class SVFStat
{
public:

typedef OrderedMap<const char *, u32_t> NUMStatMap;
typedef OrderedMap<std::string, u32_t> NUMStatMap;

typedef OrderedMap<const char *, double> TIMEStatMap;
typedef OrderedMap<std::string, double> TIMEStatMap;

enum ClockType
{
Expand Down
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 94bc3fb

Please sign in to comment.