1 //== FunctionSummary.h - Stores summaries of functions. ------------*- C++ -*-//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file defines a summary of a function gathered/used by static analyzes.
12 //===----------------------------------------------------------------------===//
14 #include "clang/StaticAnalyzer/Core/PathSensitive/FunctionSummary.h"
15 using namespace clang;
18 FunctionSummariesTy::~FunctionSummariesTy() {
19 for (MapTy::iterator I = Map.begin(), E = Map.end(); I != E; ++I) {
24 unsigned FunctionSummariesTy::getTotalNumBasicBlocks() {
26 for (MapTy::iterator I = Map.begin(), E = Map.end(); I != E; ++I) {
27 Total += I->second->TotalBasicBlocks;
32 unsigned FunctionSummariesTy::getTotalNumVisitedBasicBlocks() {
34 for (MapTy::iterator I = Map.begin(), E = Map.end(); I != E; ++I) {
35 Total += I->second->VisitedBasicBlocks.count();