Skip to content

Commit

Permalink
sync with SVF
Browse files Browse the repository at this point in the history
  • Loading branch information
yuleisui committed Aug 28, 2024
1 parent 4a41011 commit b564068
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
Release*/
Debug*/
build/
html/
Test-Suite
Release+Asserts/
Debug+Asserts/
autoconf/
tests/result/
doxygen/
!.github/
!.vscode/
!.config.in
!.config.cmake.in
!.gitignore
*~
*.o
*.ll
!Assignment-1/Tests/testcases/*/*.ll
!Assignment-2/Tests/testcases/*.ll
*.dot
*.out
*.bc
*.opt
*.log
*.status
*.obj
*.svf
*.cmake
MakeFile
CMakeFiles
CMakeCache.txt
*.tcl
bin
lib
Testing
*.sh
cmake-build-debug/
compile_commands.json
2 changes: 1 addition & 1 deletion Assignment-2/Assignment-2.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class ICFGTraversal
{
for (const CallICFGNode *cs : svfir->getCallSiteSet())
{
const SVFFunction *fun = SVFUtil::getCallee(cs->getCallSite());
const SVFFunction *fun = cs->getCalledFunction();
if (isAssertFun(fun))
container.insert(cs);
}
Expand Down
2 changes: 1 addition & 1 deletion Assignment-4/Assignment-4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ bool SSE::translatePath(std::vector<const ICFGEdge *> &path){

bool SSE::assertchecking(const ICFGNode* inode){
const CallICFGNode* callnode = SVFUtil::cast<CallICFGNode>(inode);
assert(callnode && isAssertFun(getCallee(callnode->getCallSite())) && "last node is not an assert call?");
assert(callnode && isAssertFun(callnode->getCalledFunction()) && "last node is not an assert call?");

DBOP(std::cout << "\n## Analyzing "<< callnode->toString() << "\n");
expr arg0 = getZ3Expr(callnode->getActualParms().at(0)->getId());
Expand Down

0 comments on commit b564068

Please sign in to comment.