10000 Fix bugs for big program by bjjwwang · Pull Request #1310 · SVF-tools/SVF · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix bugs for big program #1310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to include the string header here? It would be good to put in the cpp file.


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