#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);
scalar_t__ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
int get_file_arg(char *in_file, int argc, char **argv, char **fargv) {
  int i, j = 0;
  char fname[100], buffer[100];
  FILE *in;
  fname[0] = '\000';
  if (in_file != NULL)
    strcpy(fname, in_file);
  else
    for (i = 0; i < argc; i++) {
      if (argv[i][0] == '@' && argv[i][1] == '\000') {
        strcpy(fname, argv[i + 1]);
        break;
      }
      if (argv[i][0] == '@' && argv[i][1] != '\000') {
        strcpy(fname, argv[i] + 1);
        break;
      }
    }
  if (fname[0] == '\000')
    return 0;
  in = fopen(fname, "r");
  if (in == NULL) {
    printf("\n\tCan't open %s for fileargs\n", fname);
    exit(1);
  }
  while (feof(in) == 0 && fscanf(in, "%s", buffer) == 1) {
    if (j == 50) {
      printf("\n\tToo many entries in %s\n", fname);
      exit(1);
    }
    if (strlen(buffer) > 20) {
      printf("\n\tfargv %d in %s exceeds length limit %d\n", j, fname, 20);
      exit(1);
    }
    fargv[j][20] = '\000';
    strncpy(fargv[j], buffer, 20);
    j++;
  }
  return j;
}


