Skip to content
Open
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: 6 additions & 0 deletions Assignment-3/Assignment-3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ void AbstractExecution::analyse() {

// Process the main function if it exists
if (const SVFFunction* fun = svfir->getModule()->getSVFFunction("main")) {
// get args of main, and set top
for (u32_t i = 0; i < fun->arg_size(); ++i) {
AEState& as = getAbsStateFromTrace(icfg->getGlobalICFGNode());
as[svfir->getValueNode(fun->getArg(i))] = IntervalValue::top();
}

ICFGWTO* wto = funcToWTO[fun];
handleWTOComponents(wto->getWTOComponents());
}
Expand Down
Loading