
void finish_program(vector *program)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  
  puVar1 = PTR___progname_0003f168;
  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);
  if (piVar2 == (int *)0x0) {
    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);
    puVar4 = PTR___progname_0003f168;
    if (piVar2 != (int *)0x0) goto LAB_000167d4;
  }
  else {
    do {
      if (*piVar2 != 0) {
        (*(code *)PTR_free_0003f4d8)(*piVar2);
        *piVar2 = 0;
      }
      piVar2 = (int *)piVar2[3];
    } while (piVar2 != (int *)0x0);
    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);
    puVar4 = PTR___progname_0003f168;
    if (piVar2 != (int *)0x0) {
LAB_000167d4:
      do {
        if (*piVar2 != 0) {
          (*(code *)PTR_free_0003f4d8)(*piVar2);
          *piVar2 = 0;
        }
        piVar2 = (int *)piVar2[3];
      } while (piVar2 != (int *)0x0);
      iVar3 = *(int *)(puVar1 + -0xa88);
      goto joined_r0x00016804;
    }
    iVar3 = *(int *)(puVar1 + -0xa88);
    if (iVar3 != 0) {
      do {
        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {
          ck_fclose(*(FILE **)(iVar3 + 8));
        }
        iVar3 = *(int *)(iVar3 + 0xc);
joined_r0x00016804:
      } while (iVar3 != 0);
      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {
        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {
          ck_fclose(*(FILE **)(iVar3 + 8));
        }
      }
    }
  }
  *(undefined4 *)(puVar4 + -0xa8c) = 0;
  *(undefined4 *)(puVar1 + -0xa88) = 0;
  return;
}



void finish_program(void)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  
  puVar1 = PTR___progname_0003f168;
  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);
  if (piVar2 == (int *)0x0) {
    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);
    puVar4 = PTR___progname_0003f168;
    if (piVar2 != (int *)0x0) goto LAB_000167d4;
  }
  else {
    do {
      if (*piVar2 != 0) {
        (*(code *)PTR_free_0003f4d8)(*piVar2);
        *piVar2 = 0;
      }
      piVar2 = (int *)piVar2[3];
    } while (piVar2 != (int *)0x0);
    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);
    puVar4 = PTR___progname_0003f168;
    if (piVar2 != (int *)0x0) {
LAB_000167d4:
      do {
        if (*piVar2 != 0) {
          (*(code *)PTR_free_0003f4d8)(*piVar2);
          *piVar2 = 0;
        }
        piVar2 = (int *)piVar2[3];
      } while (piVar2 != (int *)0x0);
      iVar3 = *(int *)(puVar1 + -0xa88);
      goto joined_r0x00016804;
    }
    iVar3 = *(int *)(puVar1 + -0xa88);
    if (iVar3 != 0) {
      do {
        if (*(int *)(iVar3 + 8) != 0) {
          ck_fclose();
        }
        iVar3 = *(int *)(iVar3 + 0xc);
joined_r0x00016804:
      } while (iVar3 != 0);
      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {
        if (*(int *)(iVar3 + 8) != 0) {
          ck_fclose();
        }
      }
    }
  }
  *(undefined4 *)(puVar4 + -0xa8c) = 0;
  *(undefined4 *)(puVar1 + -0xa88) = 0;
  return;
}


