#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgetline(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *);
int sscanf(char *, char *, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdin;
int main(int argc, char **argv) {
  register int filenum, i;
  char line[512], current_file[100];
  FILE *filept[10];
  register int anyso;
  anyso = 0;
  for (filenum = 1; filenum < argc; filenum++) {
    i = 0;
    if (*argv[filenum] == '-')
      filept[i] = stdin;
    else {
      filept[i] = fopen(argv[filenum], "r");
      if (filept[i] == NULL) {
        fprintf(stderr, "xpand: can't open %s : ", argv[filenum]);
        perror("");
        exit(2);
      }
    }
    while (i >= 0) {
      while (fgetline(line, 512, filept[i]) != 0) {
        if (sscanf(line, ".so %100s", current_file) == 1) {
          i++;
          anyso++;
          if (i >= 10) {
            fprintf(stderr, "xpand: limit of %d levels exceeded : ", 10);
            perror("");
            exit(2);
          };
          filept[i] = fopen(current_file, "r");
          if (filept[i] == NULL) {
            fprintf(stderr, "xpand: can't open %s : ", current_file);
            perror("");
            exit(2);
          }
        } else {
          printf("%s", line);
        }
      }
      fclose(filept[i]);
      i--;
    }
  }
  if (anyso == 0)
    exit(0);
  return (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2f0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x2e4(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13d2 <main+0x252>
movl   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    11f0 <main+0x70>
mov    0x2e0c(%rip),%rax
mov    (%rax),%rcx
movslq -0x18(%rbp),%rax
mov    %rcx,-0x2e0(%rbp,%rax,8)
ff
jmp    1268 <main+0xe8>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xdfd(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
mov    %rcx,-0x2e0(%rbp,%rax,8)
ff
movslq -0x18(%rbp),%rax
cmpq   $0x0,-0x2e0(%rbp,%rax,8)
jne    1263 <main+0xe3>
mov    0x2da7(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdbc(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xdf5(%rip),%rdi
call   1090 <perror@plt>
mov    $0x2,%edi
call   10a0 <exit@plt>
jmp    1268 <main+0xe8>
jmp    126d <main+0xed>
cmpl   $0x0,-0x18(%rbp)
jl     13bf <main+0x23f>
jmp    127c <main+0xfc>
lea    -0x220(%rbp),%rdi
movslq -0x18(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdx
ff
mov    $0x200,%esi
call   1030 <fgetline@plt>
cmp    $0x0,%rax
je     13a0 <main+0x220>
lea    -0x220(%rbp),%rdi
lea    -0x290(%rbp),%rdx
lea    0xd62(%rip),%rsi
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1388 <main+0x208>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x2e4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2e4(%rbp)
cmpl   $0xa,-0x18(%rbp)
jl     131a <main+0x19a>
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    0xd2c(%rip),%rsi
mov    $0xa,%edx
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xd3e(%rip),%rdi
call   1090 <perror@plt>
mov    $0x2,%edi
call   10a0 <exit@plt>
lea    -0x290(%rbp),%rdi
lea    0xcd8(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%rcx
movslq -0x18(%rbp),%rax
mov    %rcx,-0x2e0(%rbp,%rax,8)
ff
movslq -0x18(%rbp),%rax
cmpq   $0x0,-0x2e0(%rbp,%rax,8)
jne    1383 <main+0x203>
mov    0x2c82(%rip),%rax
mov    (%rax),%edi
lea    -0x290(%rbp),%rdx
lea    0xc9c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xcd5(%rip),%rdi
call   1090 <perror@plt>
mov    $0x2,%edi
call   10a0 <exit@plt>
jmp    139b <main+0x21b>
lea    -0x220(%rbp),%rsi
lea    0xcb4(%rip),%rdi
call   1050 <printf@plt>
jmp    127c <main+0xfc>
movslq -0x18(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdi
ff
call   1040 <fclose@plt>
mov    -0x18(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x18(%rbp)
jmp    126d <main+0xed>
jmp    13c4 <main+0x244>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11aa <main+0x2a>
cmpl   $0x0,-0x2e4(%rbp)
jne    13e6 <main+0x266>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    $0x1,%eax
add    $0x2f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2e8,%rsp
mov    %rsi,0x8(%rsp)
cmp    $0x2,%edi
jl     1357 <main+0x1d7>
mov    %edi,%eax
mov    %rax,0x18(%rsp)
xor    %r13d,%r13d
mov    $0x1,%ecx
lea    0xe0(%rsp),%rbx
lea    0xe5d(%rip),%r15
lea    0x70(%rsp),%r12
jmp    11e4 <main+0x64>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x10(%rsp),%rcx
add    $0x1,%rcx
cmp    0x18(%rsp),%rcx
je     12c8 <main+0x148>
mov    0x8(%rsp),%rax
mov    (%rax,%rcx,8),%rdi
cmpb   $0x2d,(%rdi)
mov    %rcx,0x10(%rsp)
jne    1210 <main+0x90>
mov    0x2dea(%rip),%rax
mov    (%rax),%r14
mov    %r14,0x20(%rsp)
jmp    122d <main+0xad>
nopl   0x0(%rax,%rax,1)
lea    0xde9(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r14
mov    %rax,0x20(%rsp)
test   %rax,%rax
je     1338 <main+0x1b8>
xor    %ebp,%ebp
jmp    1257 <main+0xd7>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xe03(%rip),%rdi
mov    %rbx,%rsi
call   1050 <printf@plt>
movslq %ebp,%rax
mov    0x20(%rsp,%rax,8),%r14
mov    %rbx,%rdi
mov    $0x200,%esi
mov    %r14,%rdx
call   1030 <fgetline@plt>
test   %rax,%rax
je     12ac <main+0x12c>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1240 <main+0xc0>
cmp    $0x9,%ebp
jge    12e8 <main+0x168>
add    $0x1,%ebp
mov    %r12,%rdi
lea    0xd6f(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r14
movslq %ebp,%rax
mov    %r14,0x20(%rsp,%rax,8)
test   %r14,%r14
je     1306 <main+0x186>
add    $0x1,%r13d
jmp    1257 <main+0xd7>
mov    %r14,%rdi
call   1040 <fclose@plt>
test   %ebp,%ebp
jle    11d0 <main+0x50>
add    $0xffffffff,%ebp
mov    %ebp,%eax
mov    0x20(%rsp,%rax,8),%r14
jmp    1257 <main+0xd7>
test   %r13d,%r13d
je     1357 <main+0x1d7>
mov    $0x1,%eax
add    $0x2e8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2ce9(%rip),%rax
mov    (%rax),%edi
lea    0xd2c(%rip),%rsi
mov    $0xa,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1322 <main+0x1a2>
mov    0x2ccb(%rip),%rax
mov    (%rax),%edi
lea    0xcec(%rip),%rsi
lea    0x70(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xd20(%rip),%rdi
call   1090 <perror@plt>
mov    $0x2,%edi
call   10a0 <exit@plt>
mov    0x10(%rsp),%eax
mov    0x2c95(%rip),%rcx
mov    (%rcx),%edi
mov    0x8(%rsp),%rcx
mov    (%rcx,%rax,8),%rdx
lea    0xcad(%rip),%rsi
jmp    131b <main+0x19b>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@stdin = global i32* null
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"xpand: can't open %s : \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [10 x i8] c".so %100s\00"
@.str.4 = [38 x i8] c"xpand: limit of %d levels exceeded : \00"
@.str.5 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca [512 x i8]
%9 = alloca [100 x i8]
%10 = alloca [10 x i32*]
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %11
store i32 1, i32* %6
br label %12
12: ; preds = %117, %2
%13 = load i32, i32* %6
%14 = load i32, i32* %4
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %120
16: ; preds = %12
store i32 0, i32* %7
%17 = load i8**, i8*** %5
%18 = load i32, i32* %6
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %17, i64 %19
%21 = load i8*, i8** %20
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp eq i32 %23, 45
br i1 %24, label %25, label %30
25: ; preds = %16
%26 = load i32*, i32** @stdin
%27 = load i32, i32* %7
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %28
store i32* %26, i32** %29
br label %56
30: ; preds = %16
%31 = load i8**, i8*** %5
%32 = load i32, i32* %6
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i8*, i8** %31, i64 %33
%35 = load i8*, i8** %34
%36 = call i32* @fopen(i8* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = load i32, i32* %7
%38 = sext i32 %37 to i64
%39 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %38
store i32* %36, i32** %39
%40 = load i32, i32* %7
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %41
%43 = load i32*, i32** %42
%44 = icmp eq i32* %43, null
br i1 %44, label %45, label %55
45: ; preds = %30
%46 = load i32, i32* @stderr
%47 = load i8**, i8*** %5
%48 = load i32, i32* %6
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8*, i8** %47, i64 %49
%51 = load i8*, i8** %50
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %51)
%53 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%54 = call i32 @exit(i32 2)
unreachable
55: ; preds = %30
br label %56
56: ; preds = %55, %25
br label %57
57: ; preds = %108, %56
%58 = load i32, i32* %7
%59 = icmp sge i32 %58, 0
br i1 %59, label %60, label %116
60: ; preds = %57
br label %61
61: ; preds = %107, %60
%62 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%63 = load i32, i32* %7
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %64
%66 = load i32*, i32** %65
%67 = call i64 @fgetline(i8* %62, i32 512, i32* %66)
%68 = icmp ne i64 %67, 0
br i1 %68, label %69, label %108
69: ; preds = %61
%70 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%71 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%72 = call i32 @sscanf(i8* %70, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %71)
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %104
74: ; preds = %69
%75 = load i32, i32* %7
%76 = add nsw i32 %75, 1
store i32 %76, i32* %7
%77 = load i32, i32* %11
%78 = add nsw i32 %77, 1
store i32 %78, i32* %11
%79 = load i32, i32* %7
%80 = icmp sge i32 %79, 10
br i1 %80, label %81, label %86
81: ; preds = %74
%82 = load i32, i32* @stderr
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %82, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 10)
%84 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%85 = call i32 @exit(i32 2)
unreachable
86: ; preds = %74
%87 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%88 = call i32* @fopen(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%89 = load i32, i32* %7
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %90
store i32* %88, i32** %91
%92 = load i32, i32* %7
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %93
%95 = load i32*, i32** %94
%96 = icmp eq i32* %95, null
br i1 %96, label %97, label %103
97: ; preds = %86
%98 = load i32, i32* @stderr
%99 = getelementptr inbounds [100 x i8], [100 x i8]* %9, i64 0, i64 0
%100 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %99)
%101 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%102 = call i32 @exit(i32 2)
unreachable
103: ; preds = %86
br label %107
104: ; preds = %69
%105 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%106 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %105)
br label %107
107: ; preds = %104, %103
br label %61
108: ; preds = %61
%109 = load i32, i32* %7
%110 = sext i32 %109 to i64
%111 = getelementptr inbounds [10 x i32*], [10 x i32*]* %10, i64 0, i64 %110
%112 = load i32*, i32** %111
%113 = call i32 @fclose(i32* %112)
%114 = load i32, i32* %7
%115 = add nsw i32 %114, -1
store i32 %115, i32* %7
br label %57
116: ; preds = %57
br label %117
117: ; preds = %116
%118 = load i32, i32* %6
%119 = add nsw i32 %118, 1
store i32 %119, i32* %6
br label %12
120: ; preds = %12
%121 = load i32, i32* %11
%122 = icmp eq i32 %121, 0
br i1 %122, label %123, label %125
123: ; preds = %120
%124 = call i32 @exit(i32 0)
unreachable
125: ; preds = %120
ret i32 1
}

LLVM IR (-O2):
@stdin = global i32* null
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [24 x i8] c"xpand: can't open %s : \00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [10 x i8] c".so %100s\00"
@.str.4 = [38 x i8] c"xpand: limit of %d levels exceeded : \00"
@.str.5 = [3 x i8] c"%s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [512 x i8]
%4 = alloca [100 x i8]
%5 = alloca [10 x i32*]
%6 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%8 = bitcast [10 x i32*]* %5 to i8*
%9 = icmp sgt i32 %0, 1
br i1 %9, label %10, label %92
10: ; preds = %2
%11 = getelementptr inbounds [10 x i32*], [10 x i32*]* %5, i64 0, i64 0
%12 = zext i32 %0 to i64
br label %13
13: ; preds = %10, %87
%14 = phi i64 [ 1, %10 ], [ %88, %87 ]
%15 = phi i32 [ 0, %10 ], [ %78, %87 ]
%16 = getelementptr inbounds i8*, i8** %1, i64 %14
%17 = load i8*, i8** %16
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 45
br i1 %19, label %20, label %24
20: ; preds = %13
%21 = load i32*, i32** @stdin
store i32* %21, i32** %11
br label %22
22: ; preds = %24, %20
%23 = phi i32* [ %21, %20 ], [ %25, %24 ]
br label %35
24: ; preds = %13
%25 = call i32* @fopen(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %25, i32** %11
%26 = icmp eq i32* %25, null
br i1 %26, label %27, label %22
27: ; preds = %24
%28 = and i64 %14, 4294967295
%29 = getelementptr inbounds i8*, i8** %1, i64 %28
%30 = load i32, i32* @stderr
%31 = load i8*, i8** %29
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %31)
%33 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%34 = call i32 @exit(i32 2)
unreachable
35: ; preds = %22, %83
%36 = phi i32* [ %86, %83 ], [ %23, %22 ]
%37 = phi i32 [ %78, %83 ], [ %15, %22 ]
%38 = phi i32 [ %81, %83 ], [ 0, %22 ]
%39 = call i64 @fgetline(i8* %6, i32 512, i32* %36)
%40 = icmp eq i64 %39, 0
br i1 %40, label %76, label %41
41: ; preds = %35, %70
%42 = phi i32 [ %73, %70 ], [ %37, %35 ]
%43 = phi i32 [ %72, %70 ], [ %38, %35 ]
%44 = call i32 @sscanf(i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%45 = icmp eq i32 %44, 1
br i1 %45, label %46, label %65
46: ; preds = %41
%47 = add nsw i32 %43, 1
%48 = icmp sgt i32 %43, 8
br i1 %48, label %49, label %54
49: ; preds = %46
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i32 10)
%52 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%53 = call i32 @exit(i32 2)
unreachable
54: ; preds = %46
%55 = add nsw i32 %42, 1
%56 = call i32* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%57 = sext i32 %47 to i64
%58 = getelementptr inbounds [10 x i32*], [10 x i32*]* %5, i64 0, i64 %57
store i32* %56, i32** %58
%59 = icmp eq i32* %56, null
br i1 %59, label %60, label %70
60: ; preds = %54
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%63 = call i32 @perror(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%64 = call i32 @exit(i32 2)
unreachable
65: ; preds = %41
%66 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%67 = sext i32 %43 to i64
%68 = getelementptr inbounds [10 x i32*], [10 x i32*]* %5, i64 0, i64 %67
%69 = load i32*, i32** %68
br label %70
70: ; preds = %54, %65
%71 = phi i32* [ %56, %54 ], [ %69, %65 ]
%72 = phi i32 [ %47, %54 ], [ %43, %65 ]
%73 = phi i32 [ %55, %54 ], [ %42, %65 ]
%74 = call i64 @fgetline(i8* %6, i32 512, i32* %71)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %41
76: ; preds = %70, %35
%77 = phi i32 [ %38, %35 ], [ %72, %70 ]
%78 = phi i32 [ %37, %35 ], [ %73, %70 ]
%79 = phi i32* [ %36, %35 ], [ %71, %70 ]
%80 = call i32 @fclose(i32* %79)
%81 = add nsw i32 %77, -1
%82 = icmp sgt i32 %77, 0
br i1 %82, label %83, label %87
83: ; preds = %76
%84 = zext i32 %81 to i64
%85 = getelementptr inbounds [10 x i32*], [10 x i32*]* %5, i64 0, i64 %84
%86 = load i32*, i32** %85
br label %35
87: ; preds = %76
%88 = add nuw nsw i64 %14, 1
%89 = icmp eq i64 %88, %12
br i1 %89, label %90, label %13
90: ; preds = %87
%91 = icmp eq i32 %78, 0
br i1 %91, label %92, label %94
92: ; preds = %2, %90
%93 = call i32 @exit(i32 0)
unreachable
94: ; preds = %90
ret i32 1
}