#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 EOF;
int atoi(char *);
int /*<<< orphan*/ err_exit(char *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int getchar();
char *gettext(char *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int tenpow(int);
int enter_number() {
  char mstr[5] = {'\0', '\0', '\0', '\0', '\0'};
  int c;
  int input;
  int in_digits[4] = {0, 0, 0, 0};
  bool reinput;
  do {
    reinput = false;
    printf(gettext("Input a 4-digit number:"));
    if (fgets(mstr, sizeof mstr, stdin) == NULL)
      err_exit(gettext("Something's got wrong, I'd better quit...\n"));
    bool flag = false;
    if (mstr[0] != '\n' && mstr[1] != '\n' && mstr[2] != '\n' &&
        mstr[3] != '\n')
      while ((c = getchar()) != '\n' && c != EOF)
        flag = true;
    if (flag == true) {
      fprintf(stderr, gettext("Input too long!\n"));
      reinput = true;
      continue;
    }
    input = atoi(mstr);
    if (input < 1000 || input > 9999) {
      fprintf(stderr, gettext("Must be a number between 1000 and 9999!\n"));
      reinput = true;
      continue;
    }
    for (int i = 0; i < 4; i++)
      in_digits[i] = (int)(input / tenpow(3 - i)) % 10;
    if (in_digits[0] == in_digits[1] || in_digits[1] == in_digits[2] ||
        in_digits[2] == in_digits[3] || in_digits[0] == in_digits[2] ||
        in_digits[0] == in_digits[3] || in_digits[1] == in_digits[3]) {
      fprintf(stderr, gettext("Four digits must be unique.\n"));
      reinput = true;
      continue;
    }
  } while (reinput);
  return input;
}


x86 assembly (clang, -O0):
<enter_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x5(%rbp),%rdi
xor    %esi,%esi
mov    $0x5,%edx
call   1060 <memset@plt>
lea    -0x20(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
movl   $0x0,-0x24(%rbp)
lea    0xe3a(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
lea    -0x5(%rbp),%rdi
mov    0x2e0a(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
jne    1208 <enter_number+0x78>
lea    0xe1d(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   10a0 <err_exit@plt>
movl   $0x0,-0x28(%rbp)
movsbl -0x5(%rbp),%eax
cmp    $0xa,%eax
je     1295 <enter_number+0x105>
movsbl -0x4(%rbp),%eax
cmp    $0xa,%eax
je     1295 <enter_number+0x105>
movsbl -0x3(%rbp),%eax
cmp    $0xa,%eax
je     1295 <enter_number+0x105>
movsbl -0x2(%rbp),%eax
cmp    $0xa,%eax
je     1295 <enter_number+0x105>
jmp    1248 <enter_number+0xb8>
mov    $0x0,%al
call   1080 <getchar@plt>
mov    %eax,%ecx
mov    %ecx,-0xc(%rbp)
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x2d(%rbp)
je     1274 <enter_number+0xe4>
mov    -0xc(%rbp),%eax
mov    0x2d74(%rip),%rcx
cmp    (%rcx),%eax
setne  %al
mov    %al,-0x2d(%rbp)
mov    -0x2d(%rbp),%al
test   $0x1,%al
jne    1284 <enter_number+0xf4>
jmp    1290 <enter_number+0x100>
movl   $0x1,-0x28(%rbp)
jmp    1248 <enter_number+0xb8>
jmp    1295 <enter_number+0x105>
cmpl   $0x1,-0x28(%rbp)
jne    12ce <enter_number+0x13e>
mov    0x2d2a(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
lea    0xd91(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x34(%rbp),%edi
mov    %rax,%rsi
call   1090 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
jmp    13e9 <enter_number+0x259>
lea    -0x5(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x10(%rbp)
cmpl   $0x3e8,-0x10(%rbp)
jl     12f4 <enter_number+0x164>
cmpl   $0x270f,-0x10(%rbp)
jle    1323 <enter_number+0x193>
mov    0x2cd5(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x38(%rbp)
lea    0xd4d(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x38(%rbp),%edi
mov    %rax,%rsi
call   1090 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
jmp    13e9 <enter_number+0x259>
movl   $0x0,-0x2c(%rbp)
cmpl   $0x4,-0x2c(%rbp)
jge    136d <enter_number+0x1dd>
mov    -0x10(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    $0x3,%edi
sub    -0x2c(%rbp),%edi
call   1050 <tenpow@plt>
mov    %eax,%ecx
mov    -0x3c(%rbp),%eax
cltd
idiv   %ecx
mov    $0xa,%ecx
cltd
idiv   %ecx
movslq -0x2c(%rbp),%rax
mov    %edx,-0x20(%rbp,%rax,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    132a <enter_number+0x19a>
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
je     13b5 <enter_number+0x225>
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     13b5 <enter_number+0x225>
mov    -0x18(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     13b5 <enter_number+0x225>
mov    -0x20(%rbp),%eax
cmp    -0x18(%rbp),%eax
je     13b5 <enter_number+0x225>
mov    -0x20(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     13b5 <enter_number+0x225>
mov    -0x1c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    13e4 <enter_number+0x254>
mov    0x2c14(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x40(%rbp)
lea    0xcb5(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x40(%rbp),%edi
mov    %rax,%rsi
call   1090 <fprintf@plt>
movl   $0x1,-0x24(%rbp)
jmp    13e9 <enter_number+0x259>
jmp    13e9 <enter_number+0x259>
cmpl   $0x0,-0x24(%rbp)
jne    11b8 <enter_number+0x28>
mov    -0x10(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<enter_number>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
movb   $0x0,0x4(%rsp)
movl   $0x0,(%rsp)
mov    %rsp,%r12
mov    0x2e3f(%rip),%r14
jmp    11c8 <enter_number+0x48>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x2e19(%rip),%rax
mov    (%rax),%ebx
call   1030 <gettext@plt>
mov    %ebx,%edi
mov    %rax,%rsi
call   1080 <fprintf@plt>
lea    0xe41(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1040 <printf@plt>
mov    0x2e05(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
mov    $0x5,%esi
call   1060 <fgets@plt>
test   %rax,%rax
jne    120b <enter_number+0x8b>
lea    0xe2a(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
call   1090 <err_exit@plt>
movd   (%rsp),%xmm0
pcmpeqb 0xde8(%rip),%xmm0
punpcklbw %xmm0,%xmm0
punpcklwd %xmm0,%xmm0
movmskps %xmm0,%eax
test   %eax,%eax
jne    1270 <enter_number+0xf0>
xor    %eax,%eax
call   1070 <getchar@plt>
cmp    $0xa,%eax
setne  %cl
cmp    (%r14),%eax
setne  %bl
and    %cl,%bl
cmp    $0x1,%bl
jne    1270 <enter_number+0xf0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <getchar@plt>
cmp    $0xa,%eax
je     1261 <enter_number+0xe1>
cmp    (%r14),%eax
jne    1250 <enter_number+0xd0>
lea    0xdeb(%rip),%rdi
test   %bl,%bl
jne    11b0 <enter_number+0x30>
mov    %r12,%rdi
call   10a0 <atoi@plt>
mov    %eax,%ebx
lea    -0x2710(%rbx),%eax
lea    0xddd(%rip),%rdi
cmp    $0xffffdcd8,%eax
jb     11b0 <enter_number+0x30>
mov    $0x3,%edi
call   1050 <tenpow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %eax,%r13d
movswl %r13w,%eax
imul   $0x6667,%eax,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x12,%eax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%r13d
mov    $0x2,%edi
call   1050 <tenpow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %eax,%ebp
movswl %bp,%eax
imul   $0x6667,%eax,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x12,%eax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%ebp
mov    $0x1,%edi
call   1050 <tenpow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
mov    %eax,%r15d
movswl %r15w,%eax
imul   $0x6667,%eax,%eax
mov    %eax,%ecx
shr    $0x1f,%ecx
sar    $0x12,%eax
add    %ecx,%eax
add    %eax,%eax
lea    (%rax,%rax,4),%eax
sub    %eax,%r15d
xor    %edi,%edi
call   1050 <tenpow@plt>
mov    %eax,%ecx
mov    %ebx,%eax
cltd
idiv   %ecx
movswl %ax,%ecx
imul   $0x6667,%ecx,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x12,%ecx
add    %edx,%ecx
add    %ecx,%ecx
lea    0xd44(%rip),%rdi
cmp    %bp,%r13w
je     11b0 <enter_number+0x30>
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%eax
lea    0xd2e(%rip),%rdi
cmp    %r15w,%bp
je     11b0 <enter_number+0x30>
lea    0xd1d(%rip),%rdi
cmp    %ax,%r15w
je     11b0 <enter_number+0x30>
lea    0xd0c(%rip),%rdi
cmp    %r15w,%r13w
je     11b0 <enter_number+0x30>
lea    0xcfb(%rip),%rdi
cmp    %ax,%r13w
je     11b0 <enter_number+0x30>
lea    0xcea(%rip),%rdi
cmp    %ax,%bp
je     11b0 <enter_number+0x30>
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"Input a 4-digit number:\00"
@stdin = global i32 0
@.str.1 = [43 x i8] c"Something's got wrong, I'd better quit...\0A\00"
@EOF = global i32 0
@stderr = global i32 0
@.str.2 = [17 x i8] c"Input too long!\0A\00"
@.str.3 = [41 x i8] c"Must be a number between 1000 and 9999!\0A\00"
@.str.4 = [29 x i8] c"Four digits must be unique.\0A\00"
define i32 @enter_number() {
%1 = alloca [5 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = alloca [4 x i32]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = bitcast [5 x i8]* %1 to i8*
%9 = bitcast [4 x i32]* %4 to i8*
br label %10
10: ; preds = %129, %0
store i32 0, i32* %5
%11 = call i8* @gettext(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%12 = call i32 @printf(i8* %11)
%13 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%14 = load i32, i32* @stdin
%15 = call i32* @fgets(i8* %13, i32 5, i32 %14)
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %20
17: ; preds = %10
%18 = call i8* @gettext(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%19 = call i32 @err_exit(i8* %18)
br label %20
20: ; preds = %17, %10
store i32 0, i32* %6
%21 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%22 = load i8, i8* %21
%23 = sext i8 %22 to i32
%24 = icmp ne i32 %23, 10
br i1 %24, label %25, label %52
25: ; preds = %20
%26 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 1
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp ne i32 %28, 10
br i1 %29, label %30, label %52
30: ; preds = %25
%31 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 2
%32 = load i8, i8* %31
%33 = sext i8 %32 to i32
%34 = icmp ne i32 %33, 10
br i1 %34, label %35, label %52
35: ; preds = %30
%36 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 3
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 10
br i1 %39, label %40, label %52
40: ; preds = %35
br label %41
41: ; preds = %50, %40
%42 = call i32 (...) @getchar()
store i32 %42, i32* %2
%43 = icmp ne i32 %42, 10
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load i32, i32* %2
%46 = load i32, i32* @EOF
%47 = icmp ne i32 %45, %46
br label %48
48: ; preds = %44, %41
%49 = phi i1 [ false, %41 ], [ %47, %44 ]
br i1 %49, label %50, label %51
50: ; preds = %48
store i32 1, i32* %6
br label %41
51: ; preds = %48
br label %52
52: ; preds = %51, %35, %30, %25, %20
%53 = load i32, i32* %6
%54 = icmp eq i32 %53, 1
br i1 %54, label %55, label %59
55: ; preds = %52
%56 = load i32, i32* @stderr
%57 = call i8* @gettext(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%58 = call i32 @fprintf(i32 %56, i8* %57)
store i32 1, i32* %5
br label %129
59: ; preds = %52
%60 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%61 = call i32 @atoi(i8* %60)
store i32 %61, i32* %3
%62 = load i32, i32* %3
%63 = icmp slt i32 %62, 1000
br i1 %63, label %67, label %64
64: ; preds = %59
%65 = load i32, i32* %3
%66 = icmp sgt i32 %65, 9999
br i1 %66, label %67, label %71
67: ; preds = %64, %59
%68 = load i32, i32* @stderr
%69 = call i8* @gettext(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%70 = call i32 @fprintf(i32 %68, i8* %69)
store i32 1, i32* %5
br label %129
71: ; preds = %64
store i32 0, i32* %7
br label %72
72: ; preds = %85, %71
%73 = load i32, i32* %7
%74 = icmp slt i32 %73, 4
br i1 %74, label %75, label %88
75: ; preds = %72
%76 = load i32, i32* %3
%77 = load i32, i32* %7
%78 = sub nsw i32 3, %77
%79 = call i32 @tenpow(i32 %78)
%80 = sdiv i32 %76, %79
%81 = srem i32 %80, 10
%82 = load i32, i32* %7
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 %83
store i32 %81, i32* %84
br label %85
85: ; preds = %75
%86 = load i32, i32* %7
%87 = add nsw i32 %86, 1
store i32 %87, i32* %7
br label %72
88: ; preds = %72
%89 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%90 = load i32, i32* %89
%91 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
%92 = load i32, i32* %91
%93 = icmp eq i32 %90, %92
br i1 %93, label %124, label %94
94: ; preds = %88
%95 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
%96 = load i32, i32* %95
%97 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
%98 = load i32, i32* %97
%99 = icmp eq i32 %96, %98
br i1 %99, label %124, label %100
100: ; preds = %94
%101 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
%102 = load i32, i32* %101
%103 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
%104 = load i32, i32* %103
%105 = icmp eq i32 %102, %104
br i1 %105, label %124, label %106
106: ; preds = %100
%107 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%108 = load i32, i32* %107
%109 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 2
%110 = load i32, i32* %109
%111 = icmp eq i32 %108, %110
br i1 %111, label %124, label %112
112: ; preds = %106
%113 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 0
%114 = load i32, i32* %113
%115 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
%116 = load i32, i32* %115
%117 = icmp eq i32 %114, %116
br i1 %117, label %124, label %118
118: ; preds = %112
%119 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 1
%120 = load i32, i32* %119
%121 = getelementptr inbounds [4 x i32], [4 x i32]* %4, i64 0, i64 3
%122 = load i32, i32* %121
%123 = icmp eq i32 %120, %122
br i1 %123, label %124, label %128
124: ; preds = %118, %112, %106, %100, %94, %88
%125 = load i32, i32* @stderr
%126 = call i8* @gettext(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
%127 = call i32 @fprintf(i32 %125, i8* %126)
store i32 1, i32* %5
br label %129
128: ; preds = %118
br label %129
129: ; preds = %128, %124, %67, %55
%130 = load i32, i32* %5
%131 = icmp ne i32 %130, 0
br i1 %131, label %10, label %132
132: ; preds = %129
%133 = load i32, i32* %3
ret i32 %133
}

LLVM IR (-O2):
@.str = [24 x i8] c"Input a 4-digit number:\00"
@stdin = global i32 0
@.str.1 = [43 x i8] c"Something's got wrong, I'd better quit...\0A\00"
@EOF = global i32 0
@stderr = global i32 0
@.str.2 = [17 x i8] c"Input too long!\0A\00"
@.str.3 = [41 x i8] c"Must be a number between 1000 and 9999!\0A\00"
@.str.4 = [29 x i8] c"Four digits must be unique.\0A\00"
define i32 @enter_number() {
%1 = alloca [5 x i8]
%2 = getelementptr inbounds [5 x i8], [5 x i8]* %1, i64 0, i64 0
%3 = bitcast [5 x i8]* %1 to <4 x i8>*
br label %4
4: ; preds = %64, %0
%5 = call i8* @gettext(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* dereferenceable(1) %5)
%7 = load i32, i32* @stdin
%8 = call i32* @fgets(i8* %2, i32 5, i32 %7)
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %13
10: ; preds = %4
%11 = call i8* @gettext(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @err_exit(i8* %11)
br label %13
13: ; preds = %10, %4
%14 = load <4 x i8>, <4 x i8>* %3
%15 = freeze <4 x i8> %14
%16 = icmp eq <4 x i8> %15, <i8 10, i8 10, i8 10, i8 10>
%17 = bitcast <4 x i1> %16 to i4
%18 = icmp eq i4 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %13
%20 = call i32 (...) @getchar()
%21 = icmp ne i32 %20, 10
%22 = load i32, i32* @EOF
%23 = icmp ne i32 %20, %22
%24 = select i1 %21, i1 %23, i1 false
br i1 %24, label %25, label %32
25: ; preds = %19, %25
%26 = call i32 (...) @getchar()
%27 = icmp ne i32 %26, 10
%28 = load i32, i32* @EOF
%29 = icmp ne i32 %26, %28
%30 = select i1 %27, i1 %29, i1 false
br i1 %30, label %25, label %31
31: ; preds = %25
br i1 %24, label %64, label %32
32: ; preds = %19, %13, %31
%33 = call i32 @atoi(i8* %2)
%34 = add i32 %33, -10000
%35 = icmp ult i32 %34, -9000
br i1 %35, label %64, label %36
36: ; preds = %32
%37 = call i32 @tenpow(i32 3)
%38 = sdiv i32 %33, %37
%39 = trunc i32 %38 to i16
%40 = srem i16 %39, 10
%41 = call i32 @tenpow(i32 2)
%42 = sdiv i32 %33, %41
%43 = trunc i32 %42 to i16
%44 = srem i16 %43, 10
%45 = call i32 @tenpow(i32 1)
%46 = sdiv i32 %33, %45
%47 = trunc i32 %46 to i16
%48 = srem i16 %47, 10
%49 = call i32 @tenpow(i32 0)
%50 = sdiv i32 %33, %49
%51 = trunc i32 %50 to i16
%52 = srem i16 %51, 10
%53 = icmp eq i16 %40, %44
%54 = icmp eq i16 %44, %48
%55 = select i1 %53, i1 true, i1 %54
br i1 %55, label %64, label %56
56: ; preds = %36
%57 = icmp eq i16 %48, %52
%58 = icmp eq i16 %40, %48
%59 = select i1 %57, i1 true, i1 %58
%60 = icmp eq i16 %40, %52
%61 = select i1 %59, i1 true, i1 %60
%62 = icmp eq i16 %44, %52
%63 = select i1 %61, i1 true, i1 %62
br i1 %63, label %64, label %69
64: ; preds = %36, %56, %32, %31
%65 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), %31 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), %32 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), %56 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0), %36 ]
%66 = load i32, i32* @stderr
%67 = call i8* @gettext(i8* %65)
%68 = call i32 @fprintf(i32 %66, i8* %67)
br label %4
69: ; preds = %56
ret i32 %33
}