#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 */

/* Variables and functions */
int scale_image_RGB_to_NTSC_safe(unsigned char *orig, int width, int height,
                                 int channels) {
  const float scale_lo = 16.0f - 0.499f;
  const float scale_hi = 235.0f + 0.499f;
  int i, j;
  int nc = channels;
  unsigned char scale_LUT[256];
  if ((width < 1) || (height < 1) || (channels < 1) || (orig == NULL)) {
    return 0;
  }
  for (i = 0; i < 256; ++i) {
    scale_LUT[i] =
        (unsigned char)((scale_hi - scale_lo) * i / 255.0f + scale_lo);
  }
  nc -= 1 - (channels & 1);
  for (i = 0; i < width * height * channels; i += channels) {
    for (j = 0; j < nc; ++j) {
      orig[i + j] = scale_LUT[orig[i + j]];
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<scale_image_RGB_to_NTSC_safe>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movss  0xee4(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xed3(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x1,-0x14(%rbp)
jl     1161 <scale_image_RGB_to_NTSC_safe+0x61>
cmpl   $0x1,-0x18(%rbp)
jl     1161 <scale_image_RGB_to_NTSC_safe+0x61>
cmpl   $0x1,-0x1c(%rbp)
jl     1161 <scale_image_RGB_to_NTSC_safe+0x61>
cmpq   $0x0,-0x10(%rbp)
jne    116d <scale_image_RGB_to_NTSC_safe+0x6d>
movl   $0x0,-0x4(%rbp)
jmp    125e <scale_image_RGB_to_NTSC_safe+0x15e>
movl   $0x0,-0x28(%rbp)
cmpl   $0x100,-0x28(%rbp)
jge    11c9 <scale_image_RGB_to_NTSC_safe+0xc9>
cvtsi2ssl -0x28(%rbp),%xmm0
movss  0xe7a(%rip),%xmm1
mulss  %xmm1,%xmm0
movss  0xe72(%rip),%xmm1
divss  %xmm1,%xmm0
movss  0xe5e(%rip),%xmm1
addss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %al,%cl
movslq -0x28(%rbp),%rax
mov    %cl,-0x130(%rbp,%rax,1)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1174 <scale_image_RGB_to_NTSC_safe+0x74>
mov    -0x1c(%rbp),%eax
and    $0x1,%eax
mov    $0x1,%ecx
sub    %eax,%ecx
mov    -0x30(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
mov    -0x14(%rbp),%ecx
imul   -0x18(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
cmp    %ecx,%eax
jge    1257 <scale_image_RGB_to_NTSC_safe+0x157>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jge    1244 <scale_image_RGB_to_NTSC_safe+0x144>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movzbl (%rax,%rcx,1),%eax
mov    -0x130(%rbp,%rax,1),%dl
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1202 <scale_image_RGB_to_NTSC_safe+0x102>
jmp    1249 <scale_image_RGB_to_NTSC_safe+0x149>
mov    -0x1c(%rbp),%eax
add    -0x28(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    11e5 <scale_image_RGB_to_NTSC_safe+0xe5>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<scale_image_RGB_to_NTSC_safe>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x88,%rsp
xor    %eax,%eax
test   %rdi,%rdi
je     135a <scale_image_RGB_to_NTSC_safe+0x25a>
test   %esi,%esi
jle    135a <scale_image_RGB_to_NTSC_safe+0x25a>
test   %edx,%edx
jle    135a <scale_image_RGB_to_NTSC_safe+0x25a>
test   %ecx,%ecx
jle    135a <scale_image_RGB_to_NTSC_safe+0x25a>
movaps 0xec8(%rip),%xmm0
movaps 0xed1(%rip),%xmm1
movaps 0xeda(%rip),%xmm2
movaps 0xee3(%rip),%xmm3
xor    %eax,%eax
movaps 0xee9(%rip),%xmm10
movaps 0xef1(%rip),%xmm11
movaps 0xef9(%rip),%xmm12
movdqa 0xf00(%rip),%xmm8
movdqa 0xf07(%rip),%xmm9
nopl   0x0(%rax)
cvtdq2ps %xmm3,%xmm7
cvtdq2ps %xmm2,%xmm4
cvtdq2ps %xmm1,%xmm5
cvtdq2ps %xmm0,%xmm6
mulps  %xmm10,%xmm6
mulps  %xmm10,%xmm5
mulps  %xmm10,%xmm4
mulps  %xmm10,%xmm7
divps  %xmm11,%xmm7
divps  %xmm11,%xmm4
divps  %xmm11,%xmm5
divps  %xmm11,%xmm6
addps  %xmm12,%xmm6
addps  %xmm12,%xmm5
addps  %xmm12,%xmm4
addps  %xmm12,%xmm7
cvttps2dq %xmm7,%xmm7
cvttps2dq %xmm4,%xmm4
packssdw %xmm4,%xmm7
cvttps2dq %xmm5,%xmm4
cvttps2dq %xmm6,%xmm5
packssdw %xmm5,%xmm4
packuswb %xmm4,%xmm7
movdqa %xmm7,-0x80(%rsp,%rax,1)
movaps %xmm0,%xmm4
paddd  %xmm8,%xmm4
movaps %xmm1,%xmm5
paddd  %xmm8,%xmm5
movaps %xmm2,%xmm6
paddd  %xmm8,%xmm6
movaps %xmm3,%xmm7
paddd  %xmm8,%xmm7
cvtdq2ps %xmm7,%xmm7
cvtdq2ps %xmm6,%xmm6
cvtdq2ps %xmm5,%xmm5
cvtdq2ps %xmm4,%xmm4
mulps  %xmm10,%xmm4
mulps  %xmm10,%xmm5
mulps  %xmm10,%xmm6
mulps  %xmm10,%xmm7
divps  %xmm11,%xmm7
divps  %xmm11,%xmm6
divps  %xmm11,%xmm5
divps  %xmm11,%xmm4
addps  %xmm12,%xmm4
addps  %xmm12,%xmm5
addps  %xmm12,%xmm6
addps  %xmm12,%xmm7
cvttps2dq %xmm7,%xmm7
cvttps2dq %xmm6,%xmm6
packssdw %xmm6,%xmm7
cvttps2dq %xmm5,%xmm5
cvttps2dq %xmm4,%xmm4
packssdw %xmm4,%xmm5
packuswb %xmm5,%xmm7
movdqa %xmm7,-0x70(%rsp,%rax,1)
add    $0x20,%rax
paddd  %xmm9,%xmm3
paddd  %xmm9,%xmm2
paddd  %xmm9,%xmm1
paddd  %xmm9,%xmm0
cmp    $0x100,%rax
jne    1180 <scale_image_RGB_to_NTSC_safe+0x80>
imul   %esi,%edx
imul   %ecx,%edx
mov    $0x1,%eax
test   %edx,%edx
jle    135a <scale_image_RGB_to_NTSC_safe+0x25a>
mov    %ecx,%esi
or     $0xfffffffe,%esi
lea    (%rcx,%rsi,1),%r10d
add    $0x1,%r10d
movslq %ecx,%r11
mov    %edx,%r8d
mov    %r10d,%r15d
lea    -0x1(%r15),%r9
mov    %r15d,%r12d
and    $0x3,%r12d
and    $0xfffffffc,%r15d
lea    0x3(%rdi),%rcx
xor    %r14d,%r14d
jmp    12de <scale_image_RGB_to_NTSC_safe+0x1de>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    %r11,%r14
add    %r11,%rcx
add    %r11,%rdi
cmp    %r8,%r14
jge    135a <scale_image_RGB_to_NTSC_safe+0x25a>
test   %r10d,%r10d
jle    12d0 <scale_image_RGB_to_NTSC_safe+0x1d0>
xor    %ebx,%ebx
cmp    $0x3,%r9
jb     132f <scale_image_RGB_to_NTSC_safe+0x22f>
nopl   0x0(%rax,%rax,1)
movzbl -0x3(%rcx,%rbx,1),%esi
movzbl -0x80(%rsp,%rsi,1),%edx
mov    %dl,-0x3(%rcx,%rbx,1)
movzbl -0x2(%rcx,%rbx,1),%edx
movzbl -0x80(%rsp,%rdx,1),%edx
mov    %dl,-0x2(%rcx,%rbx,1)
movzbl -0x1(%rcx,%rbx,1),%edx
movzbl -0x80(%rsp,%rdx,1),%edx
mov    %dl,-0x1(%rcx,%rbx,1)
movzbl (%rcx,%rbx,1),%edx
movzbl -0x80(%rsp,%rdx,1),%edx
mov    %dl,(%rcx,%rbx,1)
add    $0x4,%rbx
cmp    %rbx,%r15
jne    12f0 <scale_image_RGB_to_NTSC_safe+0x1f0>
test   %r12,%r12
je     12d0 <scale_image_RGB_to_NTSC_safe+0x1d0>
add    %rdi,%rbx
xor    %esi,%esi
nopl   0x0(%rax)
movzbl (%rbx,%rsi,1),%edx
movzbl -0x80(%rsp,%rdx,1),%edx
mov    %dl,(%rbx,%rsi,1)
add    $0x1,%rsi
cmp    %rsi,%r12
jne    1340 <scale_image_RGB_to_NTSC_safe+0x240>
jmp    12d0 <scale_image_RGB_to_NTSC_safe+0x1d0>
add    $0x88,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @scale_image_RGB_to_NTSC_safe(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca float
%11 = alloca float
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca [256 x i8]
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store float 0x402F008320000000, float* %10
store float 0x406D6FF7C0000000, float* %11
%16 = load i32, i32* %9
store i32 %16, i32* %14
%17 = load i32, i32* %7
%18 = icmp slt i32 %17, 1
br i1 %18, label %28, label %19
19: ; preds = %4
%20 = load i32, i32* %8
%21 = icmp slt i32 %20, 1
br i1 %21, label %28, label %22
22: ; preds = %19
%23 = load i32, i32* %9
%24 = icmp slt i32 %23, 1
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = load i8*, i8** %6
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %29
28: ; preds = %25, %22, %19, %4
store i32 0, i32* %5
br label %91
29: ; preds = %25
store i32 0, i32* %12
br label %30
30: ; preds = %43, %29
%31 = load i32, i32* %12
%32 = icmp slt i32 %31, 256
br i1 %32, label %33, label %46
33: ; preds = %30
%34 = load i32, i32* %12
%35 = sitofp i32 %34 to float
%36 = fmul float 0x406B7FEF80000000, %35
%37 = fdiv float %36, 2.550000e+02
%38 = fadd float %37, 0x402F008320000000
%39 = fptoui float %38 to i8
%40 = load i32, i32* %12
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %41
store i8 %39, i8* %42
br label %43
43: ; preds = %33
%44 = load i32, i32* %12
%45 = add nsw i32 %44, 1
store i32 %45, i32* %12
br label %30
46: ; preds = %30
%47 = load i32, i32* %9
%48 = and i32 %47, 1
%49 = sub nsw i32 1, %48
%50 = load i32, i32* %14
%51 = sub nsw i32 %50, %49
store i32 %51, i32* %14
store i32 0, i32* %12
br label %52
52: ; preds = %86, %46
%53 = load i32, i32* %12
%54 = load i32, i32* %7
%55 = load i32, i32* %8
%56 = mul nsw i32 %54, %55
%57 = load i32, i32* %9
%58 = mul nsw i32 %56, %57
%59 = icmp slt i32 %53, %58
br i1 %59, label %60, label %90
60: ; preds = %52
store i32 0, i32* %13
br label %61
61: ; preds = %82, %60
%62 = load i32, i32* %13
%63 = load i32, i32* %14
%64 = icmp slt i32 %62, %63
br i1 %64, label %65, label %85
65: ; preds = %61
%66 = load i8*, i8** %6
%67 = load i32, i32* %12
%68 = load i32, i32* %13
%69 = add nsw i32 %67, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i8, i8* %66, i64 %70
%72 = load i8, i8* %71
%73 = zext i8 %72 to i64
%74 = getelementptr inbounds [256 x i8], [256 x i8]* %15, i64 0, i64 %73
%75 = load i8, i8* %74
%76 = load i8*, i8** %6
%77 = load i32, i32* %12
%78 = load i32, i32* %13
%79 = add nsw i32 %77, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds i8, i8* %76, i64 %80
store i8 %75, i8* %81
br label %82
82: ; preds = %65
%83 = load i32, i32* %13
%84 = add nsw i32 %83, 1
store i32 %84, i32* %13
br label %61
85: ; preds = %61
br label %86
86: ; preds = %85
%87 = load i32, i32* %9
%88 = load i32, i32* %12
%89 = add nsw i32 %88, %87
store i32 %89, i32* %12
br label %52
90: ; preds = %52
store i32 1, i32* %5
br label %91
91: ; preds = %90, %28
%92 = load i32, i32* %5
ret i32 %92
}

LLVM IR (-O2):
define i32 @scale_image_RGB_to_NTSC_safe(i8* %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca [256 x i8]
%6 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 0
%7 = icmp slt i32 %1, 1
%8 = icmp slt i32 %2, 1
%9 = or i1 %7, %8
%10 = icmp slt i32 %3, 1
%11 = or i1 %9, %10
%12 = icmp eq i8* %0, null
%13 = or i1 %12, %11
br i1 %13, label %106, label %14
14: ; preds = %4, %14
%15 = phi i64 [ %33, %14 ], [ 0, %4 ]
%16 = phi <16 x i32> [ %34, %14 ], [ <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>, %4 ]
%17 = sitofp <16 x i32> %16 to <16 x float>
%18 = fmul <16 x float> %17, <float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000>
%19 = fdiv <16 x float> %18, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
%20 = fadd <16 x float> %19, <float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000>
%21 = fptoui <16 x float> %20 to <16 x i8>
%22 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %15
%23 = bitcast i8* %22 to <16 x i8>*
store <16 x i8> %21, <16 x i8>* %23
%24 = or i64 %15, 16
%25 = add <16 x i32> %16, <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
%26 = sitofp <16 x i32> %25 to <16 x float>
%27 = fmul <16 x float> %26, <float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000, float 0x406B7FEF80000000>
%28 = fdiv <16 x float> %27, <float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02, float 2.550000e+02>
%29 = fadd <16 x float> %28, <float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000, float 0x402F008320000000>
%30 = fptoui <16 x float> %29 to <16 x i8>
%31 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %24
%32 = bitcast i8* %31 to <16 x i8>*
store <16 x i8> %30, <16 x i8>* %32
%33 = add nuw nsw i64 %15, 32
%34 = add <16 x i32> %16, <i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32>
%35 = icmp eq i64 %33, 256
br i1 %35, label %36, label %14
36: ; preds = %14
%37 = or i32 %3, -2
%38 = add i32 %3, 1
%39 = add i32 %38, %37
%40 = mul nsw i32 %2, %1
%41 = mul nsw i32 %40, %3
%42 = icmp sgt i32 %41, 0
br i1 %42, label %43, label %106
43: ; preds = %36
%44 = icmp sgt i32 %39, 0
%45 = sext i32 %3 to i64
%46 = zext i32 %41 to i64
%47 = zext i32 %39 to i64
%48 = add nsw i64 %47, -1
%49 = and i64 %47, 3
%50 = icmp ult i64 %48, 3
%51 = and i64 %47, 4294967292
%52 = icmp eq i64 %49, 0
br label %53
53: ; preds = %43, %103
%54 = phi i64 [ 0, %43 ], [ %104, %103 ]
br i1 %44, label %55, label %103
55: ; preds = %53
br i1 %50, label %89, label %56
56: ; preds = %55, %56
%57 = phi i64 [ %86, %56 ], [ 0, %55 ]
%58 = phi i64 [ %87, %56 ], [ 0, %55 ]
%59 = add nsw i64 %57, %54
%60 = getelementptr inbounds i8, i8* %0, i64 %59
%61 = load i8, i8* %60
%62 = zext i8 %61 to i64
%63 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %62
%64 = load i8, i8* %63
store i8 %64, i8* %60
%65 = or i64 %57, 1
%66 = add nsw i64 %65, %54
%67 = getelementptr inbounds i8, i8* %0, i64 %66
%68 = load i8, i8* %67
%69 = zext i8 %68 to i64
%70 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %69
%71 = load i8, i8* %70
store i8 %71, i8* %67
%72 = or i64 %57, 2
%73 = add nsw i64 %72, %54
%74 = getelementptr inbounds i8, i8* %0, i64 %73
%75 = load i8, i8* %74
%76 = zext i8 %75 to i64
%77 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %76
%78 = load i8, i8* %77
store i8 %78, i8* %74
%79 = or i64 %57, 3
%80 = add nsw i64 %79, %54
%81 = getelementptr inbounds i8, i8* %0, i64 %80
%82 = load i8, i8* %81
%83 = zext i8 %82 to i64
%84 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %83
%85 = load i8, i8* %84
store i8 %85, i8* %81
%86 = add nuw nsw i64 %57, 4
%87 = add i64 %58, 4
%88 = icmp eq i64 %87, %51
br i1 %88, label %89, label %56
89: ; preds = %56, %55
%90 = phi i64 [ 0, %55 ], [ %86, %56 ]
br i1 %52, label %103, label %91
91: ; preds = %89, %91
%92 = phi i64 [ %100, %91 ], [ %90, %89 ]
%93 = phi i64 [ %101, %91 ], [ 0, %89 ]
%94 = add nsw i64 %92, %54
%95 = getelementptr inbounds i8, i8* %0, i64 %94
%96 = load i8, i8* %95
%97 = zext i8 %96 to i64
%98 = getelementptr inbounds [256 x i8], [256 x i8]* %5, i64 0, i64 %97
%99 = load i8, i8* %98
store i8 %99, i8* %95
%100 = add nuw nsw i64 %92, 1
%101 = add i64 %93, 1
%102 = icmp eq i64 %101, %49
br i1 %102, label %103, label %91
103: ; preds = %89, %91, %53
%104 = add nsw i64 %54, %45
%105 = icmp slt i64 %104, %46
br i1 %105, label %53, label %106
106: ; preds = %103, %36, %4
%107 = phi i32 [ 0, %4 ], [ 1, %36 ], [ 1, %103 ]
ret i32 %107
}