
/* WARNING: Type propagation algorithm not settling */

int sh_chkwrite(int s)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  
  puVar3 = PTR_terminating_signal_00144834;
  if (*(int *)PTR_terminating_signal_00144834 == 0) {
    iVar4 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
  }
  else {
    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);
    iVar4 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
  }
  PTR_interrupt_state_0014483c = (undefined *)piVar2;
  PTR_stdout_001462f8 = (undefined *)puVar1;
  if (iVar4 == 0) {
    (*(code *)PTR_fflush_00146520)(*puVar1);
    iVar4 = *(int *)puVar3;
  }
  else {
    (*(code *)PTR_throw_to_top_level_00144840)();
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);
    iVar4 = *(int *)puVar3;
  }
  if (iVar4 == 0) {
    iVar4 = *piVar2;
  }
  else {
    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);
    iVar4 = *piVar2;
  }
  if (iVar4 == 0) {
    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);
  }
  else {
    (*(code *)PTR_throw_to_top_level_00144840)();
    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);
  }
  if (iVar4 == 0) {
    return s;
  }
  sh_wrerror();
  (*(code *)PTR_fpurge_00144d74)(*puVar1);
  (*(code *)PTR_clearerr_00146290)(*puVar1);
  return 1;
}



/* WARNING: Type propagation algorithm not settling */

undefined4 sh_chkwrite(undefined4 param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  
  puVar3 = PTR_terminating_signal_00144834;
  if (*(int *)PTR_terminating_signal_00144834 == 0) {
    iVar4 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
  }
  else {
    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);
    iVar4 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
  }
  PTR_interrupt_state_0014483c = (undefined *)piVar2;
  PTR_stdout_001462f8 = (undefined *)puVar1;
  if (iVar4 == 0) {
    (*(code *)PTR_fflush_00146520)(*puVar1);
    iVar4 = *(int *)puVar3;
  }
  else {
    (*(code *)PTR_throw_to_top_level_00144840)();
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);
    iVar4 = *(int *)puVar3;
  }
  if (iVar4 == 0) {
    iVar4 = *piVar2;
  }
  else {
    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);
    iVar4 = *piVar2;
  }
  if (iVar4 == 0) {
    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);
  }
  else {
    (*(code *)PTR_throw_to_top_level_00144840)();
    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);
  }
  if (iVar4 == 0) {
    return param_1;
  }
  sh_wrerror();
  (*(code *)PTR_fpurge_00144d74)(*puVar1);
  (*(code *)PTR_clearerr_00146290)(*puVar1);
  return 1;
}


