Skip to content

Commit

Permalink
fix ass3 4
Browse files Browse the repository at this point in the history
  • Loading branch information
bjjwwang committed Mar 6, 2025
1 parent ab2650d commit 02fb1f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Assignment-3/Test3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ void Test1()
delete andersenPTA;
SVF::LLVMModuleSet::releaseLLVMModuleSet();
SVF::SVFIR::releaseSVFIR();
NodeIDAllocator::unset();
}

void Test2()
Expand All @@ -65,6 +66,7 @@ void Test2()
delete andersenPTA;
SVF::SVFIR::releaseSVFIR();
SVF::LLVMModuleSet::releaseLLVMModuleSet();
NodeIDAllocator::unset();
}

void Test3()
Expand All @@ -80,6 +82,7 @@ void Test3()
SVF::LLVMModuleSet::releaseLLVMModuleSet();
SVF::SVFIR::releaseSVFIR();
delete andersenPTA;
NodeIDAllocator::unset();
}
void Test()
{
Expand Down
5 changes: 4 additions & 1 deletion Assignment-4/Test4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void Test1()
cout << "\n test1 passed !" << endl;
SVF::LLVMModuleSet::releaseLLVMModuleSet();
SVF::SVFIR::releaseSVFIR();
NodeIDAllocator::unset();
}
void Test2()
{
Expand All @@ -66,6 +67,7 @@ void Test2()
cout << "\n test2 passed !" << endl;
SVF::LLVMModuleSet::releaseLLVMModuleSet();
SVF::SVFIR::releaseSVFIR();
NodeIDAllocator::unset();
}

void Test3()
Expand All @@ -83,7 +85,7 @@ void Test3()
cout << "\n test3 passed !" << endl;
SVF::SVFIR::releaseSVFIR();
SVF::LLVMModuleSet::releaseLLVMModuleSet();

NodeIDAllocator::unset();
}

void Test4()
Expand All @@ -102,6 +104,7 @@ void Test4()
cout << "\n test4 passed !" << endl;
SVF::LLVMModuleSet::releaseLLVMModuleSet();
SVF::SVFIR::releaseSVFIR();
NodeIDAllocator::unset();
}
int main(int argc, char ** argv)
{
Expand Down

0 comments on commit 02fb1f2

Please sign in to comment.