x86 assembly (clang, -O0):
<get_file_arg>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
movb   $0x0,-0xa0(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     11c8 <get_file_arg+0x48>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcpy@plt>
jmp    1298 <get_file_arg+0x118>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1293 <get_file_arg+0x113>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x40,%eax
jne    122e <get_file_arg+0xae>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
jne    122e <get_file_arg+0xae>
lea    -0xa0(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
call   1040 <strcpy@plt>
jmp    1293 <get_file_arg+0x113>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x40,%eax
jne    1280 <get_file_arg+0x100>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
je     1280 <get_file_arg+0x100>
lea    -0xa0(%rbp),%rdi
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
add    $0x1,%rsi
call   1040 <strcpy@plt>
jmp    1293 <get_file_arg+0x113>
jmp    1285 <get_file_arg+0x105>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11cf <get_file_arg+0x4f>
jmp    1298 <get_file_arg+0x118>
movsbl -0xa0(%rbp),%eax
cmp    $0x0,%eax
jne    12b4 <get_file_arg+0x134>
movl   $0x0,-0x4(%rbp)
jmp    1400 <get_file_arg+0x280>
lea    -0xa0(%rbp),%rdi
lea    0xd3e(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x118(%rbp)
cmpq   $0x0,-0x118(%rbp)
jne    12fb <get_file_arg+0x17b>
lea    -0xa0(%rbp),%rsi
lea    0xd18(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
jmp    1300 <get_file_arg+0x180>
mov    -0x118(%rbp),%rdi
call   1080 <feof@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x119(%rbp)
jne    1347 <get_file_arg+0x1c7>
mov    -0x118(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xcea(%rip),%rsi
call   1070 <fscanf@plt>
cmp    $0x1,%eax
sete   %al
mov    %al,-0x119(%rbp)
mov    -0x119(%rbp),%al
test   $0x1,%al
jne    135a <get_file_arg+0x1da>
jmp    13fa <get_file_arg+0x27a>
cmpl   $0x32,-0x30(%rbp)
jne    1383 <get_file_arg+0x203>
lea    -0xa0(%rbp),%rsi
lea    0xcb1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    -0x110(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x14,%eax
jle    13bf <get_file_arg+0x23f>
mov    -0x30(%rbp),%esi
lea    -0xa0(%rbp),%rdx
lea    0xc94(%rip),%rdi
mov    $0x14,%ecx
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movb   $0x0,0x14(%rax)
mov    -0x28(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x110(%rbp),%rsi
mov    $0x14,%edx
call   1030 <strncpy@plt>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1300 <get_file_arg+0x180>
mov    -0x30(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_file_arg>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe0,%rsp
mov    %rcx,%r14
movb   $0x0,(%rsp)
test   %rdi,%rdi
je     125a <get_file_arg+0xda>
mov    %rdi,%rax
mov    %rsp,%rdi
mov    %rax,%rsi
call   1040 <strcpy@plt>
xor    %ebx,%ebx
cmpb   $0x0,(%rsp)
je     1289 <get_file_arg+0x109>
lea    0xe3f(%rip),%rsi
mov    %rsp,%rdi
call   1090 <fopen@plt>
test   %rax,%rax
je     12f2 <get_file_arg+0x172>
mov    %rax,%r15
mov    %rax,%rdi
call   1080 <feof@plt>
test   %rax,%rax
jne    1289 <get_file_arg+0x109>
xor    %ebx,%ebx
lea    0xe31(%rip),%r12
lea    0x70(%rsp),%r13
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1070 <fscanf@plt>
cmp    $0x1,%eax
jne    1289 <get_file_arg+0x109>
cmp    $0x32,%rbx
je     12b5 <get_file_arg+0x135>
mov    %r13,%rdi
call   1050 <strlen@plt>
cmp    $0x15,%eax
jge    12d0 <get_file_arg+0x150>
mov    (%r14,%rbx,8),%rax
movb   $0x0,0x14(%rax)
mov    (%r14,%rbx,8),%rdi
mov    %r13,%rsi
mov    $0x14,%edx
call   1030 <strncpy@plt>
add    $0x1,%rbx
mov    %r15,%rdi
call   1080 <feof@plt>
test   %rax,%rax
je     1200 <get_file_arg+0x80>
jmp    1289 <get_file_arg+0x109>
test   %esi,%esi
jle    1287 <get_file_arg+0x107>
mov    %esi,%ecx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rdx,%rax,8),%rsi
cmpb   $0x40,(%rsi)
je     129c <get_file_arg+0x11c>
add    $0x1,%rax
cmp    %rax,%rcx
jne    1270 <get_file_arg+0xf0>
jmp    11ae <get_file_arg+0x2e>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0xe0,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
cmpb   $0x0,0x1(%rsi)
je     12a8 <get_file_arg+0x128>
add    $0x1,%rsi
jmp    12ad <get_file_arg+0x12d>
mov    0x8(%rdx,%rax,8),%rsi
mov    %rsp,%rdi
jmp    11a9 <get_file_arg+0x29>
lea    0xd67(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xd66(%rip),%rdi
mov    %rsp,%rdx
mov    %ebx,%esi
mov    $0x14,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
lea    0xd09(%rip),%rdi
jmp    12bc <get_file_arg+0x13c>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [30 x i8] c"\0A\09Can't open %s for fileargs\0A\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [26 x i8] c"\0A\09Too many entries in %s\0A\00"
@.str.4 = [42 x i8] c"\0A\09fargv %d in %s exceeds length limit %d\0A\00"
define i32 @get_file_arg(i8* %0, i32 %1, i8** %2, i8** %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca i32
%11 = alloca i32
%12 = alloca [100 x i8]
%13 = alloca [100 x i8]
%14 = alloca i32*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store i8** %3, i8*** %9
store i32 0, i32* %11
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
store i8 0, i8* %15
%16 = load i8*, i8** %6
%17 = icmp ne i8* %16, null
br i1 %17, label %18, label %22
18: ; preds = %4
%19 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%20 = load i8*, i8** %6
%21 = call i32 @strcpy(i8* %19, i8* %20)
br label %90
22: ; preds = %4
store i32 0, i32* %10
br label %23
23: ; preds = %86, %22
%24 = load i32, i32* %10
%25 = load i32, i32* %7
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %89
27: ; preds = %23
%28 = load i8**, i8*** %8
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8*, i8** %28, i64 %30
%32 = load i8*, i8** %31
%33 = getelementptr inbounds i8, i8* %32, i64 0
%34 = load i8, i8* %33
%35 = sext i8 %34 to i32
%36 = icmp eq i32 %35, 64
br i1 %36, label %37, label %56
37: ; preds = %27
%38 = load i8**, i8*** %8
%39 = load i32, i32* %10
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds i8*, i8** %38, i64 %40
%42 = load i8*, i8** %41
%43 = getelementptr inbounds i8, i8* %42, i64 1
%44 = load i8, i8* %43
%45 = sext i8 %44 to i32
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %56
47: ; preds = %37
%48 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%49 = load i8**, i8*** %8
%50 = load i32, i32* %10
%51 = add nsw i32 %50, 1
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds i8*, i8** %49, i64 %52
%54 = load i8*, i8** %53
%55 = call i32 @strcpy(i8* %48, i8* %54)
br label %89
56: ; preds = %37, %27
%57 = load i8**, i8*** %8
%58 = load i32, i32* %10
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds i8*, i8** %57, i64 %59
%61 = load i8*, i8** %60
%62 = getelementptr inbounds i8, i8* %61, i64 0
%63 = load i8, i8* %62
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %64, 64
br i1 %65, label %66, label %85
66: ; preds = %56
%67 = load i8**, i8*** %8
%68 = load i32, i32* %10
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8*, i8** %67, i64 %69
%71 = load i8*, i8** %70
%72 = getelementptr inbounds i8, i8* %71, i64 1
%73 = load i8, i8* %72
%74 = sext i8 %73 to i32
%75 = icmp ne i32 %74, 0
br i1 %75, label %76, label %85
76: ; preds = %66
%77 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%78 = load i8**, i8*** %8
%79 = load i32, i32* %10
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8*, i8** %78, i64 %80
%82 = load i8*, i8** %81
%83 = getelementptr inbounds i8, i8* %82, i64 1
%84 = call i32 @strcpy(i8* %77, i8* %83)
br label %89
85: ; preds = %66, %56
br label %86
86: ; preds = %85
%87 = load i32, i32* %10
%88 = add nsw i32 %87, 1
store i32 %88, i32* %10
br label %23
89: ; preds = %76, %47, %23
br label %90
90: ; preds = %89, %18
%91 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%92 = load i8, i8* %91
%93 = sext i8 %92 to i32
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %96
95: ; preds = %90
store i32 0, i32* %5
br label %151
96: ; preds = %90
%97 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%98 = call i32* @fopen(i8* %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %98, i32** %14
%99 = load i32*, i32** %14
%100 = icmp eq i32* %99, null
br i1 %100, label %101, label %105
101: ; preds = %96
%102 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %102)
%104 = call i32 @exit(i32 1)
unreachable
105: ; preds = %96
br label %106
106: ; preds = %133, %105
%107 = load i32*, i32** %14
%108 = call i64 @feof(i32* %107)
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %115
110: ; preds = %106
%111 = load i32*, i32** %14
%112 = getelementptr inbounds [100 x i8], [100 x i8]* %13, i64 0, i64 0
%113 = call i32 @fscanf(i32* %111, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %112)
%114 = icmp eq i32 %113, 1
br label %115
115: ; preds = %110, %106
%116 = phi i1 [ false, %106 ], [ %114, %110 ]
br i1 %116, label %117, label %149
117: ; preds = %115
%118 = load i32, i32* %11
%119 = icmp eq i32 %118, 50
br i1 %119, label %120, label %124
120: ; preds = %117
%121 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %121)
%123 = call i32 @exit(i32 1)
unreachable
124: ; preds = %117
%125 = getelementptr inbounds [100 x i8], [100 x i8]* %13, i64 0, i64 0
%126 = call i32 @strlen(i8* %125)
%127 = icmp sgt i32 %126, 20
br i1 %127, label %128, label %133
128: ; preds = %124
%129 = load i32, i32* %11
%130 = getelementptr inbounds [100 x i8], [100 x i8]* %12, i64 0, i64 0
%131 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i32 %129, i8* %130, i32 20)
%132 = call i32 @exit(i32 1)
unreachable
133: ; preds = %124
%134 = load i8**, i8*** %9
%135 = load i32, i32* %11
%136 = sext i32 %135 to i64
%137 = getelementptr inbounds i8*, i8** %134, i64 %136
%138 = load i8*, i8** %137
%139 = getelementptr inbounds i8, i8* %138, i64 20
store i8 0, i8* %139
%140 = load i8**, i8*** %9
%141 = load i32, i32* %11
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i8*, i8** %140, i64 %142
%144 = load i8*, i8** %143
%145 = getelementptr inbounds [100 x i8], [100 x i8]* %13, i64 0, i64 0
%146 = call i32 @strncpy(i8* %144, i8* %145, i32 20)
%147 = load i32, i32* %11
%148 = add nsw i32 %147, 1
store i32 %148, i32* %11
br label %106
149: ; preds = %115
%150 = load i32, i32* %11
store i32 %150, i32* %5
br label %151
151: ; preds = %149, %95
%152 = load i32, i32* %5
ret i32 %152
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [30 x i8] c"\0A\09Can't open %s for fileargs\0A\00"
@.str.2 = [3 x i8] c"%s\00"
@.str.3 = [26 x i8] c"\0A\09Too many entries in %s\0A\00"
@.str.4 = [42 x i8] c"\0A\09fargv %d in %s exceeds length limit %d\0A\00"
define i32 @get_file_arg(i8* %0, i32 %1, i8** nocapture %2, i8** nocapture %3) {
%5 = alloca [100 x i8]
%6 = alloca [100 x i8]
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %5, i64 0, i64 0
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %6, i64 0, i64 0
store i8 0, i8* %7
%9 = icmp eq i8* %0, null
br i1 %9, label %10, label %14
10: ; preds = %4
%11 = icmp sgt i32 %1, 0
br i1 %11, label %12, label %77
12: ; preds = %10
%13 = zext i32 %1 to i64
br label %16
14: ; preds = %4
%15 = call i32 @strcpy(i8* %7, i8* %0)
br label %37
16: ; preds = %12, %34
%17 = phi i64 [ 0, %12 ], [ %35, %34 ]
%18 = getelementptr inbounds i8*, i8** %2, i64 %17
%19 = load i8*, i8** %18
%20 = load i8, i8* %19
%21 = icmp eq i8 %20, 64
br i1 %21, label %22, label %34
22: ; preds = %16
%23 = getelementptr inbounds i8, i8* %19, i64 1
%24 = load i8, i8* %23
%25 = icmp eq i8 %24, 0
br i1 %25, label %26, label %32
26: ; preds = %22
%27 = add nuw i64 %17, 1
%28 = and i64 %27, 4294967295
%29 = getelementptr inbounds i8*, i8** %2, i64 %28
%30 = load i8*, i8** %29
%31 = call i32 @strcpy(i8* %7, i8* %30)
br label %37
32: ; preds = %22
%33 = call i32 @strcpy(i8* %7, i8* %23)
br label %37
34: ; preds = %16
%35 = add nuw nsw i64 %17, 1
%36 = icmp eq i64 %35, %13
br i1 %36, label %37, label %16
37: ; preds = %34, %26, %32, %14
%38 = load i8, i8* %7
%39 = icmp eq i8 %38, 0
br i1 %39, label %77, label %40
40: ; preds = %37
%41 = call i32* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%42 = icmp eq i32* %41, null
br i1 %42, label %46, label %43
43: ; preds = %40
%44 = call i64 @feof(i32* %41)
%45 = icmp eq i64 %44, 0
br i1 %45, label %49, label %77
46: ; preds = %40
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %7)
%48 = call i32 @exit(i32 1)
unreachable
49: ; preds = %43, %65
%50 = phi i64 [ %71, %65 ], [ 0, %43 ]
%51 = call i32 @fscanf(i32* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* %8)
%52 = icmp eq i32 %51, 1
br i1 %52, label %53, label %74
53: ; preds = %49
%54 = icmp eq i64 %50, 50
br i1 %54, label %55, label %58
55: ; preds = %53
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0), i8* %7)
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %53
%59 = call i32 @strlen(i8* %8)
%60 = icmp sgt i32 %59, 20
br i1 %60, label %61, label %65
61: ; preds = %58
%62 = trunc i64 %50 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i32 %62, i8* %7, i32 20)
%64 = call i32 @exit(i32 1)
unreachable
65: ; preds = %58
%66 = getelementptr inbounds i8*, i8** %3, i64 %50
%67 = load i8*, i8** %66
%68 = getelementptr inbounds i8, i8* %67, i64 20
store i8 0, i8* %68
%69 = load i8*, i8** %66
%70 = call i32 @strncpy(i8* %69, i8* %8, i32 20)
%71 = add nuw nsw i64 %50, 1
%72 = call i64 @feof(i32* %41)
%73 = icmp eq i64 %72, 0
br i1 %73, label %49, label %74
74: ; preds = %65, %49
%75 = phi i64 [ %50, %49 ], [ %71, %65 ]
%76 = trunc i64 %75 to i32
br label %77
77: ; preds = %74, %10, %43, %37
%78 = phi i32 [ 0, %37 ], [ 0, %43 ], [ 0, %10 ], [ %76, %74 ]
ret i32 %78
}