#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 /*<<< orphan*/ assert(int);
int /*<<< orphan*/ printf(char *, int);
int str2int(char *, int);
int main() {
  assert(str2int("0b11111111111111111111111111111111", 0) == 0xFFFFFFFF);
  assert(str2int("0b11111111111111111111111111111111", 2) == 0xFFFFFFFF);
  printf("2 max:%x\n", str2int("0b11111111111111111111111111111111", 0));
  printf("2 max:%x\n", str2int("0b11111111111111111111111111111111", 2));
  assert(str2int("0777777777777", 0) == 0xFFFFFFFF);
  assert(str2int("0777777777777", 8) == 0xFFFFFFFF);
  printf("8 max:%x\n", str2int("0777777777777", 0));
  printf("8 max:%u\n", str2int("0777777777777", 0));
  printf("8 max:%x\n", str2int("0777777777777", 8));
  printf("8 max:%u\n", str2int("0777777777777", 8));
  assert(str2int("4294967295", 0) == 0xFFFFFFFF);
  assert(str2int("   \t\n\r 4294967295", 0) == 0xFFFFFFFF);
  printf("10 max:%u\n", str2int("4294967295	", 0));
  printf("10 max:%u\n", str2int("4294967295	", 10));
  assert(str2int("0xffffffff", 0) == 0xFFFFFFFF);
  assert(str2int("0xFFFFFFFF", 0) == 0xFFFFFFFF);
  assert(str2int("0xffffffff", 16) == 0xFFFFFFFF);
  assert(str2int("0XFFFFFFFF", 16) == 0xFFFFFFFF);
  printf("16 max:%x\n", str2int("0xffffffff", 0));
  printf("16 max:%x\n", str2int("0XFFFFFFFf", 0));
  printf("16 max:%x\n", str2int("0xffffffff", 16));
  printf("16 max:%x\n", str2int("0XFFFFFFFf", 16));
  assert(str2int("0b10000000000000000000000000000000", 0) == 0x80000000);
  assert(str2int("0b10000000000000000000000000000000", 0) == 0x80000000);
  assert(str2int("0b10000000000000000000000000000000", 2) == 0x80000000);
  assert(str2int("0b10000000000000000000000000000000", 0) == 0x80000000);
  assert(str2int("0b10000000000000000000000000000000", 2) == 0x80000000);
  printf("2 min:%x\n", str2int("0b10000000000000000000000000000000", 0));
  printf("2 min:%x\n", str2int("0b10000000000000000000000000000000", 2));
  printf("2 min:%d\n", str2int("0b10000000000000000000000000000000", 0));
  printf("2 min:%d\n", str2int("0b10000000000000000000000000000000", 2));
  assert(str2int("020000000000", 0) == 0x80000000);
  assert(str2int("020000000000", 8) == 0x80000000);
  assert(str2int("020000000000", 0) == 0x80000000);
  assert(str2int("020000000000", 8) == 0x80000000);
  assert(str2int("020000000000", 8) == 0x80000000);
  printf("8 min:%d\n", str2int("020000000000", 8));
  printf("8 min:%d\n", str2int("020000000000", 0));
  printf("8 min:%x\n", str2int("020000000000", 8));
  printf("8 min:%x\n", str2int("020000000000", 8));
  assert(str2int("-2147483648", 10) == -2147483648);
  assert(str2int("-2147483648", 0) == -2147483648);
  printf("10 min:%d\n", str2int("-2147483648", 10));
  printf("10 min:%x\n", str2int("-2147483648", 10));
  assert(str2int("0x80000000", 16) == 0x80000000);
  assert(str2int("0x80000000", 16) == 0x80000000);
  printf("16 min:%d\n", str2int("0x80000000", 16));
  printf("16 min:%x\n", str2int("0x80000000", 16));
  assert(str2int("z", 35) == 35);
  printf("35:%d\n", str2int("z", 35));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe9c(%rip),%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe7b(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xe8e(%rip),%rdi
call   1040 <printf@plt>
lea    0xe5f(%rip),%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
lea    0xe6d(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe4f(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe2e(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xe2c(%rip),%rdi
call   1040 <printf@plt>
lea    0xe12(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xe1a(%rip),%rdi
call   1040 <printf@plt>
lea    0xdf6(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xdf1(%rip),%rdi
call   1040 <printf@plt>
lea    0xdd7(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xddc(%rip),%rdi
call   1040 <printf@plt>
lea    0xde1(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xdbc(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xdbb(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xda0(%rip),%rdi
call   1040 <printf@plt>
lea    0xd9f(%rip),%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xd81(%rip),%rdi
call   1040 <printf@plt>
lea    0xd8c(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd79(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd50(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd45(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
cmp    $0xffffffff,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd0e(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xd1f(%rip),%rdi
call   1040 <printf@plt>
lea    0xd1e(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xd03(%rip),%rdi
call   1040 <printf@plt>
lea    0xcd6(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xce4(%rip),%rdi
call   1040 <printf@plt>
lea    0xce3(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xcc5(%rip),%rdi
call   1040 <printf@plt>
lea    0xccf(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xcaf(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xc8f(%rip),%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xc6c(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xc4c(%rip),%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xc29(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xc3c(%rip),%rdi
call   1040 <printf@plt>
lea    0xc0d(%rip),%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xc1d(%rip),%rdi
call   1040 <printf@plt>
lea    0xbee(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xc0b(%rip),%rdi
call   1040 <printf@plt>
lea    0xbd2(%rip),%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xbec(%rip),%rdi
call   1040 <printf@plt>
lea    0xbea(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xbca(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xba7(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xb87(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xb64(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xb41(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xb3b(%rip),%rdi
call   1040 <printf@plt>
lea    0xb22(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xb1f(%rip),%rdi
call   1040 <printf@plt>
lea    0xb06(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xb0a(%rip),%rdi
call   1040 <printf@plt>
lea    0xae7(%rip),%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xaeb(%rip),%rdi
call   1040 <printf@plt>
lea    0xae9(%rip),%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
cltq
cmp    $0xffffffff80000000,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xac3(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
cltq
cmp    $0xffffffff80000000,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xaa0(%rip),%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xa99(%rip),%rdi
call   1040 <printf@plt>
lea    0xa81(%rip),%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xa85(%rip),%rdi
call   1040 <printf@plt>
lea    0xa84(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xa61(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
cmp    $0x80000000,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xa3e(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xa36(%rip),%rdi
call   1040 <printf@plt>
lea    0xa1f(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0xa22(%rip),%rdi
call   1040 <printf@plt>
lea    0xa21(%rip),%rdi
mov    $0x23,%esi
call   1030 <str2int@plt>
cmp    $0x23,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xa00(%rip),%rdi
mov    $0x23,%esi
call   1030 <str2int@plt>
mov    %eax,%esi
lea    0x9ef(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xec4(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xea3(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xe85(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xe4f(%rip),%r14
mov    %r14,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xe3e(%rip),%r15
mov    %r15,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %r14,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %r15,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xe10(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xded(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xdee(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xdd2(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xdc1(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xdad(%rip),%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xd81(%rip),%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0xffffffff,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xd63(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xd5d(%rip),%r15
mov    %r15,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r15,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xd1f(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xca9(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
lea    0xc81(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x2,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xc63(%rip),%r14
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
lea    0xbd1(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
lea    0xba9(%rip),%rbx
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %r14,%rdi
mov    $0x8,%esi
call   1030 <str2int@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xb8b(%rip),%rbx
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
lea    0xb4c(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1030 <str2int@plt>
lea    0xb3c(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xb39(%rip),%rbx
mov    %rbx,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x80000000,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
lea    0xaf6(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
call   1030 <str2int@plt>
lea    0xae6(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
lea    0xae3(%rip),%rbx
mov    %rbx,%rdi
mov    $0x23,%esi
call   1030 <str2int@plt>
xor    %edi,%edi
cmp    $0x23,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbx,%rdi
mov    $0x23,%esi
call   1030 <str2int@plt>
lea    0xab6(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [35 x i8] c"0b11111111111111111111111111111111\00"
@.str.1 = [10 x i8] c"2 max:%x\0A\00"
@.str.2 = [14 x i8] c"0777777777777\00"
@.str.3 = [10 x i8] c"8 max:%x\0A\00"
@.str.4 = [10 x i8] c"8 max:%u\0A\00"
@.str.5 = [11 x i8] c"4294967295\00"
@.str.6 = [18 x i8] c" \09\0A\0D 4294967295\00"
@.str.7 = [11 x i8] c"10 max:%u\0A\00"
@.str.8 = [12 x i8] c"4294967295\09\00"
@.str.9 = [11 x i8] c"0xffffffff\00"
@.str.10 = [11 x i8] c"0xFFFFFFFF\00"
@.str.11 = [11 x i8] c"0XFFFFFFFF\00"
@.str.12 = [11 x i8] c"16 max:%x\0A\00"
@.str.13 = [11 x i8] c"0XFFFFFFFf\00"
@.str.14 = [35 x i8] c"0b10000000000000000000000000000000\00"
@.str.15 = [10 x i8] c"2 min:%x\0A\00"
@.str.16 = [10 x i8] c"2 min:%d\0A\00"
@.str.17 = [13 x i8] c"020000000000\00"
@.str.18 = [10 x i8] c"8 min:%d\0A\00"
@.str.19 = [10 x i8] c"8 min:%x\0A\00"
@.str.20 = [12 x i8] c"-2147483648\00"
@.str.21 = [11 x i8] c"10 min:%d\0A\00"
@.str.22 = [11 x i8] c"10 min:%x\0A\00"
@.str.23 = [11 x i8] c"0x80000000\00"
@.str.24 = [11 x i8] c"16 min:%d\0A\00"
@.str.25 = [11 x i8] c"16 min:%x\0A\00"
@.str.26 = [2 x i8] c"z\00"
@.str.27 = [7 x i8] c"35:%d\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = icmp eq i32 %2, -1
%4 = zext i1 %3 to i32
%5 = call i32 @assert(i32 %4)
%6 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 2)
%7 = icmp eq i32 %6, -1
%8 = zext i1 %7 to i32
%9 = call i32 @assert(i32 %8)
%10 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 0)
%11 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 2)
%13 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%14 = call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 0)
%15 = icmp eq i32 %14, -1
%16 = zext i1 %15 to i32
%17 = call i32 @assert(i32 %16)
%18 = call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%19 = icmp eq i32 %18, -1
%20 = zext i1 %19 to i32
%21 = call i32 @assert(i32 %20)
%22 = call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 0)
%23 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %22)
%24 = call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 0)
%25 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%27 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%29 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %28)
%30 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 0)
%31 = icmp eq i32 %30, -1
%32 = zext i1 %31 to i32
%33 = call i32 @assert(i32 %32)
%34 = call i32 @str2int(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 0)
%35 = icmp eq i32 %34, -1
%36 = zext i1 %35 to i32
%37 = call i32 @assert(i32 %36)
%38 = call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 0)
%39 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %38)
%40 = call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 10)
%41 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %40)
%42 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 0)
%43 = icmp eq i32 %42, -1
%44 = zext i1 %43 to i32
%45 = call i32 @assert(i32 %44)
%46 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 0)
%47 = icmp eq i32 %46, -1
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 16)
%51 = icmp eq i32 %50, -1
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 16)
%55 = icmp eq i32 %54, -1
%56 = zext i1 %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 0)
%59 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %58)
%60 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 0)
%61 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %60)
%62 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 16)
%63 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %62)
%64 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 16)
%65 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %64)
%66 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%67 = icmp eq i32 %66, -2147483648
%68 = zext i1 %67 to i32
%69 = call i32 @assert(i32 %68)
%70 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%71 = icmp eq i32 %70, -2147483648
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 %72)
%74 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%75 = icmp eq i32 %74, -2147483648
%76 = zext i1 %75 to i32
%77 = call i32 @assert(i32 %76)
%78 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%79 = icmp eq i32 %78, -2147483648
%80 = zext i1 %79 to i32
%81 = call i32 @assert(i32 %80)
%82 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%83 = icmp eq i32 %82, -2147483648
%84 = zext i1 %83 to i32
%85 = call i32 @assert(i32 %84)
%86 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%87 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %86)
%88 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%89 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %88)
%90 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%91 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i32 %90)
%92 = call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%93 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i32 %92)
%94 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 0)
%95 = icmp eq i32 %94, -2147483648
%96 = zext i1 %95 to i32
%97 = call i32 @assert(i32 %96)
%98 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%99 = icmp eq i32 %98, -2147483648
%100 = zext i1 %99 to i32
%101 = call i32 @assert(i32 %100)
%102 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 0)
%103 = icmp eq i32 %102, -2147483648
%104 = zext i1 %103 to i32
%105 = call i32 @assert(i32 %104)
%106 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%107 = icmp eq i32 %106, -2147483648
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
%110 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%111 = icmp eq i32 %110, -2147483648
%112 = zext i1 %111 to i32
%113 = call i32 @assert(i32 %112)
%114 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%115 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i32 %114)
%116 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 0)
%117 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i32 %116)
%118 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%119 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %118)
%120 = call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%121 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %120)
%122 = call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 10)
%123 = sext i32 %122 to i64
%124 = icmp eq i64 %123, -2147483648
%125 = zext i1 %124 to i32
%126 = call i32 @assert(i32 %125)
%127 = call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 0)
%128 = sext i32 %127 to i64
%129 = icmp eq i64 %128, -2147483648
%130 = zext i1 %129 to i32
%131 = call i32 @assert(i32 %130)
%132 = call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 10)
%133 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i32 %132)
%134 = call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 10)
%135 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0), i32 %134)
%136 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%137 = icmp eq i32 %136, -2147483648
%138 = zext i1 %137 to i32
%139 = call i32 @assert(i32 %138)
%140 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%141 = icmp eq i32 %140, -2147483648
%142 = zext i1 %141 to i32
%143 = call i32 @assert(i32 %142)
%144 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%145 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i32 %144)
%146 = call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%147 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 %146)
%148 = call i32 @str2int(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0), i32 35)
%149 = icmp eq i32 %148, 35
%150 = zext i1 %149 to i32
%151 = call i32 @assert(i32 %150)
%152 = call i32 @str2int(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0), i32 35)
%153 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i32 %152)
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"0b11111111111111111111111111111111\00"
@.str.1 = [10 x i8] c"2 max:%x\0A\00"
@.str.2 = [14 x i8] c"0777777777777\00"
@.str.3 = [10 x i8] c"8 max:%x\0A\00"
@.str.4 = [10 x i8] c"8 max:%u\0A\00"
@.str.5 = [11 x i8] c"4294967295\00"
@.str.6 = [18 x i8] c" \09\0A\0D 4294967295\00"
@.str.7 = [11 x i8] c"10 max:%u\0A\00"
@.str.8 = [12 x i8] c"4294967295\09\00"
@.str.9 = [11 x i8] c"0xffffffff\00"
@.str.10 = [11 x i8] c"0xFFFFFFFF\00"
@.str.11 = [11 x i8] c"0XFFFFFFFF\00"
@.str.12 = [11 x i8] c"16 max:%x\0A\00"
@.str.13 = [11 x i8] c"0XFFFFFFFf\00"
@.str.14 = [35 x i8] c"0b10000000000000000000000000000000\00"
@.str.15 = [10 x i8] c"2 min:%x\0A\00"
@.str.16 = [10 x i8] c"2 min:%d\0A\00"
@.str.17 = [13 x i8] c"020000000000\00"
@.str.18 = [10 x i8] c"8 min:%d\0A\00"
@.str.19 = [10 x i8] c"8 min:%x\0A\00"
@.str.20 = [12 x i8] c"-2147483648\00"
@.str.21 = [11 x i8] c"10 min:%d\0A\00"
@.str.22 = [11 x i8] c"10 min:%x\0A\00"
@.str.23 = [11 x i8] c"0x80000000\00"
@.str.24 = [11 x i8] c"16 min:%d\0A\00"
@.str.25 = [11 x i8] c"16 min:%x\0A\00"
@.str.26 = [2 x i8] c"z\00"
@.str.27 = [7 x i8] c"35:%d\0A\00"
define i32 @main() {
%1 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = icmp eq i32 %1, -1
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 2)
%6 = icmp eq i32 %5, -1
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%11 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 2)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = tail call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 0)
%14 = icmp eq i32 %13, -1
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%18 = icmp eq i32 %17, -1
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 0)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = tail call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 0)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%25 = tail call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %25)
%27 = tail call i32 @str2int(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 8)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %27)
%29 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i32 0)
%30 = icmp eq i32 %29, -1
%31 = zext i1 %30 to i32
%32 = tail call i32 @assert(i32 %31)
%33 = tail call i32 @str2int(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i32 0)
%34 = icmp eq i32 %33, -1
%35 = zext i1 %34 to i32
%36 = tail call i32 @assert(i32 %35)
%37 = tail call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 0)
%38 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %37)
%39 = tail call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 10)
%40 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), i32 %39)
%41 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 0)
%42 = icmp eq i32 %41, -1
%43 = zext i1 %42 to i32
%44 = tail call i32 @assert(i32 %43)
%45 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), i32 0)
%46 = icmp eq i32 %45, -1
%47 = zext i1 %46 to i32
%48 = tail call i32 @assert(i32 %47)
%49 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 16)
%50 = icmp eq i32 %49, -1
%51 = zext i1 %50 to i32
%52 = tail call i32 @assert(i32 %51)
%53 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 16)
%54 = icmp eq i32 %53, -1
%55 = zext i1 %54 to i32
%56 = tail call i32 @assert(i32 %55)
%57 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 0)
%58 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %57)
%59 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 0)
%60 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %59)
%61 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i32 16)
%62 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %61)
%63 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 16)
%64 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i32 %63)
%65 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%66 = icmp eq i32 %65, -2147483648
%67 = zext i1 %66 to i32
%68 = tail call i32 @assert(i32 %67)
%69 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%70 = icmp eq i32 %69, -2147483648
%71 = zext i1 %70 to i32
%72 = tail call i32 @assert(i32 %71)
%73 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%74 = icmp eq i32 %73, -2147483648
%75 = zext i1 %74 to i32
%76 = tail call i32 @assert(i32 %75)
%77 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%78 = icmp eq i32 %77, -2147483648
%79 = zext i1 %78 to i32
%80 = tail call i32 @assert(i32 %79)
%81 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%82 = icmp eq i32 %81, -2147483648
%83 = zext i1 %82 to i32
%84 = tail call i32 @assert(i32 %83)
%85 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%86 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %85)
%87 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%88 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0), i32 %87)
%89 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 0)
%90 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i32 %89)
%91 = tail call i32 @str2int(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.14, i64 0, i64 0), i32 2)
%92 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0), i32 %91)
%93 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 0)
%94 = icmp eq i32 %93, -2147483648
%95 = zext i1 %94 to i32
%96 = tail call i32 @assert(i32 %95)
%97 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%98 = icmp eq i32 %97, -2147483648
%99 = zext i1 %98 to i32
%100 = tail call i32 @assert(i32 %99)
%101 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 0)
%102 = icmp eq i32 %101, -2147483648
%103 = zext i1 %102 to i32
%104 = tail call i32 @assert(i32 %103)
%105 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%106 = icmp eq i32 %105, -2147483648
%107 = zext i1 %106 to i32
%108 = tail call i32 @assert(i32 %107)
%109 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%110 = icmp eq i32 %109, -2147483648
%111 = zext i1 %110 to i32
%112 = tail call i32 @assert(i32 %111)
%113 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%114 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i32 %113)
%115 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 0)
%116 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0), i32 %115)
%117 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%118 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %117)
%119 = tail call i32 @str2int(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.17, i64 0, i64 0), i32 8)
%120 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %119)
%121 = tail call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 10)
%122 = icmp eq i32 %121, -2147483648
%123 = zext i1 %122 to i32
%124 = tail call i32 @assert(i32 %123)
%125 = tail call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 0)
%126 = icmp eq i32 %125, -2147483648
%127 = zext i1 %126 to i32
%128 = tail call i32 @assert(i32 %127)
%129 = tail call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 10)
%130 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0), i32 %129)
%131 = tail call i32 @str2int(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.20, i64 0, i64 0), i32 10)
%132 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.22, i64 0, i64 0), i32 %131)
%133 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%134 = icmp eq i32 %133, -2147483648
%135 = zext i1 %134 to i32
%136 = tail call i32 @assert(i32 %135)
%137 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%138 = icmp eq i32 %137, -2147483648
%139 = zext i1 %138 to i32
%140 = tail call i32 @assert(i32 %139)
%141 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%142 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i32 %141)
%143 = tail call i32 @str2int(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), i32 16)
%144 = tail call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.25, i64 0, i64 0), i32 %143)
%145 = tail call i32 @str2int(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0), i32 35)
%146 = icmp eq i32 %145, 35
%147 = zext i1 %146 to i32
%148 = tail call i32 @assert(i32 %147)
%149 = tail call i32 @str2int(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0), i32 35)
%150 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0), i32 %149)
ret i32 0
}