#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*/ close(int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ get_data(int *, unsigned char *, int);
int /*<<< orphan*/ isdict(unsigned char *, int, unsigned char);
int /*<<< orphan*/ open_dev_random(int *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  unsigned char dict[36];
  int cnt = 0;
  int fd;
  int ii;
  if (!open_dev_random(&fd)) {
    printf("failed\n");
    exit(1);
  }
  printf("start get random number.\nwhen it blocks here, please do another "
         "thing by mouse or keyboard, then you should get result.\n");
  if (!get_data(&fd, dict, 36)) {
    printf("failed, you can rerun it later.\n");
    close(fd);
    exit(1);
  }
  for (ii = 0; ii < 36; ii++) {
    dict[ii] = dict[ii] % 36;
    if (!isdict(dict, cnt, dict[ii])) {
      dict[cnt++] = dict[ii];
    }
  }
  while (cnt < 35) {
    unsigned char c;
    if (!get_data(&fd, &c, 1)) {
      printf("failed, you can rerun it later.\n");
      close(fd);
      exit(1);
    }
    c = c % 36;
    if (!isdict(dict, cnt, c))
      dict[cnt++] = c;
  }
  close(fd);
  if (cnt == 35) {
    unsigned char sortdt[36];
    for (ii = 0; ii < 36; ii++) {
      sortdt[ii] = 0xff;
    }
    for (ii = 0; ii < cnt; ii++) {
      sortdt[dict[ii]] = dict[ii];
    }
    for (ii = 0; ii < 36; ii++) {
      if (sortdt[ii] == 0xff) {
        dict[cnt++] = ii;
        break;
      }
    }
  }
  if (cnt != 36) {
    printf("failed\n");
    exit(1);
  }
  printf("success:\n");
  for (ii = 0; ii < 36; ii++) {
    if ((ii % 10) == 0)
      printf("\n");
    printf("%2d  ", (unsigned)dict[ii]);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x44(%rbp)
lea    -0x48(%rbp),%rdi
call   1040 <open_dev_random@plt>
cmp    $0x0,%eax
jne    11aa <main+0x4a>
lea    0xe67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    -0x40(%rbp),%rsi
lea    -0x48(%rbp),%rdi
mov    $0x24,%edx
call   1080 <get_data@plt>
cmp    $0x0,%eax
jne    11f3 <main+0x93>
lea    0xea7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%edi
call   1050 <close@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
movl   $0x0,-0x4c(%rbp)
cmpl   $0x24,-0x4c(%rbp)
jge    1269 <main+0x109>
movslq -0x4c(%rbp),%rax
movzbl -0x40(%rbp,%rax,1),%eax
mov    $0x24,%ecx
cltd
idiv   %ecx
mov    %dl,%cl
movslq -0x4c(%rbp),%rax
mov    %cl,-0x40(%rbp,%rax,1)
lea    -0x40(%rbp),%rdi
mov    -0x44(%rbp),%esi
movslq -0x4c(%rbp),%rax
movzbl -0x40(%rbp,%rax,1),%edx
call   1060 <isdict@plt>
cmp    $0x0,%eax
jne    1256 <main+0xf6>
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,1),%cl
mov    -0x44(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x44(%rbp)
cltq
mov    %cl,-0x40(%rbp,%rax,1)
jmp    125b <main+0xfb>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    11fa <main+0x9a>
jmp    126e <main+0x10e>
cmpl   $0x23,-0x44(%rbp)
jge    12f6 <main+0x196>
lea    -0x48(%rbp),%rdi
lea    -0x4d(%rbp),%rsi
mov    $0x1,%edx
call   1080 <get_data@plt>
cmp    $0x0,%eax
jne    12b3 <main+0x153>
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x48(%rbp),%edi
call   1050 <close@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
movzbl -0x4d(%rbp),%eax
mov    $0x24,%ecx
cltd
idiv   %ecx
mov    %dl,%al
mov    %al,-0x4d(%rbp)
lea    -0x40(%rbp),%rdi
mov    -0x44(%rbp),%esi
movzbl -0x4d(%rbp),%edx
call   1060 <isdict@plt>
cmp    $0x0,%eax
jne    12f1 <main+0x191>
mov    -0x4d(%rbp),%cl
mov    -0x44(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x44(%rbp)
cltq
mov    %cl,-0x40(%rbp,%rax,1)
jmp    126e <main+0x10e>
mov    -0x48(%rbp),%edi
call   1050 <close@plt>
cmpl   $0x23,-0x44(%rbp)
jne    13be <main+0x25e>
movl   $0x0,-0x4c(%rbp)
cmpl   $0x24,-0x4c(%rbp)
jge    1330 <main+0x1d0>
movslq -0x4c(%rbp),%rax
movb   $0xff,-0x80(%rbp,%rax,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    130f <main+0x1af>
movl   $0x0,-0x4c(%rbp)
mov    -0x4c(%rbp),%eax
cmp    -0x44(%rbp),%eax
jge    1366 <main+0x206>
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,1),%cl
movslq -0x4c(%rbp),%rax
movzbl -0x40(%rbp,%rax,1),%eax
mov    %cl,-0x80(%rbp,%rax,1)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1337 <main+0x1d7>
movl   $0x0,-0x4c(%rbp)
cmpl   $0x24,-0x4c(%rbp)
jge    13b9 <main+0x259>
movslq -0x4c(%rbp),%rax
movzbl -0x80(%rbp,%rax,1),%eax
cmp    $0xff,%eax
jne    13a6 <main+0x246>
mov    -0x4c(%rbp),%eax
mov    %al,%cl
mov    -0x44(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x44(%rbp)
cltq
mov    %cl,-0x40(%rbp,%rax,1)
jmp    13b9 <main+0x259>
jmp    13ab <main+0x24b>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    136d <main+0x20d>
jmp    13be <main+0x25e>
cmpl   $0x24,-0x44(%rbp)
je     13e0 <main+0x280>
lea    0xc31(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%edi
call   1070 <exit@plt>
lea    0xcbb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4c(%rbp)
cmpl   $0x24,-0x4c(%rbp)
jge    1446 <main+0x2e6>
mov    -0x4c(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    1421 <main+0x2c1>
lea    0xc86(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movslq -0x4c(%rbp),%rax
movzbl -0x40(%rbp,%rax,1),%esi
lea    0xc7b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    13f5 <main+0x295>
lea    0xc53(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x60,%rsp
lea    0x2c(%rsp),%rdi
call   1060 <open_dev_random@plt>
test   %eax,%eax
je     16b9 <main+0x539>
lea    0xe61(%rip),%rdi
call   1040 <puts@plt>
lea    0x2c(%rsp),%rdi
lea    0x30(%rsp),%rsi
mov    $0x24,%edx
call   10a0 <get_data@plt>
test   %eax,%eax
je     15d9 <main+0x459>
xor    %ebx,%ebx
lea    0x30(%rsp),%r14
xor    %ebp,%ebp
jmp    11ea <main+0x6a>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x24,%rbx
je     1223 <main+0xa3>
movzbl 0x30(%rsp,%rbx,1),%eax
imul   $0x39,%eax,%ecx
shr    $0x9,%ecx
and    $0xfffffffc,%ecx
lea    (%rcx,%rcx,8),%ecx
sub    %cl,%al
mov    %al,0x30(%rsp,%rbx,1)
movzbl %al,%edx
mov    %r14,%rdi
mov    %ebp,%esi
call   1080 <isdict@plt>
test   %eax,%eax
jne    11e0 <main+0x60>
movzbl 0x30(%rsp,%rbx,1),%eax
movslq %ebp,%rcx
add    $0x1,%ebp
mov    %al,0x30(%rsp,%rcx,1)
jmp    11e0 <main+0x60>
cmp    $0x22,%ebp
jg     1293 <main+0x113>
lea    0x2c(%rsp),%r14
mov    %rsp,%r15
lea    0x30(%rsp),%r12
jmp    1245 <main+0xc5>
nopw   0x0(%rax,%rax,1)
cmp    $0x23,%ebp
jge    1293 <main+0x113>
mov    %r14,%rdi
mov    %r15,%rsi
mov    $0x1,%edx
call   10a0 <get_data@plt>
test   %eax,%eax
je     15d9 <main+0x459>
movzbl (%rsp),%eax
imul   $0x39,%eax,%ecx
shr    $0x9,%ecx
and    $0xfffffffc,%ecx
lea    (%rcx,%rcx,8),%ecx
sub    %cl,%al
mov    %al,(%rsp)
movzbl %al,%edx
mov    %r12,%rdi
mov    %ebp,%esi
call   1080 <isdict@plt>
test   %eax,%eax
jne    1240 <main+0xc0>
movzbl (%rsp),%eax
movslq %ebp,%rcx
add    $0x1,%ebp
mov    %al,0x30(%rsp,%rcx,1)
jmp    1240 <main+0xc0>
mov    0x2c(%rsp),%edi
call   1070 <close@plt>
cmp    $0x23,%ebp
jne    163b <main+0x4bb>
pcmpeqd %xmm0,%xmm0
movdqa %xmm0,0x10(%rsp)
movdqa %xmm0,(%rsp)
movl   $0xffffffff,0x20(%rsp)
ff
movzbl 0x30(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x31(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x32(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x33(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x34(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x35(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x36(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x37(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x38(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x39(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x3a(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x3b(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x3c(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x3d(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x3e(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x3f(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x40(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x41(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x42(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x43(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x44(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x45(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x46(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x47(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x48(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x49(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x4a(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x4b(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x4c(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x4d(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x4e(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x4f(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x50(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x51(%rsp),%eax
mov    %al,(%rsp,%rax,1)
movzbl 0x52(%rsp),%eax
mov    %al,(%rsp,%rax,1)
cmpb   $0xff,(%rsp)
je     156b <main+0x3eb>
cmpb   $0xff,0x1(%rsp)
je     1572 <main+0x3f2>
cmpb   $0xff,0x2(%rsp)
je     1579 <main+0x3f9>
cmpb   $0xff,0x3(%rsp)
je     1580 <main+0x400>
cmpb   $0xff,0x4(%rsp)
je     1587 <main+0x407>
cmpb   $0xff,0x5(%rsp)
je     158e <main+0x40e>
cmpb   $0xff,0x6(%rsp)
je     1595 <main+0x415>
cmpb   $0xff,0x7(%rsp)
je     159c <main+0x41c>
cmpb   $0xff,0x8(%rsp)
je     15a3 <main+0x423>
cmpb   $0xff,0x9(%rsp)
je     15aa <main+0x42a>
cmpb   $0xff,0xa(%rsp)
je     15b1 <main+0x431>
cmpb   $0xff,0xb(%rsp)
je     15b5 <main+0x435>
cmpb   $0xff,0xc(%rsp)
je     15b9 <main+0x439>
cmpb   $0xff,0xd(%rsp)
je     15bd <main+0x43d>
cmpb   $0xff,0xe(%rsp)
je     15c1 <main+0x441>
cmpb   $0xff,0xf(%rsp)
je     15c5 <main+0x445>
cmpb   $0xff,0x10(%rsp)
je     15c9 <main+0x449>
cmpb   $0xff,0x11(%rsp)
je     15cd <main+0x44d>
cmpb   $0xff,0x12(%rsp)
je     15d1 <main+0x451>
cmpb   $0xff,0x13(%rsp)
je     15d5 <main+0x455>
cmpb   $0xff,0x14(%rsp)
je     15f8 <main+0x478>
cmpb   $0xff,0x15(%rsp)
je     15fc <main+0x47c>
cmpb   $0xff,0x16(%rsp)
je     1600 <main+0x480>
cmpb   $0xff,0x17(%rsp)
je     1604 <main+0x484>
cmpb   $0xff,0x18(%rsp)
je     1608 <main+0x488>
cmpb   $0xff,0x19(%rsp)
je     160c <main+0x48c>
cmpb   $0xff,0x1a(%rsp)
je     1610 <main+0x490>
cmpb   $0xff,0x1b(%rsp)
je     1614 <main+0x494>
cmpb   $0xff,0x1c(%rsp)
je     1618 <main+0x498>
cmpb   $0xff,0x1d(%rsp)
je     161c <main+0x49c>
cmpb   $0xff,0x1e(%rsp)
je     1620 <main+0x4a0>
cmpb   $0xff,0x1f(%rsp)
je     1624 <main+0x4a4>
cmpb   $0xff,0x20(%rsp)
je     1628 <main+0x4a8>
cmpb   $0xff,0x21(%rsp)
je     162c <main+0x4ac>
cmpb   $0xff,0x22(%rsp)
je     1630 <main+0x4b0>
mov    $0x23,%ebp
cmpb   $0xff,0x23(%rsp)
jne    163b <main+0x4bb>
mov    $0x23,%al
jmp    1632 <main+0x4b2>
xor    %eax,%eax
jmp    1632 <main+0x4b2>
mov    $0x1,%al
jmp    1632 <main+0x4b2>
mov    $0x2,%al
jmp    1632 <main+0x4b2>
mov    $0x3,%al
jmp    1632 <main+0x4b2>
mov    $0x4,%al
jmp    1632 <main+0x4b2>
mov    $0x5,%al
jmp    1632 <main+0x4b2>
mov    $0x6,%al
jmp    1632 <main+0x4b2>
mov    $0x7,%al
jmp    1632 <main+0x4b2>
mov    $0x8,%al
jmp    1632 <main+0x4b2>
mov    $0x9,%al
jmp    1632 <main+0x4b2>
mov    $0xa,%al
jmp    1632 <main+0x4b2>
mov    $0xb,%al
jmp    1632 <main+0x4b2>
mov    $0xc,%al
jmp    1632 <main+0x4b2>
mov    $0xd,%al
jmp    1632 <main+0x4b2>
mov    $0xe,%al
jmp    1632 <main+0x4b2>
mov    $0xf,%al
jmp    1632 <main+0x4b2>
mov    $0x10,%al
jmp    1632 <main+0x4b2>
mov    $0x11,%al
jmp    1632 <main+0x4b2>
mov    $0x12,%al
jmp    1632 <main+0x4b2>
mov    $0x13,%al
jmp    1632 <main+0x4b2>
lea    0xaae(%rip),%rdi
call   1040 <puts@plt>
mov    0x2c(%rsp),%edi
call   1070 <close@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    $0x14,%al
jmp    1632 <main+0x4b2>
mov    $0x15,%al
jmp    1632 <main+0x4b2>
mov    $0x16,%al
jmp    1632 <main+0x4b2>
mov    $0x17,%al
jmp    1632 <main+0x4b2>
mov    $0x18,%al
jmp    1632 <main+0x4b2>
mov    $0x19,%al
jmp    1632 <main+0x4b2>
mov    $0x1a,%al
jmp    1632 <main+0x4b2>
mov    $0x1b,%al
jmp    1632 <main+0x4b2>
mov    $0x1c,%al
jmp    1632 <main+0x4b2>
mov    $0x1d,%al
jmp    1632 <main+0x4b2>
mov    $0x1e,%al
jmp    1632 <main+0x4b2>
mov    $0x1f,%al
jmp    1632 <main+0x4b2>
mov    $0x20,%al
jmp    1632 <main+0x4b2>
mov    $0x21,%al
jmp    1632 <main+0x4b2>
mov    $0x22,%al
mov    %al,0x53(%rsp)
mov    $0x24,%ebp
cmp    $0x24,%ebp
jne    16b9 <main+0x539>
lea    0xa37(%rip),%rdi
call   1040 <puts@plt>
lea    0x9ad(%rip),%r14
xor    %ebp,%ebp
xor    %ebx,%ebx
jmp    167d <main+0x4fd>
nopl   0x0(%rax)
movzbl 0x30(%rsp,%rbx,1),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x1,%rbx
add    $0xff,%bpl
cmp    $0x24,%rbx
je     16a0 <main+0x520>
movzbl %bl,%eax
imul   $0xcd,%eax,%eax
shr    $0xa,%eax
and    $0xfffffffe,%eax
lea    (%rax,%rax,4),%eax
add    %bpl,%al
jne    1660 <main+0x4e0>
mov    $0xa,%edi
call   1030 <putchar@plt>
jmp    1660 <main+0x4e0>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x9c7(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"failed\0A\00"
@.str.1 = [121 x i8] c"start get random number.\0Awhen it blocks here, please do another thing by mouse or keyboard, then you should get result.\0A\00"
@.str.2 = [33 x i8] c"failed, you can rerun it later.\0A\00"
@.str.3 = [10 x i8] c"success:\0A\00"
@.str.4 = [2 x i8] c"\0A\00"
@.str.5 = [6 x i8] c"%2d \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [36 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8
%11 = alloca [36 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%12 = call i32 @open_dev_random(i32* %8)
%13 = icmp ne i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([121 x i8], [121 x i8]* @.str.1, i64 0, i64 0))
%19 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 0
%20 = call i32 @get_data(i32* %8, i8* %19, i32 36)
%21 = icmp ne i32 %20, 0
br i1 %21, label %27, label %22
22: ; preds = %17
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* %8
%25 = call i32 @close(i32 %24)
%26 = call i32 @exit(i32 1)
unreachable
27: ; preds = %17
store i32 0, i32* %9
br label %28
28: ; preds = %60, %27
%29 = load i32, i32* %9
%30 = icmp slt i32 %29, 36
br i1 %30, label %31, label %63
31: ; preds = %28
%32 = load i32, i32* %9
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %33
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = srem i32 %36, 36
%38 = trunc i32 %37 to i8
%39 = load i32, i32* %9
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %40
store i8 %38, i8* %41
%42 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 0
%43 = load i32, i32* %7
%44 = load i32, i32* %9
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = call i32 @isdict(i8* %42, i32 %43, i8 zeroext %47)
%49 = icmp ne i32 %48, 0
br i1 %49, label %59, label %50
50: ; preds = %31
%51 = load i32, i32* %9
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %52
%54 = load i8, i8* %53
%55 = load i32, i32* %7
%56 = add nsw i32 %55, 1
store i32 %56, i32* %7
%57 = sext i32 %55 to i64
%58 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %57
store i8 %54, i8* %58
br label %59
59: ; preds = %50, %31
br label %60
60: ; preds = %59
%61 = load i32, i32* %9
%62 = add nsw i32 %61, 1
store i32 %62, i32* %9
br label %28
63: ; preds = %28
br label %64
64: ; preds = %91, %63
%65 = load i32, i32* %7
%66 = icmp slt i32 %65, 35
br i1 %66, label %67, label %92
67: ; preds = %64
%68 = call i32 @get_data(i32* %8, i8* %10, i32 1)
%69 = icmp ne i32 %68, 0
br i1 %69, label %75, label %70
70: ; preds = %67
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0))
%72 = load i32, i32* %8
%73 = call i32 @close(i32 %72)
%74 = call i32 @exit(i32 1)
unreachable
75: ; preds = %67
%76 = load i8, i8* %10
%77 = zext i8 %76 to i32
%78 = srem i32 %77, 36
%79 = trunc i32 %78 to i8
store i8 %79, i8* %10
%80 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 0
%81 = load i32, i32* %7
%82 = load i8, i8* %10
%83 = call i32 @isdict(i8* %80, i32 %81, i8 zeroext %82)
%84 = icmp ne i32 %83, 0
br i1 %84, label %91, label %85
85: ; preds = %75
%86 = load i8, i8* %10
%87 = load i32, i32* %7
%88 = add nsw i32 %87, 1
store i32 %88, i32* %7
%89 = sext i32 %87 to i64
%90 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %89
store i8 %86, i8* %90
br label %91
91: ; preds = %85, %75
br label %64
92: ; preds = %64
%93 = load i32, i32* %8
%94 = call i32 @close(i32 %93)
%95 = load i32, i32* %7
%96 = icmp eq i32 %95, 35
br i1 %96, label %97, label %150
97: ; preds = %92
store i32 0, i32* %9
br label %98
98: ; preds = %105, %97
%99 = load i32, i32* %9
%100 = icmp slt i32 %99, 36
br i1 %100, label %101, label %108
101: ; preds = %98
%102 = load i32, i32* %9
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [36 x i8], [36 x i8]* %11, i64 0, i64 %103
store i8 -1, i8* %104
br label %105
105: ; preds = %101
%106 = load i32, i32* %9
%107 = add nsw i32 %106, 1
store i32 %107, i32* %9
br label %98
108: ; preds = %98
store i32 0, i32* %9
br label %109
109: ; preds = %124, %108
%110 = load i32, i32* %9
%111 = load i32, i32* %7
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %127
113: ; preds = %109
%114 = load i32, i32* %9
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %115
%117 = load i8, i8* %116
%118 = load i32, i32* %9
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %119
%121 = load i8, i8* %120
%122 = zext i8 %121 to i64
%123 = getelementptr inbounds [36 x i8], [36 x i8]* %11, i64 0, i64 %122
store i8 %117, i8* %123
br label %124
124: ; preds = %113
%125 = load i32, i32* %9
%126 = add nsw i32 %125, 1
store i32 %126, i32* %9
br label %109
127: ; preds = %109
store i32 0, i32* %9
br label %128
128: ; preds = %146, %127
%129 = load i32, i32* %9
%130 = icmp slt i32 %129, 36
br i1 %130, label %131, label %149
131: ; preds = %128
%132 = load i32, i32* %9
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds [36 x i8], [36 x i8]* %11, i64 0, i64 %133
%135 = load i8, i8* %134
%136 = zext i8 %135 to i32
%137 = icmp eq i32 %136, 255
br i1 %137, label %138, label %145
138: ; preds = %131
%139 = load i32, i32* %9
%140 = trunc i32 %139 to i8
%141 = load i32, i32* %7
%142 = add nsw i32 %141, 1
store i32 %142, i32* %7
%143 = sext i32 %141 to i64
%144 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %143
store i8 %140, i8* %144
br label %149
145: ; preds = %131
br label %146
146: ; preds = %145
%147 = load i32, i32* %9
%148 = add nsw i32 %147, 1
store i32 %148, i32* %9
br label %128
149: ; preds = %138, %128
br label %150
150: ; preds = %149, %92
%151 = load i32, i32* %7
%152 = icmp ne i32 %151, 36
br i1 %152, label %153, label %156
153: ; preds = %150
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%155 = call i32 @exit(i32 1)
unreachable
156: ; preds = %150
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %9
br label %158
158: ; preds = %174, %156
%159 = load i32, i32* %9
%160 = icmp slt i32 %159, 36
br i1 %160, label %161, label %177
161: ; preds = %158
%162 = load i32, i32* %9
%163 = srem i32 %162, 10
%164 = icmp eq i32 %163, 0
br i1 %164, label %165, label %167
165: ; preds = %161
%166 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %167
167: ; preds = %165, %161
%168 = load i32, i32* %9
%169 = sext i32 %168 to i64
%170 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %169
%171 = load i8, i8* %170
%172 = zext i8 %171 to i32
%173 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %172)
br label %174
174: ; preds = %167
%175 = load i32, i32* %9
%176 = add nsw i32 %175, 1
store i32 %176, i32* %9
br label %158
177: ; preds = %158
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.5 = [6 x i8] c"%2d \00"
@str.6 = [120 x i8] c"start get random number.\0Awhen it blocks here, please do another thing by mouse or keyboard, then you should get result.\00"
@str.8 = [9 x i8] c"success:\00"
@str.9 = [7 x i8] c"failed\00"
@str.10 = [32 x i8] c"failed, you can rerun it later.\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [36 x i8]
%4 = alloca i32
%5 = alloca i8
%6 = alloca [36 x i8]
%7 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 0
%8 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 0
%9 = bitcast i32* %4 to i8*
%10 = call i32 @open_dev_random(i32* %4)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %15
12: ; preds = %2
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0))
%14 = call i32 @exit(i32 1)
unreachable
15: ; preds = %2
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([120 x i8], [120 x i8]* @str.6, i64 0, i64 0))
%17 = call i32 @get_data(i32* %4, i8* %8, i32 36)
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %15
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
%21 = load i32, i32* %4
%22 = call i32 @close(i32 %21)
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %39
%25 = icmp slt i32 %40, 35
br i1 %25, label %43, label %65
26: ; preds = %15, %39
%27 = phi i64 [ %41, %39 ], [ 0, %15 ]
%28 = phi i32 [ %40, %39 ], [ 0, %15 ]
%29 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 %27
%30 = load i8, i8* %29
%31 = urem i8 %30, 36
store i8 %31, i8* %29
%32 = call i32 @isdict(i8* %8, i32 %28, i8 zeroext %31)
%33 = icmp eq i32 %32, 0
br i1 %33, label %34, label %39
34: ; preds = %26
%35 = load i8, i8* %29
%36 = add nsw i32 %28, 1
%37 = sext i32 %28 to i64
%38 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 %37
store i8 %35, i8* %38
br label %39
39: ; preds = %26, %34
%40 = phi i32 [ %28, %26 ], [ %36, %34 ]
%41 = add nuw nsw i64 %27, 1
%42 = icmp eq i64 %41, 36
br i1 %42, label %24, label %26
43: ; preds = %24, %62
%44 = phi i32 [ %63, %62 ], [ %40, %24 ]
%45 = call i32 @get_data(i32* %4, i8* %5, i32 1)
%46 = icmp eq i32 %45, 0
br i1 %46, label %47, label %52
47: ; preds = %43
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
%49 = load i32, i32* %4
%50 = call i32 @close(i32 %49)
%51 = call i32 @exit(i32 1)
unreachable
52: ; preds = %43
%53 = load i8, i8* %5
%54 = urem i8 %53, 36
store i8 %54, i8* %5
%55 = call i32 @isdict(i8* %8, i32 %44, i8 zeroext %54)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %62
57: ; preds = %52
%58 = load i8, i8* %5
%59 = add nsw i32 %44, 1
%60 = sext i32 %44 to i64
%61 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 %60
store i8 %58, i8* %61
br label %62
62: ; preds = %57, %52
%63 = phi i32 [ %44, %52 ], [ %59, %57 ]
%64 = icmp slt i32 %63, 35
br i1 %64, label %43, label %65
65: ; preds = %62, %24
%66 = phi i32 [ %40, %24 ], [ %63, %62 ]
%67 = load i32, i32* %4
%68 = call i32 @close(i32 %67)
%69 = icmp eq i32 %66, 35
br i1 %69, label %70, label %358
70: ; preds = %65
%71 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 0
%72 = load i8, i8* %8
%73 = zext i8 %72 to i64
%74 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %73
store i8 %72, i8* %74
%75 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 1
%76 = load i8, i8* %75
%77 = zext i8 %76 to i64
%78 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %77
store i8 %76, i8* %78
%79 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 2
%80 = load i8, i8* %79
%81 = zext i8 %80 to i64
%82 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %81
store i8 %80, i8* %82
%83 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 3
%84 = load i8, i8* %83
%85 = zext i8 %84 to i64
%86 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %85
store i8 %84, i8* %86
%87 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 4
%88 = load i8, i8* %87
%89 = zext i8 %88 to i64
%90 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %89
store i8 %88, i8* %90
%91 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 5
%92 = load i8, i8* %91
%93 = zext i8 %92 to i64
%94 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %93
store i8 %92, i8* %94
%95 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 6
%96 = load i8, i8* %95
%97 = zext i8 %96 to i64
%98 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %97
store i8 %96, i8* %98
%99 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 7
%100 = load i8, i8* %99
%101 = zext i8 %100 to i64
%102 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %101
store i8 %100, i8* %102
%103 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 8
%104 = load i8, i8* %103
%105 = zext i8 %104 to i64
%106 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %105
store i8 %104, i8* %106
%107 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 9
%108 = load i8, i8* %107
%109 = zext i8 %108 to i64
%110 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %109
store i8 %108, i8* %110
%111 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 10
%112 = load i8, i8* %111
%113 = zext i8 %112 to i64
%114 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %113
store i8 %112, i8* %114
%115 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 11
%116 = load i8, i8* %115
%117 = zext i8 %116 to i64
%118 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %117
store i8 %116, i8* %118
%119 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 12
%120 = load i8, i8* %119
%121 = zext i8 %120 to i64
%122 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %121
store i8 %120, i8* %122
%123 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 13
%124 = load i8, i8* %123
%125 = zext i8 %124 to i64
%126 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %125
store i8 %124, i8* %126
%127 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 14
%128 = load i8, i8* %127
%129 = zext i8 %128 to i64
%130 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %129
store i8 %128, i8* %130
%131 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 15
%132 = load i8, i8* %131
%133 = zext i8 %132 to i64
%134 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %133
store i8 %132, i8* %134
%135 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 16
%136 = load i8, i8* %135
%137 = zext i8 %136 to i64
%138 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %137
store i8 %136, i8* %138
%139 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 17
%140 = load i8, i8* %139
%141 = zext i8 %140 to i64
%142 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %141
store i8 %140, i8* %142
%143 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 18
%144 = load i8, i8* %143
%145 = zext i8 %144 to i64
%146 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %145
store i8 %144, i8* %146
%147 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 19
%148 = load i8, i8* %147
%149 = zext i8 %148 to i64
%150 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %149
store i8 %148, i8* %150
%151 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 20
%152 = load i8, i8* %151
%153 = zext i8 %152 to i64
%154 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %153
store i8 %152, i8* %154
%155 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 21
%156 = load i8, i8* %155
%157 = zext i8 %156 to i64
%158 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %157
store i8 %156, i8* %158
%159 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 22
%160 = load i8, i8* %159
%161 = zext i8 %160 to i64
%162 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %161
store i8 %160, i8* %162
%163 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 23
%164 = load i8, i8* %163
%165 = zext i8 %164 to i64
%166 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %165
store i8 %164, i8* %166
%167 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 24
%168 = load i8, i8* %167
%169 = zext i8 %168 to i64
%170 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %169
store i8 %168, i8* %170
%171 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 25
%172 = load i8, i8* %171
%173 = zext i8 %172 to i64
%174 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %173
store i8 %172, i8* %174
%175 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 26
%176 = load i8, i8* %175
%177 = zext i8 %176 to i64
%178 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %177
store i8 %176, i8* %178
%179 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 27
%180 = load i8, i8* %179
%181 = zext i8 %180 to i64
%182 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %181
store i8 %180, i8* %182
%183 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 28
%184 = load i8, i8* %183
%185 = zext i8 %184 to i64
%186 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %185
store i8 %184, i8* %186
%187 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 29
%188 = load i8, i8* %187
%189 = zext i8 %188 to i64
%190 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %189
store i8 %188, i8* %190
%191 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 30
%192 = load i8, i8* %191
%193 = zext i8 %192 to i64
%194 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %193
store i8 %192, i8* %194
%195 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 31
%196 = load i8, i8* %195
%197 = zext i8 %196 to i64
%198 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %197
store i8 %196, i8* %198
%199 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 32
%200 = load i8, i8* %199
%201 = zext i8 %200 to i64
%202 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %201
store i8 %200, i8* %202
%203 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 33
%204 = load i8, i8* %203
%205 = zext i8 %204 to i64
%206 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %205
store i8 %204, i8* %206
%207 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 34
%208 = load i8, i8* %207
%209 = zext i8 %208 to i64
%210 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 %209
store i8 %208, i8* %210
%211 = load i8, i8* %71
%212 = icmp eq i8 %211, -1
br i1 %212, label %213, label %216
213: ; preds = %352, %348, %344, %340, %336, %332, %328, %324, %320, %316, %312, %308, %304, %300, %296, %292, %288, %284, %280, %276, %272, %268, %264, %260, %256, %252, %248, %244, %240, %236, %232, %228, %224, %220, %216, %70
%214 = phi i8 [ 0, %70 ], [ 1, %216 ], [ 2, %220 ], [ 3, %224 ], [ 4, %228 ], [ 5, %232 ], [ 6, %236 ], [ 7, %240 ], [ 8, %244 ], [ 9, %248 ], [ 10, %252 ], [ 11, %256 ], [ 12, %260 ], [ 13, %264 ], [ 14, %268 ], [ 15, %272 ], [ 16, %276 ], [ 17, %280 ], [ 18, %284 ], [ 19, %288 ], [ 20, %292 ], [ 21, %296 ], [ 22, %300 ], [ 23, %304 ], [ 24, %308 ], [ 25, %312 ], [ 26, %316 ], [ 27, %320 ], [ 28, %324 ], [ 29, %328 ], [ 30, %332 ], [ 31, %336 ], [ 32, %340 ], [ 33, %344 ], [ 34, %348 ], [ 35, %352 ]
%215 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 35
store i8 %214, i8* %215
br label %356
216: ; preds = %70
%217 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 1
%218 = load i8, i8* %217
%219 = icmp eq i8 %218, -1
br i1 %219, label %213, label %220
220: ; preds = %216
%221 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 2
%222 = load i8, i8* %221
%223 = icmp eq i8 %222, -1
br i1 %223, label %213, label %224
224: ; preds = %220
%225 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 3
%226 = load i8, i8* %225
%227 = icmp eq i8 %226, -1
br i1 %227, label %213, label %228
228: ; preds = %224
%229 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 4
%230 = load i8, i8* %229
%231 = icmp eq i8 %230, -1
br i1 %231, label %213, label %232
232: ; preds = %228
%233 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 5
%234 = load i8, i8* %233
%235 = icmp eq i8 %234, -1
br i1 %235, label %213, label %236
236: ; preds = %232
%237 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 6
%238 = load i8, i8* %237
%239 = icmp eq i8 %238, -1
br i1 %239, label %213, label %240
240: ; preds = %236
%241 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 7
%242 = load i8, i8* %241
%243 = icmp eq i8 %242, -1
br i1 %243, label %213, label %244
244: ; preds = %240
%245 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 8
%246 = load i8, i8* %245
%247 = icmp eq i8 %246, -1
br i1 %247, label %213, label %248
248: ; preds = %244
%249 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 9
%250 = load i8, i8* %249
%251 = icmp eq i8 %250, -1
br i1 %251, label %213, label %252
252: ; preds = %248
%253 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 10
%254 = load i8, i8* %253
%255 = icmp eq i8 %254, -1
br i1 %255, label %213, label %256
256: ; preds = %252
%257 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 11
%258 = load i8, i8* %257
%259 = icmp eq i8 %258, -1
br i1 %259, label %213, label %260
260: ; preds = %256
%261 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 12
%262 = load i8, i8* %261
%263 = icmp eq i8 %262, -1
br i1 %263, label %213, label %264
264: ; preds = %260
%265 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 13
%266 = load i8, i8* %265
%267 = icmp eq i8 %266, -1
br i1 %267, label %213, label %268
268: ; preds = %264
%269 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 14
%270 = load i8, i8* %269
%271 = icmp eq i8 %270, -1
br i1 %271, label %213, label %272
272: ; preds = %268
%273 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 15
%274 = load i8, i8* %273
%275 = icmp eq i8 %274, -1
br i1 %275, label %213, label %276
276: ; preds = %272
%277 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 16
%278 = load i8, i8* %277
%279 = icmp eq i8 %278, -1
br i1 %279, label %213, label %280
280: ; preds = %276
%281 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 17
%282 = load i8, i8* %281
%283 = icmp eq i8 %282, -1
br i1 %283, label %213, label %284
284: ; preds = %280
%285 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 18
%286 = load i8, i8* %285
%287 = icmp eq i8 %286, -1
br i1 %287, label %213, label %288
288: ; preds = %284
%289 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 19
%290 = load i8, i8* %289
%291 = icmp eq i8 %290, -1
br i1 %291, label %213, label %292
292: ; preds = %288
%293 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 20
%294 = load i8, i8* %293
%295 = icmp eq i8 %294, -1
br i1 %295, label %213, label %296
296: ; preds = %292
%297 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 21
%298 = load i8, i8* %297
%299 = icmp eq i8 %298, -1
br i1 %299, label %213, label %300
300: ; preds = %296
%301 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 22
%302 = load i8, i8* %301
%303 = icmp eq i8 %302, -1
br i1 %303, label %213, label %304
304: ; preds = %300
%305 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 23
%306 = load i8, i8* %305
%307 = icmp eq i8 %306, -1
br i1 %307, label %213, label %308
308: ; preds = %304
%309 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 24
%310 = load i8, i8* %309
%311 = icmp eq i8 %310, -1
br i1 %311, label %213, label %312
312: ; preds = %308
%313 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 25
%314 = load i8, i8* %313
%315 = icmp eq i8 %314, -1
br i1 %315, label %213, label %316
316: ; preds = %312
%317 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 26
%318 = load i8, i8* %317
%319 = icmp eq i8 %318, -1
br i1 %319, label %213, label %320
320: ; preds = %316
%321 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 27
%322 = load i8, i8* %321
%323 = icmp eq i8 %322, -1
br i1 %323, label %213, label %324
324: ; preds = %320
%325 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 28
%326 = load i8, i8* %325
%327 = icmp eq i8 %326, -1
br i1 %327, label %213, label %328
328: ; preds = %324
%329 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 29
%330 = load i8, i8* %329
%331 = icmp eq i8 %330, -1
br i1 %331, label %213, label %332
332: ; preds = %328
%333 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 30
%334 = load i8, i8* %333
%335 = icmp eq i8 %334, -1
br i1 %335, label %213, label %336
336: ; preds = %332
%337 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 31
%338 = load i8, i8* %337
%339 = icmp eq i8 %338, -1
br i1 %339, label %213, label %340
340: ; preds = %336
%341 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 32
%342 = load i8, i8* %341
%343 = icmp eq i8 %342, -1
br i1 %343, label %213, label %344
344: ; preds = %340
%345 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 33
%346 = load i8, i8* %345
%347 = icmp eq i8 %346, -1
br i1 %347, label %213, label %348
348: ; preds = %344
%349 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 34
%350 = load i8, i8* %349
%351 = icmp eq i8 %350, -1
br i1 %351, label %213, label %352
352: ; preds = %348
%353 = getelementptr inbounds [36 x i8], [36 x i8]* %6, i64 0, i64 35
%354 = load i8, i8* %353
%355 = icmp eq i8 %354, -1
br i1 %355, label %213, label %356
356: ; preds = %352, %213
%357 = phi i32 [ 36, %213 ], [ 35, %352 ]
br label %358
358: ; preds = %356, %65
%359 = phi i32 [ %357, %356 ], [ %66, %65 ]
%360 = icmp eq i32 %359, 36
br i1 %360, label %364, label %361
361: ; preds = %358
%362 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.9, i64 0, i64 0))
%363 = call i32 @exit(i32 1)
unreachable
364: ; preds = %358
%365 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.8, i64 0, i64 0))
br label %366
366: ; preds = %364, %373
%367 = phi i64 [ 0, %364 ], [ %378, %373 ]
%368 = trunc i64 %367 to i8
%369 = urem i8 %368, 10
%370 = icmp eq i8 %369, 0
br i1 %370, label %371, label %373
371: ; preds = %366
%372 = call i32 @putchar(i32 10)
br label %373
373: ; preds = %371, %366
%374 = getelementptr inbounds [36 x i8], [36 x i8]* %3, i64 0, i64 %367
%375 = load i8, i8* %374
%376 = zext i8 %375 to i32
%377 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32 %376)
%378 = add nuw nsw i64 %367, 1
%379 = icmp eq i64 %378, 36
br i1 %379, label %380, label %366
380: ; preds = %373
%381 = call i32 @putchar(i32 10)
ret i32 0
}