fixed a small bug in eval ehrhart
[polylib.git] / doc / codeDoc / html / c2p_8c-source.html
bloba3bc640c5ade804715f985b4d63ab6af9ee6a4a6
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>c2p.c Source File</title>
4 <link href="doxygen.css" rel="stylesheet" type="text/css">
5 </head><body>
6 <!-- Generated by Doxygen 1.2.15 -->
7 <center>
8 <a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
9 <hr><h1>c2p.c</h1><a href="c2p_8c.html">Go to the documentation of this file.</a><div class="fragment"><pre><a name="l00001"></a><a class="code" href="c2p_8c.html#a0">00001</a> <font class="preprocessor">#define WS 1000</font>
10 00002 <font class="preprocessor"></font>
11 00003 <font class="preprocessor">#include &lt;polylib/polylib.h&gt;</font>
12 00004
13 <a name="l00005"></a><a class="code" href="c2p_8c.html#a1">00005</a> <font class="keywordtype">int</font> <a class="code" href="c2p_8c.html#a1">main</a>() {
14 00006
15 00007 Matrix *A;
16 00008 Polyhedron *P;
17 00009
18 00010 A = <a class="code" href="matrix_8c.html#a4">Matrix_Read</a>();
19 00011 <font class="keywordflow">if</font>(A-&gt;NbColumns &lt; 2) {
20 00012 printf(<font class="stringliteral">"Wrong input: %d columns\n"</font>, A-&gt;NbColumns );
21 00013 <a class="code" href="matrix_8c.html#a1">Matrix_Free</a>(A);
22 00014 exit(1);
23 00015 }
24 00016 <a class="code" href="matrix_8c.html#a2">Matrix_Print</a>(stdout,P_VALUE_FMT,A);
25 00017 P = <a class="code" href="polyhedron_8c.html#a24">Constraints2Polyhedron</a>(A,<a class="code" href="c2p_8c.html#a0">WS</a>);
26 00018 <a class="code" href="matrix_8c.html#a1">Matrix_Free</a>(A);
27 00019 <a class="code" href="polyhedron_8c.html#a20">Polyhedron_Print</a>(stdout,P_VALUE_FMT,P);
28 00020 <a class="code" href="polyhedron_8c.html#a19">Domain_Free</a>(P);
29 00021 <font class="keywordflow">return</font> 0;
30 00022 }
31 </pre></div><hr><address align="right"><small>Generated on Fri Nov 8 12:10:06 2002 for Polylib by
32 <a href="http://www.doxygen.org/index.html">
33 <img src="doxygen.png" alt="doxygen" align="middle" border=0
34 width=110 height=53></a>1.2.15 </small></address>
35 </body>
36 </html>