PIPS
pip__tab.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  A
 
struct  L
 
struct  T
 

Macros

#define Unit   1
 
#define Plus   2
 
#define Minus   4
 
#define Zero   8
 
#define Critic   16
 
#define Unknown   32
 
#define Sign   62
 
#define Index(p, i, j)   (p)->row[i].objet.val[j]
 
#define Flag(p, i)   (p)->row[i].flags
 

Typedefs

typedef struct T Tableau
 

Functions

void tab_init ()
 
char * tab_hwm ()
 
void tab_reset ()
 
Tableautab_alloc ()
 
void tab_copy ()
 
Tableautab_get ()
 
void tab_display ()
 
Tableautab_expand ()
 

Macro Definition Documentation

◆ Critic

#define Critic   16

Definition at line 40 of file pip__tab.h.

◆ Flag

#define Flag (   p,
 
)    (p)->row[i].flags

Definition at line 46 of file pip__tab.h.

◆ Index

#define Index (   p,
  i,
 
)    (p)->row[i].objet.val[j]

Definition at line 45 of file pip__tab.h.

◆ Minus

#define Minus   4

Definition at line 38 of file pip__tab.h.

◆ Plus

#define Plus   2

Definition at line 37 of file pip__tab.h.

◆ Sign

#define Sign   62

Definition at line 43 of file pip__tab.h.

◆ Unit

#define Unit   1

Definition at line 36 of file pip__tab.h.

◆ Unknown

#define Unknown   32

Definition at line 41 of file pip__tab.h.

◆ Zero

#define Zero   8

Definition at line 39 of file pip__tab.h.

Typedef Documentation

◆ Tableau

typedef struct T Tableau

Definition at line 1 of file pip__tab.h.

Function Documentation

◆ tab_alloc()

Tableau* tab_alloc ( )

Referenced by expanser(), and sc_to_tableau().

+ Here is the caller graph for this function:

◆ tab_copy()

void tab_copy ( )

◆ tab_display()

void tab_display ( )

Referenced by pivoter(), and sc_to_tableau().

+ Here is the caller graph for this function:

◆ tab_expand()

Tableau* tab_expand ( )

◆ tab_get()

Tableau* tab_get ( )

◆ tab_hwm()

char* tab_hwm ( )

Definition at line 92 of file tab.c.

93 {
94  return(tab_free);
95 }
static char * tab_free
Definition: tab.c:72

References tab_free.

Referenced by compa_test(), pip_solve(), pip_solve_min_with_big(), and traiter().

+ Here is the caller graph for this function:

◆ tab_init()

void tab_init ( )

Definition at line 77 of file tab.c.

78 {
79  tab_free = (char*) malloc(sizeof (struct A));
80  if(!tab_free)
81  {printf("tab_init : la machine est trop petite\n");
82  exit(21);
83  }
84  allocation = 1;
85  tab_top = tab_free + sizeof (struct A);
86  tab_base = (struct A *)tab_free;
87  tab_free += sizeof(struct A);
88  tab_base->precedent = NULL;
90 }
void * malloc(YYSIZE_T)
#define exit(code)
Definition: misc-local.h:54
int printf()
Definition: pip__tab.h:25
char * bout
Definition: pip__tab.h:26
struct A * precedent
Definition: pip__tab.h:25
static char * tab_top
Definition: tab.c:72
static struct A * tab_base
Definition: tab.c:73
int allocation
External variables for direct call to PIP.
Definition: pip.c:92

References allocation, A::bout, exit, malloc(), A::precedent, printf(), tab_base, tab_free, and tab_top.

Referenced by pip_solve(), and pip_solve_min_with_big().

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

◆ tab_reset()

void tab_reset ( )

Referenced by compa_test(), pip_solve(), pip_solve_min_with_big(), and traiter().

+ Here is the caller graph for this function: