Dataset Viewer
Auto-converted to Parquet Duplicate
file_name
stringclasses
9 values
original_function_name
stringclasses
9 values
stripped_function_name
stringclasses
9 values
decompiled_code_original
stringclasses
9 values
decompiled_code_stripped
stringclasses
9 values
assembly_code
stringclasses
9 values
dataflowgraph_original
float64
dataflowgraph_stripped
float64
graphImage_original
float64
graphImage_stripped
float64
pcode_edges_original
stringclasses
9 values
pcode_edges_stripped
stringclasses
9 values
pcode_graph_original
float64
pcode_graph_stripped
float64
address
stringclasses
9 values
arch
stringclasses
1 value
opt_level
stringclasses
1 value
S-Expression_of_decompiled_code_stripped
stringclasses
9 values
Replace_function_name_and_variable_name
stringclasses
9 values
S-Expression_decompiled_code_original
stringclasses
9 values
Root Node
stringclasses
9 values
decompiled_code_original_masked
stringclasses
9 values
decompiled_code_stripped_masked
stringclasses
9 values
bfs_pattern
stringclasses
9 values
token_sequence
stringclasses
9 values
is_unique_bfs
int64
1
1
is_unique_token
int64
1
1
clean_function_name
stringclasses
9 values
clean_decompiled_code_original
stringclasses
9 values
row_id
int64
2.17k
21.3k
raw_output_1
stringclasses
9 values
clean_raw_output_1
stringclasses
9 values
raw_output_2
stringclasses
9 values
clean_raw_output_2
stringclasses
9 values
reasoning
stringclasses
9 values
counterfactual
stringclasses
9 values
func_name
stringclasses
9 values
1279_putty_and_putty_strip.c
ecdh_calculate
FUN_0008cdac
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */ Bignum ecdh_calculate(Bignum private,ec_point *public) { ec_point *point; Bignum pvVar1; ec_point *public_local; Bignum private_local; Bignum ret; int i; ec_point *p; int bytes; uchar *byteorder; point = ecp_mul(public,private); if (point == (ec_point *)0x0) { pvVar1 = (Bignum)0x0; } else { pvVar1 = point->x; point->x = (Bignum)0x0; if (point->curve->type == ABOUT_TO) { /* WARNING: Subroutine does not return */ safemalloc(point->curve->fieldBits + 7 >> 3,1); } ec_point_free(point); } return pvVar1; }
int FUN_0008cdac(undefined4 param_1,undefined4 param_2) { uint uVar1; undefined1 uVar2; int *piVar3; int iVar4; int local_1c; int local_18; piVar3 = (int *)FUN_00088a24(param_2,param_1); if (piVar3 == (int *)0x0) { local_1c = 0; } else { local_1c = piVar3[1]; piVar3[1] = 0; if (*(int *)*piVar3 == 1) { uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3; iVar4 = FUN_0003722c(uVar1,1); local_18 = 0; while( true ) { if ((int)uVar1 <= local_18) break; uVar2 = FUN_00077904(local_1c,local_18); *(undefined1 *)(iVar4 + local_18) = uVar2; local_18 = local_18 + 1; } FUN_00073928(local_1c); local_1c = FUN_00077128(iVar4,uVar1); FUN_0003756c(iVar4,uVar1); FUN_00037464(iVar4); } FUN_00086a14(piVar3); } return local_1c; }
stmdb sp!,{r11,lr} add r11,sp,#0x4 sub sp,sp,#0x20 str r0,[r11,#-0x20] str r1,[r11,#-0x24] ldr r1,[r11,#-0x20] ldr r0,[r11,#-0x24] bl 0x00088a24 str r0,[r11,#-0x10] ldr r3,[r11,#-0x10] cmp r3,#0x0 bne 0x0008cde4 mov r3,#0x0 b 0x0008cec4 ldr r3,[r11,#-0x10] ldr r3,[r3,#0x4] str r3,[r11,#-0x18] ldr r3,[r11,#-0x10] mov r2,#0x0 str r2,[r3,#0x4] ldr r3,[r11,#-0x10] ldr r3,[r3,#0x0] ldr r3,[r3,#0x0] cmp r3,#0x1 bne 0x0008ceb8 ldr r3,[r11,#-0x10] ldr r3,[r3,#0x0] ldr r3,[r3,#0xc] add r3,r3,#0x7 mov r3,r3, lsr #0x3 str r3,[r11,#-0xc] ldr r3,[r11,#-0xc] mov r1,#0x1 cpy r0,r3 bl 0x0003722c str r0,[r11,#-0x8] mov r3,#0x0 str r3,[r11,#-0x14] b 0x0008ce78 ldr r1,[r11,#-0x14] ldr r0,[r11,#-0x18] bl 0x00077904 cpy r1,r0 ldr r3,[r11,#-0x14] ldr r2,[r11,#-0x8] add r3,r2,r3 and r2,r1,#0xff strb r2,[r3,#0x0] ldr r3,[r11,#-0x14] add r3,r3,#0x1 str r3,[r11,#-0x14] ldr r2,[r11,#-0x14] ldr r3,[r11,#-0xc] cmp r2,r3 blt 0x0008ce48 ldr r0,[r11,#-0x18] bl 0x00073928 ldr r1,[r11,#-0xc] ldr r0,[r11,#-0x8] bl 0x00077128 str r0,[r11,#-0x18] ldr r3,[r11,#-0xc] cpy r1,r3 ldr r0,[r11,#-0x8] bl 0x0003756c ldr r0,[r11,#-0x8] bl 0x00037464 ldr r0,[r11,#-0x10] bl 0x00086a14 ldr r3,[r11,#-0x18] cpy r0,r3 sub sp,r11,#0x4 ldmia sp!,{r11,pc}
null
null
null
null
[(u'INT_EQUAL_-1206399331', u'CBRANCH_-1206399327'), ('const-1', u'INT_EQUAL_-1206399331'), ('const-1', u'CALL_-1206399238'), (u'PTRSUB_-1206399120', u'LOAD_-1206399408'), (u'PTRSUB_-1206399103', u'STORE_-1206399373'), ('tmp_211', u'BRANCH_-1206399442'), ('const-0', u'PTRSUB_-1206399094'), ('const-3', u'INT_RIGHT_-1206399259'), ('const-0', u'PTRSUB_-1206399073'), (u'INT_ADD_-1206399281', u'INT_RIGHT_-1206399259'), ('const-0', u'INT_EQUAL_-1206399466'), ('const-0', u'STORE_-1206399373'), ('const-417', u'LOAD_-1206399362'), ('tmp_405', u'CBRANCH_-1206399327'), (u'CALL_-1206399498', u'PTRSUB_-1206399120'), ('const-417', u'LOAD_-1206399408'), ('const-417', u'LOAD_-1206399356'), ('const-1', u'RETURN_-1206399233'), ('tmp_562', u'CALL_-1206399498'), ('const-12', u'PTRSUB_-1206399067'), ('const-7', u'INT_ADD_-1206399281'), ('tmp_561', u'CALL_-1206399498'), ('const-417', u'LOAD_-1206399312'), (u'LOAD_-1206399356', u'INT_EQUAL_-1206399331'), (u'LOAD_-1206399408', u'MULTIEQUAL_-1206399002'), ('const-4', u'PTRSUB_-1206399120'), ('const-417', u'STORE_-1206399373'), (u'MULTIEQUAL_-1206399002', u'COPY_-1206399216'), (u'INT_RIGHT_-1206399259', u'CALL_-1206399238'), (u'PTRSUB_-1206399088', u'LOAD_-1206399356'), (u'LOAD_-1206399362', u'PTRSUB_-1206399088'), ('const-0', u'RETURN_-1206399176'), (u'LOAD_-1206399318', u'PTRSUB_-1206399067'), (u'PTRSUB_-1206399067', u'LOAD_-1206399312'), (u'INT_EQUAL_-1206399466', u'CBRANCH_-1206399462'), (u'PTRSUB_-1206399094', u'LOAD_-1206399362'), (u'LOAD_-1206399312', u'INT_ADD_-1206399281'), (u'CALL_-1206399498', u'INT_EQUAL_-1206399466'), (u'CALL_-1206399498', u'PTRSUB_-1206399073'), ('const-4', u'PTRSUB_-1206399103'), ('const-0', u'COPY_-1206399454'), (u'CALL_-1206399498', u'PTRSUB_-1206399094'), (u'COPY_-1206399216', u'RETURN_-1206399176'), ('const-0', u'PTRSUB_-1206399088'), (u'CALL_-1206399498', u'PTRSUB_-1206399103'), ('tmp_176', u'CBRANCH_-1206399462'), (u'CALL_-1206399498', u'CALL_-1206399096'), (u'PTRSUB_-1206399073', u'LOAD_-1206399318'), ('const-417', u'LOAD_-1206399318'), (u'COPY_-1206399454', u'MULTIEQUAL_-1206399002')]
[(u'INT_EQUAL_-1206399331', u'CBRANCH_-1206399327'), (u'LOAD_-1206399408', u'MULTIEQUAL_-1206398633'), ('tmp_584', u'BRANCH_-1206399208'), (u'INT_ADD_-1206399105', u'CAST_-1206398640'), (u'INT_SLESSEQUAL_-1206399119', u'CBRANCH_-1206399127'), ('const-0', u'STORE_-1206399373'), ('tmp_211', u'BRANCH_-1206399442'), (u'CAST_-1206398714', u'LOAD_-1206399312'), ('tmp_1678', u'CALL_-1206399498'), (u'CAST_-1206398796', u'LOAD_-1206399362'), (u'CAST_-1206398640', u'STORE_-1206399096'), (u'INT_RIGHT_-1206399259', u'CAST_-1206398605'), ('tmp_625', u'CBRANCH_-1206399127'), ('const-3', u'INT_RIGHT_-1206399259'), (u'MULTIEQUAL_-1206398633', u'MULTIEQUAL_-1206398827'), ('const-417', u'STORE_-1206399096'), (u'INT_RIGHT_-1206399259', u'CALL_-1206399066'), (u'INT_ADD_-1206399281', u'INT_RIGHT_-1206399259'), ('tmp_1679', u'CALL_-1206399498'), (u'CALL_-1206399238', u'CALL_-1206399066'), (u'MULTIEQUAL_-1206398686', u'INT_SLESSEQUAL_-1206399119'), (u'CAST_-1206398739', u'LOAD_-1206399356'), (u'CALL_-1206399142', u'STORE_-1206399096'), (u'LOAD_-1206399408', u'CALL_-1206399113'), ('const-417', u'LOAD_-1206399362'), ('tmp_405', u'CBRANCH_-1206399327'), ('const-417', u'LOAD_-1206399312'), (u'INT_ADD_-1206399296', u'CAST_-1206398714'), (u'MULTIEQUAL_-1206398686', u'INT_ADD_-1206399060'), (u'CALL_-1206399095', u'MULTIEQUAL_-1206398633'), (u'CAST_-1206398796', u'CALL_-1206399042'), ('const-417', u'LOAD_-1206399318'), (u'CAST_-1206398796', u'INT_EQUAL_-1206399466'), (u'CALL_-1206399238', u'INT_ADD_-1206399105'), ('const-417', u'STORE_-1206399373'), ('const-7', u'INT_ADD_-1206399281'), (u'CAST_-1206398796', u'PTRADD_-1206398748'), (u'LOAD_-1206399318', u'INT_ADD_-1206399296'), (u'LOAD_-1206399408', u'CALL_-1206399142'), (u'MULTIEQUAL_-1206398686', u'INT_ADD_-1206399105'), (u'COPY_-1206399454', u'MULTIEQUAL_-1206398827'), ('const-4', u'PTRADD_-1206398748'), (u'LOAD_-1206399356', u'INT_EQUAL_-1206399331'), (u'INT_ADD_-1206399060', u'MULTIEQUAL_-1206398686'), (u'MULTIEQUAL_-1206398686', u'CALL_-1206399142'), ('const-1', u'PTRADD_-1206398748'), ('const-1', u'CALL_-1206399238'), ('const-0', u'COPY_-1206399216'), ('const-0', u'INT_EQUAL_-1206399466'), (u'PTRADD_-1206398765', u'LOAD_-1206399408'), (u'CALL_-1206399238', u'CALL_-1206399095'), (u'CALL_-1206399238', u'CALL_-1206399054'), (u'INT_RIGHT_-1206399259', u'CALL_-1206399238'), (u'CALL_-1206399498', u'CAST_-1206398796'), (u'INT_RIGHT_-1206399259', u'CALL_-1206399095'), (u'CAST_-1206398796', u'LOAD_-1206399318'), (u'INT_EQUAL_-1206399466', u'CBRANCH_-1206399462'), (u'MULTIEQUAL_-1206398827', u'COPY_-1206399216'), ('const-12', u'INT_ADD_-1206399296'), (u'LOAD_-1206399312', u'INT_ADD_-1206399281'), (u'LOAD_-1206399362', u'CAST_-1206398739'), ('const-0', u'RETURN_-1206399176'), (u'CAST_-1206398796', u'PTRADD_-1206398765'), ('const-1', u'INT_EQUAL_-1206399331'), ('const-0', u'COPY_-1206399454'), ('const-1', u'PTRADD_-1206398765'), (u'COPY_-1206399216', u'RETURN_-1206399176'), ('const-417', u'LOAD_-1206399356'), (u'COPY_-1206399216', u'MULTIEQUAL_-1206398686'), ('const-4', u'PTRADD_-1206398765'), ('tmp_176', u'CBRANCH_-1206399462'), (u'PTRADD_-1206398748', u'STORE_-1206399373'), (u'CAST_-1206398605', u'INT_SLESSEQUAL_-1206399119'), ('const-417', u'LOAD_-1206399408'), ('const-1', u'INT_ADD_-1206399060')]
null
null
0008cdac
arm
O0
(translation_unit "int FUN_0008cdac(undefined4 param_1,undefined4 param_2)\n\n{\n uint uVar1;\n undefined1 uVar2;\n int *piVar3;\n int iVar4;\n int local_1c;\n int local_18;\n \n piVar3 = (int *)FUN_00088a24(param_2,param_1);\n if (piVar3 == (int *)0x0) {\n local_1c = 0;\n }\n else {\n local_1c = piVar3[1];\n piVar3[1] = 0;\n if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }\n FUN_00086a14(piVar3);\n }\n return local_1c;\n}\n\n" (function_definition "int FUN_0008cdac(undefined4 param_1,undefined4 param_2)\n\n{\n uint uVar1;\n undefined1 uVar2;\n int *piVar3;\n int iVar4;\n int local_1c;\n int local_18;\n \n piVar3 = (int *)FUN_00088a24(param_2,param_1);\n if (piVar3 == (int *)0x0) {\n local_1c = 0;\n }\n else {\n local_1c = piVar3[1];\n piVar3[1] = 0;\n if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }\n FUN_00086a14(piVar3);\n }\n return local_1c;\n}" primitive_type (function_declarator "FUN_0008cdac(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n uint uVar1;\n undefined1 uVar2;\n int *piVar3;\n int iVar4;\n int local_1c;\n int local_18;\n \n piVar3 = (int *)FUN_00088a24(param_2,param_1);\n if (piVar3 == (int *)0x0) {\n local_1c = 0;\n }\n else {\n local_1c = piVar3[1];\n piVar3[1] = 0;\n if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }\n FUN_00086a14(piVar3);\n }\n return local_1c;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined1 uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int local_1c;" primitive_type identifier ;) (declaration "int local_18;" primitive_type identifier ;) (expression_statement "piVar3 = (int *)FUN_00088a24(param_2,param_1);" (assignment_expression "piVar3 = (int *)FUN_00088a24(param_2,param_1)" identifier = (cast_expression "(int *)FUN_00088a24(param_2,param_1)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00088a24(param_2,param_1)" identifier (argument_list "(param_2,param_1)" ( identifier , identifier ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n local_1c = 0;\n }\n else {\n local_1c = piVar3[1];\n piVar3[1] = 0;\n if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }\n FUN_00086a14(piVar3);\n }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n local_1c = 0;\n }" { (expression_statement "local_1c = 0;" (assignment_expression "local_1c = 0" identifier = number_literal) ;) }) (else_clause "else {\n local_1c = piVar3[1];\n piVar3[1] = 0;\n if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }\n FUN_00086a14(piVar3);\n }" else (compound_statement "{\n local_1c = piVar3[1];\n piVar3[1] = 0;\n if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }\n FUN_00086a14(piVar3);\n }" { (expression_statement "local_1c = piVar3[1];" (assignment_expression "local_1c = piVar3[1]" identifier = (subscript_expression "piVar3[1]" identifier [ number_literal ])) ;) (expression_statement "piVar3[1] = 0;" (assignment_expression "piVar3[1] = 0" (subscript_expression "piVar3[1]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(int *)*piVar3 == 1) {\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }" if (parenthesized_expression "(*(int *)*piVar3 == 1)" ( (binary_expression "*(int *)*piVar3 == 1" (pointer_expression "*(int *)*piVar3" * (cast_expression "(int *)*piVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar3" * identifier))) == number_literal) )) (compound_statement "{\n uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;\n iVar4 = FUN_0003722c(uVar1,1);\n local_18 = 0;\n while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }\n FUN_00073928(local_1c);\n local_1c = FUN_00077128(iVar4,uVar1);\n FUN_0003756c(iVar4,uVar1);\n FUN_00037464(iVar4);\n }" { (expression_statement "uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3;" (assignment_expression "uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3" identifier = (binary_expression "*(int *)(*piVar3 + 0xc) + 7U >> 3" (binary_expression "*(int *)(*piVar3 + 0xc) + 7U" (pointer_expression "*(int *)(*piVar3 + 0xc)" * (cast_expression "(int *)(*piVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar3 + 0xc)" ( (binary_expression "*piVar3 + 0xc" (pointer_expression "*piVar3" * identifier) + number_literal) )))) + number_literal) >> number_literal)) ;) (expression_statement "iVar4 = FUN_0003722c(uVar1,1);" (assignment_expression "iVar4 = FUN_0003722c(uVar1,1)" identifier = (call_expression "FUN_0003722c(uVar1,1)" identifier (argument_list "(uVar1,1)" ( identifier , number_literal )))) ;) (expression_statement "local_18 = 0;" (assignment_expression "local_18 = 0" identifier = number_literal) ;) (while_statement "while( true ) {\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n if ((int)uVar1 <= local_18) break;\n uVar2 = FUN_00077904(local_1c,local_18);\n *(undefined1 *)(iVar4 + local_18) = uVar2;\n local_18 = local_18 + 1;\n }" { (if_statement "if ((int)uVar1 <= local_18) break;" if (parenthesized_expression "((int)uVar1 <= local_18)" ( (binary_expression "(int)uVar1 <= local_18" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar2 = FUN_00077904(local_1c,local_18);" (assignment_expression "uVar2 = FUN_00077904(local_1c,local_18)" identifier = (call_expression "FUN_00077904(local_1c,local_18)" identifier (argument_list "(local_1c,local_18)" ( identifier , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar4 + local_18) = uVar2;" (assignment_expression "*(undefined1 *)(iVar4 + local_18) = uVar2" (pointer_expression "*(undefined1 *)(iVar4 + local_18)" * (cast_expression "(undefined1 *)(iVar4 + local_18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + local_18)" ( (binary_expression "iVar4 + local_18" identifier + identifier) )))) = identifier) ;) (expression_statement "local_18 = local_18 + 1;" (assignment_expression "local_18 = local_18 + 1" identifier = (binary_expression "local_18 + 1" identifier + number_literal)) ;) })) (expression_statement "FUN_00073928(local_1c);" (call_expression "FUN_00073928(local_1c)" identifier (argument_list "(local_1c)" ( identifier ))) ;) (expression_statement "local_1c = FUN_00077128(iVar4,uVar1);" (assignment_expression "local_1c = FUN_00077128(iVar4,uVar1)" identifier = (call_expression "FUN_00077128(iVar4,uVar1)" identifier (argument_list "(iVar4,uVar1)" ( identifier , identifier )))) ;) (expression_statement "FUN_0003756c(iVar4,uVar1);" (call_expression "FUN_0003756c(iVar4,uVar1)" identifier (argument_list "(iVar4,uVar1)" ( identifier , identifier ))) ;) (expression_statement "FUN_00037464(iVar4);" (call_expression "FUN_00037464(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) })) (expression_statement "FUN_00086a14(piVar3);" (call_expression "FUN_00086a14(piVar3)" identifier (argument_list "(piVar3)" ( identifier ))) ;) }))) (return_statement "return local_1c;" return identifier ;) })))
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */ type_1 function_1(type_1 private,type_2 *public) { type_2 *var_2; type_1 pvVar1; type_2 *public_local; type_1 private_local; type_1 ret; int i; type_2 *p; int bytes; type_3 *byteorder; var_2 = var_1(public,private); if (var_2 == (type_2 *)0x0) { pvVar1 = (type_1)0x0; } else { pvVar1 = var_2->x; var_2->x = (type_1)0x0; if (var_2->curve->type == var_3) { /* WARNING: Subroutine does not return */ var_4(var_2->curve->fieldBits + 7 >> 3,1); } var_5(var_2); } return pvVar1; }
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nBignum ecdh_calculate(Bignum private,ec_point *public)\n\n{\n ec_point *point;\n Bignum pvVar1;\n ec_point *public_local;\n Bignum private_local;\n Bignum ret;\n int i;\n ec_point *p;\n int bytes;\n uchar *byteorder;\n \n point = ecp_mul(public,private);\n if (point == (ec_point *)0x0) {\n pvVar1 = (Bignum)0x0;\n }\n else {\n pvVar1 = point->x;\n point->x = (Bignum)0x0;\n if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }\n ec_point_free(point);\n }\n return pvVar1;\n}\n\n" comment (function_definition "Bignum ecdh_calculate(Bignum private,ec_point *public)\n\n{\n ec_point *point;\n Bignum pvVar1;\n ec_point *public_local;\n Bignum private_local;\n Bignum ret;\n int i;\n ec_point *p;\n int bytes;\n uchar *byteorder;\n \n point = ecp_mul(public,private);\n if (point == (ec_point *)0x0) {\n pvVar1 = (Bignum)0x0;\n }\n else {\n pvVar1 = point->x;\n point->x = (Bignum)0x0;\n if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }\n ec_point_free(point);\n }\n return pvVar1;\n}" type_identifier (function_declarator "ecdh_calculate(Bignum private,ec_point *public)" identifier (parameter_list "(Bignum private,ec_point *public)" ( (parameter_declaration "Bignum private" type_identifier identifier) , (parameter_declaration "ec_point *public" type_identifier (pointer_declarator "*public" * identifier)) ))) (compound_statement "{\n ec_point *point;\n Bignum pvVar1;\n ec_point *public_local;\n Bignum private_local;\n Bignum ret;\n int i;\n ec_point *p;\n int bytes;\n uchar *byteorder;\n \n point = ecp_mul(public,private);\n if (point == (ec_point *)0x0) {\n pvVar1 = (Bignum)0x0;\n }\n else {\n pvVar1 = point->x;\n point->x = (Bignum)0x0;\n if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }\n ec_point_free(point);\n }\n return pvVar1;\n}" { (declaration "ec_point *point;" type_identifier (pointer_declarator "*point" * identifier) ;) (declaration "Bignum pvVar1;" type_identifier identifier ;) (declaration "ec_point *public_local;" type_identifier (pointer_declarator "*public_local" * identifier) ;) (declaration "Bignum private_local;" type_identifier identifier ;) (declaration "Bignum ret;" type_identifier identifier ;) (declaration "int i;" primitive_type identifier ;) (declaration "ec_point *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int bytes;" primitive_type identifier ;) (declaration "uchar *byteorder;" type_identifier (pointer_declarator "*byteorder" * identifier) ;) (expression_statement "point = ecp_mul(public,private);" (assignment_expression "point = ecp_mul(public,private)" identifier = (call_expression "ecp_mul(public,private)" identifier (argument_list "(public,private)" ( identifier , identifier )))) ;) (if_statement "if (point == (ec_point *)0x0) {\n pvVar1 = (Bignum)0x0;\n }\n else {\n pvVar1 = point->x;\n point->x = (Bignum)0x0;\n if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }\n ec_point_free(point);\n }" if (parenthesized_expression "(point == (ec_point *)0x0)" ( (binary_expression "point == (ec_point *)0x0" identifier == (cast_expression "(ec_point *)0x0" ( (type_descriptor "ec_point *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n pvVar1 = (Bignum)0x0;\n }" { (expression_statement "pvVar1 = (Bignum)0x0;" (assignment_expression "pvVar1 = (Bignum)0x0" identifier = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) }) (else_clause "else {\n pvVar1 = point->x;\n point->x = (Bignum)0x0;\n if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }\n ec_point_free(point);\n }" else (compound_statement "{\n pvVar1 = point->x;\n point->x = (Bignum)0x0;\n if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }\n ec_point_free(point);\n }" { (expression_statement "pvVar1 = point->x;" (assignment_expression "pvVar1 = point->x" identifier = (field_expression "point->x" identifier -> field_identifier)) ;) (expression_statement "point->x = (Bignum)0x0;" (assignment_expression "point->x = (Bignum)0x0" (field_expression "point->x" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (if_statement "if (point->curve->type == ABOUT_TO) {\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }" if (parenthesized_expression "(point->curve->type == ABOUT_TO)" ( (binary_expression "point->curve->type == ABOUT_TO" (field_expression "point->curve->type" (field_expression "point->curve" identifier -> field_identifier) -> field_identifier) == identifier) )) (compound_statement "{\n /* WARNING: Subroutine does not return */\n safemalloc(point->curve->fieldBits + 7 >> 3,1);\n }" { comment (expression_statement "safemalloc(point->curve->fieldBits + 7 >> 3,1);" (call_expression "safemalloc(point->curve->fieldBits + 7 >> 3,1)" identifier (argument_list "(point->curve->fieldBits + 7 >> 3,1)" ( (binary_expression "point->curve->fieldBits + 7 >> 3" (binary_expression "point->curve->fieldBits + 7" (field_expression "point->curve->fieldBits" (field_expression "point->curve" identifier -> field_identifier) -> field_identifier) + number_literal) >> number_literal) , number_literal ))) ;) })) (expression_statement "ec_point_free(point);" (call_expression "ec_point_free(point)" identifier (argument_list "(point)" ( identifier ))) ;) }))) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit (comment) (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (identifier))) consequence: (compound_statement (comment) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (binary_expression left: (field_expression argument: (field_expression argument: (identifier) field: (field_identifier)) field: (field_identifier)) right: (number_literal)) right: (number_literal)) (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))) (return_statement (identifier)))))
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */ Bignum MASKED(Bignum private,ec_point *public) { ec_point *point; Bignum pvVar1; ec_point *public_local; Bignum private_local; Bignum ret; int i; ec_point *p; int bytes; uchar *byteorder; point = ecp_mul(public,private); if (point == (ec_point *)0x0) { pvVar1 = (Bignum)0x0; } else { pvVar1 = point->x; point->x = (Bignum)0x0; if (point->curve->type == ABOUT_TO) { /* WARNING: Subroutine does not return */ safemalloc(point->curve->fieldBits + 7 >> 3,1); } ec_point_free(point); } return pvVar1; }
int MASKED(undefined4 param_1,undefined4 param_2) { uint uVar1; undefined1 uVar2; int *piVar3; int iVar4; int local_1c; int local_18; piVar3 = (int *)FUN_00088a24(param_2,param_1); if (piVar3 == (int *)0x0) { local_1c = 0; } else { local_1c = piVar3[1]; piVar3[1] = 0; if (*(int *)*piVar3 == 1) { uVar1 = *(int *)(*piVar3 + 0xc) + 7U >> 3; iVar4 = FUN_0003722c(uVar1,1); local_18 = 0; while( true ) { if ((int)uVar1 <= local_18) break; uVar2 = FUN_00077904(local_1c,local_18); *(undefined1 *)(iVar4 + local_18) = uVar2; local_18 = local_18 + 1; } FUN_00073928(local_1c); local_1c = FUN_00077128(iVar4,uVar1); FUN_0003756c(iVar4,uVar1); FUN_00037464(iVar4); } FUN_00086a14(piVar3); } return local_1c; }
translation_unit function_definition primitive_type function_declarator compound_statement identifier parameter_list { declaration declaration declaration declaration declaration declaration expression_statement if_statement return_statement } ( parameter_declaration , parameter_declaration ) type_identifier identifier ; type_identifier identifier ; primitive_type pointer_declarator ; primitive_type identifier ; primitive_type identifier ; primitive_type identifier ; assignment_expression ; if parenthesized_expression compound_statement else_clause return identifier ; type_identifier identifier type_identifier identifier * identifier identifier = cast_expression ( binary_expression ) { expression_statement } else compound_statement ( type_descriptor ) call_expression identifier == cast_expression assignment_expression ; { expression_statement expression_statement if_statement expression_statement } primitive_type abstract_pointer_declarator identifier argument_list ( type_descriptor ) number_literal identifier = number_literal assignment_expression ; assignment_expression ; if parenthesized_expression compound_statement call_expression ; * ( identifier , identifier ) primitive_type abstract_pointer_declarator identifier = subscript_expression subscript_expression = number_literal ( binary_expression ) { expression_statement expression_statement expression_statement while_statement expression_statement expression_statement expression_statement expression_statement } identifier argument_list * identifier [ number_literal ] identifier [ number_literal ] pointer_expression == number_literal assignment_expression ; assignment_expression ; assignment_expression ; while parenthesized_expression compound_statement call_expression ; assignment_expression ; call_expression ; call_expression ; ( identifier ) * cast_expression identifier = binary_expression identifier = call_expression identifier = number_literal ( true ) { if_statement expression_statement expression_statement expression_statement } identifier argument_list identifier = call_expression identifier argument_list identifier argument_list ( type_descriptor ) pointer_expression binary_expression >> number_literal identifier argument_list if parenthesized_expression break_statement assignment_expression ; assignment_expression ; assignment_expression ; ( identifier ) identifier argument_list ( identifier , identifier ) ( identifier ) primitive_type abstract_pointer_declarator * identifier pointer_expression + number_literal ( identifier , number_literal ) ( binary_expression ) break ; identifier = call_expression pointer_expression = identifier identifier = binary_expression ( identifier , identifier ) * * cast_expression cast_expression <= identifier identifier argument_list * cast_expression identifier + number_literal ( type_descriptor ) parenthesized_expression ( type_descriptor ) identifier ( identifier , identifier ) ( type_descriptor ) parenthesized_expression primitive_type abstract_pointer_declarator ( binary_expression ) primitive_type type_identifier abstract_pointer_declarator ( binary_expression ) * pointer_expression + number_literal * identifier + identifier * identifier
int FUN_0008cdac ( undefined4 param_1 , undefined4 param_2 ) { uint uVar1 ; undefined1 uVar2 ; int * piVar3 ; int iVar4 ; int local_1c ; int local_18 ; piVar3 = ( int * ) FUN_00088a24 ( param_2 , param_1 ) ; if ( piVar3 == ( int * ) 0x0 ) { local_1c = 0 ; } else { local_1c = piVar3 [ 1 ] ; piVar3 [ 1 ] = 0 ; if ( * ( int * ) * piVar3 == 1 ) { uVar1 = * ( int * ) ( * piVar3 + 0xc ) + 7U >> 3 ; iVar4 = FUN_0003722c ( uVar1 , 1 ) ; local_18 = 0 ; while ( true ) { if ( ( int ) uVar1 <= local_18 ) break ; uVar2 = FUN_00077904 ( local_1c , local_18 ) ; * ( undefined1 * ) ( iVar4 + local_18 ) = uVar2 ; local_18 = local_18 + 1 ; } FUN_00073928 ( local_1c ) ; local_1c = FUN_00077128 ( iVar4 , uVar1 ) ; FUN_0003756c ( iVar4 , uVar1 ) ; FUN_00037464 ( iVar4 ) ; } FUN_00086a14 ( piVar3 ) ; } return local_1c ; }
1
1
ecdh_calculate
Bignum ecdh_calculate(Bignum private,ec_point *public) { ec_point *point; Bignum pvVar1; ec_point *public_local; Bignum private_local; Bignum ret; int i; ec_point *p; int bytes; uchar *byteorder; point = ecp_mul(public,private); if (point == (ec_point *)0x0) { pvVar1 = (Bignum)0x0; } else { pvVar1 = point->x; point->x = (Bignum)0x0; if (point->curve->type == ABOUT_TO) { safemalloc(point->curve->fieldBits + 7 >> 3,1); } ec_point_free(point); } return pvVar1; }
2,171
The provided function name is appropriate because it encapsulates the function's primary purpose of performing a cryptographic operation related to Elliptic Curve Diffie-Hellman (ECDH). The function processes input parameters to derive a shared secret key, which is a core aspect of ECDH. It involves memory allocation, data transformation, and cleanup, aligning with typical ECDH operations. The function's control flow, including safety checks and buffer operations, supports the secure handling of cryptographic data, further justifying the name. A hypothetical, less appropriate name might initially seem reasonable if it focuses on a specific aspect, like memory allocation or data transformation, but would be misleading. Such a name could be too narrow, failing to capture the cryptographic context, or too broad, omitting the specific ECDH operation. This could confuse future readers or maintainers by obscuring the function's true intent and scope, leading to potential misuse or misinterpretation. The original developer-assigned name better aligns with the function’s behavior by accurately reflecting its cryptographic purpose and the specific ECDH operation it performs. It provides a clear, high-level abstraction that conveys the function's intent without delving into implementation details. The developer likely intended to communicate the function's role within a cryptographic protocol, ensuring clarity and context for future maintenance and integration.
The provided function name is appropriate because it encapsulates the function's primary purpose of performing a cryptographic operation related to Elliptic Curve Diffie-Hellman (ECDH). The function processes input parameters to derive a shared secret key, which is a core aspect of ECDH. It involves memory allocation, data transformation, and cleanup, aligning with typical ECDH operations. The function's control flow, including safety checks and buffer operations, supports the secure handling of cryptographic data, further justifying the name. A hypothetical, less appropriate name might initially seem reasonable if it focuses on a specific aspect, like memory allocation or data transformation, but would be misleading. Such a name could be too narrow, failing to capture the cryptographic context, or too broad, omitting the specific ECDH operation. This could confuse future readers or maintainers by obscuring the function's true intent and scope, leading to potential misuse or misinterpretation. The original developer-assigned name better aligns with the function’s behavior by accurately reflecting its cryptographic purpose and the specific ECDH operation it performs. It provides a clear, high-level abstraction that conveys the function's intent without delving into implementation details. The developer likely intended to communicate the function's role within a cryptographic protocol, ensuring clarity and context for future maintenance and integration.
Reasoning: The function appears to be performing a series of operations that involve retrieving data, processing it, and then cleaning up. The use of functions like `FUN_00088a24`, `FUN_0003722c`, `FUN_00077904`, `FUN_00073928`, `FUN_00077128`, `FUN_0003756c`, and `FUN_00037464` suggests a workflow that involves data retrieval, transformation, and storage. The function likely deals with some form of data manipulation or transformation, possibly involving encryption or encoding, given the bitwise operations and the handling of data in chunks. Counterfactual Justification: Naming the function `DataTransformer` would be misleading because it does not capture the specific nature of the operations, such as the potential encoding or encryption aspect. Similarly, `DataProcessor` is too generic and does not convey the specific sequence of operations or the context in which the data is being handled. `ResourceHandler` might suggest a broader scope of resource management, which is not the primary focus of this function. Function Name: `DataEncoder`
Reasoning: The function appears to be performing a series of operations that involve retrieving data, processing it, and then cleaning up. The use of functions like `FUN_00088a24`, `FUN_0003722c`, `FUN_00077904`, `FUN_00073928`, `FUN_00077128`, `FUN_0003756c`, and `FUN_00037464` suggests a workflow that involves data retrieval, transformation, and storage. The function likely deals with some form of data manipulation or transformation, possibly involving encryption or encoding, given the bitwise operations and the handling of data in chunks. Counterfactual Justification: Naming the function `DataTransformer` would be misleading because it does not capture the specific nature of the operations, such as the potential encoding or encryption aspect. Similarly, `DataProcessor` is too generic and does not convey the specific sequence of operations or the context in which the data is being handled. `ResourceHandler` might suggest a broader scope of resource management, which is not the primary focus of this function. Function Name: `DataEncoder`
The function appears to be performing a series of operations that involve retrieving data, processing it, and then cleaning up. The use of functions like `FUN_00088a24`, `FUN_0003722c`, `FUN_00077904`, `FUN_00073928`, `FUN_00077128`, `FUN_0003756c`, and `FUN_00037464` suggests a workflow that involves data retrieval, transformation, and storage. The function likely deals with some form of data manipulation or transformation, possibly involving encryption or encoding, given the bitwise operations and the handling of data in chunks.
Naming the function `DataTransformer` would be misleading because it does not capture the specific nature of the operations, such as the potential encoding or encryption aspect. Similarly, `DataProcessor` is too generic and does not convey the specific sequence of operations or the context in which the data is being handled. `ResourceHandler` might suggest a broader scope of resource management, which is not the primary focus of this function.
`DataEncoder`
4086_libMagickCore-7.Q16HDRI.so.8.0_and_libMagickCore-7.Q16HDRI.so.8.0_strip.c
IsPCD
FUN_00369380
MagickBooleanType IsPCD(uchar *magick,size_t length) { int iVar1; MagickBooleanType MVar2; size_t length_local; uchar *magick_local; if (DAT_003693ec < length) { iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4); if (iVar1 == 0) { MVar2 = MagickTrue; } else { MVar2 = MagickFalse; } } else { MVar2 = MagickFalse; } return MVar2; }
undefined4 FUN_00369380(int param_1,uint param_2) { int iVar1; undefined4 uVar2; if (DAT_003693ec < param_2) { iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4); if (iVar1 == 0) { uVar2 = 1; } else { uVar2 = 0; } } else { uVar2 = 0; } return uVar2; }
stmdb sp!,{r11,lr} add r11,sp,#0x4 sub sp,sp,#0x8 str r0,[r11,#-0x8] str r1,[r11,#-0xc] ldr r3,[r11,#-0xc] ldr r2,[0x3693ec] cmp r3,r2 bhi 0x003693ac mov r3,#0x0 b 0x003693e0 ldr r3,[r11,#-0x8] add r3,r3,#0x800 mov r2,#0x4 ldr r1,[0x3693f0] add r1,pc,r1 cpy r0,r3 bl 0x00030eec cpy r3,r0 cmp r3,#0x0 bne 0x003693dc mov r3,#0x1 b 0x003693e0 mov r3,#0x0 cpy r0,r3 sub sp,r11,#0x4 ldmia sp!,{r11,pc}
null
null
null
null
[('tmp_176', u'BRANCH_-1205234710'), (u'CALL_-1205234618', u'INDIRECT_-1205234463'), (u'PTRADD_-1205234605', u'CAST_-1205234445'), (u'INT_ADD_-1205234619', u'CAST_-1205234454'), (u'CALL_-1205234618', u'INT_EQUAL_-1205234593'), ('const-0', u'RETURN_-1205234616'), (u'INT_EQUAL_-1205234593', u'CBRANCH_-1205234589'), (u'COPY_-1205234560', u'MULTIEQUAL_-1205234473'), (u'INDIRECT_-1205234460', u'MULTIEQUAL_-1205234431'), ('tmp_468', u'PTRADD_-1205234605'), ('const-0', u'INT_EQUAL_-1205234593'), ('const-0', u'COPY_-1205234722'), (u'COPY_-1205234722', u'MULTIEQUAL_-1205234473'), (u'MULTIEQUAL_-1205234434', u'COPY_-1205234486'), ('const-1', u'PTRADD_-1205234605'), ('tmp_756', u'MULTIEQUAL_-1205234431'), ('const-2048', u'PTRADD_-1205234605'), (u'COPY_-1205234656', u'RETURN_-1205234616'), ('tmp_469', u'INT_LESS_-1205234721'), (u'CAST_-1205234454', u'CALL_-1205234618'), (u'MULTIEQUAL_-1205234431', u'COPY_-1205234483'), ('const-0', u'COPY_-1205234560'), (u'CALL_-1205234618', u'INDIRECT_-1205234460'), ('tmp_430', u'BRANCH_-1205234569'), ('tmp_755', u'MULTIEQUAL_-1205234434'), (u'INDIRECT_-1205234463', u'MULTIEQUAL_-1205234434'), (u'MULTIEQUAL_-1205234473', u'COPY_-1205234656'), (u'COPY_-1205234581', u'MULTIEQUAL_-1205234473'), ('tmp_755', u'INT_LESS_-1205234721'), ('const-3576772', u'INT_ADD_-1205234619'), ('tmp_395', u'CBRANCH_-1205234589'), (u'CAST_-1205234445', u'CALL_-1205234618'), ('const-4', u'CALL_-1205234618'), (u'INT_LESS_-1205234721', u'CBRANCH_-1205234730'), ('const-1', u'COPY_-1205234581'), ('tmp_141', u'CBRANCH_-1205234730'), ('tmp_756', u'INT_ADD_-1205234619')]
[('tmp_176', u'BRANCH_-1205234710'), (u'CALL_-1205234618', u'INT_EQUAL_-1205234593'), ('tmp_761', u'MULTIEQUAL_-1205234433'), ('const-0', u'RETURN_-1205234616'), (u'MULTIEQUAL_-1205234430', u'COPY_-1205234482'), (u'INT_EQUAL_-1205234593', u'CBRANCH_-1205234589'), ('const-2048', u'INT_ADD_-1205234651'), (u'COPY_-1205234560', u'MULTIEQUAL_-1205234472'), ('const-3576772', u'INT_ADD_-1205234619'), (u'INDIRECT_-1205234459', u'MULTIEQUAL_-1205234430'), ('const-0', u'COPY_-1205234722'), (u'INDIRECT_-1205234462', u'MULTIEQUAL_-1205234433'), (u'MULTIEQUAL_-1205234472', u'COPY_-1205234656'), (u'COPY_-1205234656', u'RETURN_-1205234616'), ('tmp_656', u'INT_LESS_-1205234721'), (u'MULTIEQUAL_-1205234433', u'COPY_-1205234485'), (u'CALL_-1205234618', u'INDIRECT_-1205234459'), ('tmp_761', u'INT_LESS_-1205234721'), ('tmp_655', u'INT_ADD_-1205234651'), (u'COPY_-1205234581', u'MULTIEQUAL_-1205234472'), ('const-0', u'INT_EQUAL_-1205234593'), ('tmp_762', u'INT_ADD_-1205234619'), ('const-0', u'COPY_-1205234560'), (u'INT_ADD_-1205234619', u'CALL_-1205234618'), (u'CALL_-1205234618', u'INDIRECT_-1205234462'), (u'COPY_-1205234722', u'MULTIEQUAL_-1205234472'), ('tmp_430', u'BRANCH_-1205234569'), ('const-4', u'CALL_-1205234618'), ('tmp_395', u'CBRANCH_-1205234589'), ('tmp_762', u'MULTIEQUAL_-1205234430'), (u'INT_ADD_-1205234651', u'CALL_-1205234618'), (u'INT_LESS_-1205234721', u'CBRANCH_-1205234730'), ('const-1', u'COPY_-1205234581'), ('tmp_141', u'CBRANCH_-1205234730')]
null
null
00369380
arm
O0
(translation_unit "undefined4 FUN_00369380(int param_1,uint param_2)\n\n{\n int iVar1;\n undefined4 uVar2;\n \n if (DAT_003693ec < param_2) {\n iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4);\n if (iVar1 == 0) {\n uVar2 = 1;\n }\n else {\n uVar2 = 0;\n }\n }\n else {\n uVar2 = 0;\n }\n return uVar2;\n}\n\n" (function_definition "undefined4 FUN_00369380(int param_1,uint param_2)\n\n{\n int iVar1;\n undefined4 uVar2;\n \n if (DAT_003693ec < param_2) {\n iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4);\n if (iVar1 == 0) {\n uVar2 = 1;\n }\n else {\n uVar2 = 0;\n }\n }\n else {\n uVar2 = 0;\n }\n return uVar2;\n}" type_identifier (function_declarator "FUN_00369380(int param_1,uint param_2)" identifier (parameter_list "(int param_1,uint param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) ))) (compound_statement "{\n int iVar1;\n undefined4 uVar2;\n \n if (DAT_003693ec < param_2) {\n iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4);\n if (iVar1 == 0) {\n uVar2 = 1;\n }\n else {\n uVar2 = 0;\n }\n }\n else {\n uVar2 = 0;\n }\n return uVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (if_statement "if (DAT_003693ec < param_2) {\n iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4);\n if (iVar1 == 0) {\n uVar2 = 1;\n }\n else {\n uVar2 = 0;\n }\n }\n else {\n uVar2 = 0;\n }" if (parenthesized_expression "(DAT_003693ec < param_2)" ( (binary_expression "DAT_003693ec < param_2" identifier < identifier) )) (compound_statement "{\n iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4);\n if (iVar1 == 0) {\n uVar2 = 1;\n }\n else {\n uVar2 = 0;\n }\n }" { (expression_statement "iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4);" (assignment_expression "iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4)" identifier = (call_expression "LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4)" identifier (argument_list "(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4)" ( (binary_expression "param_1 + 0x800" identifier + number_literal) , (binary_expression "DAT_003693f0 + 0x3693c4" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n uVar2 = 1;\n }\n else {\n uVar2 = 0;\n }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n uVar2 = 1;\n }" { (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) }) (else_clause "else {\n uVar2 = 0;\n }" else (compound_statement "{\n uVar2 = 0;\n }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) }) (else_clause "else {\n uVar2 = 0;\n }" else (compound_statement "{\n uVar2 = 0;\n }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) }))) (return_statement "return uVar2;" return identifier ;) })))
type_1 function_1(type_2 *var_4,size_t var_2) { int var_6; type_1 MVar2; size_t length_local; type_2 *magick_local; if (var_1 < var_2) { var_6 = var_3((char *)(var_4 + 0x800),(char *)(var_5 + 0x3693c4),4); if (var_6 == 0) { MVar2 = MagickTrue; } else { MVar2 = MagickFalse; } } else { MVar2 = MagickFalse; } return MVar2; }
(translation_unit "MagickBooleanType IsPCD(uchar *magick,size_t length)\n\n{\n int iVar1;\n MagickBooleanType MVar2;\n size_t length_local;\n uchar *magick_local;\n \n if (DAT_003693ec < length) {\n iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4);\n if (iVar1 == 0) {\n MVar2 = MagickTrue;\n }\n else {\n MVar2 = MagickFalse;\n }\n }\n else {\n MVar2 = MagickFalse;\n }\n return MVar2;\n}\n\n" (function_definition "MagickBooleanType IsPCD(uchar *magick,size_t length)\n\n{\n int iVar1;\n MagickBooleanType MVar2;\n size_t length_local;\n uchar *magick_local;\n \n if (DAT_003693ec < length) {\n iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4);\n if (iVar1 == 0) {\n MVar2 = MagickTrue;\n }\n else {\n MVar2 = MagickFalse;\n }\n }\n else {\n MVar2 = MagickFalse;\n }\n return MVar2;\n}" type_identifier (function_declarator "IsPCD(uchar *magick,size_t length)" identifier (parameter_list "(uchar *magick,size_t length)" ( (parameter_declaration "uchar *magick" type_identifier (pointer_declarator "*magick" * identifier)) , (parameter_declaration "size_t length" primitive_type identifier) ))) (compound_statement "{\n int iVar1;\n MagickBooleanType MVar2;\n size_t length_local;\n uchar *magick_local;\n \n if (DAT_003693ec < length) {\n iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4);\n if (iVar1 == 0) {\n MVar2 = MagickTrue;\n }\n else {\n MVar2 = MagickFalse;\n }\n }\n else {\n MVar2 = MagickFalse;\n }\n return MVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "MagickBooleanType MVar2;" type_identifier identifier ;) (declaration "size_t length_local;" primitive_type identifier ;) (declaration "uchar *magick_local;" type_identifier (pointer_declarator "*magick_local" * identifier) ;) (if_statement "if (DAT_003693ec < length) {\n iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4);\n if (iVar1 == 0) {\n MVar2 = MagickTrue;\n }\n else {\n MVar2 = MagickFalse;\n }\n }\n else {\n MVar2 = MagickFalse;\n }" if (parenthesized_expression "(DAT_003693ec < length)" ( (binary_expression "DAT_003693ec < length" identifier < identifier) )) (compound_statement "{\n iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4);\n if (iVar1 == 0) {\n MVar2 = MagickTrue;\n }\n else {\n MVar2 = MagickFalse;\n }\n }" { (expression_statement "iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4);" (assignment_expression "iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4)" identifier = (call_expression "LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4)" identifier (argument_list "((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4)" ( (cast_expression "(char *)(magick + 0x800)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(magick + 0x800)" ( (binary_expression "magick + 0x800" identifier + number_literal) ))) , (cast_expression "(char *)(DAT_003693f0 + 0x3693c4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_003693f0 + 0x3693c4)" ( (binary_expression "DAT_003693f0 + 0x3693c4" identifier + number_literal) ))) , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n MVar2 = MagickTrue;\n }\n else {\n MVar2 = MagickFalse;\n }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n MVar2 = MagickTrue;\n }" { (expression_statement "MVar2 = MagickTrue;" (assignment_expression "MVar2 = MagickTrue" identifier = identifier) ;) }) (else_clause "else {\n MVar2 = MagickFalse;\n }" else (compound_statement "{\n MVar2 = MagickFalse;\n }" { (expression_statement "MVar2 = MagickFalse;" (assignment_expression "MVar2 = MagickFalse" identifier = identifier) ;) }))) }) (else_clause "else {\n MVar2 = MagickFalse;\n }" else (compound_statement "{\n MVar2 = MagickFalse;\n }" { (expression_statement "MVar2 = MagickFalse;" (assignment_expression "MVar2 = MagickFalse" identifier = identifier) ;) }))) (return_statement "return MVar2;" return identifier ;) })))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier)))))) (return_statement (identifier)))))
MagickBooleanType MASKED(uchar *magick,size_t length) { int iVar1; MagickBooleanType MVar2; size_t length_local; uchar *magick_local; if (DAT_003693ec < length) { iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4); if (iVar1 == 0) { MVar2 = MagickTrue; } else { MVar2 = MagickFalse; } } else { MVar2 = MagickFalse; } return MVar2; }
undefined4 MASKED(int param_1,uint param_2) { int iVar1; undefined4 uVar2; if (DAT_003693ec < param_2) { iVar1 = LocaleNCompare(param_1 + 0x800,DAT_003693f0 + 0x3693c4,4); if (iVar1 == 0) { uVar2 = 1; } else { uVar2 = 0; } } else { uVar2 = 0; } return uVar2; }
translation_unit function_definition type_identifier function_declarator compound_statement identifier parameter_list { declaration declaration if_statement return_statement } ( parameter_declaration , parameter_declaration ) primitive_type identifier ; type_identifier identifier ; if parenthesized_expression compound_statement else_clause return identifier ; primitive_type identifier type_identifier identifier ( binary_expression ) { expression_statement if_statement } else compound_statement identifier < identifier assignment_expression ; if parenthesized_expression compound_statement else_clause { expression_statement } identifier = call_expression ( binary_expression ) { expression_statement } else compound_statement assignment_expression ; identifier argument_list identifier == number_literal assignment_expression ; { expression_statement } identifier = number_literal ( binary_expression , binary_expression , number_literal ) identifier = number_literal assignment_expression ; identifier + number_literal identifier + number_literal identifier = number_literal
undefined4 FUN_00369380 ( int param_1 , uint param_2 ) { int iVar1 ; undefined4 uVar2 ; if ( DAT_003693ec < param_2 ) { iVar1 = LocaleNCompare ( param_1 + 0x800 , DAT_003693f0 + 0x3693c4 , 4 ) ; if ( iVar1 == 0 ) { uVar2 = 1 ; } else { uVar2 = 0 ; } } else { uVar2 = 0 ; } return uVar2 ; }
1
1
IsPCD
MagickBooleanType IsPCD(uchar *magick,size_t length) { int iVar1; MagickBooleanType MVar2; size_t length_local; uchar *magick_local; if (DAT_003693ec < length) { iVar1 = LocaleNCompare((char *)(magick + 0x800),(char *)(DAT_003693f0 + 0x3693c4),4); if (iVar1 == 0) { MVar2 = MagickTrue; } else { MVar2 = MagickFalse; } } else { MVar2 = MagickFalse; } return MVar2; }
19,722
The provided function name is appropriate because it succinctly captures the function's primary purpose: determining a specific condition based on input parameters. The function checks if a given parameter is within a certain range and then performs a locale-aware string comparison. If the comparison is successful, it returns a positive result, indicating the condition is met. This aligns with the function's intent to verify a condition, likely related to a "PCD" (Product Configuration Data) or similar concept, based on the inputs. The name reflects the function's role in validating or confirming a specific state or configuration. A hypothetical, less appropriate name might seem reasonable if it focuses narrowly on one aspect, such as the string comparison or the range check, without capturing the overall intent. Such a name could mislead by suggesting the function's sole purpose is to compare strings or check ranges, ignoring the broader context of validating a condition. This could confuse future readers or maintainers by obscuring the function's true role in the larger system, leading to misunderstandings about its usage and importance. The original developer-assigned name better aligns with the function’s behavior by encapsulating its purpose in a concise manner. It suggests a higher-level abstraction, indicating the function's role in a broader context, likely related to configuration validation. This name provides clarity and context, helping maintainers understand the function's intent without delving into implementation details. The developer likely intended to convey the function's role in verifying a specific condition, making it easier to integrate and reason about within the larger codebase.
The provided function name is appropriate because it succinctly captures the function's primary purpose: determining a specific condition based on input parameters. The function checks if a given parameter is within a certain range and then performs a locale-aware string comparison. If the comparison is successful, it returns a positive result, indicating the condition is met. This aligns with the function's intent to verify a condition, likely related to a "PCD" (Product Configuration Data) or similar concept, based on the inputs. The name reflects the function's role in validating or confirming a specific state or configuration. A hypothetical, less appropriate name might seem reasonable if it focuses narrowly on one aspect, such as the string comparison or the range check, without capturing the overall intent. Such a name could mislead by suggesting the function's sole purpose is to compare strings or check ranges, ignoring the broader context of validating a condition. This could confuse future readers or maintainers by obscuring the function's true role in the larger system, leading to misunderstandings about its usage and importance. The original developer-assigned name better aligns with the function’s behavior by encapsulating its purpose in a concise manner. It suggests a higher-level abstraction, indicating the function's role in a broader context, likely related to configuration validation. This name provides clarity and context, helping maintainers understand the function's intent without delving into implementation details. The developer likely intended to convey the function's role in verifying a specific condition, making it easier to integrate and reason about within the larger codebase.
Reasoning: The function checks if a given value (`param_2`) is less than a predefined constant (`DAT_003693ec`). If true, it performs a locale-aware string comparison between a substring of `param_1` and a specific memory location. The function returns `1` if the strings match, otherwise `0`. This suggests the function is verifying a condition based on a threshold and a string match. Counterfactual Justification: Naming the function `CheckThresholdAndMatch` would be misleading as it implies both operations (threshold check and match) are equally significant, whereas the string comparison only occurs if the threshold condition is met. Similarly, `CompareStringsIfBelowThreshold` suggests the primary operation is string comparison, which is not the case since it only happens conditionally. Function Name: `VerifyConditionWithOptionalStringMatch`
Reasoning: The function checks if a given value (`param_2`) is less than a predefined constant (`DAT_003693ec`). If true, it performs a locale-aware string comparison between a substring of `param_1` and a specific memory location. The function returns `1` if the strings match, otherwise `0`. This suggests the function is verifying a condition based on a threshold and a string match. Counterfactual Justification: Naming the function `CheckThresholdAndMatch` would be misleading as it implies both operations (threshold check and match) are equally significant, whereas the string comparison only occurs if the threshold condition is met. Similarly, `CompareStringsIfBelowThreshold` suggests the primary operation is string comparison, which is not the case since it only happens conditionally. Function Name: `VerifyConditionWithOptionalStringMatch`
The function checks if a given value (`param_2`) is less than a predefined constant (`DAT_003693ec`). If true, it performs a locale-aware string comparison between a substring of `param_1` and a specific memory location. The function returns `1` if the strings match, otherwise `0`. This suggests the function is verifying a condition based on a threshold and a string match.
Naming the function `CheckThresholdAndMatch` would be misleading as it implies both operations (threshold check and match) are equally significant, whereas the string comparison only occurs if the threshold condition is met. Similarly, `CompareStringsIfBelowThreshold` suggests the primary operation is string comparison, which is not the case since it only happens conditionally.
`VerifyConditionWithOptionalStringMatch`
3616_libMagickCore-7.Q16HDRI.so.8.0_and_libMagickCore-7.Q16HDRI.so.8.0_strip.c
VectorSubtract
FUN_002efe84
void VectorSubtract(DDSVector4 left,DDSVector4 right,DDSVector4 *destination) { DDSVector4 left_local; /* WARNING: Subroutine does not return */ __aeabi_fsub(destination,left.x); }
undefined4 FUN_002efe84(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4, undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8, undefined4 *param_9) { undefined4 uVar1; uVar1 = FUN_00427474(param_1,param_5); *param_9 = uVar1; uVar1 = FUN_00427474(param_2,param_6); param_9[1] = uVar1; uVar1 = FUN_00427474(param_3,param_7); param_9[2] = uVar1; uVar1 = FUN_00427474(param_4,param_8); param_9[3] = uVar1; return uVar1; }
stmdb sp!,{r11,lr} add r11,sp,#0x4 sub sp,sp,#0x10 sub r12,r11,#0x14 stmia r12,{r0,r1,r2,r3} ldr r3,[r11,#-0x14] ldr r2,[r11,#0x4] cpy r1,r2 cpy r0,r3 bl 0x00427474 cpy r3,r0 cpy r2,r3 ldr r3,[r11,#0x14] str r2,[r3,#0x0] ldr r3,[r11,#-0x10] ldr r2,[r11,#0x8] cpy r1,r2 cpy r0,r3 bl 0x00427474 cpy r3,r0 cpy r2,r3 ldr r3,[r11,#0x14] str r2,[r3,#0x4] ldr r3,[r11,#-0xc] ldr r2,[r11,#0xc] cpy r1,r2 cpy r0,r3 bl 0x00427474 cpy r3,r0 cpy r2,r3 ldr r3,[r11,#0x14] str r2,[r3,#0x8] ldr r3,[r11,#-0x8] ldr r2,[r11,#0x10] cpy r1,r2 cpy r0,r3 bl 0x00427474 cpy r3,r0 cpy r2,r3 ldr r3,[r11,#0x14] str r2,[r3,#0xc] cpy r0,r0 sub sp,r11,#0x4 ldmia sp!,{r11,pc}
null
null
null
null
[('tmp_176', u'SUBPIECE_-1204682986'), ('const-0', u'SUBPIECE_-1204682986'), ('tmp_178', u'CALL_-1204683031'), ('const-1', u'RETURN_-1204683026'), (u'SUBPIECE_-1204682986', u'CALL_-1204683031')]
[('tmp_892', u'PTRADD_-1204682722'), ('tmp_614', u'CALL_-1204682881'), ('const-4', u'PTRADD_-1204682685'), ('tmp_891', u'CALL_-1204682881'), (u'PTRADD_-1204682648', u'STORE_-1204682863'), ('const-417', u'STORE_-1204682963'), (u'COPY_-1204682860', u'RETURN_-1204682820'), ('const-1', u'PTRADD_-1204682722'), ('tmp_890', u'CALL_-1204682931'), ('tmp_611', u'CALL_-1204683031'), (u'CALL_-1204682931', u'STORE_-1204682913'), (u'PTRADD_-1204682722', u'STORE_-1204682963'), ('const-2', u'PTRADD_-1204682685'), ('const-4', u'PTRADD_-1204682722'), ('tmp_613', u'CALL_-1204682931'), ('tmp_892', u'PTRADD_-1204682648'), (u'CALL_-1204682981', u'STORE_-1204682963'), ('const-3', u'PTRADD_-1204682648'), ('tmp_892', u'STORE_-1204683013'), ('const-417', u'STORE_-1204683013'), ('const-4', u'PTRADD_-1204682648'), (u'CALL_-1204682881', u'COPY_-1204682860'), ('tmp_892', u'PTRADD_-1204682685'), (u'CALL_-1204682881', u'STORE_-1204682863'), ('const-0', u'RETURN_-1204682820'), ('tmp_612', u'CALL_-1204682981'), ('const-417', u'STORE_-1204682863'), ('tmp_888', u'CALL_-1204683031'), ('tmp_889', u'CALL_-1204682981'), ('const-417', u'STORE_-1204682913'), (u'CALL_-1204683031', u'STORE_-1204683013'), (u'PTRADD_-1204682685', u'STORE_-1204682913')]
null
null
002efe84
arm
O0
(translation_unit "undefined4\nFUN_002efe84(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n undefined4 *param_9)\n\n{\n undefined4 uVar1;\n \n uVar1 = FUN_00427474(param_1,param_5);\n *param_9 = uVar1;\n uVar1 = FUN_00427474(param_2,param_6);\n param_9[1] = uVar1;\n uVar1 = FUN_00427474(param_3,param_7);\n param_9[2] = uVar1;\n uVar1 = FUN_00427474(param_4,param_8);\n param_9[3] = uVar1;\n return uVar1;\n}\n\n" (function_definition "undefined4\nFUN_002efe84(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n undefined4 *param_9)\n\n{\n undefined4 uVar1;\n \n uVar1 = FUN_00427474(param_1,param_5);\n *param_9 = uVar1;\n uVar1 = FUN_00427474(param_2,param_6);\n param_9[1] = uVar1;\n uVar1 = FUN_00427474(param_3,param_7);\n param_9[2] = uVar1;\n uVar1 = FUN_00427474(param_4,param_8);\n param_9[3] = uVar1;\n return uVar1;\n}" type_identifier (function_declarator "FUN_002efe84(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n undefined4 *param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8,\n undefined4 *param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "undefined4 *param_9" type_identifier (pointer_declarator "*param_9" * identifier)) ))) (compound_statement "{\n undefined4 uVar1;\n \n uVar1 = FUN_00427474(param_1,param_5);\n *param_9 = uVar1;\n uVar1 = FUN_00427474(param_2,param_6);\n param_9[1] = uVar1;\n uVar1 = FUN_00427474(param_3,param_7);\n param_9[2] = uVar1;\n uVar1 = FUN_00427474(param_4,param_8);\n param_9[3] = uVar1;\n return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = FUN_00427474(param_1,param_5);" (assignment_expression "uVar1 = FUN_00427474(param_1,param_5)" identifier = (call_expression "FUN_00427474(param_1,param_5)" identifier (argument_list "(param_1,param_5)" ( identifier , identifier )))) ;) (expression_statement "*param_9 = uVar1;" (assignment_expression "*param_9 = uVar1" (pointer_expression "*param_9" * identifier) = identifier) ;) (expression_statement "uVar1 = FUN_00427474(param_2,param_6);" (assignment_expression "uVar1 = FUN_00427474(param_2,param_6)" identifier = (call_expression "FUN_00427474(param_2,param_6)" identifier (argument_list "(param_2,param_6)" ( identifier , identifier )))) ;) (expression_statement "param_9[1] = uVar1;" (assignment_expression "param_9[1] = uVar1" (subscript_expression "param_9[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_00427474(param_3,param_7);" (assignment_expression "uVar1 = FUN_00427474(param_3,param_7)" identifier = (call_expression "FUN_00427474(param_3,param_7)" identifier (argument_list "(param_3,param_7)" ( identifier , identifier )))) ;) (expression_statement "param_9[2] = uVar1;" (assignment_expression "param_9[2] = uVar1" (subscript_expression "param_9[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "uVar1 = FUN_00427474(param_4,param_8);" (assignment_expression "uVar1 = FUN_00427474(param_4,param_8)" identifier = (call_expression "FUN_00427474(param_4,param_8)" identifier (argument_list "(param_4,param_8)" ( identifier , identifier )))) ;) (expression_statement "param_9[3] = uVar1;" (assignment_expression "param_9[3] = uVar1" (subscript_expression "param_9[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return uVar1;" return identifier ;) })))
void function_1(type_1 left,type_1 right,type_1 *destination) { type_1 left_local; /* WARNING: Subroutine does not return */ var_1(destination,left.x); }
(translation_unit "void VectorSubtract(DDSVector4 left,DDSVector4 right,DDSVector4 *destination)\n\n{\n DDSVector4 left_local;\n \n /* WARNING: Subroutine does not return */\n __aeabi_fsub(destination,left.x);\n}\n\n" (function_definition "void VectorSubtract(DDSVector4 left,DDSVector4 right,DDSVector4 *destination)\n\n{\n DDSVector4 left_local;\n \n /* WARNING: Subroutine does not return */\n __aeabi_fsub(destination,left.x);\n}" primitive_type (function_declarator "VectorSubtract(DDSVector4 left,DDSVector4 right,DDSVector4 *destination)" identifier (parameter_list "(DDSVector4 left,DDSVector4 right,DDSVector4 *destination)" ( (parameter_declaration "DDSVector4 left" type_identifier identifier) , (parameter_declaration "DDSVector4 right" type_identifier identifier) , (parameter_declaration "DDSVector4 *destination" type_identifier (pointer_declarator "*destination" * identifier)) ))) (compound_statement "{\n DDSVector4 left_local;\n \n /* WARNING: Subroutine does not return */\n __aeabi_fsub(destination,left.x);\n}" { (declaration "DDSVector4 left_local;" type_identifier identifier ;) comment (expression_statement "__aeabi_fsub(destination,left.x);" (call_expression "__aeabi_fsub(destination,left.x)" identifier (argument_list "(destination,left.x)" ( identifier , (field_expression "left.x" identifier . field_identifier) ))) ;) })))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (comment) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (field_expression argument: (identifier) field: (field_identifier))))))))
void MASKED(DDSVector4 left,DDSVector4 right,DDSVector4 *destination) { DDSVector4 left_local; /* WARNING: Subroutine does not return */ __aeabi_fsub(destination,left.x); }
undefined4 MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4, undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 param_8, undefined4 *param_9) { undefined4 uVar1; uVar1 = FUN_00427474(param_1,param_5); *param_9 = uVar1; uVar1 = FUN_00427474(param_2,param_6); param_9[1] = uVar1; uVar1 = FUN_00427474(param_3,param_7); param_9[2] = uVar1; uVar1 = FUN_00427474(param_4,param_8); param_9[3] = uVar1; return uVar1; }
translation_unit function_definition type_identifier function_declarator compound_statement identifier parameter_list { declaration expression_statement expression_statement expression_statement expression_statement expression_statement expression_statement expression_statement expression_statement return_statement } ( parameter_declaration , parameter_declaration , parameter_declaration , parameter_declaration , parameter_declaration , parameter_declaration , parameter_declaration , parameter_declaration , parameter_declaration ) type_identifier identifier ; assignment_expression ; assignment_expression ; assignment_expression ; assignment_expression ; assignment_expression ; assignment_expression ; assignment_expression ; assignment_expression ; return identifier ; type_identifier identifier type_identifier identifier type_identifier identifier type_identifier identifier type_identifier identifier type_identifier identifier type_identifier identifier type_identifier identifier type_identifier pointer_declarator identifier = call_expression pointer_expression = identifier identifier = call_expression subscript_expression = identifier identifier = call_expression subscript_expression = identifier identifier = call_expression subscript_expression = identifier * identifier identifier argument_list * identifier identifier argument_list identifier [ number_literal ] identifier argument_list identifier [ number_literal ] identifier argument_list identifier [ number_literal ] ( identifier , identifier ) ( identifier , identifier ) ( identifier , identifier ) ( identifier , identifier )
undefined4 FUN_002efe84 ( undefined4 param_1 , undefined4 param_2 , undefined4 param_3 , undefined4 param_4 , undefined4 param_5 , undefined4 param_6 , undefined4 param_7 , undefined4 param_8 , undefined4 * param_9 ) { undefined4 uVar1 ; uVar1 = FUN_00427474 ( param_1 , param_5 ) ; * param_9 = uVar1 ; uVar1 = FUN_00427474 ( param_2 , param_6 ) ; param_9 [ 1 ] = uVar1 ; uVar1 = FUN_00427474 ( param_3 , param_7 ) ; param_9 [ 2 ] = uVar1 ; uVar1 = FUN_00427474 ( param_4 , param_8 ) ; param_9 [ 3 ] = uVar1 ; return uVar1 ; }
1
1
VectorSubtract
void VectorSubtract(DDSVector4 left,DDSVector4 right,DDSVector4 *destination) { DDSVector4 left_local; __aeabi_fsub(destination,left.x); }
21,285
The provided function name is appropriate as it encapsulates the function's primary operation: applying a transformation to multiple inputs and storing the results in an output array. The function takes eight parameters, processes them in pairs using a helper function, and stores the results in a provided array. This behavior aligns with the concept of vector operations, where multiple elements are processed in parallel. The name suggests a systematic transformation, which is consistent with the function's control flow and data handling. A hypothetical, less appropriate name might initially seem reasonable if it focuses on a single aspect of the function, such as the helper function's role or the data types involved. However, such a name could be misleading by implying a different primary operation or scope, potentially confusing future readers about the function's overall purpose. It might also be too specific, suggesting a narrower use case than intended, or too broad, failing to convey the structured, parallel nature of the operation. The original developer-assigned name better aligns with the function’s behavior by emphasizing the parallel processing of multiple inputs and the structured storage of results, which is a common pattern in vector operations. This name likely reflects the developer's intent to convey the function's role within a broader context of data manipulation or transformation, maintaining an appropriate level of abstraction that aids in understanding and maintaining the code.
The provided function name is appropriate as it encapsulates the function's primary operation: applying a transformation to multiple inputs and storing the results in an output array. The function takes eight parameters, processes them in pairs using a helper function, and stores the results in a provided array. This behavior aligns with the concept of vector operations, where multiple elements are processed in parallel. The name suggests a systematic transformation, which is consistent with the function's control flow and data handling. A hypothetical, less appropriate name might initially seem reasonable if it focuses on a single aspect of the function, such as the helper function's role or the data types involved. However, such a name could be misleading by implying a different primary operation or scope, potentially confusing future readers about the function's overall purpose. It might also be too specific, suggesting a narrower use case than intended, or too broad, failing to convey the structured, parallel nature of the operation. The original developer-assigned name better aligns with the function’s behavior by emphasizing the parallel processing of multiple inputs and the structured storage of results, which is a common pattern in vector operations. This name likely reflects the developer's intent to convey the function's role within a broader context of data manipulation or transformation, maintaining an appropriate level of abstraction that aids in understanding and maintaining the code.
Reasoning: The function appears to perform a series of transformations on its input parameters using another function, `FUN_00427474`, and stores the results in an array. The transformation is applied to pairs of parameters, suggesting a pattern or mapping operation. The function name should reflect this repetitive transformation and storage process. Counterfactual Justification: Naming the function something like `TransformAndStore` would be misleading because it doesn't capture the specific pattern of applying the transformation to pairs of parameters. Similarly, `ProcessInputs` is too generic and doesn't convey the structured nature of the operation. `MapPairsToResults` accurately describes the function's behavior of mapping pairs of inputs to results using a specific transformation function. Function Name: MapPairsToResults
Reasoning: The function appears to perform a series of transformations on its input parameters using another function, `FUN_00427474`, and stores the results in an array. The transformation is applied to pairs of parameters, suggesting a pattern or mapping operation. The function name should reflect this repetitive transformation and storage process. Counterfactual Justification: Naming the function something like `TransformAndStore` would be misleading because it doesn't capture the specific pattern of applying the transformation to pairs of parameters. Similarly, `ProcessInputs` is too generic and doesn't convey the structured nature of the operation. `MapPairsToResults` accurately describes the function's behavior of mapping pairs of inputs to results using a specific transformation function. Function Name: MapPairsToResults
The function appears to perform a series of transformations on its input parameters using another function, `FUN_00427474`, and stores the results in an array. The transformation is applied to pairs of parameters, suggesting a pattern or mapping operation. The function name should reflect this repetitive transformation and storage process.
Naming the function something like `TransformAndStore` would be misleading because it doesn't capture the specific pattern of applying the transformation to pairs of parameters. Similarly, `ProcessInputs` is too generic and doesn't convey the structured nature of the operation. `MapPairsToResults` accurately describes the function's behavior of mapping pairs of inputs to results using a specific transformation function.
MapPairsToResults
2015_sqlite3_and_sqlite3_strip.c
sqlite3TableAffinity
FUN_000d6390
void sqlite3TableAffinity(Vdbe *v,Table *pTab,int iReg) { sqlite3 *db_00; int iVar1; u64 in_stack_ffffffc8; int iReg_local; Table *pTab_local; Vdbe *v_local; int i; char *zColAff; sqlite3 *db; zColAff = pTab->zColAff; if (zColAff == (char *)0x0) { db_00 = sqlite3VdbeDb(v); zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8); if (zColAff == (char *)0x0) { sqlite3OomFault(db_00); return; } for (i = 0; i < pTab->nCol; i = i + 1) { zColAff[i] = pTab->aCol[i].affinity; } do { iVar1 = i + -1; zColAff[i] = '\0'; if (iVar1 < 0) break; i = iVar1; } while (zColAff[iVar1] == 'A'); pTab->zColAff = zColAff; } /* WARNING: Subroutine does not return */ strlen(zColAff); }
void FUN_000d6390(undefined4 param_1,int param_2,int param_3) { size_t sVar1; int iVar2; uint uVar3; undefined8 uVar4; int local_14; char *local_10; local_10 = *(char **)(param_2 + 0x14); if (local_10 == (char *)0x0) { uVar4 = FUN_00096450(param_1); iVar2 = *(short *)(param_2 + 0x2a) + 1; local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f); if (local_10 == (char *)0x0) { FUN_00052d90((int)uVar4); return; } for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) { local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd); } do { iVar2 = local_14 + -1; local_10[local_14] = '\0'; if (iVar2 < 0) break; local_14 = iVar2; } while (local_10[iVar2] == 'A'); *(char **)(param_2 + 0x14) = local_10; } sVar1 = strlen(local_10); uVar3 = sVar1 & 0x3fffffff; if (uVar3 != 0) { if (param_3 == 0) { FUN_0008f898(param_1,0xffffffff,local_10,uVar3); } else { FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3); } } return; }
stmdb sp!,{r11,lr} add r11,sp,#0x4 sub sp,sp,#0x30 str r0,[r11,#-0x18] str r1,[r11,#-0x1c] str r2,[r11,#-0x20] ldr r3,[r11,#-0x1c] ldr r3,[r3,#0x14] str r3,[r11,#-0xc] ldr r3,[r11,#-0xc] cmp r3,#0x0 bne 0x000d64ac ldr r0,[r11,#-0x18] bl 0x00096450 str r0,[r11,#-0x8] ldr r3,[r11,#-0x1c] ldrsh r3,[r3,#0x2a] add r3,r3,#0x1 cpy r2,r3 mov r3,r2, asr #0x1f mov r0,#0x0 bl 0x000529b0 str r0,[r11,#-0xc] ldr r3,[r11,#-0xc] cmp r3,#0x0 bne 0x000d6404 ldr r0,[r11,#-0x8] bl 0x00052d90 b 0x000d651c mov r3,#0x0 str r3,[r11,#-0x10] b 0x000d6444 ldr r3,[r11,#-0x1c] ldr r2,[r3,#0x4] ldr r3,[r11,#-0x10] mov r3,r3, lsl #0x4 add r2,r2,r3 ldr r3,[r11,#-0x10] ldr r1,[r11,#-0xc] add r3,r1,r3 ldrb r2,[r2,#0xd] strb r2,[r3,#0x0] ldr r3,[r11,#-0x10] add r3,r3,#0x1 str r3,[r11,#-0x10] ldr r3,[r11,#-0x1c] ldrsh r3,[r3,#0x2a] cpy r2,r3 ldr r3,[r11,#-0x10] cmp r3,r2 blt 0x000d6410 ldr r3,[r11,#-0x10] sub r2,r3,#0x1 str r2,[r11,#-0x10] cpy r2,r3 ldr r3,[r11,#-0xc] add r3,r3,r2 mov r2,#0x0 strb r2,[r3,#0x0] ldr r3,[r11,#-0x10] cmp r3,#0x0 blt 0x000d64a0 ldr r3,[r11,#-0x10] ldr r2,[r11,#-0xc] add r3,r2,r3 ldrb r3,[r3,#0x0] cmp r3,#0x41 beq 0x000d645c ldr r3,[r11,#-0x1c] ldr r2,[r11,#-0xc] str r2,[r3,#0x14] ldr r0,[r11,#-0xc] bl 0x00015540 cpy r3,r0 bic r3,r3,#0xc0000000 str r3,[r11,#-0x10] ldr r3,[r11,#-0x10] cmp r3,#0x0 beq 0x000d651c ldr r3,[r11,#-0x20] cmp r3,#0x0 beq 0x000d6508 ldr r3,[r11,#-0x10] str r3,[sp,#0x8] ldr r3,[r11,#-0xc] str r3,[sp,#0x4] mov r3,#0x0 str r3,[sp,#0x0] ldr r3,[r11,#-0x10] ldr r2,[r11,#-0x20] mov r1,#0x5b ldr r0,[r11,#-0x18] bl 0x0008e70c b 0x000d651c ldr r3,[r11,#-0x10] ldr r2,[r11,#-0xc] mvn r1,#0x0 ldr r0,[r11,#-0x18] bl 0x0008f898 sub sp,r11,#0x4 ldmia sp!,{r11,pc}
null
null
null
null
[(u'PTRADD_-1206753578', u'PTRSUB_-1206753576'), (u'MULTIEQUAL_-1206753589', u'INT_ADD_-1206753879'), (u'PTRSUB_-1206753712', u'LOAD_-1206754347'), ('const-42', u'PTRSUB_-1206753551'), (u'COPY_-1206754122', u'MULTIEQUAL_-1206753589'), ('const-4294967295', u'INT_ADD_-1206753983'), (u'INT_ADD_-1206753983', u'INT_SLESS_-1206753916'), (u'INT_ADD_-1206753983', u'COPY_-1206753529'), (u'CAST_-1206753649', u'MULTIEQUAL_-1206753480'), ('const-1', u'PTRADD_-1206753833'), ('const-417', u'STORE_-1206753915'), ('tmp_982', u'PTRSUB_-1206753454'), ('tmp_370', u'CBRANCH_-1206754180'), (u'PTRSUB_-1206753551', u'LOAD_-1206754052'), ('tmp_982', u'PTRSUB_-1206753551'), ('const-4', u'PTRSUB_-1206753607'), (u'PTRSUB_-1206753576', u'LOAD_-1206753924'), (u'CAST_-1206753649', u'PTRADD_-1206753910'), ('tmp_486', u'BRANCH_-1206754114'), (u'CAST_-1206753649', u'STORE_-1206753843'), (u'MULTIEQUAL_-1206753589', u'PTRADD_-1206753869'), ('const-0', u'CALL_-1206754216'), (u'LOAD_-1206753924', u'STORE_-1206753915'), ('const-13', u'PTRSUB_-1206753576'), ('tmp_982', u'PTRSUB_-1206753712'), ('tmp_981', u'CALL_-1206754292'), (u'CAST_-1206753649', u'INT_EQUAL_-1206754184'), ('const-417', u'STORE_-1206753843'), (u'PTRSUB_-1206753607', u'LOAD_-1206753982'), (u'INDIRECT_-1206753742', u'CALL_-1206754216'), ('tmp_178', u'CBRANCH_-1206754306'), (u'CAST_-1206753649', u'PTRADD_-1206753833'), (u'COPY_-1206753598', u'MULTIEQUAL_-1206753567'), (u'MULTIEQUAL_-1206753589', u'COPY_-1206753598'), (u'LOAD_-1206753888', u'INT_EQUAL_-1206753862'), ('tmp_982', u'PTRSUB_-1206753607'), (u'INT_ADD_-1206753879', u'MULTIEQUAL_-1206753589'), ('const-417', u'LOAD_-1206753982'), ('tmp_537', u'CBRANCH_-1206754017'), ('const-1', u'RETURN_-1206753822'), ('const-417', u'LOAD_-1206754347'), (u'CAST_-1206753649', u'PTRADD_-1206753869'), (u'INT_EQUAL_-1206754184', u'CBRANCH_-1206754180'), (u'MULTIEQUAL_-1206753589', u'PTRADD_-1206753578'), ('const-1', u'INT_ADD_-1206753879'), ('const-0', u'INT_SLESS_-1206753916'), ('const-417', u'LOAD_-1206753888'), ('const-16', u'PTRADD_-1206753578'), ('const-1', u'PTRADD_-1206753910'), (u'PTRADD_-1206753910', u'STORE_-1206753947'), ('tmp_790', u'CBRANCH_-1206753859'), (u'LOAD_-1206754347', u'MULTIEQUAL_-1206753480'), (u'LOAD_-1206754347', u'INT_EQUAL_-1206754310'), (u'MULTIEQUAL_-1206753480', u'CALL_-1206753827'), ('const-0', u'STORE_-1206753947'), (u'MULTIEQUAL_-1206753589', u'INT_SLESS_-1206754010'), ('const-417', u'STORE_-1206753947'), ('const-0', u'INT_EQUAL_-1206754310'), (u'INT_SLESS_-1206753916', u'CBRANCH_-1206753913'), ('const-0', u'INT_EQUAL_-1206754184'), (u'MULTIEQUAL_-1206753567', u'INT_ADD_-1206753983'), (u'INT_SLESS_-1206754010', u'CBRANCH_-1206754017'), (u'INT_EQUAL_-1206753862', u'CBRANCH_-1206753859'), ('const-20', u'PTRSUB_-1206753454'), (u'MULTIEQUAL_-1206753567', u'PTRADD_-1206753910'), (u'PTRADD_-1206753833', u'LOAD_-1206753888'), (u'INT_EQUAL_-1206754310', u'CBRANCH_-1206754306'), (u'LOAD_-1206753982', u'PTRADD_-1206753578'), (u'INT_SEXT_-1206754035', u'INT_SLESS_-1206754010'), ('const-0', u'RETURN_-1206753847'), ('const-0', u'COPY_-1206754122'), ('const-417', u'LOAD_-1206754052'), (u'COPY_-1206753529', u'MULTIEQUAL_-1206753567'), ('const-417', u'LOAD_-1206753924'), ('const-65', u'INT_EQUAL_-1206753862'), (u'INT_ADD_-1206753983', u'PTRADD_-1206753833'), (u'CALL_-1206754292', u'CALL_-1206754166'), (u'CALL_-1206754216', u'CAST_-1206753649'), ('const-20', u'PTRSUB_-1206753712'), ('const-1', u'PTRADD_-1206753869'), (u'PTRSUB_-1206753454', u'STORE_-1206753843'), (u'CALL_-1206754292', u'INDIRECT_-1206753742'), (u'PTRADD_-1206753869', u'STORE_-1206753915'), (u'LOAD_-1206754052', u'INT_SEXT_-1206754035'), ('tmp_707', u'CBRANCH_-1206753913')]
[('const-0', u'INT_NOTEQUAL_-1206753772'), ('const-0', u'STORE_-1206753947'), (u'INT_ADD_-1206753983', u'INT_SLESS_-1206753916'), (u'INT_AND_-1206753789', u'CALL_-1206753651'), ('const-417', u'STORE_-1206753843'), ('tmp_2270', u'INT_ADD_-1206753851'), ('tmp_370', u'CBRANCH_-1206754180'), (u'COPY_-1206754122', u'MULTIEQUAL_-1206753354'), ('const-0', u'RETURN_-1206753847'), ('tmp_2269', u'CALL_-1206753651'), ('tmp_486', u'BRANCH_-1206754114'), (u'INT_AND_-1206753789', u'INT_NOTEQUAL_-1206753772'), (u'INT_ADD_-1206754036', u'CAST_-1206753299'), ('const-4294967295', u'CALL_-1206753606'), ('tmp_2270', u'INT_ADD_-1206754036'), (u'INT_ADD_-1206753793', u'CAST_-1206753321'), ('const-20', u'INT_ADD_-1206753828'), (u'SUBPIECE_-1206753441', u'CALL_-1206754166'), (u'INT_MULT_-1206753822', u'INT_ADD_-1206753822'), ('const-0', u'SUBPIECE_-1206753440'), (u'MULTIEQUAL_-1206753354', u'COPY_-1206753352'), (u'LOAD_-1206753809', u'STORE_-1206753800'), (u'CALL_-1206753827', u'INT_AND_-1206753789'), ('const-42', u'INT_ADD_-1206754263'), ('const-13', u'INT_ADD_-1206753793'), ('const-1', u'PTRADD_-1206753754'), ('tmp_537', u'CBRANCH_-1206754017'), ('const-65', u'INT_EQUAL_-1206753862'), ('const-417', u'LOAD_-1206753809'), ('const-91', u'CALL_-1206753651'), ('const-0', u'INT_EQUAL_-1206754310'), ('tmp_1086', u'BRANCH_-1206753649'), ('const-0', u'INT_SLESS_-1206753916'), ('tmp_2271', u'INT_EQUAL_-1206753742'), ('tmp_914', u'CBRANCH_-1206753770'), (u'MULTIEQUAL_-1206753354', u'INT_MULT_-1206753822'), ('tmp_2270', u'INT_ADD_-1206754263'), (u'INT_ADD_-1206754331', u'CAST_-1206753459'), ('const-0', u'CALL_-1206754216'), (u'INT_ADD_-1206753851', u'CAST_-1206753350'), (u'PTRADD_-1206753910', u'STORE_-1206753947'), (u'CALL_-1206754292', u'SUBPIECE_-1206753441'), (u'LOAD_-1206754347', u'INT_EQUAL_-1206754310'), (u'CAST_-1206753400', u'MULTIEQUAL_-1206753241'), (u'INT_SLESS_-1206754010', u'CBRANCH_-1206754017'), ('const-1', u'INT_ADD_-1206754247'), ('const-0', u'SUBPIECE_-1206753441'), (u'INT_EQUAL_-1206754310', u'CBRANCH_-1206754306'), ('const-0', u'INT_EQUAL_-1206753742'), (u'INT_SEXT_-1206754262', u'INT_ADD_-1206754247'), (u'MULTIEQUAL_-1206753354', u'INT_SLESS_-1206754010'), ('tmp_2271', u'CALL_-1206753651'), (u'SUBPIECE_-1206753440', u'CALL_-1206754216'), (u'INT_ADD_-1206753983', u'COPY_-1206753283'), (u'LOAD_-1206753867', u'INT_ADD_-1206753822'), (u'INT_ADD_-1206754247', u'CALL_-1206754216'), ('const-16', u'INT_MULT_-1206753822'), ('tmp_2269', u'CALL_-1206754292'), ('const-0', u'INT_EQUAL_-1206754184'), (u'MULTIEQUAL_-1206753332', u'INT_ADD_-1206753983'), (u'LOAD_-1206754279', u'INT_SEXT_-1206754262'), (u'CAST_-1206753400', u'INT_EQUAL_-1206754184'), (u'LOAD_-1206754052', u'INT_SEXT_-1206754035'), ('const-20', u'INT_ADD_-1206754331'), ('const-1', u'PTRADD_-1206753910'), ('tmp_707', u'CBRANCH_-1206753913'), ('tmp_966', u'CBRANCH_-1206753739'), (u'INT_ADD_-1206754247', u'INT_SRIGHT_-1206754219'), ('const-32', u'INT_RIGHT_-1206753472'), ('const-0', u'COPY_-1206754122'), (u'CAST_-1206753400', u'PTRADD_-1206753754'), ('const-417', u'LOAD_-1206753867'), (u'MULTIEQUAL_-1206753241', u'CALL_-1206753651'), (u'INT_NOTEQUAL_-1206753772', u'CBRANCH_-1206753770'), (u'INT_ADD_-1206753822', u'INT_ADD_-1206753793'), (u'COPY_-1206753352', u'MULTIEQUAL_-1206753332'), ('const-417', u'LOAD_-1206754279'), ('const-4', u'INT_ADD_-1206753851'), (u'MULTIEQUAL_-1206753241', u'CALL_-1206753827'), (u'LOAD_-1206754347', u'MULTIEQUAL_-1206753241'), (u'CAST_-1206753299', u'LOAD_-1206754052'), (u'INT_RIGHT_-1206753472', u'SUBPIECE_-1206753440'), ('const-417', u'LOAD_-1206754052'), ('tmp_178', u'CBRANCH_-1206754306'), (u'INT_EQUAL_-1206753742', u'CBRANCH_-1206753739'), (u'MULTIEQUAL_-1206753354', u'INT_ADD_-1206753764'), ('const-42', u'INT_ADD_-1206754036'), (u'LOAD_-1206753888', u'INT_EQUAL_-1206753862'), ('const-4294967295', u'INT_ADD_-1206753983'), (u'INT_ADD_-1206753764', u'MULTIEQUAL_-1206753354'), (u'CAST_-1206753421', u'LOAD_-1206754279'), (u'INT_EQUAL_-1206754184', u'CBRANCH_-1206754180'), (u'MULTIEQUAL_-1206753354', u'PTRADD_-1206753754'), ('tmp_2270', u'INT_ADD_-1206754331'), (u'CAST_-1206753400', u'STORE_-1206753843'), ('const-417', u'LOAD_-1206753888'), (u'MULTIEQUAL_-1206753241', u'CALL_-1206753606'), ('const-1073741823', u'INT_AND_-1206753789'), ('tmp_790', u'CBRANCH_-1206753859'), (u'INT_SLESS_-1206753916', u'CBRANCH_-1206753913'), (u'CAST_-1206753400', u'PTRADD_-1206753910'), (u'INT_ADD_-1206753828', u'CAST_-1206753200'), ('const-0', u'CALL_-1206753651'), (u'CAST_-1206753400', u'PTRADD_-1206753833'), (u'INT_EQUAL_-1206753862', u'CBRANCH_-1206753859'), (u'CAST_-1206753350', u'LOAD_-1206753867'), (u'CAST_-1206753459', u'LOAD_-1206754347'), (u'PTRADD_-1206753833', u'LOAD_-1206753888'), (u'CALL_-1206754216', u'CAST_-1206753400'), ('const-417', u'STORE_-1206753947'), ('tmp_2269', u'CALL_-1206753606'), ('const-31', u'INT_SRIGHT_-1206754219'), (u'INT_SEXT_-1206754035', u'INT_SLESS_-1206754010'), ('const-1', u'PTRADD_-1206753833'), (u'CAST_-1206753434', u'INT_RIGHT_-1206753472'), (u'INT_AND_-1206753789', u'CALL_-1206753606'), ('const-1', u'INT_ADD_-1206753764'), (u'CAST_-1206753200', u'STORE_-1206753843'), (u'INT_SRIGHT_-1206754219', u'CALL_-1206754216'), ('const-417', u'LOAD_-1206754347'), (u'INT_ADD_-1206754263', u'CAST_-1206753421'), (u'CAST_-1206753321', u'LOAD_-1206753809'), (u'PTRADD_-1206753754', u'STORE_-1206753800'), (u'INT_ADD_-1206753983', u'PTRADD_-1206753833'), ('const-0', u'RETURN_-1206753147'), ('const-417', u'STORE_-1206753800'), ('tmp_2270', u'INT_ADD_-1206753828'), (u'CALL_-1206754292', u'CAST_-1206753434'), (u'MULTIEQUAL_-1206753332', u'PTRADD_-1206753910'), (u'COPY_-1206753283', u'MULTIEQUAL_-1206753332')]
null
null
000d6390
arm
O0
(translation_unit "void FUN_000d6390(undefined4 param_1,int param_2,int param_3)\n\n{\n size_t sVar1;\n int iVar2;\n uint uVar3;\n undefined8 uVar4;\n int local_14;\n char *local_10;\n \n local_10 = *(char **)(param_2 + 0x14);\n if (local_10 == (char *)0x0) {\n uVar4 = FUN_00096450(param_1);\n iVar2 = *(short *)(param_2 + 0x2a) + 1;\n local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f);\n if (local_10 == (char *)0x0) {\n FUN_00052d90((int)uVar4);\n return;\n }\n for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) {\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }\n do {\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n } while (local_10[iVar2] == 'A');\n *(char **)(param_2 + 0x14) = local_10;\n }\n sVar1 = strlen(local_10);\n uVar3 = sVar1 & 0x3fffffff;\n if (uVar3 != 0) {\n if (param_3 == 0) {\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }\n else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }\n }\n return;\n}\n\n" (function_definition "void FUN_000d6390(undefined4 param_1,int param_2,int param_3)\n\n{\n size_t sVar1;\n int iVar2;\n uint uVar3;\n undefined8 uVar4;\n int local_14;\n char *local_10;\n \n local_10 = *(char **)(param_2 + 0x14);\n if (local_10 == (char *)0x0) {\n uVar4 = FUN_00096450(param_1);\n iVar2 = *(short *)(param_2 + 0x2a) + 1;\n local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f);\n if (local_10 == (char *)0x0) {\n FUN_00052d90((int)uVar4);\n return;\n }\n for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) {\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }\n do {\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n } while (local_10[iVar2] == 'A');\n *(char **)(param_2 + 0x14) = local_10;\n }\n sVar1 = strlen(local_10);\n uVar3 = sVar1 & 0x3fffffff;\n if (uVar3 != 0) {\n if (param_3 == 0) {\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }\n else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }\n }\n return;\n}" primitive_type (function_declarator "FUN_000d6390(undefined4 param_1,int param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n size_t sVar1;\n int iVar2;\n uint uVar3;\n undefined8 uVar4;\n int local_14;\n char *local_10;\n \n local_10 = *(char **)(param_2 + 0x14);\n if (local_10 == (char *)0x0) {\n uVar4 = FUN_00096450(param_1);\n iVar2 = *(short *)(param_2 + 0x2a) + 1;\n local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f);\n if (local_10 == (char *)0x0) {\n FUN_00052d90((int)uVar4);\n return;\n }\n for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) {\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }\n do {\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n } while (local_10[iVar2] == 'A');\n *(char **)(param_2 + 0x14) = local_10;\n }\n sVar1 = strlen(local_10);\n uVar3 = sVar1 & 0x3fffffff;\n if (uVar3 != 0) {\n if (param_3 == 0) {\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }\n else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }\n }\n return;\n}" { (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "undefined8 uVar4;" type_identifier identifier ;) (declaration "int local_14;" primitive_type identifier ;) (declaration "char *local_10;" primitive_type (pointer_declarator "*local_10" * identifier) ;) (expression_statement "local_10 = *(char **)(param_2 + 0x14);" (assignment_expression "local_10 = *(char **)(param_2 + 0x14)" identifier = (pointer_expression "*(char **)(param_2 + 0x14)" * (cast_expression "(char **)(param_2 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (local_10 == (char *)0x0) {\n uVar4 = FUN_00096450(param_1);\n iVar2 = *(short *)(param_2 + 0x2a) + 1;\n local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f);\n if (local_10 == (char *)0x0) {\n FUN_00052d90((int)uVar4);\n return;\n }\n for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) {\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }\n do {\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n } while (local_10[iVar2] == 'A');\n *(char **)(param_2 + 0x14) = local_10;\n }" if (parenthesized_expression "(local_10 == (char *)0x0)" ( (binary_expression "local_10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n uVar4 = FUN_00096450(param_1);\n iVar2 = *(short *)(param_2 + 0x2a) + 1;\n local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f);\n if (local_10 == (char *)0x0) {\n FUN_00052d90((int)uVar4);\n return;\n }\n for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) {\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }\n do {\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n } while (local_10[iVar2] == 'A');\n *(char **)(param_2 + 0x14) = local_10;\n }" { (expression_statement "uVar4 = FUN_00096450(param_1);" (assignment_expression "uVar4 = FUN_00096450(param_1)" identifier = (call_expression "FUN_00096450(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "iVar2 = *(short *)(param_2 + 0x2a) + 1;" (assignment_expression "iVar2 = *(short *)(param_2 + 0x2a) + 1" identifier = (binary_expression "*(short *)(param_2 + 0x2a) + 1" (pointer_expression "*(short *)(param_2 + 0x2a)" * (cast_expression "(short *)(param_2 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f);" (assignment_expression "local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f)" identifier = (cast_expression "(char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f)" identifier (argument_list "(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f)" ( number_literal , (cast_expression "(int)((ulonglong)uVar4 >> 0x20)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((ulonglong)uVar4 >> 0x20)" ( (binary_expression "(ulonglong)uVar4 >> 0x20" (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) >> number_literal) ))) , identifier , (binary_expression "iVar2 >> 0x1f" identifier >> number_literal) ))))) ;) (if_statement "if (local_10 == (char *)0x0) {\n FUN_00052d90((int)uVar4);\n return;\n }" if (parenthesized_expression "(local_10 == (char *)0x0)" ( (binary_expression "local_10 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n FUN_00052d90((int)uVar4);\n return;\n }" { (expression_statement "FUN_00052d90((int)uVar4);" (call_expression "FUN_00052d90((int)uVar4)" identifier (argument_list "((int)uVar4)" ( (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) ))) ;) (return_statement "return;" return ;) })) (for_statement "for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) {\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }" for ( (assignment_expression "local_14 = 0" identifier = number_literal) ; (binary_expression "local_14 < *(short *)(param_2 + 0x2a)" identifier < (pointer_expression "*(short *)(param_2 + 0x2a)" * (cast_expression "(short *)(param_2 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) ))))) ; (assignment_expression "local_14 = local_14 + 1" identifier = (binary_expression "local_14 + 1" identifier + number_literal)) ) (compound_statement "{\n local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);\n }" { (expression_statement "local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd);" (assignment_expression "local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd)" (subscript_expression "local_10[local_14]" identifier [ identifier ]) = (pointer_expression "*(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd)" * (cast_expression "(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd)" ( (binary_expression "*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd" (binary_expression "*(int *)(param_2 + 4) + local_14 * 0x10" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) + (binary_expression "local_14 * 0x10" identifier * number_literal)) + number_literal) ))))) ;) })) (do_statement "do {\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n } while (local_10[iVar2] == 'A');" do (compound_statement "{\n iVar2 = local_14 + -1;\n local_10[local_14] = '\0';\n if (iVar2 < 0) break;\n local_14 = iVar2;\n }" { (expression_statement "iVar2 = local_14 + -1;" (assignment_expression "iVar2 = local_14 + -1" identifier = (binary_expression "local_14 + -1" identifier + number_literal)) ;) (expression_statement "local_10[local_14] = '\0';" (assignment_expression "local_10[local_14] = '\0'" (subscript_expression "local_10[local_14]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (iVar2 < 0) break;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "local_14 = iVar2;" (assignment_expression "local_14 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(local_10[iVar2] == 'A')" ( (binary_expression "local_10[iVar2] == 'A'" (subscript_expression "local_10[iVar2]" identifier [ identifier ]) == (char_literal "'A'" ' character ')) )) ;) (expression_statement "*(char **)(param_2 + 0x14) = local_10;" (assignment_expression "*(char **)(param_2 + 0x14) = local_10" (pointer_expression "*(char **)(param_2 + 0x14)" * (cast_expression "(char **)(param_2 + 0x14)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "sVar1 = strlen(local_10);" (assignment_expression "sVar1 = strlen(local_10)" identifier = (call_expression "strlen(local_10)" identifier (argument_list "(local_10)" ( identifier )))) ;) (expression_statement "uVar3 = sVar1 & 0x3fffffff;" (assignment_expression "uVar3 = sVar1 & 0x3fffffff" identifier = (binary_expression "sVar1 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (uVar3 != 0) {\n if (param_3 == 0) {\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }\n else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }\n }" if (parenthesized_expression "(uVar3 != 0)" ( (binary_expression "uVar3 != 0" identifier != number_literal) )) (compound_statement "{\n if (param_3 == 0) {\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }\n else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }\n }" { (if_statement "if (param_3 == 0) {\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }\n else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n FUN_0008f898(param_1,0xffffffff,local_10,uVar3);\n }" { (expression_statement "FUN_0008f898(param_1,0xffffffff,local_10,uVar3);" (call_expression "FUN_0008f898(param_1,0xffffffff,local_10,uVar3)" identifier (argument_list "(param_1,0xffffffff,local_10,uVar3)" ( identifier , number_literal , identifier , identifier ))) ;) }) (else_clause "else {\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }" else (compound_statement "{\n FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);\n }" { (expression_statement "FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3);" (call_expression "FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3)" identifier (argument_list "(param_1,0x5b,param_3,uVar3,0,local_10,uVar3)" ( identifier , number_literal , identifier , identifier , number_literal , identifier , identifier ))) ;) }))) })) (return_statement "return;" return ;) })))
void function_1(type_1 *v,type_2 *pTab,int iReg) { type_3 *db_00; int var_6; type_4 in_stack_ffffffc8; int iReg_local; type_2 *pTab_local; type_1 *v_local; int var_5; char *var_1; type_3 *db; var_1 = pTab->var_1; if (var_1 == (char *)0x0) { db_00 = var_2(v); var_1 = (char *)var_3((type_3 *)0x0,in_stack_ffffffc8); if (var_1 == (char *)0x0) { var_4(db_00); return; } for (var_5 = 0; var_5 < pTab->nCol; var_5 = var_5 + 1) { var_1[var_5] = pTab->aCol[var_5].affinity; } do { var_6 = var_5 + -1; var_1[var_5] = '\0'; if (var_6 < 0) break; var_5 = var_6; } while (var_1[var_6] == 'A'); pTab->var_1 = var_1; } /* WARNING: Subroutine does not return */ var_7(var_1); }
(translation_unit "void sqlite3TableAffinity(Vdbe *v,Table *pTab,int iReg)\n\n{\n sqlite3 *db_00;\n int iVar1;\n u64 in_stack_ffffffc8;\n int iReg_local;\n Table *pTab_local;\n Vdbe *v_local;\n int i;\n char *zColAff;\n sqlite3 *db;\n \n zColAff = pTab->zColAff;\n if (zColAff == (char *)0x0) {\n db_00 = sqlite3VdbeDb(v);\n zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8);\n if (zColAff == (char *)0x0) {\n sqlite3OomFault(db_00);\n return;\n }\n for (i = 0; i < pTab->nCol; i = i + 1) {\n zColAff[i] = pTab->aCol[i].affinity;\n }\n do {\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n } while (zColAff[iVar1] == 'A');\n pTab->zColAff = zColAff;\n }\n /* WARNING: Subroutine does not return */\n strlen(zColAff);\n}\n\n" (function_definition "void sqlite3TableAffinity(Vdbe *v,Table *pTab,int iReg)\n\n{\n sqlite3 *db_00;\n int iVar1;\n u64 in_stack_ffffffc8;\n int iReg_local;\n Table *pTab_local;\n Vdbe *v_local;\n int i;\n char *zColAff;\n sqlite3 *db;\n \n zColAff = pTab->zColAff;\n if (zColAff == (char *)0x0) {\n db_00 = sqlite3VdbeDb(v);\n zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8);\n if (zColAff == (char *)0x0) {\n sqlite3OomFault(db_00);\n return;\n }\n for (i = 0; i < pTab->nCol; i = i + 1) {\n zColAff[i] = pTab->aCol[i].affinity;\n }\n do {\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n } while (zColAff[iVar1] == 'A');\n pTab->zColAff = zColAff;\n }\n /* WARNING: Subroutine does not return */\n strlen(zColAff);\n}" primitive_type (function_declarator "sqlite3TableAffinity(Vdbe *v,Table *pTab,int iReg)" identifier (parameter_list "(Vdbe *v,Table *pTab,int iReg)" ( (parameter_declaration "Vdbe *v" type_identifier (pointer_declarator "*v" * identifier)) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "int iReg" primitive_type identifier) ))) (compound_statement "{\n sqlite3 *db_00;\n int iVar1;\n u64 in_stack_ffffffc8;\n int iReg_local;\n Table *pTab_local;\n Vdbe *v_local;\n int i;\n char *zColAff;\n sqlite3 *db;\n \n zColAff = pTab->zColAff;\n if (zColAff == (char *)0x0) {\n db_00 = sqlite3VdbeDb(v);\n zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8);\n if (zColAff == (char *)0x0) {\n sqlite3OomFault(db_00);\n return;\n }\n for (i = 0; i < pTab->nCol; i = i + 1) {\n zColAff[i] = pTab->aCol[i].affinity;\n }\n do {\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n } while (zColAff[iVar1] == 'A');\n pTab->zColAff = zColAff;\n }\n /* WARNING: Subroutine does not return */\n strlen(zColAff);\n}" { (declaration "sqlite3 *db_00;" type_identifier (pointer_declarator "*db_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "u64 in_stack_ffffffc8;" type_identifier identifier ;) (declaration "int iReg_local;" primitive_type identifier ;) (declaration "Table *pTab_local;" type_identifier (pointer_declarator "*pTab_local" * identifier) ;) (declaration "Vdbe *v_local;" type_identifier (pointer_declarator "*v_local" * identifier) ;) (declaration "int i;" primitive_type identifier ;) (declaration "char *zColAff;" primitive_type (pointer_declarator "*zColAff" * identifier) ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (expression_statement "zColAff = pTab->zColAff;" (assignment_expression "zColAff = pTab->zColAff" identifier = (field_expression "pTab->zColAff" identifier -> field_identifier)) ;) (if_statement "if (zColAff == (char *)0x0) {\n db_00 = sqlite3VdbeDb(v);\n zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8);\n if (zColAff == (char *)0x0) {\n sqlite3OomFault(db_00);\n return;\n }\n for (i = 0; i < pTab->nCol; i = i + 1) {\n zColAff[i] = pTab->aCol[i].affinity;\n }\n do {\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n } while (zColAff[iVar1] == 'A');\n pTab->zColAff = zColAff;\n }" if (parenthesized_expression "(zColAff == (char *)0x0)" ( (binary_expression "zColAff == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n db_00 = sqlite3VdbeDb(v);\n zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8);\n if (zColAff == (char *)0x0) {\n sqlite3OomFault(db_00);\n return;\n }\n for (i = 0; i < pTab->nCol; i = i + 1) {\n zColAff[i] = pTab->aCol[i].affinity;\n }\n do {\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n } while (zColAff[iVar1] == 'A');\n pTab->zColAff = zColAff;\n }" { (expression_statement "db_00 = sqlite3VdbeDb(v);" (assignment_expression "db_00 = sqlite3VdbeDb(v)" identifier = (call_expression "sqlite3VdbeDb(v)" identifier (argument_list "(v)" ( identifier )))) ;) (expression_statement "zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8);" (assignment_expression "zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8)" identifier = (cast_expression "(char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8)" identifier (argument_list "((sqlite3 *)0x0,in_stack_ffffffc8)" ( (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier ))))) ;) (if_statement "if (zColAff == (char *)0x0) {\n sqlite3OomFault(db_00);\n return;\n }" if (parenthesized_expression "(zColAff == (char *)0x0)" ( (binary_expression "zColAff == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n sqlite3OomFault(db_00);\n return;\n }" { (expression_statement "sqlite3OomFault(db_00);" (call_expression "sqlite3OomFault(db_00)" identifier (argument_list "(db_00)" ( identifier ))) ;) (return_statement "return;" return ;) })) (for_statement "for (i = 0; i < pTab->nCol; i = i + 1) {\n zColAff[i] = pTab->aCol[i].affinity;\n }" for ( (assignment_expression "i = 0" identifier = number_literal) ; (binary_expression "i < pTab->nCol" identifier < (field_expression "pTab->nCol" identifier -> field_identifier)) ; (assignment_expression "i = i + 1" identifier = (binary_expression "i + 1" identifier + number_literal)) ) (compound_statement "{\n zColAff[i] = pTab->aCol[i].affinity;\n }" { (expression_statement "zColAff[i] = pTab->aCol[i].affinity;" (assignment_expression "zColAff[i] = pTab->aCol[i].affinity" (subscript_expression "zColAff[i]" identifier [ identifier ]) = (field_expression "pTab->aCol[i].affinity" (subscript_expression "pTab->aCol[i]" (field_expression "pTab->aCol" identifier -> field_identifier) [ identifier ]) . field_identifier)) ;) })) (do_statement "do {\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n } while (zColAff[iVar1] == 'A');" do (compound_statement "{\n iVar1 = i + -1;\n zColAff[i] = '\0';\n if (iVar1 < 0) break;\n i = iVar1;\n }" { (expression_statement "iVar1 = i + -1;" (assignment_expression "iVar1 = i + -1" identifier = (binary_expression "i + -1" identifier + number_literal)) ;) (expression_statement "zColAff[i] = '\0';" (assignment_expression "zColAff[i] = '\0'" (subscript_expression "zColAff[i]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (iVar1 < 0) break;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (break_statement "break;" break ;)) (expression_statement "i = iVar1;" (assignment_expression "i = iVar1" identifier = identifier) ;) }) while (parenthesized_expression "(zColAff[iVar1] == 'A')" ( (binary_expression "zColAff[iVar1] == 'A'" (subscript_expression "zColAff[iVar1]" identifier [ identifier ]) == (char_literal "'A'" ' character ')) )) ;) (expression_statement "pTab->zColAff = zColAff;" (assignment_expression "pTab->zColAff = zColAff" (field_expression "pTab->zColAff" identifier -> field_identifier) = identifier) ;) })) comment (expression_statement "strlen(zColAff);" (call_expression "strlen(zColAff)" identifier (argument_list "(zColAff)" ( identifier ))) ;) })))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement))) (for_statement initializer: (assignment_expression left: (identifier) right: (number_literal)) condition: (binary_expression left: (identifier) right: (field_expression argument: (identifier) field: (field_identifier))) update: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) body: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (field_expression argument: (subscript_expression argument: (field_expression argument: (identifier) field: (field_identifier)) index: (identifier)) field: (field_identifier)))))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (escape_sequence)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (identifier)) right: (char_literal (character))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (identifier))))) (comment) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))))
void MASKED(Vdbe *v,Table *pTab,int iReg) { sqlite3 *db_00; int iVar1; u64 in_stack_ffffffc8; int iReg_local; Table *pTab_local; Vdbe *v_local; int i; char *zColAff; sqlite3 *db; zColAff = pTab->zColAff; if (zColAff == (char *)0x0) { db_00 = sqlite3VdbeDb(v); zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8); if (zColAff == (char *)0x0) { sqlite3OomFault(db_00); return; } for (i = 0; i < pTab->nCol; i = i + 1) { zColAff[i] = pTab->aCol[i].affinity; } do { iVar1 = i + -1; zColAff[i] = '\0'; if (iVar1 < 0) break; i = iVar1; } while (zColAff[iVar1] == 'A'); pTab->zColAff = zColAff; } /* WARNING: Subroutine does not return */ strlen(zColAff); }
void MASKED(undefined4 param_1,int param_2,int param_3) { size_t sVar1; int iVar2; uint uVar3; undefined8 uVar4; int local_14; char *local_10; local_10 = *(char **)(param_2 + 0x14); if (local_10 == (char *)0x0) { uVar4 = FUN_00096450(param_1); iVar2 = *(short *)(param_2 + 0x2a) + 1; local_10 = (char *)FUN_000529b0(0,(int)((ulonglong)uVar4 >> 0x20),iVar2,iVar2 >> 0x1f); if (local_10 == (char *)0x0) { FUN_00052d90((int)uVar4); return; } for (local_14 = 0; local_14 < *(short *)(param_2 + 0x2a); local_14 = local_14 + 1) { local_10[local_14] = *(char *)(*(int *)(param_2 + 4) + local_14 * 0x10 + 0xd); } do { iVar2 = local_14 + -1; local_10[local_14] = '\0'; if (iVar2 < 0) break; local_14 = iVar2; } while (local_10[iVar2] == 'A'); *(char **)(param_2 + 0x14) = local_10; } sVar1 = strlen(local_10); uVar3 = sVar1 & 0x3fffffff; if (uVar3 != 0) { if (param_3 == 0) { FUN_0008f898(param_1,0xffffffff,local_10,uVar3); } else { FUN_0008e70c(param_1,0x5b,param_3,uVar3,0,local_10,uVar3); } } return; }
translation_unit function_definition primitive_type function_declarator compound_statement identifier parameter_list { declaration declaration declaration declaration declaration declaration expression_statement if_statement expression_statement expression_statement if_statement return_statement } ( parameter_declaration , parameter_declaration , parameter_declaration ) primitive_type identifier ; primitive_type identifier ; type_identifier identifier ; type_identifier identifier ; primitive_type identifier ; primitive_type pointer_declarator ; assignment_expression ; if parenthesized_expression compound_statement assignment_expression ; assignment_expression ; if parenthesized_expression compound_statement return ; type_identifier identifier primitive_type identifier primitive_type identifier * identifier identifier = pointer_expression ( binary_expression ) { expression_statement expression_statement expression_statement if_statement for_statement do_statement expression_statement } identifier = call_expression identifier = binary_expression ( binary_expression ) { if_statement } * cast_expression identifier == cast_expression assignment_expression ; assignment_expression ; assignment_expression ; if parenthesized_expression compound_statement for ( assignment_expression ; binary_expression ; assignment_expression ) compound_statement do compound_statement while parenthesized_expression ; assignment_expression ; identifier argument_list identifier & number_literal identifier != number_literal if parenthesized_expression compound_statement else_clause ( type_descriptor ) parenthesized_expression ( type_descriptor ) number_literal identifier = call_expression identifier = binary_expression identifier = cast_expression ( binary_expression ) { expression_statement return_statement } identifier = number_literal identifier < pointer_expression identifier = binary_expression { expression_statement } { expression_statement expression_statement if_statement expression_statement } ( binary_expression ) pointer_expression = identifier ( identifier ) ( binary_expression ) { expression_statement } else compound_statement primitive_type abstract_pointer_declarator ( binary_expression ) primitive_type abstract_pointer_declarator identifier argument_list pointer_expression + number_literal ( type_descriptor ) call_expression identifier == cast_expression call_expression ; return ; * cast_expression identifier + number_literal assignment_expression ; assignment_expression ; assignment_expression ; if parenthesized_expression break_statement assignment_expression ; subscript_expression == char_literal * cast_expression identifier == number_literal call_expression ; { expression_statement } * abstract_pointer_declarator identifier + number_literal * ( identifier ) * cast_expression primitive_type abstract_pointer_declarator identifier argument_list ( type_descriptor ) number_literal identifier argument_list ( type_descriptor ) parenthesized_expression subscript_expression = pointer_expression identifier = binary_expression subscript_expression = char_literal ( binary_expression ) break ; identifier = identifier identifier [ identifier ] ' character ' ( type_descriptor ) parenthesized_expression identifier argument_list call_expression ; * ( type_descriptor ) parenthesized_expression * ( number_literal , cast_expression , identifier , binary_expression ) primitive_type abstract_pointer_declarator ( cast_expression ) sized_type_specifier abstract_pointer_declarator ( binary_expression ) identifier [ identifier ] * cast_expression identifier + number_literal identifier [ identifier ] ' escape_sequence ' identifier < number_literal primitive_type abstract_pointer_declarator ( binary_expression ) ( identifier , number_literal , identifier , identifier ) identifier argument_list sized_type_specifier abstract_pointer_declarator ( binary_expression ) ( type_descriptor ) parenthesized_expression identifier >> number_literal * ( type_descriptor ) identifier short * identifier + number_literal ( type_descriptor ) parenthesized_expression * abstract_pointer_declarator identifier + number_literal ( identifier , number_literal , identifier , identifier , number_literal , identifier , identifier ) short * identifier + number_literal primitive_type ( binary_expression ) primitive_type primitive_type abstract_pointer_declarator ( binary_expression ) * cast_expression >> number_literal * binary_expression + number_literal ( type_descriptor ) identifier pointer_expression + binary_expression type_identifier * cast_expression identifier * number_literal ( type_descriptor ) parenthesized_expression primitive_type abstract_pointer_declarator ( binary_expression ) * identifier + number_literal
void FUN_000d6390 ( undefined4 param_1 , int param_2 , int param_3 ) { size_t sVar1 ; int iVar2 ; uint uVar3 ; undefined8 uVar4 ; int local_14 ; char * local_10 ; local_10 = * ( char * * ) ( param_2 + 0x14 ) ; if ( local_10 == ( char * ) 0x0 ) { uVar4 = FUN_00096450 ( param_1 ) ; iVar2 = * ( short * ) ( param_2 + 0x2a ) + 1 ; local_10 = ( char * ) FUN_000529b0 ( 0 , ( int ) ( ( ulonglong ) uVar4 >> 0x20 ) , iVar2 , iVar2 >> 0x1f ) ; if ( local_10 == ( char * ) 0x0 ) { FUN_00052d90 ( ( int ) uVar4 ) ; return ; } for ( local_14 = 0 ; local_14 < * ( short * ) ( param_2 + 0x2a ) ; local_14 = local_14 + 1 ) { local_10 [ local_14 ] = * ( char * ) ( * ( int * ) ( param_2 + 4 ) + local_14 * 0x10 + 0xd ) ; } do { iVar2 = local_14 + -1 ; local_10 [ local_14 ] = ' \0 ' ; if ( iVar2 < 0 ) break ; local_14 = iVar2 ; } while ( local_10 [ iVar2 ] == ' A ' ) ; * ( char * * ) ( param_2 + 0x14 ) = local_10 ; } sVar1 = strlen ( local_10 ) ; uVar3 = sVar1 & 0x3fffffff ; if ( uVar3 != 0 ) { if ( param_3 == 0 ) { FUN_0008f898 ( param_1 , 0xffffffff , local_10 , uVar3 ) ; } else { FUN_0008e70c ( param_1 , 0x5b , param_3 , uVar3 , 0 , local_10 , uVar3 ) ; } } return ; }
1
1
sqlite3TableAffinity
void sqlite3TableAffinity(Vdbe *v,Table *pTab,int iReg) { sqlite3 *db_00; int iVar1; u64 in_stack_ffffffc8; int iReg_local; Table *pTab_local; Vdbe *v_local; int i; char *zColAff; sqlite3 *db; zColAff = pTab->zColAff; if (zColAff == (char *)0x0) { db_00 = sqlite3VdbeDb(v); zColAff = (char *)sqlite3DbMallocRaw((sqlite3 *)0x0,in_stack_ffffffc8); if (zColAff == (char *)0x0) { sqlite3OomFault(db_00); return; } for (i = 0; i < pTab->nCol; i = i + 1) { zColAff[i] = pTab->aCol[i].affinity; } do { iVar1 = i + -1; zColAff[i] = '\0'; if (iVar1 < 0) break; i = iVar1; } while (zColAff[iVar1] == 'A'); pTab->zColAff = zColAff; } strlen(zColAff); }
8,157
The provided function name is appropriate because it encapsulates the function's primary purpose: determining and setting the data type affinity for a table column in a database context. The function processes a string representation of column data, modifies it by removing leading 'A' characters, and then uses this processed string in subsequent operations, likely related to database interactions. The function's control flow, including memory allocation and string manipulation, supports this interpretation. The name reflects the function's role in handling data type affinity, aligning with its semantic intent and behavior. A hypothetical, less appropriate name might initially seem reasonable if it focuses narrowly on specific operations like string manipulation or memory allocation. However, such a name would be misleading as it would obscure the function's broader purpose related to database operations. It could also be overly specific, focusing on implementation details rather than the function's overall intent, or too broad, failing to convey the specific context of data type affinity. This could confuse future readers or maintainers by not accurately representing the function's role within the larger system. The original developer-assigned name better aligns with the function’s behavior by capturing its role in the context of database operations, specifically related to table column data type affinity. It provides a clear, high-level abstraction that conveys the function's purpose without delving into implementation specifics. The developer likely intended to emphasize the function's relevance to database schema management, ensuring that the name reflects its semantic intent and facilitates understanding within the broader system.
The provided function name is appropriate because it encapsulates the function's primary purpose: determining and setting the data type affinity for a table column in a database context. The function processes a string representation of column data, modifies it by removing leading 'A' characters, and then uses this processed string in subsequent operations, likely related to database interactions. The function's control flow, including memory allocation and string manipulation, supports this interpretation. The name reflects the function's role in handling data type affinity, aligning with its semantic intent and behavior. A hypothetical, less appropriate name might initially seem reasonable if it focuses narrowly on specific operations like string manipulation or memory allocation. However, such a name would be misleading as it would obscure the function's broader purpose related to database operations. It could also be overly specific, focusing on implementation details rather than the function's overall intent, or too broad, failing to convey the specific context of data type affinity. This could confuse future readers or maintainers by not accurately representing the function's role within the larger system. The original developer-assigned name better aligns with the function’s behavior by capturing its role in the context of database operations, specifically related to table column data type affinity. It provides a clear, high-level abstraction that conveys the function's purpose without delving into implementation specifics. The developer likely intended to emphasize the function's relevance to database schema management, ensuring that the name reflects its semantic intent and facilitates understanding within the broader system.
Reasoning: The function appears to be involved in string manipulation and formatting, specifically dealing with a sequence of characters and performing operations based on certain conditions. It retrieves a string, processes it by removing trailing 'A' characters, and then performs an operation based on the length of the processed string. The function name should reflect its role in formatting or processing strings, particularly in the context of handling a sequence of characters and preparing them for further operations. Counterfactual Justification: Alternative names like "ProcessStringSequence" or "FormatStringData" might mislead by suggesting a broader or different scope of string processing than what the function actually performs. "RemoveTrailingAsAndOperate" is more specific to the function's operations, highlighting the removal of trailing 'A' characters and subsequent actions based on the string's length. Function Name: RemoveTrailingAsAndOperate
Reasoning: The function appears to be involved in string manipulation and formatting, specifically dealing with a sequence of characters and performing operations based on certain conditions. It retrieves a string, processes it by removing trailing 'A' characters, and then performs an operation based on the length of the processed string. The function name should reflect its role in formatting or processing strings, particularly in the context of handling a sequence of characters and preparing them for further operations. Counterfactual Justification: Alternative names like "ProcessStringSequence" or "FormatStringData" might mislead by suggesting a broader or different scope of string processing than what the function actually performs. "RemoveTrailingAsAndOperate" is more specific to the function's operations, highlighting the removal of trailing 'A' characters and subsequent actions based on the string's length. Function Name: RemoveTrailingAsAndOperate
The function appears to be involved in string manipulation and formatting, specifically dealing with a sequence of characters and performing operations based on certain conditions. It retrieves a string, processes it by removing trailing 'A' characters, and then performs an operation based on the length of the processed string. The function name should reflect its role in formatting or processing strings, particularly in the context of handling a sequence of characters and preparing them for further operations.
Alternative names like "ProcessStringSequence" or "FormatStringData" might mislead by suggesting a broader or different scope of string processing than what the function actually performs. "RemoveTrailingAsAndOperate" is more specific to the function's operations, highlighting the removal of trailing 'A' characters and subsequent actions based on the string's length.
RemoveTrailingAsAndOperate
58_sg_persist_and_sg_persist_strip.c
prin_work
FUN_00011490
"\nint prin_work(int sg_fd,opts_t *op)\n\n{\n uint16_t uVar1;\n int iVar2;\n int iVar3;\n undefi(...TRUNCATED)
"\nvoid FUN_00011490(undefined4 param_1,int param_2)\n\n{\n int iVar1;\n uint uVar2;\n undefined4(...TRUNCATED)
"stmdb sp!,{r4,r11,lr}\nadd r11,sp,#0x8\nsub sp,sp,#0x480\nsub sp,sp,#0x4\nstr r0,[r11,#-0x480]\nstr(...TRUNCATED)
null
null
null
null
"[('const-1', u'PTRADD_-1205982361'), (u'CALL_-1205983255', u'INDIRECT_-1205977724'), (u'INDIRECT_-1(...TRUNCATED)
"[(u'INDIRECT_-1205977471', u'MULTIEQUAL_-1205977406'), (u'MULTIEQUAL_-1205972091', u'MULTIEQUAL_-12(...TRUNCATED)
null
null
00011490
arm
O0
"(translation_unit \"void FUN_00011490(undefined4 param_1,int param_2)\\n\\n{\\n int iVar1;\\n uin(...TRUNCATED)
"\nint function_1(int sg_fd,type_1 *op)\n\n{\n uint16_t uVar1;\n int var_41;\n int var_92;\n typ(...TRUNCATED)
"(translation_unit \"int prin_work(int sg_fd,opts_t *op)\\n\\n{\\n uint16_t uVar1;\\n int iVar2;\\(...TRUNCATED)
"(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator decl(...TRUNCATED)
"\nint MASKED(int sg_fd,opts_t *op)\n\n{\n uint16_t uVar1;\n int iVar2;\n int iVar3;\n undefined(...TRUNCATED)
"\nvoid MASKED(undefined4 param_1,int param_2)\n\n{\n int iVar1;\n uint uVar2;\n undefined4 uVar3(...TRUNCATED)
"translation_unit function_definition primitive_type function_declarator compound_statement identifi(...TRUNCATED)
"void FUN_00011490 ( undefined4 param_1 , int param_2 ) { int iVar1 ; uint uVar2 ; undefined4 uVar3 (...TRUNCATED)
1
1
prin_work
"int prin_work(int sg_fd,opts_t *op)\n{\n uint16_t uVar1;\n int iVar2;\n int iVar3;\n undefined4(...TRUNCATED)
10,650
"The provided function name is appropriate as it encapsulates the function's primary role in process(...TRUNCATED)
"The provided function name is appropriate as it encapsulates the function's primary role in process(...TRUNCATED)
"Reasoning: The function appears to be involved in memory alignment and error handling for persisten(...TRUNCATED)
"Reasoning: The function appears to be involved in memory alignment and error handling for persisten(...TRUNCATED)
"The function appears to be involved in memory alignment and error handling for persistent data oper(...TRUNCATED)
"Alternatives like \"MemoryAligner\" or \"ErrorChecker\" mislead by focusing only on parts of the fu(...TRUNCATED)
"PersistentDataAlignerWithErrorHandling## Question: A 45-year-old male patient presents with a histo(...TRUNCATED)
632_libsqlite3.so.0.8_and_libsqlite3.so.0.8_strip.c
pager_write_pagelist
FUN_00037bac
"\nint pager_write_pagelist(Pager *pPager,PgHdr *pList)\n\n{\n longlong lVar1;\n uint iPage;\n vo(...TRUNCATED)
"\nvoid FUN_00037bac(int param_1,int param_2)\n\n{\n longlong lVar1;\n uint uVar2;\n int iVar3;\n(...TRUNCATED)
"stmdb sp!,{r4,r5,r6,r7,r11,lr}\nadd r11,sp,#0x14\nsub sp,sp,#0x38\nstr r0,[r11,#-0x40]\nstr r1,[r11(...TRUNCATED)
null
null
null
null
"[('const-1', u'INT_ADD_-1206091605'), (u'LOAD_-1206092202', u'INT_LESSEQUAL_-1206092144'), ('const-(...TRUNCATED)
"[(u'CALL_-1206092674', u'INDIRECT_-1206091460'), (u'LOAD_-1206092202', u'INT_LESSEQUAL_-1206092144'(...TRUNCATED)
null
null
00037bac
arm
O0
"(translation_unit \"void FUN_00037bac(int param_1,int param_2)\\n\\n{\\n longlong lVar1;\\n uint (...TRUNCATED)
"\nint function_1(type_1 *pPager,type_2 *pList)\n\n{\n type_3 lVar1;\n type_4 var_10;\n void *pBu(...TRUNCATED)
"(translation_unit \"int pager_write_pagelist(Pager *pPager,PgHdr *pList)\\n\\n{\\n longlong lVar1;(...TRUNCATED)
"(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator decl(...TRUNCATED)
"\nint MASKED(Pager *pPager,PgHdr *pList)\n\n{\n longlong lVar1;\n uint iPage;\n void *pBuf;\n i(...TRUNCATED)
"\nvoid MASKED(int param_1,int param_2)\n\n{\n longlong lVar1;\n uint uVar2;\n int iVar3;\n int (...TRUNCATED)
"translation_unit function_definition primitive_type function_declarator compound_statement identifi(...TRUNCATED)
"void FUN_00037bac ( int param_1 , int param_2 ) { longlong lVar1 ; uint uVar2 ; int iVar3 ; int iVa(...TRUNCATED)
1
1
pager_write_pagelist
"int pager_write_pagelist(Pager *pPager,PgHdr *pList)\n{\n longlong lVar1;\n uint iPage;\n void *(...TRUNCATED)
14,047
"The function name \"pager_write_pagelist\" is appropriate as it encapsulates the primary operation (...TRUNCATED)
"The function name \"pager_write_pagelist\" is appropriate as it encapsulates the primary operation (...TRUNCATED)
"Reasoning: The function appears to be involved in managing and processing data structures, likely r(...TRUNCATED)
"Reasoning: The function appears to be involved in managing and processing data structures, likely r(...TRUNCATED)
"The function appears to be involved in managing and processing data structures, likely related to a(...TRUNCATED)
"Naming the function \"processDataStructure\" might mislead by suggesting a more generic data proces(...TRUNCATED)
updateBufferState
987_putty_and_putty_strip.c
ssh2_channel_open_failure_error_text
FUN_0005d61c
"\nchar * ssh2_channel_open_failure_error_text(Packet *pktin)\n\n{\n Packet *pktin_local;\n char *(...TRUNCATED)
"\nvoid FUN_0005d61c(undefined4 param_1)\n\n{\n undefined4 uVar1;\n int iVar2;\n int local_124;\n(...TRUNCATED)
"stmdb sp!,{r4,r11,lr}\nadd r11,sp,#0x8\nsub sp,sp,#0x124\nstr r0,[r11,#-0x128]\nldr r4,[0x5d71c]\na(...TRUNCATED)
null
null
null
null
"[(u'INDIRECT_-1206200216', u'COPY_-1206200272'), (u'INDIRECT_-1206200146', u'COPY_-1206200205'), (u(...TRUNCATED)
"[(u'CALL_-1206200701', u'CALL_-1206200375'), (u'LOAD_-1206200375', u'INT_EQUAL_-1206200356'), (u'CA(...TRUNCATED)
null
null
0005d61c
arm
O0
"(translation_unit \"void FUN_0005d61c(undefined4 param_1)\\n\\n{\\n undefined4 uVar1;\\n int iVar(...TRUNCATED)
"\nchar * function_1(type_1 *pktin)\n\n{\n type_1 *pktin_local;\n char *var_6;\n int reason_lengt(...TRUNCATED)
"(translation_unit \"char * ssh2_channel_open_failure_error_text(Packet *pktin)\\n\\n{\\n Packet *p(...TRUNCATED)
"(translation_unit (function_definition type: (primitive_type) declarator: (pointer_declarator decla(...TRUNCATED)
"\nchar * MASKED(Packet *pktin)\n\n{\n Packet *pktin_local;\n char *reason_string;\n int reason_l(...TRUNCATED)
"\nvoid MASKED(undefined4 param_1)\n\n{\n undefined4 uVar1;\n int iVar2;\n int local_124;\n unde(...TRUNCATED)
"translation_unit function_definition primitive_type function_declarator compound_statement identifi(...TRUNCATED)
"void FUN_0005d61c ( undefined4 param_1 ) { undefined4 uVar1 ; int iVar2 ; int local_124 ; undefined(...TRUNCATED)
1
1
ssh2_channel_open_failure_error_text
"char * ssh2_channel_open_failure_error_text(Packet *pktin)\n{\n Packet *pktin_local;\n char *reas(...TRUNCATED)
20,615
"The provided function name is appropriate as it encapsulates the function's primary role in handlin(...TRUNCATED)
"The provided function name is appropriate as it encapsulates the function's primary role in handlin(...TRUNCATED)
"Reasoning: The function appears to be involved in handling and processing data based on a parameter(...TRUNCATED)
"Reasoning: The function appears to be involved in handling and processing data based on a parameter(...TRUNCATED)
"The function appears to be involved in handling and processing data based on a parameter, possibly (...TRUNCATED)
"Naming it \"DataFormatter\" might mislead because it suggests the function's sole purpose is format(...TRUNCATED)
LogDataProcessor
275_find_and_find_strip.c
print_tree
FUN_0001c910
"\nvoid print_tree(FILE *fp,predicate *node,int indent)\n\n{\n int indent_local;\n predicate *node(...TRUNCATED)
"\nFILE * FUN_0001c910(FILE *param_1,int param_2,int param_3)\n\n{\n undefined4 uVar1;\n undefined(...TRUNCATED)
"stmdb sp!,{r4,r11,lr}\nadd r11,sp,#0x8\nsub sp,sp,#0x2c\nstr r0,[r11,#-0x18]\nstr r1,[r11,#-0x1c]\n(...TRUNCATED)
null
null
null
null
"[(u'INDIRECT_-1205941633', u'COPY_-1205941690'), ('const-0', u'PTRSUB_-1205941554'), (u'CALL_-12059(...TRUNCATED)
"[(u'CALL_-1205941681', u'INDIRECT_-1205939655'), (u'LOAD_-1205941399', u'INT_NOTEQUAL_-1205941372')(...TRUNCATED)
null
null
0001c910
arm
O0
"(translation_unit \"FILE * FUN_0001c910(FILE *param_1,int param_2,int param_3)\\n\\n{\\n undefined(...TRUNCATED)
"\nvoid function_1(type_1 *fp,type_2 *var_1,int var_2)\n\n{\n int indent_local;\n type_2 *node_loc(...TRUNCATED)
"(translation_unit \"void print_tree(FILE *fp,predicate *node,int indent)\\n\\n{\\n int indent_loca(...TRUNCATED)
"(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator decl(...TRUNCATED)
"\nvoid MASKED(FILE *fp,predicate *node,int indent)\n\n{\n int indent_local;\n predicate *node_loc(...TRUNCATED)
"\nFILE * MASKED(FILE *param_1,int param_2,int param_3)\n\n{\n undefined4 uVar1;\n undefined4 uVar(...TRUNCATED)
"translation_unit function_definition type_identifier pointer_declarator compound_statement * functi(...TRUNCATED)
"FILE * FUN_0001c910 ( FILE * param_1 , int param_2 , int param_3 ) { undefined4 uVar1 ; undefined4 (...TRUNCATED)
1
1
print_tree
"void print_tree(FILE *fp,predicate *node,int indent)\n{\n int indent_local;\n predicate *node_loc(...TRUNCATED)
14,225
"The provided function name is appropriate as it encapsulates the function's primary behavior of out(...TRUNCATED)
"The provided function name is appropriate as it encapsulates the function's primary behavior of out(...TRUNCATED)
"Reasoning: The function appears to be responsible for writing structured data to a file, likely for(...TRUNCATED)
"Reasoning: The function appears to be responsible for writing structured data to a file, likely for(...TRUNCATED)
"The function appears to be responsible for writing structured data to a file, likely for logging or(...TRUNCATED)
"Naming the function \"LogData\" might mislead one to think it only logs simple data, whereas it han(...TRUNCATED)
FormatAndLogData
1969_openssl_and_openssl_strip.c
opt_next
FUN_000b393c
"\n/* WARNING: Unknown calling convention */\n\nint opt_next(void)\n\n{\n char *pcVar1;\n int iVar(...TRUNCATED)
"\nvoid FUN_000b393c(void)\n\n{\n char *pcVar1;\n int iVar2;\n undefined1 *puVar3;\n int iVar4;\(...TRUNCATED)
"stmdb sp!,{r4,r11,lr}\nadd r11,sp,#0x8\nsub sp,sp,#0x3c\nldr r4,[0xb414c]\nadd r4,pc,r4\nldr r3,[0x(...TRUNCATED)
null
null
null
null
"[(u'INDIRECT_-1206629359', u'COPY_-1206629403'), (u'CALL_-1206631959', u'INDIRECT_-1206626926'), (u(...TRUNCATED)
"[(u'MULTIEQUAL_-1206629438', u'INT_ADD_-1206631221'), ('const-4294967295', u'COPY_-1206631056'), (u(...TRUNCATED)
null
null
000b393c
arm
O0
"(translation_unit \"void FUN_000b393c(void)\\n\\n{\\n char *pcVar1;\\n int iVar2;\\n undefined1 (...TRUNCATED)
"\n/* WARNING: Unknown calling convention */\n\nint function_1(void)\n\n{\n char *pcVar1;\n int va(...TRUNCATED)
"(translation_unit \"/* WARNING: Unknown calling convention */\\n\\nint opt_next(void)\\n\\n{\\n ch(...TRUNCATED)
"(translation_unit (comment) (function_definition type: (primitive_type) declarator: (function_decla(...TRUNCATED)
"\n/* WARNING: Unknown calling convention */\n\nint MASKED(void)\n\n{\n char *pcVar1;\n int iVar2;(...TRUNCATED)
"\nvoid MASKED(void)\n\n{\n char *pcVar1;\n int iVar2;\n undefined1 *puVar3;\n int iVar4;\n und(...TRUNCATED)
"translation_unit function_definition primitive_type function_declarator compound_statement identifi(...TRUNCATED)
"void FUN_000b393c ( void ) { char * pcVar1 ; int iVar2 ; undefined1 * puVar3 ; int iVar4 ; undefine(...TRUNCATED)
1
1
opt_next
"int opt_next(void)\n{\n char *pcVar1;\n int iVar2;\n undefined1 *puVar3;\n int iVar4;\n ulong (...TRUNCATED)
17,377
"The provided function name is appropriate as it encapsulates the function's primary operation of ad(...TRUNCATED)
"The provided function name is appropriate as it encapsulates the function's primary operation of ad(...TRUNCATED)
"Reasoning: The function appears to be involved in parsing and validating command-line arguments, sp(...TRUNCATED)
"Reasoning: The function appears to be involved in parsing and validating command-line arguments, sp(...TRUNCATED)
"The function appears to be involved in parsing and validating command-line arguments, specifically (...TRUNCATED)
"Naming the function \"parse_command_line_argument\" would be misleading because it suggests a broad(...TRUNCATED)
handle_hyphenated_argument
README.md exists but content is empty.
Downloads last month
4