weights2proba.c File Reference

#include "sxversion.h"
#include "sxunix.h"
#include "earley.h"
#include "X.h"
#include "XxY.h"
#include "XH.h"
#include <stdio.h>
#include <math.h>
#include <float.h>
Include dependency graph for weights2proba.c:

Go to the source code of this file.

Defines

#define OPTION(opt)   (1 << (opt - 1))
#define noOPTION(opt)   (~OPTION (opt))
#define OPT_NB   ((sizeof(option_tbl)/sizeof(*option_tbl))-1)
#define UNKNOWN_ARG   0
#define MAX_SIGNATURE_DEPTH   1

Functions

static void gen_header ()
static void print_X (SXINT X)
static void print_prod (SXINT prod)
static void prodXval2eprod_oflw (SXINT old_size, SXINT new_size)
static void full_ctxt_oflw (SXINT old_size, SXINT new_size)
static void full_ctxtXeprod_oflw (SXINT old_size, SXINT new_size)
static void eprod_ctxtXeprod_oflw (SXINT old_size, SXINT new_size)
static void prod_ctxtXeprod_oflw (SXINT old_size, SXINT new_size)
static void A_ctxtXeprod_oflw (SXINT old_size, SXINT new_size)
static void ff_id_oflw (SXINT old_size, SXINT new_size)
static void full_ctxtXlex_id_oflw (SXINT old_size, SXINT new_size)
static void eprod_ctxtXlex_id_oflw (SXINT old_size, SXINT new_size)
static void prod_ctxtXlex_id_oflw (SXINT old_size, SXINT new_size)
static void A_ctxtXlex_id_oflw (SXINT old_size, SXINT new_size)
static void ff_idXt2lex_id_oflw (SXINT old_size, SXINT new_size)
static void ctxtXsign_oflw (SXINT old_size, SXINT new_size)
static void process_weights ()
static SXINT option_get_kind (char *arg)
static charoption_get_text (SXINT kind)
 main (SXINT argc, argv)

Variables

static char ME [] = "weights2proba"
char WHAT_WEIGHTS2PROBA [] = "@(#)SYNTAX - $Id: weights2proba.c 1579 2008-09-16 11:24:22Z sagot $" WHAT_DEBUG
static SXINT max_signature_depth
static SXINT * eprod_father2nb
static SXINT * eprod_son2nb
static SXINT * full_ctxtXeprod2nb
static SXINT * eprod_ctxtXeprod2nb
static SXINT * prod_ctxtXeprod2nb
static SXINT * A_ctxtXeprod2nb
static SXINT * prod2nb
static SXINT * A2nb
static SXINT * B2nb
static SXINT * prod_father2nb
static SXINT * prod_son2nb
static SXINT * full_ctxt2nb
static SXINT * ff_id2nb
static SXINT * full_ctxtXlex_id2nb
static SXINT * eprod_ctxtXlex_id2nb
static SXINT * prod_ctxtXlex_id2nb
static SXINT * A_ctxtXlex_id2nb
static SXINT * lex_id2nb
static SXINT * B2sign_nb
static SXINT * ctxtXsign2nb
static char Usage []
static charoption_tbl []
static SXINT option_kind []

Define Documentation

#define MAX_SIGNATURE_DEPTH   1

Definition at line 931 of file weights2proba.c.

Referenced by main().

#define noOPTION ( opt   )     (~OPTION (opt))

Definition at line 926 of file weights2proba.c.

#define OPT_NB   ((sizeof(option_tbl)/sizeof(*option_tbl))-1)

Definition at line 928 of file weights2proba.c.

#define OPTION ( opt   )     (1 << (opt - 1))

Definition at line 925 of file weights2proba.c.

#define UNKNOWN_ARG   0

Definition at line 930 of file weights2proba.c.


Function Documentation

static void A_ctxtXeprod_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 172 of file weights2proba.c.

References A_ctxtXeprod2nb.

Referenced by process_weights().

static void A_ctxtXlex_id_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 212 of file weights2proba.c.

References A_ctxtXlex_id2nb.

Referenced by process_weights().

static void ctxtXsign_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 228 of file weights2proba.c.

References ctxtXsign2nb.

Referenced by process_weights().

static void eprod_ctxtXeprod_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 156 of file weights2proba.c.

References eprod_ctxtXeprod2nb.

Referenced by process_weights().

static void eprod_ctxtXlex_id_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 196 of file weights2proba.c.

References eprod_ctxtXlex_id2nb.

Referenced by process_weights().

static void ff_id_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 180 of file weights2proba.c.

References ff_id2nb.

Referenced by process_weights().

static void ff_idXt2lex_id_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 220 of file weights2proba.c.

References lex_id2nb.

Referenced by process_weights().

static void full_ctxt_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 140 of file weights2proba.c.

References full_ctxt2nb.

Referenced by process_weights().

static void full_ctxtXeprod_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 148 of file weights2proba.c.

References full_ctxtXeprod2nb.

Referenced by process_weights().

static void full_ctxtXlex_id_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 188 of file weights2proba.c.

References full_ctxtXlex_id2nb.

Referenced by process_weights().

static void gen_header (  )  [static]

Definition at line 62 of file weights2proba.c.

Referenced by process_weights().

main ( SXINT  argc,
argv   
)
static SXINT option_get_kind ( char arg  )  [static]

Definition at line 943 of file weights2proba.c.

