#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 */
scalar_t__ EOF;
int INT_MAX;
int /*<<< orphan*/ printf(char *, int, int, int, int, int, int);
scalar_t__ scanf(char *, int *, int *, int *);
int main(void) {
  int i, j;
  int r, rr, g, gg, b, bb, dist;
  struct {
    int red;
    int green;
    int blue;
  } target[16];
  for (i = 0; i < 16; i++)
    scanf("%d %d %d", &target[i].red, &target[i].green, &target[i].blue);
  while ((EOF != scanf("%d %d %d", &r, &g, &b)) && (r >= 0)) {
    dist = INT_MAX;
    for (i = 0; i < 16; i++) {
      rr = r - target[i].red;
      gg = g - target[i].green;
      bb = b - target[i].blue;
      rr = rr * rr + gg * gg + bb * bb;
      if (rr < dist) {
        dist = rr;
        j = i;
      }
    }
    printf("(%d,%d,%d) maps to (%d,%d,%d)\n", r, g, b, target[j].red,
           target[j].green, target[j].blue);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    119b <main+0x7b>
movslq -0x8(%rbp),%rax
lea    -0xf0(%rbp),%rsi
imul   $0xc,%rax,%rax
add    %rax,%rsi
movslq -0x8(%rbp),%rax
lea    -0xf0(%rbp),%rdx
imul   $0xc,%rax,%rax
add    %rax,%rdx
add    $0x4,%rdx
movslq -0x8(%rbp),%rax
lea    -0xf0(%rbp),%rcx
imul   $0xc,%rax,%rax
add    %rax,%rcx
add    $0x8,%rcx
lea    0xe78(%rip),%rdi
call   1040 <scanf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1139 <main+0x19>
jmp    11a0 <main+0x80>
mov    0x2e39(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x100(%rbp)
lea    0xe48(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x20(%rbp),%rcx
call   1040 <scanf@plt>
mov    -0x100(%rbp),%rcx
mov    %rax,%rdx
xor    %eax,%eax
cmp    %rdx,%rcx
mov    %al,-0xf1(%rbp)
je     11f1 <main+0xd1>
cmpl   $0x0,-0x10(%rbp)
setge  %al
mov    %al,-0xf1(%rbp)
mov    -0xf1(%rbp),%al
test   $0x1,%al
jne    1204 <main+0xe4>
jmp    1315 <main+0x1f5>
mov    0x2ddd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x10,-0x8(%rbp)
jge    12b8 <main+0x198>
mov    -0x10(%rbp),%eax
movslq -0x8(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
sub    (%rcx),%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%eax
movslq -0x8(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
sub    0x4(%rcx),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x20(%rbp),%eax
movslq -0x8(%rbp),%rdx
lea    -0xf0(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
sub    0x8(%rcx),%eax
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
mov    -0x1c(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
add    %ecx,%eax
mov    -0x24(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x28(%rbp),%eax
jge    12a5 <main+0x185>
mov    -0x14(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0xc(%rbp)
jmp    12aa <main+0x18a>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1217 <main+0xf7>
mov    -0x10(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x20(%rbp),%ecx
movslq -0xc(%rbp),%rdi
lea    -0xf0(%rbp),%rax
imul   $0xc,%rdi,%rdi
add    %rdi,%rax
mov    (%rax),%r8d
movslq -0xc(%rbp),%rdi
lea    -0xf0(%rbp),%rax
imul   $0xc,%rdi,%rdi
add    %rdi,%rax
mov    0x4(%rax),%r9d
movslq -0xc(%rbp),%rdi
lea    -0xf0(%rbp),%rax
imul   $0xc,%rdi,%rdi
add    %rdi,%rax
mov    0x8(%rax),%eax
lea    0xd01(%rip),%rdi
mov    %eax,(%rsp)
call   1030 <printf@plt>
jmp    11a0 <main+0x80>
mov    -0x4(%rbp),%eax
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
lea    0x24(%rsp),%rdx
lea    0x28(%rsp),%rcx
lea    0xebe(%rip),%rbx
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x2c(%rsp),%rsi
lea    0x30(%rsp),%rdx
lea    0x34(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x38(%rsp),%rsi
lea    0x3c(%rsp),%rdx
lea    0x40(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x44(%rsp),%rsi
lea    0x48(%rsp),%rdx
lea    0x4c(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x50(%rsp),%rsi
lea    0x54(%rsp),%rdx
lea    0x58(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x5c(%rsp),%rsi
lea    0x60(%rsp),%rdx
lea    0x64(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x68(%rsp),%rsi
lea    0x6c(%rsp),%rdx
lea    0x70(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x74(%rsp),%rsi
lea    0x78(%rsp),%rdx
lea    0x7c(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x80(%rsp),%rsi
lea    0x84(%rsp),%rdx
lea    0x88(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x8c(%rsp),%rsi
lea    0x90(%rsp),%rdx
lea    0x94(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x98(%rsp),%rsi
lea    0x9c(%rsp),%rdx
lea    0xa0(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xa4(%rsp),%rsi
lea    0xa8(%rsp),%rdx
lea    0xac(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xb0(%rsp),%rsi
lea    0xb4(%rsp),%rdx
lea    0xb8(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xbc(%rsp),%rsi
lea    0xc0(%rsp),%rdx
lea    0xc4(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xc8(%rsp),%rsi
lea    0xcc(%rsp),%rdx
lea    0xd0(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0xd4(%rsp),%rsi
lea    0xd8(%rsp),%rdx
lea    0xdc(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
mov    0x2ce9(%rip),%rax
mov    (%rax),%rbp
lea    0x14(%rsp),%rsi
lea    0x1c(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %rbx,%rdi
call   1040 <scanf@plt>
cmp    %rax,%rbp
je     13e8 <main+0x2c8>
mov    0x14(%rsp),%esi
test   %esi,%esi
js     13e8 <main+0x2c8>
lea    0x14(%rsp),%r12
lea    0x1c(%rsp),%r13
lea    0x18(%rsp),%r14
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x2ca1(%rip),%rax
mov    (%rax),%r8d
mov    0x1c(%rsp),%edx
mov    0x18(%rsp),%ecx
lea    0x28(%rsp),%rdi
xor    %r9d,%r9d
nopw   0x0(%rax,%rax,1)
mov    %esi,%ebp
sub    -0x8(%rdi),%ebp
mov    %edx,%eax
sub    -0x4(%rdi),%eax
mov    %ecx,%ebx
sub    (%rdi),%ebx
imul   %ebp,%ebp
imul   %eax,%eax
add    %ebp,%eax
imul   %ebx,%ebx
add    %eax,%ebx
cmp    %r8d,%ebx
cmovl  %r9d,%r15d
cmovl  %ebx,%r8d
add    $0x1,%r9
add    $0xc,%rdi
cmp    $0x10,%r9
jne    1360 <main+0x240>
movslq %r15d,%rax
lea    (%rax,%rax,2),%rax
mov    0x20(%rsp,%rax,4),%r8d
mov    0x24(%rsp,%rax,4),%r9d
mov    0x28(%rsp,%rax,4),%eax
mov    %eax,(%rsp)
lea    0xc56(%rip),%rdi
call   1030 <printf@plt>
mov    0x2c21(%rip),%rax
mov    (%rax),%rbx
lea    0xc37(%rip),%rdi
mov    %r12,%rsi
mov    %r13,%rdx
mov    %r14,%rcx
call   1040 <scanf@plt>
cmp    %rax,%rbx
je     13e8 <main+0x2c8>
mov    0x14(%rsp),%esi
test   %esi,%esi
jns    1340 <main+0x220>
xor    %eax,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.anon = type { i32, i32, i32 }
@.str = [9 x i8] c"%d %d %d\00"
@EOF = global i64 0
@INT_MAX = global i32 0
@.str.1 = [31 x i8] c"(%d,%d,%d) maps to (%d,%d,%d)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca [16 x %struct.anon]
store i32 0, i32* %1
store i32 0, i32* %2
br label %12
12: ; preds = %29, %0
%13 = load i32, i32* %2
%14 = icmp slt i32 %13, 16
br i1 %14, label %15, label %32
15: ; preds = %12
%16 = load i32, i32* %2
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %17
%19 = getelementptr inbounds %struct.anon, %struct.anon* %18, i32 0, i32 0
%20 = load i32, i32* %2
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %21
%23 = getelementptr inbounds %struct.anon, %struct.anon* %22, i32 0, i32 1
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %25
%27 = getelementptr inbounds %struct.anon, %struct.anon* %26, i32 0, i32 2
%28 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %19, i32* %23, i32* %27)
br label %29
29: ; preds = %15
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
br label %12
32: ; preds = %12
br label %33
33: ; preds = %90, %32
%34 = load i64, i64* @EOF
%35 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %4, i32* %6, i32* %8)
%36 = icmp ne i64 %34, %35
br i1 %36, label %37, label %40
37: ; preds = %33
%38 = load i32, i32* %4
%39 = icmp sge i32 %38, 0
br label %40
40: ; preds = %37, %33
%41 = phi i1 [ false, %33 ], [ %39, %37 ]
br i1 %41, label %42, label %110
42: ; preds = %40
%43 = load i32, i32* @INT_MAX
store i32 %43, i32* %10
store i32 0, i32* %2
br label %44
44: ; preds = %87, %42
%45 = load i32, i32* %2
%46 = icmp slt i32 %45, 16
br i1 %46, label %47, label %90
47: ; preds = %44
%48 = load i32, i32* %4
%49 = load i32, i32* %2
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %50
%52 = getelementptr inbounds %struct.anon, %struct.anon* %51, i32 0, i32 0
%53 = load i32, i32* %52
%54 = sub nsw i32 %48, %53
store i32 %54, i32* %5
%55 = load i32, i32* %6
%56 = load i32, i32* %2
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %57
%59 = getelementptr inbounds %struct.anon, %struct.anon* %58, i32 0, i32 1
%60 = load i32, i32* %59
%61 = sub nsw i32 %55, %60
store i32 %61, i32* %7
%62 = load i32, i32* %8
%63 = load i32, i32* %2
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %64
%66 = getelementptr inbounds %struct.anon, %struct.anon* %65, i32 0, i32 2
%67 = load i32, i32* %66
%68 = sub nsw i32 %62, %67
store i32 %68, i32* %9
%69 = load i32, i32* %5
%70 = load i32, i32* %5
%71 = mul nsw i32 %69, %70
%72 = load i32, i32* %7
%73 = load i32, i32* %7
%74 = mul nsw i32 %72, %73
%75 = add nsw i32 %71, %74
%76 = load i32, i32* %9
%77 = load i32, i32* %9
%78 = mul nsw i32 %76, %77
%79 = add nsw i32 %75, %78
store i32 %79, i32* %5
%80 = load i32, i32* %5
%81 = load i32, i32* %10
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %86
83: ; preds = %47
%84 = load i32, i32* %5
store i32 %84, i32* %10
%85 = load i32, i32* %2
store i32 %85, i32* %3
br label %86
86: ; preds = %83, %47
br label %87
87: ; preds = %86
%88 = load i32, i32* %2
%89 = add nsw i32 %88, 1
store i32 %89, i32* %2
br label %44
90: ; preds = %44
%91 = load i32, i32* %4
%92 = load i32, i32* %6
%93 = load i32, i32* %8
%94 = load i32, i32* %3
%95 = sext i32 %94 to i64
%96 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %95
%97 = getelementptr inbounds %struct.anon, %struct.anon* %96, i32 0, i32 0
%98 = load i32, i32* %97
%99 = load i32, i32* %3
%100 = sext i32 %99 to i64
%101 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %100
%102 = getelementptr inbounds %struct.anon, %struct.anon* %101, i32 0, i32 1
%103 = load i32, i32* %102
%104 = load i32, i32* %3
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %11, i64 0, i64 %105
%107 = getelementptr inbounds %struct.anon, %struct.anon* %106, i32 0, i32 2
%108 = load i32, i32* %107
%109 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %91, i32 %92, i32 %93, i32 %98, i32 %103, i32 %108)
br label %33
110: ; preds = %40
%111 = load i32, i32* %1
ret i32 %111
}

LLVM IR (-O2):
%struct.anon = type { i32, i32, i32 }
@.str = [9 x i8] c"%d %d %d\00"
@EOF = global i64 0
@INT_MAX = global i32 0
@.str.1 = [31 x i8] c"(%d,%d,%d) maps to (%d,%d,%d)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [16 x %struct.anon]
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast [16 x %struct.anon]* %4 to i8*
%9 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 0, i32 0
%10 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 0, i32 1
%11 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 0, i32 2
%12 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %9, i32* %10, i32* %11)
%13 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 1, i32 0
%14 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 1, i32 1
%15 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 1, i32 2
%16 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %13, i32* %14, i32* %15)
%17 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 2, i32 0
%18 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 2, i32 1
%19 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 2, i32 2
%20 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %17, i32* %18, i32* %19)
%21 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 3, i32 0
%22 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 3, i32 1
%23 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 3, i32 2
%24 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %21, i32* %22, i32* %23)
%25 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 4, i32 0
%26 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 4, i32 1
%27 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 4, i32 2
%28 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %25, i32* %26, i32* %27)
%29 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 5, i32 0
%30 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 5, i32 1
%31 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 5, i32 2
%32 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %29, i32* %30, i32* %31)
%33 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 6, i32 0
%34 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 6, i32 1
%35 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 6, i32 2
%36 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %33, i32* %34, i32* %35)
%37 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 7, i32 0
%38 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 7, i32 1
%39 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 7, i32 2
%40 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %37, i32* %38, i32* %39)
%41 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 8, i32 0
%42 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 8, i32 1
%43 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 8, i32 2
%44 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %41, i32* %42, i32* %43)
%45 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 9, i32 0
%46 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 9, i32 1
%47 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 9, i32 2
%48 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %45, i32* %46, i32* %47)
%49 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 10, i32 0
%50 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 10, i32 1
%51 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 10, i32 2
%52 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %49, i32* %50, i32* %51)
%53 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 11, i32 0
%54 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 11, i32 1
%55 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 11, i32 2
%56 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %53, i32* %54, i32* %55)
%57 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 12, i32 0
%58 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 12, i32 1
%59 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 12, i32 2
%60 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %57, i32* %58, i32* %59)
%61 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 13, i32 0
%62 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 13, i32 1
%63 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 13, i32 2
%64 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %61, i32* %62, i32* %63)
%65 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 14, i32 0
%66 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 14, i32 1
%67 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 14, i32 2
%68 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %65, i32* %66, i32* %67)
%69 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 15, i32 0
%70 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 15, i32 1
%71 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 15, i32 2
%72 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %69, i32* %70, i32* %71)
%73 = load i64, i64* @EOF
%74 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%75 = icmp ne i64 %73, %74
%76 = load i32, i32* %1
%77 = icmp sgt i32 %76, -1
%78 = select i1 %75, i1 %77, i1 false
br i1 %78, label %79, label %124
79: ; preds = %0, %109
%80 = phi i32 [ %121, %109 ], [ %76, %0 ]
%81 = phi i32 [ %105, %109 ], [ undef, %0 ]
%82 = load i32, i32* @INT_MAX
%83 = load i32, i32* %2
%84 = load i32, i32* %3
br label %85
85: ; preds = %79, %85
%86 = phi i64 [ 0, %79 ], [ %107, %85 ]
%87 = phi i32 [ %82, %79 ], [ %106, %85 ]
%88 = phi i32 [ %81, %79 ], [ %105, %85 ]
%89 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 %86, i32 0
%90 = load i32, i32* %89
%91 = sub nsw i32 %80, %90
%92 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 %86, i32 1
%93 = load i32, i32* %92
%94 = sub nsw i32 %83, %93
%95 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 %86, i32 2
%96 = load i32, i32* %95
%97 = sub nsw i32 %84, %96
%98 = mul nsw i32 %91, %91
%99 = mul nsw i32 %94, %94
%100 = add nuw nsw i32 %99, %98
%101 = mul nsw i32 %97, %97
%102 = add nuw nsw i32 %100, %101
%103 = icmp slt i32 %102, %87
%104 = trunc i64 %86 to i32
%105 = select i1 %103, i32 %104, i32 %88
%106 = select i1 %103, i32 %102, i32 %87
%107 = add nuw nsw i64 %86, 1
%108 = icmp eq i64 %107, 16
br i1 %108, label %109, label %85
109: ; preds = %85
%110 = sext i32 %105 to i64
%111 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 %110, i32 0
%112 = load i32, i32* %111
%113 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 %110, i32 1
%114 = load i32, i32* %113
%115 = getelementptr inbounds [16 x %struct.anon], [16 x %struct.anon]* %4, i64 0, i64 %110, i32 2
%116 = load i32, i32* %115
%117 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %80, i32 %83, i32 %84, i32 %112, i32 %114, i32 %116)
%118 = load i64, i64* @EOF
%119 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %1, i32* %2, i32* %3)
%120 = icmp ne i64 %118, %119
%121 = load i32, i32* %1
%122 = icmp sgt i32 %121, -1
%123 = select i1 %120, i1 %122, i1 false
br i1 %123, label %79, label %124
124: ; preds = %109, %0
ret i32 0
}