mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +00:00
Update IR
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user