blob: 69c09d9a2ec5a1dc85465e87acb1605124643fe7 [file] [log] [blame]
Ted Kremenek2798e172008-04-16 18:39:25 +00001//== GRTransferFuncs.cpp - Path-Sens. Transfer Functions Interface -*- C++ -*--=
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines GRTransferFuncs, which provides a base-class that
11// defines an interface for transfer functions used by GRExprEngine.
12//
13//===----------------------------------------------------------------------===//
14
15#include "clang/Analysis/PathSensitive/GRTransferFuncs.h"
Ted Kremenek13922612008-04-16 20:40:59 +000016#include "clang/Analysis/PathSensitive/GRExprEngine.h"
Ted Kremenek2798e172008-04-16 18:39:25 +000017
18using namespace clang;
19
Ted Kremenek4adc81e2008-08-13 04:27:00 +000020void GRTransferFuncs::EvalBinOpNN(GRStateSet& OStates,
Ted Kremeneke04a5cb2008-11-15 00:20:05 +000021 GRExprEngine& Eng,
Ted Kremenek4adc81e2008-08-13 04:27:00 +000022 const GRState *St, Expr* Ex,
Ted Kremenekdf7533b2008-07-17 21:27:31 +000023 BinaryOperator::Opcode Op,
Ted Kremeneke0e4ebf2009-03-26 03:35:11 +000024 NonLoc L, NonLoc R, QualType T) {
Ted Kremenekdf7533b2008-07-17 21:27:31 +000025
Ted Kremeneke0e4ebf2009-03-26 03:35:11 +000026 OStates.Add(Eng.getStateManager().BindExpr(St, Ex,
27 DetermEvalBinOpNN(Eng, Op, L, R, T)));
Ted Kremenekdf7533b2008-07-17 21:27:31 +000028}