#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include <assert.h>
#include <polylib/polylib.h>
#include <polylib/homogenization.h>
#include "config.h"
Go to the source code of this file.
Defines | |
#define | EP_EVALUATION |
#define | getopt_long(a, b, c, d, e) getopt(a,b,c) |
#define | WS 0 |
#define | EPRINT_ALL_VALIDITY_CONSTRAINTS |
define this to print all constraints on the validity domains if not defined, only new constraints (not in validity domain given by the user) are printed | |
#define | REDUCE_DEGREE |
The following are mainly for debug purposes. | |
#define | ALL_OVERFLOW_WARNINGS |
define this to print one warning message per domain overflow these overflows should no longer happen since version 4.20 | |
Functions | |
int | main (int argc, char **argv) |
EPRINT : print results while computing the ehrhart polynomial. |
#define ALL_OVERFLOW_WARNINGS |
define this to print one warning message per domain overflow these overflows should no longer happen since version 4.20
Definition at line 110 of file testehrhart.c.
#define EP_EVALUATION |
Definition at line 38 of file testehrhart.c.
#define EPRINT_ALL_VALIDITY_CONSTRAINTS |
define this to print all constraints on the validity domains if not defined, only new constraints (not in validity domain given by the user) are printed
Definition at line 59 of file testehrhart.c.
#define getopt_long | ( | a, | |||
b, | |||||
c, | |||||
d, | |||||
e | ) | getopt(a,b,c) |
Definition at line 41 of file testehrhart.c.
Referenced by main().
#define REDUCE_DEGREE |
The following are mainly for debug purposes.
You shouldn't need to change anything for daily usage... you may define each macro independently
Reduce the degree of resulting polynomials
Definition at line 102 of file testehrhart.c.
#define WS 0 |
Definition at line 50 of file testehrhart.c.
int main | ( | int | argc, | |
char ** | argv | |||
) |
EPRINT : print results while computing the ehrhart polynomial.
this is done by default if you build the executable ehrhart. (If EMAIN is defined). Don't define EMAIN here, it is defined when necessary in the makefile.
Notice: you may however define EPRINT without defining EMAIN, but in this case, you have to initialize the global variable param_name by calling Read_ParamNames before any call to ehrhart. This is NOT recommanded, unless you know what you do. EPRINT causes more debug messages to be printed.
Definition at line 130 of file testehrhart.c.
References AddANullColumn(), compute_poly(), Constraints2Polyhedron(), dehomogenize_enumeration(), polyhedron::Dimension, Enumeration_Free(), _enumeration::EP, FOREVER, Free_ParamNames(), getopt_long, Matrix_Free(), Matrix_Read(), matrix::NbColumns, _enumeration::next, p, Polyhedron_Enumerate(), Polyhedron_Free(), Print_Domain(), print_evalue(), Read_ParamNames(), _enumeration::ValidityDomain, value_init, value_print, value_read, and WS.