Debian Codegraph @

README

raw
1 ==========================================================================
2 *** BuDDy ***
3 Binary Decision Diagrams
4 Library Package v2.4
5 --------------------------------------------------------------------------
6 Copyright (C) 1996-2002 by Jorn Lind-Nielsen
7 All rights reserved
8
9 Permission is hereby granted, without written agreement and without
10 license or royalty fees, to use, reproduce, prepare derivative
11 works, distribute, and display this software and its documentation
12 for any purpose, provided that (1) the above copyright notice and
13 the following two paragraphs appear in all copies of the source code
14 and (2) redistributions, including without limitation binaries,
15 reproduce these notices in the supporting documentation. Substantial
16 modifications to this software may be copyrighted by their authors
17 and need not follow the licensing terms described here, provided
18 that the new terms are clearly indicated in all files where they apply.
19
20 IN NO EVENT SHALL JORN LIND-NIELSEN, OR DISTRIBUTORS OF THIS
21 SOFTWARE BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL,
22 INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS
23 SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE AUTHORS OR ANY OF THE
24 ABOVE PARTIES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26 JORN LIND-NIELSEN SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
27 BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
28 FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
29 ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO
30 OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
31 MODIFICATIONS.
32 ==========================================================================
33
34
35 ---------------------------------------------------------------------
36 --- PREFACE --------------------------------------------------------
37 ---------------------------------------------------------------------
38
39 BuDDy was originally developed by Jorn Lind-Nielsen as a part of his
40 PhD thesis.
41 After using BuDDy as a BDD library for long time (while getting some
42 support from Jorn through email), I have been suggested by Jorn to take
43 ownership of the project and move it to SourceForge.
44 I invite all users who are interested to participate in the development
45 to contact me. (I always have desired tasks / features awaiting...)
46 I hope that BuDDy will prosper under my management.
47
48 Haim Cohen
49 [email protected]
50
51 ---------------------------------------------------------------------
52 --- REQUIREMENTS ----------------------------------------------------
53 ---------------------------------------------------------------------
54
55 * A (not too old) C++ compiler. I use g++ 3.3.3
56 * A machine that supports 32 bit integers
57
58
59 ---------------------------------------------------------------------
60 --- INSTALLING ------------------------------------------------------
61 ---------------------------------------------------------------------
62
63 The following commands should build and install the library.
64
65 ./configure
66 make
67 make install
68
69 `./configure' accepts many arguments to tune your installation.
70 The following options are noteworthy:
71
72 --includedir=/somewhere/include
73 Specify where header files will be installed.
74
75 --libdir=/somewhere/lib
76 Specify where libraries will be installed.
77
78 --disable-shared
79 Do not build the shared library for BuDDy.
80
81 --disable-static
82 Do not build the static library for BuDDy.
83
84 --enable-swap-count
85 Count number of fundamental variable swaps (for debugging)
86
87 --enable-cache-stats
88 Gather statistical information about operator and unique node
89 caching (for debugging)
90
91 Run `./configure --help' for a complete listing, and see
92 the INSTALL file for generic instructions.
93
94 Some machines are missing "CLOCKS_PER_SEC". BuDDy will use
95 a default value of 60 on these. You can overwrite this setting
96 by setting DEFAULT_CLOCK as follows:
97
98 ./configure CPPFLAGS=-DDEFAULT_CLOCK=1000
99
100 Part of the BuDDy library needs 64 bit arithmetics. With gnu C++,
101 Microsoft C++ and KAI C++, and any C99 compiler, this is part of the
102 language and used by BuDDy. With other compilers BuDDy need to
103 implement the math it self -- which is a bit slower. If you now of a
104 64 bit unsigned integer type on your platform then define that in the
105 BUDDYUINT64 variable. Example:
106
107 ./configure CPPFLAGS=-DBUDDYUINT64="long long"
108
109 Run `make check' to build the examples.
110 The examples also serve as a regression suite.
111
112 ---------------------------------------------------------------------
113 --- USING -----------------------------------------------------------
114 ---------------------------------------------------------------------
115
116 Assuming that the files "bdd.h" and "libbdd.a" are in directories
117 "/usr/local/include" and "/usr/local/lib" then the compile command
118 could be:
119
120 g++ -I/usr/local/include myfile.cc -o myfile -L/usr/local/lib -lbdd
121
122 Your machine may be setup to use the above directories automatically,
123 so you might be able to do:
124
125 g++ myfile.cc -o myfile -lbdd
126
127
128