Update IR

This commit is contained in:
Jeehoon Kang
2020-04-09 13:04:23 +09:00
parent cef3fb7650
commit 6edb4665c0
10 changed files with 196 additions and 39 deletions

View File

@@ -36,6 +36,23 @@ REPLACE_DICT = {
"\"g_\w*\", ": "", # transparent_crc에서 프린트 목적으로 받은 StringLiteral 삭제
"char\* vname, ": "", # transparent_crc에서 사용하지 않는 파라미터 삭제
r"[^\n]*_IO_2_1_[^;]*;": "", # extern을 지우면서 생긴 size를 알 수 없는 struct 삭제
r"__asm\s*\([^\)]*\)": "", # asm extension in mac
r"__asm__\s*\([^\)]*\)": "", # asm extension in linux
# To check fuzzer before make kecc support struct type
"struct[^}]*};": "",
" struct[^{]*[^}]*}[^;]*;": "",
"typedef struct _IO_FILE __FILE;": "",
"struct _IO_FILE;": "",
"typedef struct _IO_FILE FILE;": "typedef int FILE;",
"typedef struct _IO_FILE": "typedef int",
"typedef struct __locale_struct": "typedef int",
"typedef __locale_t locale_t;": "typedef int locale_t;",
"struct _IO_FILE_plus;": "",
"typedef _G_fpos_t": "typedef int",
"typedef struct[^\n]*\n{[^}]*}[^;]*;": "",
"typedef struct[^{]{[^}]*}": "typedef int",
"struct _IO_FILE": "int",
}
CSMITH_DIR = "csmith-2.3.0"