1 /* Title: ValueSet.h -*- C++ -*-
2 Author: Ruchira Sasanka
4 Purpose: Contains a mathematical set of Values. LiveVarSet is derived from
5 this. Contains both class and method definitions.
14 //------------------- Class Definition for ValueSet --------------------------
16 void printValue( const Value *v); // func to print a Value
18 struct ValueSet : public std::set<const Value*> {
19 bool setUnion( const ValueSet *const set1); // for performing set union
20 void setSubtract( const ValueSet *const set1); // for performing set diff
22 void setDifference( const ValueSet *const set1, const ValueSet *const set2);
24 void printSet() const; // for printing a live variable set