00001 00002 /* 00003 | Author: Michael Schmidt; 00004 | Gunnar Jehl 00005 | 00006 | ************************* SOFTWARE LICENSE AGREEMENT *********************** 00007 | This source code is published under the BSD License. 00008 | 00009 | See file 'LICENSE.txt' that comes with this distribution or 00010 | http://dbis.informatik.uni-freiburg.de/index.php?project=GCX/license.php 00011 | for the full license agreement. 00012 | 00013 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00014 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00015 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00016 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00017 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00018 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00019 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00020 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00021 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00022 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00023 | POSSIBILITY OF SUCH DAMAGE. 00024 | **************************************************************************** 00025 */ 00026 00035 #ifndef EMPTYCONDEXPRESSION_H 00036 #define EMPTYCONDEXPRESSION_H 00037 00038 #include "condexpression.h" 00039 #include "varstepexpression.h" 00040 #include "notcondexpression.h" 00041 #include "existscondexpression.h" 00042 00057 class EmptyCondExpression:public CondExpression { 00058 00059 public: 00064 EmptyCondExpression(VarExpression * _var); 00065 00070 EmptyCondExpression(VarStepExpression * _varstep); 00071 00075 virtual ~ EmptyCondExpression(); 00076 00080 virtual void scopeCheck(vector < unsigned >&def_vars, 00081 vector < unsigned >&introduced_vars, 00082 vector < unsigned >&violating_vars); 00083 00087 virtual void replaceVarId(unsigned old_id, unsigned new_id); 00088 00092 virtual void extractFSAMap(FSAMap * fsamap, unsigned parent_var); 00093 00097 virtual void extractParVarMap(ParVarMap * parvarmap); 00098 00102 virtual void extractDependencies(vector < DependencySet * >*depset); 00103 00107 virtual Expression *placeSignOffs(vector < SignOffExpression * >&signoffs); 00108 00112 void rewriteEmptyFuncts(); 00113 00117 virtual void rewriteAggregateFuncts(); 00118 00122 virtual void print(OutputStream & dos) const; 00123 00127 virtual void init(BufferNode * root); 00128 00132 virtual void eval(OutputStream & eos, Environment * env, unsigned modus); 00133 00137 virtual bool evalCond(OutputStream & eos, Environment * env, 00138 unsigned modus); 00139 00140 private: 00146 VarExpression * var; 00147 00153 VarStepExpression *varstep; 00154 00163 NotCondExpression *ncond; 00164 }; 00165 00166 #endif // EMPTYCONDEXPRESSION_H