lui gp,0x3
addiu gp,gp,0x9d8
addu gp,gp,t9
addiu sp,sp,-0x28
sw s1,0x1c(sp)
sw s0,0x18(sp)
lw s1,-0x7fd8(gp)
sw gp,0x10(sp)
sw ra,0x24(sp)
sw s2,0x20(sp)
lw s0,-0xa88(s1)
beq s0,zero,0x0001687c
_lw s2,-0x7fd8(gp)
lw v0,0x0(s0)
lw t9,-0x7c68(gp)
beq v0,zero,0x000167bc
_or a0,v0,zero
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x0(s0)
lw s0,0xc(s0)
bne s0,zero,0x0001679c
_lw s2,-0x7fd8(gp)
lw s0,-0xa8c(s2)
beq s0,zero,0x00016890
_nop
lw v0,0x0(s0)
lw t9,-0x7c68(gp)
beq v0,zero,0x000167f4
_or a0,v0,zero
jalr t9
_nop
lw gp,0x10(sp)
sw zero,0x0(s0)
lw s0,0xc(s0)
bne s0,zero,0x000167d4
_nop
lw s0,-0xa88(s1)
beq s0,zero,0x00016830
_nop
lw a0,0x8(s0)
beq a0,zero,0x00016824
_lw t9,-0x7fbc(gp)
bal 0x0001d150
_nop
lw gp,0x10(sp)
lw s0,0xc(s0)
bne s0,zero,0x0001680c
_nop
lw s0,-0xa8c(s2)
beq s0,zero,0x00016860
_lw ra,0x24(sp)
lw a0,0x8(s0)
beq a0,zero,0x00016854
_lw t9,-0x7fbc(gp)
bal 0x0001d150
_nop
lw gp,0x10(sp)
lw s0,0xc(s0)
bne s0,zero,0x0001683c
_lw ra,0x24(sp)
lw s0,0x18(sp)
sw zero,-0xa8c(s2)
sw zero,-0xa88(s1)
lw s2,0x20(sp)
lw s1,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw s0,-0xa8c(s2)
bne s0,zero,0x000167d4
_lw ra,0x24(sp)
b 0x00016864
_lw s0,0x18(sp)
lw s0,-0xa88(s1)
bne s0,zero,0x0001680c
_lw ra,0x24(sp)
b 0x00016864
_lw s0,0x18(sp)
(translation_unit "void finish_program(void)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}\n\n" (function_definition "void finish_program(void)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" primitive_type (function_declarator "finish_program(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar1 = PTR___progname_0003f168;" (assignment_expression "puVar1 = PTR___progname_0003f168" identifier = identifier) ;) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa88)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa88)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa88)" ( (binary_expression "PTR___progname_0003f168 + -0xa88" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }" { (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" ( (binary_expression "PTR___progname_0003f168 + -0xa8c" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" identifier = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) goto LAB_000167d4;" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000167d4;" goto statement_identifier ;)) }) (else_clause "else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" else (compound_statement "{\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" { (do_statement "do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    }" { (if_statement "if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" { (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" ( (pointer_expression "*(code *)PTR_free_0003f4d8" * (cast_expression "(code *)PTR_free_0003f4d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" identifier = (cast_expression "(int *)piVar2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" ( (binary_expression "PTR___progname_0003f168 + -0xa8c" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" identifier = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" { (labeled_statement "LAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" statement_identifier : (do_statement "do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      }" { (if_statement "if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" { (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" ( (pointer_expression "*(code *)PTR_free_0003f4d8" * (cast_expression "(code *)PTR_free_0003f4d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" identifier = (cast_expression "(int *)piVar2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" identifier = (pointer_expression "*(int *)(puVar1 + -0xa88)" * (cast_expression "(int *)(puVar1 + -0xa88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00016804;" goto statement_identifier ;) })) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" identifier = (pointer_expression "*(int *)(puVar1 + -0xa88)" * (cast_expression "(int *)(puVar1 + -0xa88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }" { (do_statement "do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);" do (compound_statement "{\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      }" { (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }" if (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" ( (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          ck_fclose();\n        }" { (expression_statement "ck_fclose();" (call_expression "ck_fclose()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00016804:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (for_statement "for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }" for ( (assignment_expression "iVar3 = *(int *)(puVar4 + -0xa8c)" identifier = (pointer_expression "*(int *)(puVar4 + -0xa8c)" * (cast_expression "(int *)(puVar4 + -0xa8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0xa8c)" ( (binary_expression "puVar4 + -0xa8c" identifier + number_literal) ))))) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }" { (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }" if (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" ( (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          ck_fclose();\n        }" { (expression_statement "ck_fclose();" (call_expression "ck_fclose()" identifier (argument_list "()" ( ))) ;) })) })) })) }))) (expression_statement "*(undefined4 *)(puVar4 + -0xa8c) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0xa8c) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0xa8c)" * (cast_expression "(undefined4 *)(puVar4 + -0xa8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0xa8c)" ( (binary_expression "puVar4 + -0xa8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + -0xa88) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + -0xa88) = 0" (pointer_expression "*(undefined4 *)(puVar1 + -0xa88)" * (cast_expression "(undefined4 *)(puVar1 + -0xa88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void finish_program(vector *program)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}\n\n" (function_definition "void finish_program(vector *program)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" primitive_type (function_declarator "finish_program(vector *program)" identifier (parameter_list "(vector *program)" ( (parameter_declaration "vector *program" type_identifier (pointer_declarator "*program" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar1 = PTR___progname_0003f168;" (assignment_expression "puVar1 = PTR___progname_0003f168" identifier = identifier) ;) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa88)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa88)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa88)" ( (binary_expression "PTR___progname_0003f168 + -0xa88" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }" { (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" ( (binary_expression "PTR___progname_0003f168 + -0xa8c" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" identifier = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) goto LAB_000167d4;" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000167d4;" goto statement_identifier ;)) }) (else_clause "else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }\n  }" else (compound_statement "{\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }\n  }" { (do_statement "do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    }" { (if_statement "if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" { (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" ( (pointer_expression "*(code *)PTR_free_0003f4d8" * (cast_expression "(code *)PTR_free_0003f4d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" identifier = (cast_expression "(int *)piVar2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" ( (binary_expression "PTR___progname_0003f168 + -0xa8c" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" identifier = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" { (labeled_statement "LAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" statement_identifier : (do_statement "do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      }" { (if_statement "if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" { (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" ( (pointer_expression "*(code *)PTR_free_0003f4d8" * (cast_expression "(code *)PTR_free_0003f4d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" identifier = (cast_expression "(int *)piVar2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" identifier = (pointer_expression "*(int *)(puVar1 + -0xa88)" * (cast_expression "(int *)(puVar1 + -0xa88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00016804;" goto statement_identifier ;) })) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" identifier = (pointer_expression "*(int *)(puVar1 + -0xa88)" * (cast_expression "(int *)(puVar1 + -0xa88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }\n    }" { (do_statement "do {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);" do (compound_statement "{\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      }" { (if_statement "if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }" if (parenthesized_expression "(*(FILE **)(iVar3 + 8) != (FILE *)0x0)" ( (binary_expression "*(FILE **)(iVar3 + 8) != (FILE *)0x0" (pointer_expression "*(FILE **)(iVar3 + 8)" * (cast_expression "(FILE **)(iVar3 + 8)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }" { (expression_statement "ck_fclose(*(FILE **)(iVar3 + 8));" (call_expression "ck_fclose(*(FILE **)(iVar3 + 8))" identifier (argument_list "(*(FILE **)(iVar3 + 8))" ( (pointer_expression "*(FILE **)(iVar3 + 8)" * (cast_expression "(FILE **)(iVar3 + 8)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00016804:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (for_statement "for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }" for ( (assignment_expression "iVar3 = *(int *)(puVar4 + -0xa8c)" identifier = (pointer_expression "*(int *)(puVar4 + -0xa8c)" * (cast_expression "(int *)(puVar4 + -0xa8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0xa8c)" ( (binary_expression "puVar4 + -0xa8c" identifier + number_literal) ))))) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n        if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }\n      }" { (if_statement "if (*(FILE **)(iVar3 + 8) != (FILE *)0x0) {\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }" if (parenthesized_expression "(*(FILE **)(iVar3 + 8) != (FILE *)0x0)" ( (binary_expression "*(FILE **)(iVar3 + 8) != (FILE *)0x0" (pointer_expression "*(FILE **)(iVar3 + 8)" * (cast_expression "(FILE **)(iVar3 + 8)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          ck_fclose(*(FILE **)(iVar3 + 8));\n        }" { (expression_statement "ck_fclose(*(FILE **)(iVar3 + 8));" (call_expression "ck_fclose(*(FILE **)(iVar3 + 8))" identifier (argument_list "(*(FILE **)(iVar3 + 8))" ( (pointer_expression "*(FILE **)(iVar3 + 8)" * (cast_expression "(FILE **)(iVar3 + 8)" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) ))) ;) })) })) })) }))) (expression_statement "*(undefined4 *)(puVar4 + -0xa8c) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0xa8c) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0xa8c)" * (cast_expression "(undefined4 *)(puVar4 + -0xa8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0xa8c)" ( (binary_expression "puVar4 + -0xa8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + -0xa88) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + -0xa88) = 0" (pointer_expression "*(undefined4 *)(puVar1 + -0xa88)" * (cast_expression "(undefined4 *)(puVar1 + -0xa88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void finish_program(void)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}\n\n" (function_definition "void finish_program(void)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" primitive_type (function_declarator "finish_program(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (expression_statement "puVar1 = PTR___progname_0003f168;" (assignment_expression "puVar1 = PTR___progname_0003f168" identifier = identifier) ;) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa88)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa88)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa88)" ( (binary_expression "PTR___progname_0003f168 + -0xa88" identifier + number_literal) ))))) ;) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" if (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }" { (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" ( (binary_expression "PTR___progname_0003f168 + -0xa8c" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" identifier = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) goto LAB_000167d4;" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000167d4;" goto statement_identifier ;)) }) (else_clause "else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" else (compound_statement "{\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" { (do_statement "do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);" do (compound_statement "{\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    }" { (if_statement "if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" { (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" ( (pointer_expression "*(code *)PTR_free_0003f4d8" * (cast_expression "(code *)PTR_free_0003f4d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" identifier = (cast_expression "(int *)piVar2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" identifier = (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" * (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" ( (binary_expression "PTR___progname_0003f168 + -0xa8c" identifier + number_literal) ))))) ;) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" identifier = identifier) ;) (if_statement "if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" { (labeled_statement "LAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" statement_identifier : (do_statement "do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" do (compound_statement "{\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      }" { (if_statement "if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" if (parenthesized_expression "(*piVar2 != 0)" ( (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" * identifier) != number_literal) )) (compound_statement "{\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" { (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" ( (pointer_expression "*(code *)PTR_free_0003f4d8" * (cast_expression "(code *)PTR_free_0003f4d8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*piVar2)" ( (pointer_expression "*piVar2" * identifier) ))) ;) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) })) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" identifier = (cast_expression "(int *)piVar2[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar2[3]" identifier [ number_literal ]))) ;) }) while (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;)) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" identifier = (pointer_expression "*(int *)(puVar1 + -0xa88)" * (cast_expression "(int *)(puVar1 + -0xa88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) ))))) ;) (goto_statement "goto joined_r0x00016804;" goto statement_identifier ;) })) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" identifier = (pointer_expression "*(int *)(puVar1 + -0xa88)" * (cast_expression "(int *)(puVar1 + -0xa88)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }" { (do_statement "do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);" do (compound_statement "{\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      }" { (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }" if (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" ( (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          ck_fclose();\n        }" { (expression_statement "ck_fclose();" (call_expression "ck_fclose()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar3 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ;) (labeled_statement "joined_r0x00016804:" statement_identifier : (expression_statement "" ;)) }) while (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) ;) (for_statement "for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }" for ( (assignment_expression "iVar3 = *(int *)(puVar4 + -0xa8c)" identifier = (pointer_expression "*(int *)(puVar4 + -0xa8c)" * (cast_expression "(int *)(puVar4 + -0xa8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0xa8c)" ( (binary_expression "puVar4 + -0xa8c" identifier + number_literal) ))))) ; (binary_expression "iVar3 != 0" identifier != number_literal) ; (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" identifier = (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) ) (compound_statement "{\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }" { (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }" if (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" ( (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n          ck_fclose();\n        }" { (expression_statement "ck_fclose();" (call_expression "ck_fclose()" identifier (argument_list "()" ( ))) ;) })) })) })) }))) (expression_statement "*(undefined4 *)(puVar4 + -0xa8c) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0xa8c) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0xa8c)" * (cast_expression "(undefined4 *)(puVar4 + -0xa8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + -0xa8c)" ( (binary_expression "puVar4 + -0xa8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + -0xa88) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + -0xa88) = 0" (pointer_expression "*(undefined4 *)(puVar1 + -0xa88)" * (cast_expression "(undefined4 *)(puVar1 + -0xa88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0xa88)" ( (binary_expression "puVar1 + -0xa88" identifier + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_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 (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_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 (pointer_expression * IDENT) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement ;)) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) })) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return ;) })))
(function_definition "void finish_program(void)\n\n{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" (primitive_type "void") (function_declarator "finish_program(void)" (identifier "finish_program") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int *piVar2;\n  int iVar3;\n  undefined *puVar4;\n  \n  puVar1 = PTR___progname_0003f168;\n  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);\n  if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }\n  *(undefined4 *)(puVar4 + -0xa8c) = 0;\n  *(undefined4 *)(puVar1 + -0xa88) = 0;\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined *puVar4;" (type_identifier "undefined") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (expression_statement "puVar1 = PTR___progname_0003f168;" (assignment_expression "puVar1 = PTR___progname_0003f168" (identifier "puVar1") (= "=") (identifier "PTR___progname_0003f168")) (; ";")) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa88)" (* "*") (cast_expression "(int **)(PTR___progname_0003f168 + -0xa88)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR___progname_0003f168 + -0xa88)" (( "(") (binary_expression "PTR___progname_0003f168 + -0xa88" (identifier "PTR___progname_0003f168") (+ "+") (number_literal "-0xa88")) () ")"))))) (; ";")) (if_statement "if (piVar2 == (int *)0x0) {\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }\n  else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) goto LAB_000167d4;\n  }" ({ "{") (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" (* "*") (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" (( "(") (binary_expression "PTR___progname_0003f168 + -0xa8c" (identifier "PTR___progname_0003f168") (+ "+") (number_literal "-0xa8c")) () ")"))))) (; ";")) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" (identifier "puVar4") (= "=") (identifier "PTR___progname_0003f168")) (; ";")) (if_statement "if (piVar2 != (int *)0x0) goto LAB_000167d4;" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000167d4;" (goto "goto") (statement_identifier "LAB_000167d4") (; ";"))) (} "}")) (else_clause "else {\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" (else "else") (compound_statement "{\n    do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);\n    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);\n    puVar4 = PTR___progname_0003f168;\n    if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }\n    iVar3 = *(int *)(puVar1 + -0xa88);\n    if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }\n  }" ({ "{") (do_statement "do {\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n      if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }\n      piVar2 = (int *)piVar2[3];\n    }" ({ "{") (if_statement "if (*piVar2 != 0) {\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" (if "if") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (*(code *)PTR_free_0003f4d8)(*piVar2);\n        *piVar2 = 0;\n      }" ({ "{") (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" (( "(") (pointer_expression "*(code *)PTR_free_0003f4d8" (* "*") (cast_expression "(code *)PTR_free_0003f4d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003f4d8"))) () ")")) (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")"))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar2[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (expression_statement "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);" (assignment_expression "piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(PTR___progname_0003f168 + -0xa8c)" (* "*") (cast_expression "(int **)(PTR___progname_0003f168 + -0xa8c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR___progname_0003f168 + -0xa8c)" (( "(") (binary_expression "PTR___progname_0003f168 + -0xa8c" (identifier "PTR___progname_0003f168") (+ "+") (number_literal "-0xa8c")) () ")"))))) (; ";")) (expression_statement "puVar4 = PTR___progname_0003f168;" (assignment_expression "puVar4 = PTR___progname_0003f168" (identifier "puVar4") (= "=") (identifier "PTR___progname_0003f168")) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\nLAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);\n      iVar3 = *(int *)(puVar1 + -0xa88);\n      goto joined_r0x00016804;\n    }" ({ "{") (labeled_statement "LAB_000167d4:\n      do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" (statement_identifier "LAB_000167d4") (: ":") (do_statement "do {\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      } while (piVar2 != (int *)0x0);" (do "do") (compound_statement "{\n        if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }\n        piVar2 = (int *)piVar2[3];\n      }" ({ "{") (if_statement "if (*piVar2 != 0) {\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" (if "if") (parenthesized_expression "(*piVar2 != 0)" (( "(") (binary_expression "*piVar2 != 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          (*(code *)PTR_free_0003f4d8)(*piVar2);\n          *piVar2 = 0;\n        }" ({ "{") (expression_statement "(*(code *)PTR_free_0003f4d8)(*piVar2);" (call_expression "(*(code *)PTR_free_0003f4d8)(*piVar2)" (parenthesized_expression "(*(code *)PTR_free_0003f4d8)" (( "(") (pointer_expression "*(code *)PTR_free_0003f4d8" (* "*") (cast_expression "(code *)PTR_free_0003f4d8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_free_0003f4d8"))) () ")")) (argument_list "(*piVar2)" (( "(") (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) () ")"))) (; ";")) (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "piVar2 = (int *)piVar2[3];" (assignment_expression "piVar2 = (int *)piVar2[3]" (identifier "piVar2") (= "=") (cast_expression "(int *)piVar2[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";"))) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar1 + -0xa88)" (* "*") (cast_expression "(int *)(puVar1 + -0xa88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xa88)" (( "(") (binary_expression "puVar1 + -0xa88" (identifier "puVar1") (+ "+") (number_literal "-0xa88")) () ")"))))) (; ";")) (goto_statement "goto joined_r0x00016804;" (goto "goto") (statement_identifier "joined_r0x00016804") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(puVar1 + -0xa88);" (assignment_expression "iVar3 = *(int *)(puVar1 + -0xa88)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar1 + -0xa88)" (* "*") (cast_expression "(int *)(puVar1 + -0xa88)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xa88)" (( "(") (binary_expression "puVar1 + -0xa88" (identifier "puVar1") (+ "+") (number_literal "-0xa88")) () ")"))))) (; ";")) (if_statement "if (iVar3 != 0) {\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);\n      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }\n    }" ({ "{") (do_statement "do {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      } while (iVar3 != 0);" (do "do") (compound_statement "{\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n        iVar3 = *(int *)(iVar3 + 0xc);\njoined_r0x00016804:\n      }" ({ "{") (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          ck_fclose();\n        }" ({ "{") (expression_statement "ck_fclose();" (call_expression "ck_fclose()" (identifier "ck_fclose") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(iVar3 + 0xc);" (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (labeled_statement "joined_r0x00016804:" (statement_identifier "joined_r0x00016804") (: ":") (expression_statement "" (; ""))) (} "}")) (while "while") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (for_statement "for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }" (for "for") (( "(") (assignment_expression "iVar3 = *(int *)(puVar4 + -0xa8c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(puVar4 + -0xa8c)" (* "*") (cast_expression "(int *)(puVar4 + -0xa8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0xa8c)" (( "(") (binary_expression "puVar4 + -0xa8c" (identifier "puVar4") (+ "+") (number_literal "-0xa8c")) () ")"))))) (; ";") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar3 = *(int *)(iVar3 + 0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) () ")") (compound_statement "{\n        if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }\n      }" ({ "{") (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n          ck_fclose();\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          ck_fclose();\n        }" ({ "{") (expression_statement "ck_fclose();" (call_expression "ck_fclose()" (identifier "ck_fclose") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}"))) (} "}"))) (} "}")))) (expression_statement "*(undefined4 *)(puVar4 + -0xa8c) = 0;" (assignment_expression "*(undefined4 *)(puVar4 + -0xa8c) = 0" (pointer_expression "*(undefined4 *)(puVar4 + -0xa8c)" (* "*") (cast_expression "(undefined4 *)(puVar4 + -0xa8c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + -0xa8c)" (( "(") (binary_expression "puVar4 + -0xa8c" (identifier "puVar4") (+ "+") (number_literal "-0xa8c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + -0xa88) = 0;" (assignment_expression "*(undefined4 *)(puVar1 + -0xa88) = 0" (pointer_expression "*(undefined4 *)(puVar1 + -0xa88)" (* "*") (cast_expression "(undefined4 *)(puVar1 + -0xa88)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0xa88)" (( "(") (binary_expression "puVar1 + -0xa88" (identifier "puVar1") (+ "+") (number_literal "-0xa88")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (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: (pointer_expression argument: (identifier)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (MISSING ";")))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) (for_statement initializer: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) condition: (binary_expression left: (identifier) right: (number_literal)) update: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement))))

void MASKED(void)

{
  undefined *puVar1;
  int *piVar2;
  int iVar3;
  undefined *puVar4;
  
  puVar1 = PTR___progname_0003f168;
  piVar2 = *(int **)(PTR___progname_0003f168 + -0xa88);
  if (piVar2 == (int *)0x0) {
    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);
    puVar4 = PTR___progname_0003f168;
    if (piVar2 != (int *)0x0) goto LAB_000167d4;
  }
  else {
    do {
      if (*piVar2 != 0) {
        (*(code *)PTR_free_0003f4d8)(*piVar2);
        *piVar2 = 0;
      }
      piVar2 = (int *)piVar2[3];
    } while (piVar2 != (int *)0x0);
    piVar2 = *(int **)(PTR___progname_0003f168 + -0xa8c);
    puVar4 = PTR___progname_0003f168;
    if (piVar2 != (int *)0x0) {
LAB_000167d4:
      do {
        if (*piVar2 != 0) {
          (*(code *)PTR_free_0003f4d8)(*piVar2);
          *piVar2 = 0;
        }
        piVar2 = (int *)piVar2[3];
      } while (piVar2 != (int *)0x0);
      iVar3 = *(int *)(puVar1 + -0xa88);
      goto joined_r0x00016804;
    }
    iVar3 = *(int *)(puVar1 + -0xa88);
    if (iVar3 != 0) {
      do {
        if (*(int *)(iVar3 + 8) != 0) {
          ck_fclose();
        }
        iVar3 = *(int *)(iVar3 + 0xc);
joined_r0x00016804:
      } while (iVar3 != 0);
      for (iVar3 = *(int *)(puVar4 + -0xa8c); iVar3 != 0; iVar3 = *(int *)(iVar3 + 0xc)) {
        if (*(int *)(iVar3 + 8) != 0) {
          ck_fclose();
        }
      }
    }
  }
  *(undefined4 *)(puVar4 + -0xa8c) = 0;
  *(undefined4 *)(puVar1 + -0xa88) = 0;
  return;
}

