next up previous contents
Next: Number 1 Up: Polylib User's Manual Previous: Parametrized Polyhedra   Contents


Example

This chapter illustrates the use of Polylib by means of a short example. This example is a C source file which along with polyhedron.c and vector.c does the following:

These files are compiled together into an executable file called test. When calling this application the polyhedral domains may be described in two input files. We are using the file test.in as a sample input data and the file test.out for the output produced by the program.

This program is shown in Fig. [*] and can be used as a pattern for your own program.

Figure: The test.c program
\begin{figure}\begin{verbatim}...

In the following, we detail the different parts of the program. Each instruction of the program is numbered for reference in the following explanation.



Subsections
next up previous contents
Next: Number 1 Up: Polylib User's Manual Previous: Parametrized Polyhedra   Contents
Sorin Olaru 2002-04-24