Static Value-Flow Analysis
Loading...
Searching...
No Matches
FileChecker.cpp
Go to the documentation of this file.
1//===- FileChecker.cpp -- Checking incorrect file-open close errors-----------//
2//
3// SVF: Static Value-Flow Analysis
4//
5// Copyright (C) <2013-> <Yulei Sui>
6//
7
8// This program is free software: you can redistribute it and/or modify
9// it under the terms of the GNU Affero General Public License as published by
10// the Free Software Foundation, either version 3 of the License, or
11// (at your option) any later version.
12
13// This program is distributed in the hope that it will be useful,
14// but WITHOUT ANY WARRANTY; without even the implied warranty of
15// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16// GNU Affero General Public License for more details.
17
18// You should have received a copy of the GNU Affero General Public License
19// along with this program. If not, see <http://www.gnu.org/licenses/>.
20//
21//===----------------------------------------------------------------------===//
22
23/*
24 * FileChecker.cpp
25 *
26 * Created on: Apr 24, 2014
27 * Author: Yulei Sui
28 */
29
30#include "SABER/FileChecker.h"
31
32using namespace SVF;
33using namespace SVFUtil;
34
35
void reportBug(ProgSlice *slice)
Report file/close bugs.
std::vector< SVFBugEvent > EventStack
const CallICFGNode * getSrcCSID(const SVFGNode *src)
void addSaberBug(GenericBug::BugType bugType, const GenericBug::EventStack &eventStack)
virtual bool isSomePathReachable()
Whether it is some path reachable from a source.
Definition SrcSnkDDA.h:312
virtual bool isAllPathReachable()
Whether it is all path reachable from a source.
Definition SrcSnkDDA.h:307
SVFBugReport report
Definition SrcSnkDDA.h:80
for isBitcode
Definition BasicTypes.h:68
llvm::IRBuilder IRBuilder
Definition BasicTypes.h:74