Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:02:04

0001 #ifndef MAD_MATCH2_H
0002 #define MAD_MATCH2_H
0003 
0004 // types
0005 
0006 struct node;
0007 struct in_cmd;
0008 struct expression;
0009 
0010 // interface
0011 
0012 void match2_match(struct in_cmd*);
0013 void match2_end(struct in_cmd*);
0014 void match2_macro(struct in_cmd*);
0015 void match2_constraint(struct in_cmd*);
0016 int  match2_evaluate_exressions(int, int, double*);
0017 void match2_delete_expressions(void);
0018 int  match2_augmentnmacros(void);      /*increases space in the working arrays*/
0019 
0020 int  match2_print_var(struct in_cmd*);
0021 void match2_delete_arrays(void);
0022 
0023 // variables
0024 
0025 extern int MAX_MATCH_CONS; /*these are set to proper values at the initialization of the match2 module*/
0026 extern int MAX_MATCH_MACRO; /*zero values means that it is not initialized yet*/
0027 
0028 extern char match2_keepexpressions; /*do not delete expressions at the end matching used by match with PTC knobs*/
0029 
0030 extern char   **match2_macro_name;
0031 extern char*  **match2_cons_name;
0032 extern double **match2_cons_value;
0033 extern double **match2_cons_value_rhs;
0034 extern double **match2_cons_value_lhs;
0035 extern double **match2_cons_weight;
0036 extern char   **match2_cons_sign;
0037 extern int      match2_cons_curr[3];
0038 
0039 #endif // MAD_MATCH2_H
0040 
0041