lui gp,0xa
addiu gp,gp,-0x4540
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x1c(sp)
lw s0,-0x7d0c(gp)
sw gp,0x10(sp)
sw s3,0x28(sp)
or s3,a0,zero
sw ra,0x2c(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
lw v0,0x0(s0)
bne v0,zero,0x000b0b24
_lw s2,-0x7d04(gp)
lw v0,0x0(s2)
bne v0,zero,0x000b0b4c
_lw t9,-0x7d00(gp)
lw s1,-0x6248(gp)
lw t9,-0x6020(gp)
jalr t9
_lw a0,0x0(s1)
lw v0,0x0(s0)
bne v0,zero,0x000b0b74
_lw gp,0x10(sp)
lw v0,0x0(s2)
bne v0,zero,0x000b0b94
_lw t9,-0x7d00(gp)
lw t9,-0x6070(gp)
jalr t9
_lw a0,0x0(s1)
bne v0,zero,0x000b0bb4
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,s3,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7d08(gp)
lw a0,0x0(s0)
jalr t9
_nop
lw gp,0x10(sp)
lw s2,-0x7d04(gp)
lw v0,0x0(s2)
beq v0,zero,0x000b0acc
_lw s1,-0x6248(gp)
lw t9,-0x7d00(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw s1,-0x6248(gp)
lw t9,-0x6020(gp)
jalr t9
_lw a0,0x0(s1)
lw v0,0x0(s0)
beq v0,zero,0x000b0ae4
_lw gp,0x10(sp)
lw t9,-0x7d08(gp)
lw a0,0x0(s0)
jalr t9
_nop
lw v0,0x0(s2)
beq v0,zero,0x000b0af0
_lw gp,0x10(sp)
lw t9,-0x7d00(gp)
jalr t9
_nop
lw gp,0x10(sp)
lw t9,-0x6070(gp)
jalr t9
_lw a0,0x0(s1)
beq v0,zero,0x000b0b04
_lw gp,0x10(sp)
lw t9,-0x6c70(gp)
bal 0x000b0974
_li s3,0x1
lw gp,0x10(sp)
lw t9,-0x77cc(gp)
jalr t9
_lw a0,0x0(s1)
lw gp,0x10(sp)
lw t9,-0x62b0(gp)
jalr t9
_lw a0,0x0(s1)
or v0,s3,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nundefined4 sh_chkwrite(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}\n\n" comment (function_definition "undefined4 sh_chkwrite(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" type_identifier (function_declarator "sh_chkwrite(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_terminating_signal_00144834;" (assignment_expression "puVar3 = PTR_terminating_signal_00144834" identifier = identifier) ;) (if_statement "if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" if (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 == 0)" ( (binary_expression "*(int *)PTR_terminating_signal_00144834 == 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" * (cast_expression "(int *)PTR_terminating_signal_00144834" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" { (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" identifier = (pointer_expression "*(int *)PTR_interrupt_state_0014483c" * (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" identifier = (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" else (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" ( (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" * (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" identifier = (pointer_expression "*(int *)PTR_interrupt_state_0014483c" * (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" identifier = (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "PTR_interrupt_state_0014483c = (undefined *)piVar2;" (assignment_expression "PTR_interrupt_state_0014483c = (undefined *)piVar2" identifier = (cast_expression "(undefined *)piVar2" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "PTR_stdout_001462f8 = (undefined *)puVar1;" (assignment_expression "PTR_stdout_001462f8 = (undefined *)puVar1" identifier = (cast_expression "(undefined *)puVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }" { (expression_statement "(*(code *)PTR_fflush_00146520)(*puVar1);" (call_expression "(*(code *)PTR_fflush_00146520)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" else (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" { (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" ( (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" * (cast_expression "(code *)PTR_throw_to_top_level_00144840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);" (call_expression "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stdout_001462f8)" ( (pointer_expression "*(undefined4 *)PTR_stdout_001462f8" * (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (if_statement "if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = *piVar2;\n  }" { (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" else (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" identifier = (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" ( (pointer_expression "*(code *)PTR_ferror_001464d0" * (cast_expression "(code *)PTR_ferror_001464d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) }) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" else (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" { (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" ( (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" * (cast_expression "(code *)PTR_throw_to_top_level_00144840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" identifier = (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" ( (pointer_expression "*(code *)PTR_ferror_001464d0" * (cast_expression "(code *)PTR_ferror_001464d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) }))) (if_statement "if (iVar4 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "sh_wrerror();" (call_expression "sh_wrerror()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_fpurge_00144d74)(*puVar1);" (call_expression "(*(code *)PTR_fpurge_00144d74)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fpurge_00144d74)" ( (pointer_expression "*(code *)PTR_fpurge_00144d74" * (cast_expression "(code *)PTR_fpurge_00144d74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "(*(code *)PTR_clearerr_00146290)(*puVar1);" (call_expression "(*(code *)PTR_clearerr_00146290)(*puVar1)" (parenthesized_expression "(*(code *)PTR_clearerr_00146290)" ( (pointer_expression "*(code *)PTR_clearerr_00146290" * (cast_expression "(code *)PTR_clearerr_00146290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Type propagation algorithm not settling */\n\nint sh_chkwrite(int s)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return s;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}\n\n" comment (function_definition "int sh_chkwrite(int s)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return s;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" primitive_type (function_declarator "sh_chkwrite(int s)" identifier (parameter_list "(int s)" ( (parameter_declaration "int s" primitive_type identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return s;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_terminating_signal_00144834;" (assignment_expression "puVar3 = PTR_terminating_signal_00144834" identifier = identifier) ;) (if_statement "if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" if (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 == 0)" ( (binary_expression "*(int *)PTR_terminating_signal_00144834 == 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" * (cast_expression "(int *)PTR_terminating_signal_00144834" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" { (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" identifier = (pointer_expression "*(int *)PTR_interrupt_state_0014483c" * (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" identifier = (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" else (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" ( (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" * (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" identifier = (pointer_expression "*(int *)PTR_interrupt_state_0014483c" * (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" identifier = (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "PTR_interrupt_state_0014483c = (undefined *)piVar2;" (assignment_expression "PTR_interrupt_state_0014483c = (undefined *)piVar2" identifier = (cast_expression "(undefined *)piVar2" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "PTR_stdout_001462f8 = (undefined *)puVar1;" (assignment_expression "PTR_stdout_001462f8 = (undefined *)puVar1" identifier = (cast_expression "(undefined *)puVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }" { (expression_statement "(*(code *)PTR_fflush_00146520)(*puVar1);" (call_expression "(*(code *)PTR_fflush_00146520)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" else (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" { (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" ( (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" * (cast_expression "(code *)PTR_throw_to_top_level_00144840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);" (call_expression "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stdout_001462f8)" ( (pointer_expression "*(undefined4 *)PTR_stdout_001462f8" * (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (if_statement "if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = *piVar2;\n  }" { (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" else (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" identifier = (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" ( (pointer_expression "*(code *)PTR_ferror_001464d0" * (cast_expression "(code *)PTR_ferror_001464d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) }) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" else (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" { (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" ( (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" * (cast_expression "(code *)PTR_throw_to_top_level_00144840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" identifier = (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" ( (pointer_expression "*(code *)PTR_ferror_001464d0" * (cast_expression "(code *)PTR_ferror_001464d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) }))) (if_statement "if (iVar4 == 0) {\n    return s;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return s;\n  }" { (return_statement "return s;" return identifier ;) })) (expression_statement "sh_wrerror();" (call_expression "sh_wrerror()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_fpurge_00144d74)(*puVar1);" (call_expression "(*(code *)PTR_fpurge_00144d74)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fpurge_00144d74)" ( (pointer_expression "*(code *)PTR_fpurge_00144d74" * (cast_expression "(code *)PTR_fpurge_00144d74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "(*(code *)PTR_clearerr_00146290)(*puVar1);" (call_expression "(*(code *)PTR_clearerr_00146290)(*puVar1)" (parenthesized_expression "(*(code *)PTR_clearerr_00146290)" ( (pointer_expression "*(code *)PTR_clearerr_00146290" * (cast_expression "(code *)PTR_clearerr_00146290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 sh_chkwrite(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}\n\n" (function_definition "undefined4 sh_chkwrite(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" type_identifier (function_declarator "sh_chkwrite(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "puVar3 = PTR_terminating_signal_00144834;" (assignment_expression "puVar3 = PTR_terminating_signal_00144834" identifier = identifier) ;) (if_statement "if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" if (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 == 0)" ( (binary_expression "*(int *)PTR_terminating_signal_00144834 == 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" * (cast_expression "(int *)PTR_terminating_signal_00144834" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" { (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" identifier = (pointer_expression "*(int *)PTR_interrupt_state_0014483c" * (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" identifier = (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" else (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" ( (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" * (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" identifier = (pointer_expression "*(int *)PTR_interrupt_state_0014483c" * (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" identifier = (cast_expression "(int *)PTR_interrupt_state_0014483c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) }))) (expression_statement "PTR_interrupt_state_0014483c = (undefined *)piVar2;" (assignment_expression "PTR_interrupt_state_0014483c = (undefined *)piVar2" identifier = (cast_expression "(undefined *)piVar2" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "PTR_stdout_001462f8 = (undefined *)puVar1;" (assignment_expression "PTR_stdout_001462f8 = (undefined *)puVar1" identifier = (cast_expression "(undefined *)puVar1" ( (type_descriptor "undefined *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }" { (expression_statement "(*(code *)PTR_fflush_00146520)(*puVar1);" (call_expression "(*(code *)PTR_fflush_00146520)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" else (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" { (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" ( (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" * (cast_expression "(code *)PTR_throw_to_top_level_00144840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" identifier = (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);" (call_expression "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" ( (pointer_expression "*(code *)PTR_fflush_00146520" * (cast_expression "(code *)PTR_fflush_00146520" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)PTR_stdout_001462f8)" ( (pointer_expression "*(undefined4 *)PTR_stdout_001462f8" * (cast_expression "(undefined4 *)PTR_stdout_001462f8" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" identifier = (pointer_expression "*(int *)puVar3" * (cast_expression "(int *)puVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) }))) (if_statement "if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = *piVar2;\n  }" { (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" else (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" { (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" ( (pointer_expression "*(code *)PTR_termsig_handler_00144838" * (cast_expression "(code *)PTR_termsig_handler_00144838" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)puVar3)" ( (pointer_expression "*(undefined4 *)puVar3" * (cast_expression "(undefined4 *)puVar3" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) ;) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) }))) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" identifier = (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" ( (pointer_expression "*(code *)PTR_ferror_001464d0" * (cast_expression "(code *)PTR_ferror_001464d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) }) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" else (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" { (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" ( (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" * (cast_expression "(code *)PTR_throw_to_top_level_00144840" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" identifier = (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" ( (pointer_expression "*(code *)PTR_ferror_001464d0" * (cast_expression "(code *)PTR_ferror_001464d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) )))) ;) }))) (if_statement "if (iVar4 == 0) {\n    return param_1;\n  }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n    return param_1;\n  }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "sh_wrerror();" (call_expression "sh_wrerror()" identifier (argument_list "()" ( ))) ;) (expression_statement "(*(code *)PTR_fpurge_00144d74)(*puVar1);" (call_expression "(*(code *)PTR_fpurge_00144d74)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fpurge_00144d74)" ( (pointer_expression "*(code *)PTR_fpurge_00144d74" * (cast_expression "(code *)PTR_fpurge_00144d74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (expression_statement "(*(code *)PTR_clearerr_00146290)(*puVar1);" (call_expression "(*(code *)PTR_clearerr_00146290)(*puVar1)" (parenthesized_expression "(*(code *)PTR_clearerr_00146290)" ( (pointer_expression "*(code *)PTR_clearerr_00146290" * (cast_expression "(code *)PTR_clearerr_00146290" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*puVar1)" ( (pointer_expression "*puVar1" * identifier) ))) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 sh_chkwrite(undefined4 param_1)\n\n{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "sh_chkwrite(undefined4 param_1)" (identifier "sh_chkwrite") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  int *piVar2;\n  undefined *puVar3;\n  int iVar4;\n  \n  puVar3 = PTR_terminating_signal_00144834;\n  if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  PTR_interrupt_state_0014483c = (undefined *)piVar2;\n  PTR_stdout_001462f8 = (undefined *)puVar1;\n  if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }\n  if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }\n  if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  if (iVar4 == 0) {\n    return param_1;\n  }\n  sh_wrerror();\n  (*(code *)PTR_fpurge_00144d74)(*puVar1);\n  (*(code *)PTR_clearerr_00146290)(*puVar1);\n  return 1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "puVar3 = PTR_terminating_signal_00144834;" (assignment_expression "puVar3 = PTR_terminating_signal_00144834" (identifier "puVar3") (= "=") (identifier "PTR_terminating_signal_00144834")) (; ";")) (if_statement "if (*(int *)PTR_terminating_signal_00144834 == 0) {\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" (if "if") (parenthesized_expression "(*(int *)PTR_terminating_signal_00144834 == 0)" (( "(") (binary_expression "*(int *)PTR_terminating_signal_00144834 == 0" (pointer_expression "*(int *)PTR_terminating_signal_00144834" (* "*") (cast_expression "(int *)PTR_terminating_signal_00144834" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_terminating_signal_00144834"))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" ({ "{") (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_interrupt_state_0014483c" (* "*") (cast_expression "(int *)PTR_interrupt_state_0014483c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_interrupt_state_0014483c")))) (; ";")) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_interrupt_state_0014483c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_interrupt_state_0014483c"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)PTR_stdout_001462f8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_001462f8"))) (; ";")) (} "}")) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" (else "else") (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);\n    iVar4 = *(int *)PTR_interrupt_state_0014483c;\n    piVar2 = (int *)PTR_interrupt_state_0014483c;\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n  }" ({ "{") (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" (( "(") (pointer_expression "*(code *)PTR_termsig_handler_00144838" (* "*") (cast_expression "(code *)PTR_termsig_handler_00144838" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_termsig_handler_00144838"))) () ")")) (argument_list "(*(undefined4 *)PTR_terminating_signal_00144834)" (( "(") (pointer_expression "*(undefined4 *)PTR_terminating_signal_00144834" (* "*") (cast_expression "(undefined4 *)PTR_terminating_signal_00144834" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_terminating_signal_00144834"))) () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)PTR_interrupt_state_0014483c;" (assignment_expression "iVar4 = *(int *)PTR_interrupt_state_0014483c" (identifier "iVar4") (= "=") (pointer_expression "*(int *)PTR_interrupt_state_0014483c" (* "*") (cast_expression "(int *)PTR_interrupt_state_0014483c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_interrupt_state_0014483c")))) (; ";")) (expression_statement "piVar2 = (int *)PTR_interrupt_state_0014483c;" (assignment_expression "piVar2 = (int *)PTR_interrupt_state_0014483c" (identifier "piVar2") (= "=") (cast_expression "(int *)PTR_interrupt_state_0014483c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_interrupt_state_0014483c"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)PTR_stdout_001462f8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_001462f8"))) (; ";")) (} "}")))) (expression_statement "PTR_interrupt_state_0014483c = (undefined *)piVar2;" (assignment_expression "PTR_interrupt_state_0014483c = (undefined *)piVar2" (identifier "PTR_interrupt_state_0014483c") (= "=") (cast_expression "(undefined *)piVar2" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar2"))) (; ";")) (expression_statement "PTR_stdout_001462f8 = (undefined *)puVar1;" (assignment_expression "PTR_stdout_001462f8 = (undefined *)puVar1" (identifier "PTR_stdout_001462f8") (= "=") (cast_expression "(undefined *)puVar1" (( "(") (type_descriptor "undefined *" (type_identifier "undefined") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) (; ";")) (if_statement "if (iVar4 == 0) {\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (*(code *)PTR_fflush_00146520)(*puVar1);\n    iVar4 = *(int *)puVar3;\n  }" ({ "{") (expression_statement "(*(code *)PTR_fflush_00146520)(*puVar1);" (call_expression "(*(code *)PTR_fflush_00146520)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" (( "(") (pointer_expression "*(code *)PTR_fflush_00146520" (* "*") (cast_expression "(code *)PTR_fflush_00146520" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_00146520"))) () ")")) (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" (identifier "iVar4") (= "=") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) (; ";")) (} "}")) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" (else "else") (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    puVar1 = (undefined4 *)PTR_stdout_001462f8;\n    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);\n    iVar4 = *(int *)puVar3;\n  }" ({ "{") (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" (( "(") (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" (* "*") (cast_expression "(code *)PTR_throw_to_top_level_00144840" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_throw_to_top_level_00144840"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined4 *)PTR_stdout_001462f8;" (assignment_expression "puVar1 = (undefined4 *)PTR_stdout_001462f8" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)PTR_stdout_001462f8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_001462f8"))) (; ";")) (expression_statement "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);" (call_expression "(*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8)" (parenthesized_expression "(*(code *)PTR_fflush_00146520)" (( "(") (pointer_expression "*(code *)PTR_fflush_00146520" (* "*") (cast_expression "(code *)PTR_fflush_00146520" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fflush_00146520"))) () ")")) (argument_list "(*(undefined4 *)PTR_stdout_001462f8)" (( "(") (pointer_expression "*(undefined4 *)PTR_stdout_001462f8" (* "*") (cast_expression "(undefined4 *)PTR_stdout_001462f8" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_stdout_001462f8"))) () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)puVar3;" (assignment_expression "iVar4 = *(int *)puVar3" (identifier "iVar4") (= "=") (pointer_expression "*(int *)puVar3" (* "*") (cast_expression "(int *)puVar3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3")))) (; ";")) (} "}")))) (if_statement "if (iVar4 == 0) {\n    iVar4 = *piVar2;\n  }\n  else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = *piVar2;\n  }" ({ "{") (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}")) (else_clause "else {\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" (else "else") (compound_statement "{\n    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);\n    iVar4 = *piVar2;\n  }" ({ "{") (expression_statement "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);" (call_expression "(*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3)" (parenthesized_expression "(*(code *)PTR_termsig_handler_00144838)" (( "(") (pointer_expression "*(code *)PTR_termsig_handler_00144838" (* "*") (cast_expression "(code *)PTR_termsig_handler_00144838" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_termsig_handler_00144838"))) () ")")) (argument_list "(*(undefined4 *)puVar3)" (( "(") (pointer_expression "*(undefined4 *)puVar3" (* "*") (cast_expression "(undefined4 *)puVar3" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")"))) (; ";")) (expression_statement "iVar4 = *piVar2;" (assignment_expression "iVar4 = *piVar2" (identifier "iVar4") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (} "}")))) (if_statement "if (iVar4 == 0) {\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }\n  else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" (( "(") (pointer_expression "*(code *)PTR_ferror_001464d0" (* "*") (cast_expression "(code *)PTR_ferror_001464d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ferror_001464d0"))) () ")")) (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" (else "else") (compound_statement "{\n    (*(code *)PTR_throw_to_top_level_00144840)();\n    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);\n  }" ({ "{") (expression_statement "(*(code *)PTR_throw_to_top_level_00144840)();" (call_expression "(*(code *)PTR_throw_to_top_level_00144840)()" (parenthesized_expression "(*(code *)PTR_throw_to_top_level_00144840)" (( "(") (pointer_expression "*(code *)PTR_throw_to_top_level_00144840" (* "*") (cast_expression "(code *)PTR_throw_to_top_level_00144840" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_throw_to_top_level_00144840"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);" (assignment_expression "iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_ferror_001464d0)(*puVar1)" (parenthesized_expression "(*(code *)PTR_ferror_001464d0)" (( "(") (pointer_expression "*(code *)PTR_ferror_001464d0" (* "*") (cast_expression "(code *)PTR_ferror_001464d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_ferror_001464d0"))) () ")")) (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar4 == 0) {\n    return param_1;\n  }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return param_1;\n  }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "sh_wrerror();" (call_expression "sh_wrerror()" (identifier "sh_wrerror") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_fpurge_00144d74)(*puVar1);" (call_expression "(*(code *)PTR_fpurge_00144d74)(*puVar1)" (parenthesized_expression "(*(code *)PTR_fpurge_00144d74)" (( "(") (pointer_expression "*(code *)PTR_fpurge_00144d74" (* "*") (cast_expression "(code *)PTR_fpurge_00144d74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fpurge_00144d74"))) () ")")) (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_clearerr_00146290)(*puVar1);" (call_expression "(*(code *)PTR_clearerr_00146290)(*puVar1)" (parenthesized_expression "(*(code *)PTR_clearerr_00146290)" (( "(") (pointer_expression "*(code *)PTR_clearerr_00146290" (* "*") (cast_expression "(code *)PTR_clearerr_00146290" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_clearerr_00146290"))) () ")")) (argument_list "(*puVar1)" (( "(") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

/* WARNING: Type propagation algorithm not settling */

int function_1(int s)

{
  type_1 *puVar1;
  int *piVar2;
  type_2 *puVar3;
  int var_1;
  
  puVar3 = PTR_terminating_signal_00144834;
  if (*(int *)PTR_terminating_signal_00144834 == 0) {
    var_1 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (type_1 *)PTR_stdout_001462f8;
  }
  else {
    (*(type_3 *)PTR_termsig_handler_00144838)(*(type_1 *)PTR_terminating_signal_00144834);
    var_1 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (type_1 *)PTR_stdout_001462f8;
  }
  PTR_interrupt_state_0014483c = (type_2 *)piVar2;
  PTR_stdout_001462f8 = (type_2 *)puVar1;
  if (var_1 == 0) {
    (*(type_3 *)PTR_fflush_00146520)(*puVar1);
    var_1 = *(int *)puVar3;
  }
  else {
    (*(type_3 *)PTR_throw_to_top_level_00144840)();
    puVar1 = (type_1 *)PTR_stdout_001462f8;
    (*(type_3 *)PTR_fflush_00146520)(*(type_1 *)PTR_stdout_001462f8);
    var_1 = *(int *)puVar3;
  }
  if (var_1 == 0) {
    var_1 = *piVar2;
  }
  else {
    (*(type_3 *)PTR_termsig_handler_00144838)(*(type_1 *)puVar3);
    var_1 = *piVar2;
  }
  if (var_1 == 0) {
    var_1 = (*(type_3 *)PTR_ferror_001464d0)(*puVar1);
  }
  else {
    (*(type_3 *)PTR_throw_to_top_level_00144840)();
    var_1 = (*(type_3 *)PTR_ferror_001464d0)(*puVar1);
  }
  if (var_1 == 0) {
    return s;
  }
  var_2();
  (*(type_3 *)PTR_fpurge_00144d74)(*puVar1);
  (*(type_3 *)PTR_clearerr_00146290)(*puVar1);
  return 1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (pointer_expression argument: (identifier))))) (return_statement (number_literal)))))

/* WARNING: Type propagation algorithm not settling */

undefined4 MASKED(undefined4 param_1)

{
  undefined4 *puVar1;
  int *piVar2;
  undefined *puVar3;
  int iVar4;
  
  puVar3 = PTR_terminating_signal_00144834;
  if (*(int *)PTR_terminating_signal_00144834 == 0) {
    iVar4 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
  }
  else {
    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)PTR_terminating_signal_00144834);
    iVar4 = *(int *)PTR_interrupt_state_0014483c;
    piVar2 = (int *)PTR_interrupt_state_0014483c;
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
  }
  PTR_interrupt_state_0014483c = (undefined *)piVar2;
  PTR_stdout_001462f8 = (undefined *)puVar1;
  if (iVar4 == 0) {
    (*(code *)PTR_fflush_00146520)(*puVar1);
    iVar4 = *(int *)puVar3;
  }
  else {
    (*(code *)PTR_throw_to_top_level_00144840)();
    puVar1 = (undefined4 *)PTR_stdout_001462f8;
    (*(code *)PTR_fflush_00146520)(*(undefined4 *)PTR_stdout_001462f8);
    iVar4 = *(int *)puVar3;
  }
  if (iVar4 == 0) {
    iVar4 = *piVar2;
  }
  else {
    (*(code *)PTR_termsig_handler_00144838)(*(undefined4 *)puVar3);
    iVar4 = *piVar2;
  }
  if (iVar4 == 0) {
    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);
  }
  else {
    (*(code *)PTR_throw_to_top_level_00144840)();
    iVar4 = (*(code *)PTR_ferror_001464d0)(*puVar1);
  }
  if (iVar4 == 0) {
    return param_1;
  }
  sh_wrerror();
  (*(code *)PTR_fpurge_00144d74)(*puVar1);
  (*(code *)PTR_clearerr_00146290)(*puVar1);
  return 1;
}

