00001 /* Poly_Gen_Relation class implementation (non-inline functions). 00002 Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it> 00003 Copyright (C) 2010-2011 BUGSENG srl (http://bugseng.com) 00004 00005 This file is part of the Parma Polyhedra Library (PPL). 00006 00007 The PPL is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU General Public License as published by the 00009 Free Software Foundation; either version 3 of the License, or (at your 00010 option) any later version. 00011 00012 The PPL is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 00015 for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA. 00020 00021 For the most up-to-date information see the Parma Polyhedra Library 00022 site: http://www.cs.unipr.it/ppl/ . */ 00023 00024 #include <ppl-config.h> 00025 00026 #include "Poly_Gen_Relation.defs.hh" 00027 00028 #include <iostream> 00029 #include <string> 00030 #include "assert.hh" 00031 00032 namespace PPL = Parma_Polyhedra_Library; 00033 00034 void 00035 PPL::Poly_Gen_Relation::ascii_dump(std::ostream& s) const { 00036 flags_t f = flags; 00037 if (f == NOTHING) { 00038 s << "NOTHING"; 00039 return; 00040 } 00041 00042 while (true) { 00043 if (implies(f, SUBSUMES)) { 00044 s << "SUBSUMES"; 00045 f &= ~SUBSUMES; 00046 } 00047 if (f != NOTHING) 00048 s << " & "; 00049 else 00050 break; 00051 } 00052 } 00053 00054 PPL_OUTPUT_DEFINITIONS(Poly_Gen_Relation) 00055 00056 00057 std::ostream& 00058 PPL::IO_Operators::operator<<(std::ostream& s, const Poly_Gen_Relation& r) { 00059 r.ascii_dump(s); 00060 return s; 00061 } 00062 00063 bool 00064 PPL::Poly_Gen_Relation::OK() const { 00065 return true; 00066 }
1.6.3