gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include <algorithm>
#include <math.h>
#include "GmshConfig.h"
#include "GmshMessage.h"
#include "GModelIO_GEO.h"
#include "Geo.h"
#include "Parser.h"
#include "Gmsh.tab.hpp"
#include <unistd.h>
Go to the source code of this file.
Classes | |
struct | yy_buffer_state |
struct | yy_trans_info |
Typedefs | |
typedef signed char | flex_int8_t |
typedef short int | flex_int16_t |
typedef int | flex_int32_t |
typedef unsigned char | flex_uint8_t |
typedef unsigned short int | flex_uint16_t |
typedef unsigned int | flex_uint32_t |
typedef struct yy_buffer_state * | YY_BUFFER_STATE |
typedef size_t | yy_size_t |
typedef flex_uint8_t | YY_CHAR |
typedef int | yy_state_type |
Functions | |
void | yyrestart (FILE *input_file) |
void | yy_switch_to_buffer (YY_BUFFER_STATE new_buffer) |
YY_BUFFER_STATE | yy_create_buffer (FILE *file, int size) |
void | yy_delete_buffer (YY_BUFFER_STATE b) |
void | yy_flush_buffer (YY_BUFFER_STATE b) |
void | yypush_buffer_state (YY_BUFFER_STATE new_buffer) |
static void | yy_init_buffer (YY_BUFFER_STATE b, FILE *file) |
YY_BUFFER_STATE | yy_scan_buffer (char *base, yy_size_t size) |
YY_BUFFER_STATE | yy_scan_string (const char *yy_str) |
YY_BUFFER_STATE | yy_scan_bytes (const char *bytes, yy_size_t len) |
void * | yyalloc (yy_size_t) |
void * | yyrealloc (void *, yy_size_t) |
void | yyfree (void *) |
static yy_state_type | yy_get_previous_state (void) |
static yy_state_type | yy_try_NUL_trans (yy_state_type current_state) |
static int | yy_get_next_buffer (void) |
static void yynoreturn | yy_fatal_error (const char *msg) |
void | parsestring (char endchar) |
char * | strsave (char *ptr) |
void | skipcomments (void) |
void | skipline (void) |
static int | yy_init_globals (void) |
void | yyset_debug (int debug_flag) |
void | yyset_extra (YY_EXTRA_TYPE user_defined) |
void | yyset_in (FILE *_in_str) |
void | yyset_out (FILE *_out_str) |
void | yyset_lineno (int _line_number) |
static void | yyunput (int c, char *buf_ptr) |
static int | input (void) |
if (!(yy_init)) | |
Variables | |
yy_size_t | yyleng |
FILE * | yyin = NULL |
FILE * | yyout = NULL |
static size_t | yy_buffer_stack_top = 0 |
static size_t | yy_buffer_stack_max = 0 |
static YY_BUFFER_STATE * | yy_buffer_stack = NULL |
static char | yy_hold_char |
static yy_size_t | yy_n_chars |
static char * | yy_c_buf_p = NULL |
static int | yy_init = 0 |
static int | yy_start = 0 |
static int | yy_did_buffer_switch_on_eof |
int | yylineno = 1 |
char * | yytext |
static const flex_int16_t | yy_accept [1460] |
static const YY_CHAR | yy_ec [256] |
static const YY_CHAR | yy_meta [74] |
static const flex_int16_t | yy_base [1461] |
static const flex_int16_t | yy_def [1461] |
static const flex_int16_t | yy_nxt [1664] |
static const flex_int16_t | yy_chk [1664] |
static yy_state_type | yy_last_accepting_state |
static char * | yy_last_accepting_cpos |
int | yy_flex_debug = 0 |
YY_DECL | |
char * | yy_cp |
char * | yy_bp |
int | yy_act |
#define BEGIN (yy_start) = 1 + 2 * |
Definition at line 379 of file Gmsh.yy.cpp.
Definition at line 1695 of file Gmsh.yy.cpp.
#define EOB_ACT_CONTINUE_SCAN 0 |
Definition at line 423 of file Gmsh.yy.cpp.
#define EOB_ACT_END_OF_FILE 1 |
Definition at line 424 of file Gmsh.yy.cpp.
#define EOB_ACT_LAST_MATCH 2 |
Definition at line 425 of file Gmsh.yy.cpp.
#define FLEX_BETA |
Definition at line 40 of file Gmsh.yy.cpp.
#define FLEX_SCANNER |
Definition at line 35 of file Gmsh.yy.cpp.
#define FLEXINT_H |
Definition at line 290 of file Gmsh.yy.cpp.
#define gmsh_yy_create_buffer_ALREADY_DEFINED |
Definition at line 44 of file Gmsh.yy.cpp.
#define gmsh_yy_delete_buffer_ALREADY_DEFINED |
Definition at line 50 of file Gmsh.yy.cpp.
#define gmsh_yy_flex_debug_ALREADY_DEFINED |
Definition at line 266 of file Gmsh.yy.cpp.
#define gmsh_yy_flush_buffer_ALREADY_DEFINED |
Definition at line 80 of file Gmsh.yy.cpp.
#define gmsh_yy_init_buffer_ALREADY_DEFINED |
Definition at line 74 of file Gmsh.yy.cpp.
#define gmsh_yy_load_buffer_state_ALREADY_DEFINED |
Definition at line 86 of file Gmsh.yy.cpp.
#define gmsh_yy_scan_buffer_ALREADY_DEFINED |
Definition at line 56 of file Gmsh.yy.cpp.
#define gmsh_yy_scan_bytes_ALREADY_DEFINED |
Definition at line 68 of file Gmsh.yy.cpp.
#define gmsh_yy_scan_string_ALREADY_DEFINED |
Definition at line 62 of file Gmsh.yy.cpp.
#define gmsh_yy_switch_to_buffer_ALREADY_DEFINED |
Definition at line 92 of file Gmsh.yy.cpp.
#define gmsh_yyalloc_ALREADY_DEFINED |
Definition at line 224 of file Gmsh.yy.cpp.
#define gmsh_yyensure_buffer_stack_ALREADY_DEFINED |
Definition at line 110 of file Gmsh.yy.cpp.
#define gmsh_yyfree_ALREADY_DEFINED |
Definition at line 236 of file Gmsh.yy.cpp.
#define gmsh_yyin_ALREADY_DEFINED |
Definition at line 254 of file Gmsh.yy.cpp.
#define gmsh_yyleng_ALREADY_DEFINED |
Definition at line 248 of file Gmsh.yy.cpp.
#define gmsh_yylex_ALREADY_DEFINED |
Definition at line 116 of file Gmsh.yy.cpp.
#define gmsh_yylineno_ALREADY_DEFINED |
Definition at line 272 of file Gmsh.yy.cpp.
#define gmsh_yyout_ALREADY_DEFINED |
Definition at line 260 of file Gmsh.yy.cpp.
#define gmsh_yypop_buffer_state_ALREADY_DEFINED |
Definition at line 104 of file Gmsh.yy.cpp.
#define gmsh_yypush_buffer_state_ALREADY_DEFINED |
Definition at line 98 of file Gmsh.yy.cpp.
#define gmsh_yyrealloc_ALREADY_DEFINED |
Definition at line 230 of file Gmsh.yy.cpp.
#define gmsh_yyrestart_ALREADY_DEFINED |
Definition at line 122 of file Gmsh.yy.cpp.
#define gmsh_yytext_ALREADY_DEFINED |
Definition at line 242 of file Gmsh.yy.cpp.
#define gmsh_yywrap_ALREADY_DEFINED |
Definition at line 218 of file Gmsh.yy.cpp.
#define INITIAL 0 |
Definition at line 1600 of file Gmsh.yy.cpp.
#define INT16_MAX (32767) |
Definition at line 333 of file Gmsh.yy.cpp.
#define INT16_MIN (-32767-1) |
Definition at line 324 of file Gmsh.yy.cpp.
#define INT32_MAX (2147483647) |
Definition at line 336 of file Gmsh.yy.cpp.
#define INT32_MIN (-2147483647-1) |
Definition at line 327 of file Gmsh.yy.cpp.
#define INT8_MAX (127) |
Definition at line 330 of file Gmsh.yy.cpp.
#define INT8_MIN (-128) |
Definition at line 321 of file Gmsh.yy.cpp.
#define register |
Definition at line 1595 of file Gmsh.yy.cpp.
#define REJECT reject_used_but_not_detected |
Definition at line 1544 of file Gmsh.yy.cpp.
#define SIZE_MAX (~(size_t)0) |
Definition at line 349 of file Gmsh.yy.cpp.
#define UINT16_MAX (65535U) |
Definition at line 342 of file Gmsh.yy.cpp.
#define UINT32_MAX (4294967295U) |
Definition at line 345 of file Gmsh.yy.cpp.
#define UINT8_MAX (255U) |
Definition at line 339 of file Gmsh.yy.cpp.
#define unput | ( | c | ) | yyunput( c, (yytext_ptr) ) |
Definition at line 443 of file Gmsh.yy.cpp.
#define YY_AT_BOL | ( | ) | (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
Definition at line 584 of file Gmsh.yy.cpp.
#define YY_BREAK /*LINTED*/break; |
Definition at line 1774 of file Gmsh.yy.cpp.
#define YY_BUF_SIZE 16384 |
Definition at line 401 of file Gmsh.yy.cpp.
#define YY_BUFFER_EOF_PENDING 2 |
Definition at line 505 of file Gmsh.yy.cpp.
#define YY_BUFFER_NEW 0 |
Definition at line 493 of file Gmsh.yy.cpp.
#define YY_BUFFER_NORMAL 1 |
Definition at line 494 of file Gmsh.yy.cpp.
#define yy_create_buffer gmsh_yy_create_buffer |
Definition at line 10 of file Gmsh.yy.cpp.
#define YY_CURRENT_BUFFER |
Definition at line 521 of file Gmsh.yy.cpp.
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
Definition at line 527 of file Gmsh.yy.cpp.
#define YY_DECL int yylex (void) |
Definition at line 1762 of file Gmsh.yy.cpp.
#define YY_DECL_IS_OURS 1 |
Definition at line 1758 of file Gmsh.yy.cpp.
#define yy_delete_buffer gmsh_yy_delete_buffer |
Definition at line 11 of file Gmsh.yy.cpp.
#define YY_DO_BEFORE_ACTION |
Definition at line 610 of file Gmsh.yy.cpp.
#define YY_END_OF_BUFFER 281 |
Definition at line 617 of file Gmsh.yy.cpp.
#define YY_END_OF_BUFFER_CHAR 0 |
Definition at line 390 of file Gmsh.yy.cpp.
#define YY_EXIT_FAILURE 2 |
#define YY_EXTRA_TYPE void * |
Definition at line 1611 of file Gmsh.yy.cpp.
#define YY_FATAL_ERROR | ( | msg | ) | yy_fatal_error( msg ) |
Definition at line 1749 of file Gmsh.yy.cpp.
int yy_flex_debug gmsh_yy_flex_debug |
Definition at line 22 of file Gmsh.yy.cpp.
#define YY_FLEX_MAJOR_VERSION 2 |
Definition at line 36 of file Gmsh.yy.cpp.
#define YY_FLEX_MINOR_VERSION 6 |
Definition at line 37 of file Gmsh.yy.cpp.
#define YY_FLEX_SUBMINOR_VERSION 4 |
Definition at line 38 of file Gmsh.yy.cpp.
#define yy_flush_buffer gmsh_yy_flush_buffer |
Definition at line 16 of file Gmsh.yy.cpp.
#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER ) |
Definition at line 555 of file Gmsh.yy.cpp.
#define yy_init_buffer gmsh_yy_init_buffer |
Definition at line 15 of file Gmsh.yy.cpp.
#define YY_INPUT | ( | buf, | |
result, | |||
max_size | |||
) |
#define YY_INT_ALIGNED short int |
Definition at line 6 of file Gmsh.yy.cpp.
#define YY_LESS_LINENO | ( | n | ) |
Definition at line 427 of file Gmsh.yy.cpp.
#define YY_LINENO_REWIND_TO | ( | ptr | ) |
Definition at line 428 of file Gmsh.yy.cpp.
static void yy_load_buffer_state gmsh_yy_load_buffer_state |
Definition at line 17 of file Gmsh.yy.cpp.
Referenced by if().
#define YY_MORE_ADJ 0 |
Definition at line 1546 of file Gmsh.yy.cpp.
#define yy_new_buffer yy_create_buffer |
Definition at line 565 of file Gmsh.yy.cpp.
Definition at line 389 of file Gmsh.yy.cpp.
#define YY_NULL 0 |
Definition at line 368 of file Gmsh.yy.cpp.
#define YY_NUM_RULES 280 |
Definition at line 616 of file Gmsh.yy.cpp.
#define YY_READ_BUF_SIZE 8192 |
Definition at line 1686 of file Gmsh.yy.cpp.
#define YY_RESTORE_YY_MORE_OFFSET |
Definition at line 1547 of file Gmsh.yy.cpp.
#define YY_RULE_SETUP YY_USER_ACTION |
Definition at line 1777 of file Gmsh.yy.cpp.
Definition at line 373 of file Gmsh.yy.cpp.
#define yy_scan_buffer gmsh_yy_scan_buffer |
Definition at line 12 of file Gmsh.yy.cpp.
#define yy_scan_bytes gmsh_yy_scan_bytes |
Definition at line 14 of file Gmsh.yy.cpp.
#define yy_scan_string gmsh_yy_scan_string |
Definition at line 13 of file Gmsh.yy.cpp.
#define yy_set_bol | ( | at_bol | ) |
Definition at line 575 of file Gmsh.yy.cpp.
#define yy_set_interactive | ( | is_interactive | ) |
Definition at line 566 of file Gmsh.yy.cpp.
#define YY_START (((yy_start) - 1) / 2) |
Definition at line 384 of file Gmsh.yy.cpp.
#define YY_START_STACK_INCR 25 |
Definition at line 1744 of file Gmsh.yy.cpp.
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) |
Definition at line 407 of file Gmsh.yy.cpp.
#define YY_STATE_EOF | ( | state | ) | (YY_END_OF_BUFFER + state + 1) |
Definition at line 387 of file Gmsh.yy.cpp.
#define YY_STRUCT_YY_BUFFER_STATE |
Definition at line 446 of file Gmsh.yy.cpp.
#define yy_switch_to_buffer gmsh_yy_switch_to_buffer |
Definition at line 18 of file Gmsh.yy.cpp.
#define YY_TYPEDEF_YY_BUFFER_STATE |
Definition at line 410 of file Gmsh.yy.cpp.
#define YY_TYPEDEF_YY_SIZE_T |
Definition at line 415 of file Gmsh.yy.cpp.
#define YY_USER_ACTION |
Definition at line 1769 of file Gmsh.yy.cpp.
#define yyalloc gmsh_yyalloc |
Definition at line 31 of file Gmsh.yy.cpp.
#define yyconst const |
Definition at line 359 of file Gmsh.yy.cpp.
static void yyensure_buffer_stack gmsh_yyensure_buffer_stack |
Definition at line 21 of file Gmsh.yy.cpp.
Referenced by if().
#define yyfree gmsh_yyfree |
Definition at line 33 of file Gmsh.yy.cpp.
int yyget_debug gmsh_yyget_debug |
Definition at line 148 of file Gmsh.yy.cpp.
YY_EXTRA_TYPE yyget_extra gmsh_yyget_extra |
Definition at line 160 of file Gmsh.yy.cpp.
FILE * yyget_in gmsh_yyget_in |
Definition at line 172 of file Gmsh.yy.cpp.
yy_size_t yyget_leng gmsh_yyget_leng |
Definition at line 196 of file Gmsh.yy.cpp.
int yyget_lineno gmsh_yyget_lineno |
Definition at line 208 of file Gmsh.yy.cpp.
FILE * yyget_out gmsh_yyget_out |
Definition at line 184 of file Gmsh.yy.cpp.
char * yyget_text gmsh_yyget_text |
Definition at line 202 of file Gmsh.yy.cpp.
FILE * yyin gmsh_yyin |
Definition at line 23 of file Gmsh.yy.cpp.
Referenced by if().
yy_size_t yyleng gmsh_yyleng |
Definition at line 24 of file Gmsh.yy.cpp.
#define yyless | ( | n | ) |
Definition at line 431 of file Gmsh.yy.cpp.
#define yyless | ( | n | ) |
Definition at line 431 of file Gmsh.yy.cpp.
#define yylex gmsh_yylex |
Definition at line 25 of file Gmsh.yy.cpp.
int yylex_destroy gmsh_yylex_destroy |
Definition at line 142 of file Gmsh.yy.cpp.
#define yylex_init gmsh_yylex_init |
Definition at line 130 of file Gmsh.yy.cpp.
#define yylex_init_extra gmsh_yylex_init_extra |
Definition at line 136 of file Gmsh.yy.cpp.
int yylineno gmsh_yylineno |
Definition at line 26 of file Gmsh.yy.cpp.
#define yymore | ( | ) | yymore_used_but_not_detected |
Definition at line 1545 of file Gmsh.yy.cpp.
#define yynoreturn |
Definition at line 364 of file Gmsh.yy.cpp.
FILE * yyout gmsh_yyout |
Definition at line 27 of file Gmsh.yy.cpp.
Referenced by if().
void yypop_buffer_state gmsh_yypop_buffer_state |
Definition at line 20 of file Gmsh.yy.cpp.
#define yypush_buffer_state gmsh_yypush_buffer_state |
Definition at line 19 of file Gmsh.yy.cpp.
#define yyrealloc gmsh_yyrealloc |
Definition at line 32 of file Gmsh.yy.cpp.
#define yyrestart gmsh_yyrestart |
Definition at line 28 of file Gmsh.yy.cpp.
#define yyset_debug gmsh_yyset_debug |
Definition at line 154 of file Gmsh.yy.cpp.
#define yyset_extra gmsh_yyset_extra |
Definition at line 166 of file Gmsh.yy.cpp.
#define yyset_in gmsh_yyset_in |
Definition at line 178 of file Gmsh.yy.cpp.
#define yyset_lineno gmsh_yyset_lineno |
Definition at line 214 of file Gmsh.yy.cpp.
#define yyset_out gmsh_yyset_out |
Definition at line 190 of file Gmsh.yy.cpp.
#define YYSTATE YY_START |
Definition at line 385 of file Gmsh.yy.cpp.
#define YYTABLES_NAME "yytables" |
#define yyterminate | ( | ) | return YY_NULL |
Definition at line 1739 of file Gmsh.yy.cpp.
char * yytext gmsh_yytext |
Definition at line 29 of file Gmsh.yy.cpp.
#define yytext_ptr yytext |
Definition at line 600 of file Gmsh.yy.cpp.
int yywrap gmsh_yywrap |
Definition at line 30 of file Gmsh.yy.cpp.
typedef short int flex_int16_t |
Definition at line 312 of file Gmsh.yy.cpp.
typedef int flex_int32_t |
Definition at line 313 of file Gmsh.yy.cpp.
typedef signed char flex_int8_t |
Definition at line 311 of file Gmsh.yy.cpp.
typedef unsigned short int flex_uint16_t |
Definition at line 315 of file Gmsh.yy.cpp.
typedef unsigned int flex_uint32_t |
Definition at line 316 of file Gmsh.yy.cpp.
typedef unsigned char flex_uint8_t |
Definition at line 314 of file Gmsh.yy.cpp.
typedef struct yy_buffer_state* YY_BUFFER_STATE |
Definition at line 410 of file Gmsh.yy.cpp.
typedef flex_uint8_t YY_CHAR |
Definition at line 586 of file Gmsh.yy.cpp.
typedef size_t yy_size_t |
Definition at line 415 of file Gmsh.yy.cpp.
typedef int yy_state_type |
Definition at line 590 of file Gmsh.yy.cpp.
if | ( | ! | yy_init | ) |
Definition at line 1787 of file Gmsh.yy.cpp.
|
static |
void parsestring | ( | char | endchar | ) |
void skipcomments | ( | void | ) |
void skipline | ( | void | ) |
char* strsave | ( | char * | ptr | ) |
YY_BUFFER_STATE yy_create_buffer | ( | FILE * | file, |
int | size | ||
) |
void yy_delete_buffer | ( | YY_BUFFER_STATE | b | ) |
|
static |
void yy_flush_buffer | ( | YY_BUFFER_STATE | b | ) |
|
static |
|
static |
|
static |
|
static |
YY_BUFFER_STATE yy_scan_buffer | ( | char * | base, |
yy_size_t | size | ||
) |
YY_BUFFER_STATE yy_scan_bytes | ( | const char * | bytes, |
yy_size_t | len | ||
) |
YY_BUFFER_STATE yy_scan_string | ( | const char * | yy_str | ) |
void yy_switch_to_buffer | ( | YY_BUFFER_STATE | new_buffer | ) |
|
static |
void yyfree | ( | void * | ) |
void yypush_buffer_state | ( | YY_BUFFER_STATE | new_buffer | ) |
void* yyrealloc | ( | void * | , |
yy_size_t | |||
) |
void yyrestart | ( | FILE * | input_file | ) |
void yyset_debug | ( | int | debug_flag | ) |
void yyset_extra | ( | YY_EXTRA_TYPE | user_defined | ) |
void yyset_in | ( | FILE * | _in_str | ) |
void yyset_lineno | ( | int | _line_number | ) |
void yyset_out | ( | FILE * | _out_str | ) |
|
static |
|
static |
Definition at line 624 of file Gmsh.yy.cpp.
int yy_act |
Definition at line 1785 of file Gmsh.yy.cpp.
|
static |
Definition at line 832 of file Gmsh.yy.cpp.
char * yy_bp |
Definition at line 1784 of file Gmsh.yy.cpp.
|
static |
Stack as an array.
Definition at line 512 of file Gmsh.yy.cpp.
|
static |
capacity of stack.
Definition at line 511 of file Gmsh.yy.cpp.
|
static |
index of top of stack.
Definition at line 510 of file Gmsh.yy.cpp.
|
static |
Definition at line 534 of file Gmsh.yy.cpp.
|
static |
Definition at line 1347 of file Gmsh.yy.cpp.
char* yy_cp |
Definition at line 1784 of file Gmsh.yy.cpp.
YY_DECL |
The main scanner function which does all the work.
Definition at line 1781 of file Gmsh.yy.cpp.
|
static |
Definition at line 996 of file Gmsh.yy.cpp.
|
static |
Definition at line 541 of file Gmsh.yy.cpp.
|
static |
Definition at line 788 of file Gmsh.yy.cpp.
int yy_flex_debug = 0 |
Definition at line 1538 of file Gmsh.yy.cpp.
|
static |
Definition at line 529 of file Gmsh.yy.cpp.
|
static |
Definition at line 535 of file Gmsh.yy.cpp.
Referenced by if().
|
static |
Definition at line 1535 of file Gmsh.yy.cpp.
|
static |
Definition at line 1534 of file Gmsh.yy.cpp.
|
static |
Definition at line 820 of file Gmsh.yy.cpp.
|
static |
Definition at line 530 of file Gmsh.yy.cpp.
|
static |
Definition at line 1160 of file Gmsh.yy.cpp.
|
static |
Definition at line 536 of file Gmsh.yy.cpp.
Referenced by if().
FILE* yyin = NULL |
Definition at line 588 of file Gmsh.yy.cpp.
yy_size_t yyleng |
Definition at line 531 of file Gmsh.yy.cpp.
int yylineno = 1 |
Definition at line 593 of file Gmsh.yy.cpp.
FILE * yyout = NULL |
Definition at line 420 of file Gmsh.yy.cpp.
char* yytext |
Definition at line 1547 of file Gmsh.yy.cpp.