References OPT_NB, option_kind, option_tbl, and UNKNOWN_ARG.

Referenced by main().

static char* option_get_text ( SXINT  kind  )  [static]

Definition at line 964 of file weights2proba.c.

References OPT_NB, option_kind, and option_tbl.

Referenced by main().

static void print_prod ( SXINT  prod  )  [static]

Definition at line 91 of file weights2proba.c.

References print_X().

Referenced by process_weights().

static void print_X ( SXINT  X  )  [static]

Definition at line 81 of file weights2proba.c.

Referenced by print_prod(), and process_weights().

static void process_weights (  )  [static]
static void prod_ctxtXeprod_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 164 of file weights2proba.c.

References prod_ctxtXeprod2nb.

Referenced by process_weights().

static void prod_ctxtXlex_id_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 204 of file weights2proba.c.

References prod_ctxtXlex_id2nb.

Referenced by process_weights().

static void prodXval2eprod_oflw ( SXINT  old_size,
SXINT  new_size 
) [static]

Definition at line 131 of file weights2proba.c.

References eprod_father2nb, and eprod_son2nb.

Referenced by process_weights().


Variable Documentation

SXINT * A2nb [static]

Definition at line 126 of file weights2proba.c.

Referenced by process_weights().

SXINT * A_ctxtXeprod2nb [static]

Definition at line 125 of file weights2proba.c.

Referenced by A_ctxtXeprod_oflw(), and process_weights().

SXINT * A_ctxtXlex_id2nb [static]

Definition at line 127 of file weights2proba.c.

Referenced by A_ctxtXlex_id_oflw(), and process_weights().

SXINT * B2nb [static]

Definition at line 126 of file weights2proba.c.

Referenced by process_weights().

SXINT* B2sign_nb [static]

Definition at line 128 of file weights2proba.c.

Referenced by process_weights().

SXINT * ctxtXsign2nb [static]

Definition at line 128 of file weights2proba.c.

Referenced by ctxtXsign_oflw(), and process_weights().

SXINT * eprod_ctxtXeprod2nb [static]

Definition at line 125 of file weights2proba.c.

Referenced by eprod_ctxtXeprod_oflw(), and process_weights().

SXINT * eprod_ctxtXlex_id2nb [static]

Definition at line 127 of file weights2proba.c.

Referenced by eprod_ctxtXlex_id_oflw(), and process_weights().

SXINT* eprod_father2nb [static]

Definition at line 125 of file weights2proba.c.

Referenced by process_weights(), and prodXval2eprod_oflw().

SXINT * eprod_son2nb [static]

Definition at line 125 of file weights2proba.c.

Referenced by process_weights(), and prodXval2eprod_oflw().

SXINT* ff_id2nb [static]

Definition at line 127 of file weights2proba.c.

Referenced by ff_id_oflw(), and process_weights().

SXINT * full_ctxt2nb [static]

Definition at line 126 of file weights2proba.c.

Referenced by full_ctxt_oflw(), and process_weights().

SXINT * full_ctxtXeprod2nb [static]

Definition at line 125 of file weights2proba.c.

Referenced by full_ctxtXeprod_oflw(), and process_weights().

SXINT * full_ctxtXlex_id2nb [static]

Definition at line 127 of file weights2proba.c.

Referenced by full_ctxtXlex_id_oflw(), and process_weights().

SXINT * lex_id2nb [static]

Definition at line 127 of file weights2proba.c.

Referenced by ff_idXt2lex_id_oflw(), and process_weights().

SXINT max_signature_depth [static]

Definition at line 59 of file weights2proba.c.

Referenced by main(), and process_weights().

char ME[] = "weights2proba" [static]

Definition at line 31 of file weights2proba.c.

Referenced by main().

SXINT option_kind[] [static]
Initial value:
 {
    UNKNOWN_ARG,
    MAX_SIGNATURE_DEPTH, MAX_SIGNATURE_DEPTH,
}

Definition at line 938 of file weights2proba.c.

Referenced by option_get_kind(), and option_get_text().

char* option_tbl[] [static]
Initial value:
 {
    "",
    "msd", "max_signature_depth",
}

Definition at line 933 of file weights2proba.c.

Referenced by option_get_kind(), and option_get_text().

SXINT* prod2nb [static]

Definition at line 126 of file weights2proba.c.

SXINT * prod_ctxtXeprod2nb [static]

Definition at line 125 of file weights2proba.c.

Referenced by process_weights(), and prod_ctxtXeprod_oflw().

SXINT * prod_ctxtXlex_id2nb [static]

Definition at line 127 of file weights2proba.c.

Referenced by process_weights(), and prod_ctxtXlex_id_oflw().

SXINT * prod_father2nb [static]

Definition at line 126 of file weights2proba.c.

Referenced by process_weights().

SXINT * prod_son2nb [static]

Definition at line 126 of file weights2proba.c.

Referenced by process_weights().

char Usage[] [static]
Initial value:
 "\
\t-msd #value, -max_signature_depth #value (default -msd 0)\n\
"

Definition at line 921 of file weights2proba.c.

char WHAT_WEIGHTS2PROBA[] = "@(#)SYNTAX - $Id: weights2proba.c 1579 2008-09-16 11:24:22Z sagot $" WHAT_DEBUG

Definition at line 36 of file weights2proba.c.


Generated on Wed Apr 21 16:39:40 2010 for syntax-6.0b7 by  doxygen 1.6.1