Skip to content

Commit

Permalink
Update CodeGraph.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
jumormt authored Mar 6, 2024
1 parent 05bb06a commit 4a2f761
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions CodeGraph/CodeGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,20 @@ using namespace std;
int main(int argc, char ** argv) {

int arg_num = 0;
char **arg_value = new char*[argc];
int extraArgc = 1;
char **arg_value = new char *[argc + extraArgc];
for (; arg_num < argc; ++arg_num) {
arg_value[arg_num] = argv[arg_num];
}

// You may comment it to see the details of the analysis
arg_value[arg_num++] = (char*) "-stat=false";

std::vector<std::string> moduleNameVec;
moduleNameVec = OptionBase::parseOptions(
arg_num, arg_value, "Teaching-Software-Analysis Assignment 4", "[options] <input-bitcode...>"
arg_num, arg_value, "Teaching-Software-Analysis Assignment 4", "[options]"
);

SVFModule* svfModule = LLVMModuleSet::getLLVMModuleSet()->buildSVFModule(moduleNameVec);

/// Build Program Assignment Graph (SVFIR or PAG)
Expand Down

0 comments on commit 4a2f761

Please sign in to comment.