1 /* Definition of functions providing version and licensing information.
2    Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>
3    Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com)
4 
5 This file is part of the Parma Polyhedra Library (PPL).
6 
7 The PPL is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 The PPL is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1307, USA.
20 
21 For the most up-to-date information see the Parma Polyhedra Library
22 site: http://bugseng.com/products/ppl/ . */
23 
24 #include "ppl-config.h"
25 #include "version.hh"
26 
27 namespace PPL = Parma_Polyhedra_Library;
28 
29 namespace {
30 
31 const char version_string[] = PPL_PACKAGE_VERSION;
32 
33 const char banner_string[] =
34 "This is " PPL_PACKAGE_NAME " (PPL) version " PPL_PACKAGE_VERSION ".\n"
35 "Copyright (C) 2001-2010 Roberto Bagnara <bagnara@cs.unipr.it>\n"
36 "Copyright (C) 2010-2016 BUGSENG srl (http://bugseng.com)\n"
37 "\n"
38 "The PPL is free software; see the source for copying conditions.\n"
39 "There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n"
40 "PARTICULAR PURPOSE.\n"
41 "\n"
42 #if defined(__COMO__)
43 #define str(s) # s
44 #define xstr(s) str(s)
45 "Compiled by the Comeau C++ compiler version "xstr(__COMO_VERSION__)".\n"
46 #elif defined(__INTEL_COMPILER)
47 #define str(s) # s
48 #define xstr(s) str(s)
49 "Compiled by the Intel C++ compiler version "xstr(__INTEL_COMPILER)".\n"
50 #elif defined(__GNUC__)
51 "Compiled by the GNU C++ compiler version " __VERSION__ ".\n"
52 #else
53 "Compiled by an unknown compiler.\n"
54 #endif
55 "\n"
56 "Report bugs to " PPL_PACKAGE_BUGREPORT "."
57 "  For the most up-to-date information\n"
58 "see the Parma Polyhedra Library site: http://bugseng.com/products/ppl/ .\n"
59 "\n"
60 "Contributors:\n"
61 "Roberto Bagnara, Patricia M. Hill, Enea Zaffanella, Abramo Bagnara,\n"
62 "Elisa Ricci, Andrea Cimino, Marco Poletti, Alessandro Zaccagnini,\n"
63 "Roberto Amadini, Irene Bacchi, Fabio Biselli, Fabio Bossi,\n"
64 "Danilo Bonardi, Sara Bonini, Katy Dobson, Giordano Fracasso,\n"
65 "Francois Galea, Maximiliano Marchesi, Elena Mazzi, David Merchat,\n"
66 "Matthew Mundell, Andrea Pescetti, Barbara Quartieri,\n"
67 "Enric Rodriguez Carbonell, Angela Stazzone, Fabio Trabucchi,\n"
68 "Claudio Trento, Tatiana Zolo.\n"
69 "\n"
70 "Special thanks to:\n"
71 "Lucia Alessandrini, Frederic Besson, Tevfik Bultan, Manuel Carro,\n"
72 "Marco Comini, Goran Frehse, Denis Gopan, Martin Guy, Bruno Haible,\n"
73 "Bertrand Jeannet, Herve Le Verge, Francesco Logozzo, Kenneth MacKenzie,\n"
74 "Costantino Medori, Fred Mesnard, Ken Mixter, Jose Morales, Sebastian Pop,\n"
75 "Thomas Reps, Mooly Sagiv, Sriram Sankaranarayanan, Axel Simon,\n"
76 "Fausto Spoto, Basile Starynkevitch, Pedro Vasconcelos, Ralf Wildenhues.";
77 
78 } // namespace
79 
80 unsigned
version_major()81 PPL::version_major() {
82   return PPL_VERSION_MAJOR;
83 }
84 
85 unsigned
version_minor()86 PPL::version_minor() {
87   return PPL_VERSION_MINOR;
88 }
89 
90 unsigned
version_revision()91 PPL::version_revision() {
92   return PPL_VERSION_REVISION;
93 }
94 
95 unsigned
version_beta()96 PPL::version_beta() {
97   return PPL_VERSION_BETA;
98 }
99 
100 const char*
version()101 PPL::version() {
102   return version_string;
103 }
104 
105 const char*
banner()106 PPL::banner() {
107   return banner_string;
108 }
109