PIPS
chernikova.c File Reference
#include <stdlib.h>
#include "linear_assert.h"
#include "boolean.h"
#include "vecteur.h"
#include "contrainte.h"
#include "sc.h"
#include "sommet.h"
#include "ray_dte.h"
#include "sg.h"
#include "polyedre.h"
#include "polynome.h"
+ Include dependency graph for chernikova.c:

Go to the source code of this file.

Functions

Ptsg sc_to_sg_chernikova (Psysteme sc)
 chernikova_mulprec.c More...
 
Psysteme sg_to_sc_chernikova (Ptsg sg)
 
Psysteme sc_convex_hull (Psysteme sc1, Psysteme sc2)
 

Function Documentation

◆ sc_convex_hull()

Psysteme sc_convex_hull ( Psysteme  sc1,
Psysteme  sc2 
)
Parameters
sc1c1
sc2c2

Definition at line 74 of file chernikova.c.

75 {
76  Psysteme sc;
77 
78  if (linear_use_gmp())
79 #ifdef HAVE_GMP_H
80  sc = sc_convex_hull_mulprec(sc1, sc2);
81 #else
82  abort();
83 #endif // HAVE_GMP_H
84  else
85  sc = sc_convex_hull_fixprec(sc1, sc2);
86 
87  return sc;
88 }
bool linear_use_gmp(void)
whether linear is to use gmp
Definition: errors.c:454
Psysteme sc_convex_hull_fixprec(Psysteme sc1, Psysteme sc2)
#define abort()
Definition: misc-local.h:53

References abort, linear_use_gmp(), and sc_convex_hull_fixprec().

Referenced by main(), and sc_enveloppe_chernikova_ofl_ctrl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sc_to_sg_chernikova()

Ptsg sc_to_sg_chernikova ( Psysteme  sc)

chernikova_mulprec.c

chernikova.c

Parameters
scc

Definition at line 42 of file chernikova.c.

43 {
44  Ptsg sg;
45 
46  if (linear_use_gmp())
47 #ifdef HAVE_GMP_H
48  sg = sc_to_sg_chernikova_mulprec(sc);
49 #else
50  abort();
51 #endif
52  else
54 
55  return sg;
56 }
Ptsg sc_to_sg_chernikova_fixprec(Psysteme sc)
chernikova_fixprec.c
Ptsg sg
Representation d'un systeme generateur par trois ensembles de sommets de rayons et de droites.
Definition: sg-local.h:66

References abort, linear_use_gmp(), sc_to_sg_chernikova_fixprec(), and sg.

Referenced by dependence_cone_positive(), main(), and unimodular().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ sg_to_sc_chernikova()

Psysteme sg_to_sc_chernikova ( Ptsg  sg)
Parameters
sgg

Definition at line 58 of file chernikova.c.

59 {
60  Psysteme sc;
61 
62  if (linear_use_gmp())
63 #ifdef HAVE_GMP_H
64  sc = sg_to_sc_chernikova_mulprec(sg);
65 #else
66  abort();
67 #endif // HAVE_GMP_H
68  else
70 
71  return sc;
72 }
Psysteme sg_to_sc_chernikova_fixprec(Ptsg sg)

References abort, linear_use_gmp(), sg, and sg_to_sc_chernikova_fixprec().

Referenced by main(), prettyprint_dependence_graph(), and prettyprint_dependence_graph_view().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: