#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 atoi(char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *, ...);
int reverse(int);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  printf("%12d  =>  %-12d  %s!\n", 123, reverse(123),
         321 == reverse(123) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", -123, reverse(-123),
         -321 == reverse(-123) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", -100, reverse(-100),
         -1 == reverse(-100) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", 1002, reverse(1002),
         2001 == reverse(1002) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", 1463847412, reverse(1463847412),
         2147483641 == reverse(1463847412) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", -2147447412, reverse(-2147447412),
         -2147447412 == reverse(-2147447412) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", 2147447412, reverse(2147447412),
         2147447412 == reverse(2147447412) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", 1000000003, reverse(1000000003),
         0 == reverse(1000000003) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", 2147483647, reverse(2147483647),
         0 == reverse(2147483647) ? "passed" : "failed");
  printf("%12d  =>  %-12d  %s!\n", -2147483648, reverse(-2147483648),
         0 == reverse(-2147483648) ? "passed" : "failed");
  if (argc != 2) {
    fprintf(stderr, "Usage: ./test i\n");
    return 0;
  }
  printf("\n");
  int n = atoi(argv[1]);
  printf("%12d  =>  %-12d  %s!\n", n, reverse(n),
         reverse(reverse(n)) == n ? "passed" : "failed");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x7b,%edi
call   1030 <reverse@plt>
mov    %eax,-0x3c(%rbp)
mov    $0x7b,%edi
call   1030 <reverse@plt>
mov    -0x3c(%rbp),%edx
mov    %eax,%edi
mov    $0x141,%esi
lea    0xe9f(%rip),%rcx
lea    0xe91(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xe6e(%rip),%rdi
mov    $0x7b,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffff85,%edi
call   1030 <reverse@plt>
mov    %eax,-0x38(%rbp)
mov    $0xffffff85,%edi
call   1030 <reverse@plt>
mov    -0x38(%rbp),%edx
mov    %eax,%edi
mov    $0xfffffebf,%esi
lea    0xe57(%rip),%rcx
lea    0xe49(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xe26(%rip),%rdi
mov    $0xffffff85,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffff9c,%edi
call   1030 <reverse@plt>
mov    %eax,-0x34(%rbp)
mov    $0xffffff9c,%edi
call   1030 <reverse@plt>
mov    -0x34(%rbp),%edx
mov    %eax,%edi
mov    $0xffffffff,%esi
lea    0xe0f(%rip),%rcx
lea    0xe01(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xdde(%rip),%rdi
mov    $0xffffff9c,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3ea,%edi
call   1030 <reverse@plt>
mov    %eax,-0x30(%rbp)
mov    $0x3ea,%edi
call   1030 <reverse@plt>
mov    -0x30(%rbp),%edx
mov    %eax,%edi
mov    $0x7d1,%esi
lea    0xdc7(%rip),%rcx
lea    0xdb9(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xd96(%rip),%rdi
mov    $0x3ea,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x574089f4,%edi
call   1030 <reverse@plt>
mov    %eax,-0x2c(%rbp)
mov    $0x574089f4,%edi
call   1030 <reverse@plt>
mov    -0x2c(%rbp),%edx
mov    %eax,%edi
mov    $0x7ffffff9,%esi
lea    0xd7f(%rip),%rcx
lea    0xd71(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xd4e(%rip),%rdi
mov    $0x574089f4,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x80008d8c,%edi
call   1030 <reverse@plt>
mov    %eax,-0x28(%rbp)
mov    $0x80008d8c,%edi
call   1030 <reverse@plt>
mov    -0x28(%rbp),%edx
mov    %eax,%edi
mov    $0x80008d8c,%esi
lea    0xd37(%rip),%rcx
lea    0xd29(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xd06(%rip),%rdi
mov    $0x80008d8c,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x7fff7274,%edi
call   1030 <reverse@plt>
mov    %eax,-0x24(%rbp)
mov    $0x7fff7274,%edi
call   1030 <reverse@plt>
mov    -0x24(%rbp),%edx
mov    %eax,%edi
mov    $0x7fff7274,%esi
lea    0xcef(%rip),%rcx
lea    0xce1(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xcbe(%rip),%rdi
mov    $0x7fff7274,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x3b9aca03,%edi
call   1030 <reverse@plt>
mov    %eax,-0x20(%rbp)
mov    $0x3b9aca03,%edi
call   1030 <reverse@plt>
mov    -0x20(%rbp),%edx
mov    %eax,%edi
xor    %esi,%esi
lea    0xcaa(%rip),%rcx
lea    0xc9c(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xc79(%rip),%rdi
mov    $0x3b9aca03,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x7fffffff,%edi
call   1030 <reverse@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x7fffffff,%edi
call   1030 <reverse@plt>
mov    -0x1c(%rbp),%edx
mov    %eax,%edi
xor    %esi,%esi
lea    0xc65(%rip),%rcx
lea    0xc57(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xc34(%rip),%rdi
mov    $0x7fffffff,%esi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x80000000,%edi
call   1030 <reverse@plt>
mov    %eax,-0x18(%rbp)
mov    $0x80000000,%edi
call   1030 <reverse@plt>
mov    -0x18(%rbp),%edx
mov    %eax,%edi
xor    %esi,%esi
lea    0xc20(%rip),%rcx
lea    0xc12(%rip),%rax
cmp    %edi,%esi
cmove  %rax,%rcx
lea    0xbef(%rip),%rdi
mov    $0xffffffff80000000,%rsi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x2,-0x8(%rbp)
je     144a <main+0x30a>
mov    0x2bb0(%rip),%rax
mov    (%rax),%edi
lea    0xbeb(%rip),%rsi
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    14be <main+0x37e>
lea    0xbc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <atoi@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <reverse@plt>
mov    %eax,-0x40(%rbp)
mov    -0x14(%rbp),%edi
call   1030 <reverse@plt>
mov    %eax,%edi
call   1030 <reverse@plt>
mov    -0x44(%rbp),%esi
mov    -0x40(%rbp),%edx
mov    %eax,%edi
mov    -0x14(%rbp),%r8d
lea    0xb82(%rip),%rcx
lea    0xb74(%rip),%rax
cmp    %r8d,%edi
cmove  %rax,%rcx
lea    0xb50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %edi,%r15d
mov    $0x7b,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x7b,%edi
call   1030 <reverse@plt>
cmp    $0x141,%eax
lea    0xe93(%rip),%r13
lea    0xe93(%rip),%rbx
mov    %rbx,%rcx
cmove  %r13,%rcx
lea    0xe68(%rip),%r12
mov    %r12,%rdi
mov    $0x7b,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffff85,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0xffffff85,%edi
call   1030 <reverse@plt>
cmp    $0xfffffebf,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0xffffff85,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xffffff9c,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0xffffff9c,%edi
call   1030 <reverse@plt>
cmp    $0xffffffff,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0xffffff9c,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x3ea,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x3ea,%edi
call   1030 <reverse@plt>
cmp    $0x7d1,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0x3ea,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x574089f4,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x574089f4,%edi
call   1030 <reverse@plt>
cmp    $0x7ffffff9,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0x574089f4,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x80008d8c,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x80008d8c,%edi
call   1030 <reverse@plt>
cmp    $0x80008d8c,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0x80008d8c,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7fff7274,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x7fff7274,%edi
call   1030 <reverse@plt>
cmp    $0x7fff7274,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0x7fff7274,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x3b9aca03,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x3b9aca03,%edi
call   1030 <reverse@plt>
test   %eax,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0x3b9aca03,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7fffffff,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x7fffffff,%edi
call   1030 <reverse@plt>
test   %eax,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0x7fffffff,%esi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x80000000,%edi
call   1030 <reverse@plt>
mov    %eax,%ebp
mov    $0x80000000,%edi
call   1030 <reverse@plt>
test   %eax,%eax
mov    %rbx,%rcx
cmove  %r13,%rcx
mov    %r12,%rdi
mov    $0xffffffff80000000,%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <printf@plt>
cmp    $0x2,%r15d
jne    13bc <main+0x26c>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x8(%r14),%rdi
call   1070 <atoi@plt>
mov    %eax,%ebp
mov    %eax,%edi
call   1030 <reverse@plt>
mov    %eax,%r14d
mov    %ebp,%edi
call   1030 <reverse@plt>
mov    %eax,%edi
call   1030 <reverse@plt>
cmp    %ebp,%eax
cmove  %r13,%rbx
lea    0xc55(%rip),%rdi
mov    %ebp,%esi
mov    %r14d,%edx
mov    %rbx,%rcx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13d1 <main+0x281>
mov    0x2c1d(%rip),%rax
mov    (%rax),%edi
lea    0xc58(%rip),%rsi
call   1060 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [22 x i8] c"%12d => %-12d %s!\0A\00"
@.str.1 = [7 x i8] c"passed\00"
@.str.2 = [7 x i8] c"failed\00"
@stderr = global i32 0
@.str.3 = [17 x i8] c"Usage: ./test i\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @reverse(i32 123)
%8 = call i32 @reverse(i32 123)
%9 = icmp eq i32 321, %8
%10 = zext i1 %9 to i64
%11 = select i1 %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 123, i32 %7, i8* %11)
%13 = call i32 @reverse(i32 -123)
%14 = call i32 @reverse(i32 -123)
%15 = icmp eq i32 -321, %14
%16 = zext i1 %15 to i64
%17 = select i1 %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -123, i32 %13, i8* %17)
%19 = call i32 @reverse(i32 -100)
%20 = call i32 @reverse(i32 -100)
%21 = icmp eq i32 -1, %20
%22 = zext i1 %21 to i64
%23 = select i1 %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -100, i32 %19, i8* %23)
%25 = call i32 @reverse(i32 1002)
%26 = call i32 @reverse(i32 1002)
%27 = icmp eq i32 2001, %26
%28 = zext i1 %27 to i64
%29 = select i1 %27, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1002, i32 %25, i8* %29)
%31 = call i32 @reverse(i32 1463847412)
%32 = call i32 @reverse(i32 1463847412)
%33 = icmp eq i32 2147483641, %32
%34 = zext i1 %33 to i64
%35 = select i1 %33, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1463847412, i32 %31, i8* %35)
%37 = call i32 @reverse(i32 -2147447412)
%38 = call i32 @reverse(i32 -2147447412)
%39 = icmp eq i32 -2147447412, %38
%40 = zext i1 %39 to i64
%41 = select i1 %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -2147447412, i32 %37, i8* %41)
%43 = call i32 @reverse(i32 2147447412)
%44 = call i32 @reverse(i32 2147447412)
%45 = icmp eq i32 2147447412, %44
%46 = zext i1 %45 to i64
%47 = select i1 %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 2147447412, i32 %43, i8* %47)
%49 = call i32 @reverse(i32 1000000003)
%50 = call i32 @reverse(i32 1000000003)
%51 = icmp eq i32 0, %50
%52 = zext i1 %51 to i64
%53 = select i1 %51, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1000000003, i32 %49, i8* %53)
%55 = call i32 @reverse(i32 2147483647)
%56 = call i32 @reverse(i32 2147483647)
%57 = icmp eq i32 0, %56
%58 = zext i1 %57 to i64
%59 = select i1 %57, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%60 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 2147483647, i32 %55, i8* %59)
%61 = call i32 @reverse(i32 -2147483648)
%62 = call i32 @reverse(i32 -2147483648)
%63 = icmp eq i32 0, %62
%64 = zext i1 %63 to i64
%65 = select i1 %63, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 -2147483648, i32 %61, i8* %65)
%67 = load i32, i32* %4
%68 = icmp ne i32 %67, 2
br i1 %68, label %69, label %72
69: ; preds = %2
%70 = load i32, i32* @stderr
%71 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
br label %89
72: ; preds = %2
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%74 = load i8**, i8*** %5
%75 = getelementptr inbounds i8*, i8** %74, i64 1
%76 = load i8*, i8** %75
%77 = call i32 @atoi(i8* %76)
store i32 %77, i32* %6
%78 = load i32, i32* %6
%79 = load i32, i32* %6
%80 = call i32 @reverse(i32 %79)
%81 = load i32, i32* %6
%82 = call i32 @reverse(i32 %81)
%83 = call i32 @reverse(i32 %82)
%84 = load i32, i32* %6
%85 = icmp eq i32 %83, %84
%86 = zext i1 %85 to i64
%87 = select i1 %85, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %78, i32 %80, i8* %87)
store i32 0, i32* %3
br label %89
89: ; preds = %72, %69
%90 = load i32, i32* %3
ret i32 %90
}

LLVM IR (-O2):
@.str = [22 x i8] c"%12d => %-12d %s!\0A\00"
@.str.1 = [7 x i8] c"passed\00"
@.str.2 = [7 x i8] c"failed\00"
@stderr = global i32 0
@.str.3 = [17 x i8] c"Usage: ./test i\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @reverse(i32 123)
%4 = tail call i32 @reverse(i32 123)
%5 = icmp eq i32 %4, 321
%6 = select i1 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 123, i32 %3, i8* %6)
%8 = tail call i32 @reverse(i32 -123)
%9 = tail call i32 @reverse(i32 -123)
%10 = icmp eq i32 %9, -321
%11 = select i1 %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -123, i32 %8, i8* %11)
%13 = tail call i32 @reverse(i32 -100)
%14 = tail call i32 @reverse(i32 -100)
%15 = icmp eq i32 %14, -1
%16 = select i1 %15, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -100, i32 %13, i8* %16)
%18 = tail call i32 @reverse(i32 1002)
%19 = tail call i32 @reverse(i32 1002)
%20 = icmp eq i32 %19, 2001
%21 = select i1 %20, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1002, i32 %18, i8* %21)
%23 = tail call i32 @reverse(i32 1463847412)
%24 = tail call i32 @reverse(i32 1463847412)
%25 = icmp eq i32 %24, 2147483641
%26 = select i1 %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1463847412, i32 %23, i8* %26)
%28 = tail call i32 @reverse(i32 -2147447412)
%29 = tail call i32 @reverse(i32 -2147447412)
%30 = icmp eq i32 %29, -2147447412
%31 = select i1 %30, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%32 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 -2147447412, i32 %28, i8* %31)
%33 = tail call i32 @reverse(i32 2147447412)
%34 = tail call i32 @reverse(i32 2147447412)
%35 = icmp eq i32 %34, 2147447412
%36 = select i1 %35, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%37 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 2147447412, i32 %33, i8* %36)
%38 = tail call i32 @reverse(i32 1000000003)
%39 = tail call i32 @reverse(i32 1000000003)
%40 = icmp eq i32 %39, 0
%41 = select i1 %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 1000000003, i32 %38, i8* %41)
%43 = tail call i32 @reverse(i32 2147483647)
%44 = tail call i32 @reverse(i32 2147483647)
%45 = icmp eq i32 %44, 0
%46 = select i1 %45, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 2147483647, i32 %43, i8* %46)
%48 = tail call i32 @reverse(i32 -2147483648)
%49 = tail call i32 @reverse(i32 -2147483648)
%50 = icmp eq i32 %49, 0
%51 = select i1 %50, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i64 -2147483648, i32 %48, i8* %51)
%53 = icmp eq i32 %0, 2
br i1 %53, label %57, label %54
54: ; preds = %2
%55 = load i32, i32* @stderr
%56 = tail call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %68
57: ; preds = %2
%58 = tail call i32 @putchar(i32 10)
%59 = getelementptr inbounds i8*, i8** %1, i64 1
%60 = load i8*, i8** %59
%61 = tail call i32 @atoi(i8* %60)
%62 = tail call i32 @reverse(i32 %61)
%63 = tail call i32 @reverse(i32 %61)
%64 = tail call i32 @reverse(i32 %63)
%65 = icmp eq i32 %64, %61
%66 = select i1 %65, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0)
%67 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i32 %61, i32 %62, i8* %66)
br label %68
68: ; preds = %57, %54
ret i32 0
}