#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*/ printf(char *, int);
scalar_t__ strlen(char *);
int main(int argc, char **argv) {
  char *ones[] = {"",        "one",     "two",       "three",    "four",
                  "five",    "six",     "seven",     "eight",    "nine",
                  "ten",     "eleven",  "twelve",    "thirteen", "fourteen",
                  "fifteen", "sixteen", "seventeen", "eighteen", "nineteen"};
  char *tens[] = {"",      "",      "twenty",  "thirty", "forty",
                  "fifty", "sixty", "seventy", "eighty", "ninety"};
  int i, n, s = 0;
  for (i = 1; i <= 1000; i++) {
    n = i;
    if (n >= 1000) {
      s += strlen(ones[n / 1000]) + strlen("thousand");
      n %= 1000;
    }
    if (n >= 100) {
      s += strlen(ones[n / 100]) + strlen("hundred");
      n %= 100;
      if (n > 0)
        s += strlen("and");
    }
    if (n >= 20) {
      s += strlen(tens[n / 10]);
      n %= 10;
    }
    s += strlen(ones[n]);
  }
  printf("%d\n", s);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xb0(%rbp),%rdi
lea    0x2bd9(%rip),%rsi
mov    $0xa0,%edx
call   1050 <memcpy@plt>
lea    -0x100(%rbp),%rdi
lea    0x2c61(%rip),%rsi
mov    $0x50,%edx
call   1050 <memcpy@plt>
movl   $0x0,-0x10c(%rbp)
movl   $0x1,-0x104(%rbp)
cmpl   $0x3e8,-0x104(%rbp)
jg     133f <main+0x20f>
mov    -0x104(%rbp),%eax
mov    %eax,-0x108(%rbp)
cmpl   $0x3e8,-0x108(%rbp)
jl     1217 <main+0xe7>
mov    -0x108(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
cltq
mov    -0xb0(%rbp,%rax,8),%rdi
ff
call   1030 <strlen@plt>
mov    %rax,-0x118(%rbp)
lea    0xecf(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x118(%rbp),%rcx
add    %rax,%rcx
movslq -0x10c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x10c(%rbp)
mov    -0x108(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %edx,-0x108(%rbp)
cmpl   $0x64,-0x108(%rbp)
jl     12b3 <main+0x183>
mov    -0x108(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
cltq
mov    -0xb0(%rbp,%rax,8),%rdi
ff
call   1030 <strlen@plt>
mov    %rax,-0x120(%rbp)
lea    0xe6d(%rip),%rdi
call   1030 <strlen@plt>
mov    -0x120(%rbp),%rcx
add    %rax,%rcx
movslq -0x10c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x10c(%rbp)
mov    -0x108(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %edx,-0x108(%rbp)
cmpl   $0x0,-0x108(%rbp)
jle    12ae <main+0x17e>
lea    0xe22(%rip),%rdi
call   1030 <strlen@plt>
mov    %rax,%rcx
movslq -0x10c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x10c(%rbp)
jmp    12b3 <main+0x183>
cmpl   $0x14,-0x108(%rbp)
jl     1304 <main+0x1d4>
mov    -0x108(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cltq
mov    -0x100(%rbp,%rax,8),%rdi
ff
call   1030 <strlen@plt>
mov    %rax,%rcx
movslq -0x10c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x10c(%rbp)
mov    -0x108(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,-0x108(%rbp)
movslq -0x108(%rbp),%rax
mov    -0xb0(%rbp,%rax,8),%rdi
ff
call   1030 <strlen@plt>
mov    %rax,%rcx
movslq -0x10c(%rbp),%rax
add    %rcx,%rax
mov    %eax,-0x10c(%rbp)
mov    -0x104(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x104(%rbp)
jmp    118d <main+0x5d>
mov    -0x10c(%rbp),%esi
lea    0xd78(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0xfffffc18,%r13d
lea    0x2c48(%rip),%r12
lea    0xf79(%rip),%r15
xor    %eax,%eax
jmp    1166 <main+0x46>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %ebx,%eax
mov    (%r12,%rax,8),%rdi
call   1030 <strlen@plt>
add    %ebp,%eax
inc    %r13d
je     11eb <main+0xcb>
lea    0x3e9(%r13),%ebx
cmp    $0xffffffff,%r13d
mov    $0x0,%ecx
cmove  %ecx,%ebx
lea    0xb(%rax),%ebp
cmovne %eax,%ebp
cmp    $0x64,%ebx
jb     11b9 <main+0x99>
movzwl %bx,%eax
shr    $0x2,%eax
imul   $0x147b,%eax,%r14d
shr    $0x11,%r14d
mov    (%r12,%r14,8),%rdi
call   1030 <strlen@plt>
add    %eax,%ebp
imul   $0x64,%r14d,%eax
sub    %eax,%ebx
movzwl %bx,%ebx
xor    %eax,%eax
test   %bx,%bx
setne  %al
lea    (%rax,%rax,2),%eax
add    %eax,%ebp
add    $0x7,%ebp
cmp    $0x14,%ebx
jb     1150 <main+0x30>
movzbl %bl,%r14d
imul   $0xcd,%r14d,%ebx
shr    $0xb,%ebx
movslq (%r15,%rbx,4),%rdi
add    %r15,%rdi
call   1030 <strlen@plt>
add    %eax,%ebp
add    %ebx,%ebx
lea    (%rbx,%rbx,4),%eax
sub    %al,%r14b
movzbl %r14b,%ebx
jmp    1150 <main+0x30>
lea    0xec1(%rip),%rdi
mov    %eax,%esi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"one\00"
@.str.2 = [4 x i8] c"two\00"
@.str.3 = [6 x i8] c"three\00"
@.str.4 = [5 x i8] c"four\00"
@.str.5 = [5 x i8] c"five\00"
@.str.6 = [4 x i8] c"six\00"
@.str.7 = [6 x i8] c"seven\00"
@.str.8 = [6 x i8] c"eight\00"
@.str.9 = [5 x i8] c"nine\00"
@.str.10 = [4 x i8] c"ten\00"
@.str.11 = [7 x i8] c"eleven\00"
@.str.12 = [7 x i8] c"twelve\00"
@.str.13 = [9 x i8] c"thirteen\00"
@.str.14 = [9 x i8] c"fourteen\00"
@.str.15 = [8 x i8] c"fifteen\00"
@.str.16 = [8 x i8] c"sixteen\00"
@.str.17 = [10 x i8] c"seventeen\00"
@.str.18 = [9 x i8] c"eighteen\00"
@.str.19 = [9 x i8] c"nineteen\00"
@__const.main.ones = [20 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0)]
@.str.20 = [7 x i8] c"twenty\00"
@.str.21 = [7 x i8] c"thirty\00"
@.str.22 = [6 x i8] c"forty\00"
@.str.23 = [6 x i8] c"fifty\00"
@.str.24 = [6 x i8] c"sixty\00"
@.str.25 = [8 x i8] c"seventy\00"
@.str.26 = [7 x i8] c"eighty\00"
@.str.27 = [7 x i8] c"ninety\00"
@__const.main.tens = [10 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i32 0, i32 0)]
@.str.28 = [9 x i8] c"thousand\00"
@.str.29 = [8 x i8] c"hundred\00"
@.str.30 = [4 x i8] c"and\00"
@.str.31 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [20 x i8*]
%7 = alloca [10 x i8*]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = bitcast [20 x i8*]* %6 to i8*
%12 = bitcast [10 x i8*]* %7 to i8*
store i32 0, i32* %10
store i32 1, i32* %8
br label %13
13: ; preds = %88, %2
%14 = load i32, i32* %8
%15 = icmp sle i32 %14, 1000
br i1 %15, label %16, label %91
16: ; preds = %13
%17 = load i32, i32* %8
store i32 %17, i32* %9
%18 = load i32, i32* %9
%19 = icmp sge i32 %18, 1000
br i1 %19, label %20, label %35
20: ; preds = %16
%21 = load i32, i32* %9
%22 = sdiv i32 %21, 1000
%23 = sext i32 %22 to i64
%24 = getelementptr inbounds [20 x i8*], [20 x i8*]* %6, i64 0, i64 %23
%25 = load i8*, i8** %24
%26 = call i64 @strlen(i8* %25)
%27 = call i64 @strlen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
%28 = add nsw i64 %26, %27
%29 = load i32, i32* %10
%30 = sext i32 %29 to i64
%31 = add nsw i64 %30, %28
%32 = trunc i64 %31 to i32
store i32 %32, i32* %10
%33 = load i32, i32* %9
%34 = srem i32 %33, 1000
store i32 %34, i32* %9
br label %35
35: ; preds = %20, %16
%36 = load i32, i32* %9
%37 = icmp sge i32 %36, 100
br i1 %37, label %38, label %62
38: ; preds = %35
%39 = load i32, i32* %9
%40 = sdiv i32 %39, 100
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [20 x i8*], [20 x i8*]* %6, i64 0, i64 %41
%43 = load i8*, i8** %42
%44 = call i64 @strlen(i8* %43)
%45 = call i64 @strlen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.29, i64 0, i64 0))
%46 = add nsw i64 %44, %45
%47 = load i32, i32* %10
%48 = sext i32 %47 to i64
%49 = add nsw i64 %48, %46
%50 = trunc i64 %49 to i32
store i32 %50, i32* %10
%51 = load i32, i32* %9
%52 = srem i32 %51, 100
store i32 %52, i32* %9
%53 = load i32, i32* %9
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %61
55: ; preds = %38
%56 = call i64 @strlen(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%57 = load i32, i32* %10
%58 = sext i32 %57 to i64
%59 = add nsw i64 %58, %56
%60 = trunc i64 %59 to i32
store i32 %60, i32* %10
br label %61
61: ; preds = %55, %38
br label %62
62: ; preds = %61, %35
%63 = load i32, i32* %9
%64 = icmp sge i32 %63, 20
br i1 %64, label %65, label %78
65: ; preds = %62
%66 = load i32, i32* %9
%67 = sdiv i32 %66, 10
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 %68
%70 = load i8*, i8** %69
%71 = call i64 @strlen(i8* %70)
%72 = load i32, i32* %10
%73 = sext i32 %72 to i64
%74 = add nsw i64 %73, %71
%75 = trunc i64 %74 to i32
store i32 %75, i32* %10
%76 = load i32, i32* %9
%77 = srem i32 %76, 10
store i32 %77, i32* %9
br label %78
78: ; preds = %65, %62
%79 = load i32, i32* %9
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [20 x i8*], [20 x i8*]* %6, i64 0, i64 %80
%82 = load i8*, i8** %81
%83 = call i64 @strlen(i8* %82)
%84 = load i32, i32* %10
%85 = sext i32 %84 to i64
%86 = add nsw i64 %85, %83
%87 = trunc i64 %86 to i32
store i32 %87, i32* %10
br label %88
88: ; preds = %78
%89 = load i32, i32* %8
%90 = add nsw i32 %89, 1
store i32 %90, i32* %8
br label %13
91: ; preds = %13
%92 = load i32, i32* %10
%93 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i64 0, i64 0), i32 %92)
ret i32 0
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [4 x i8] c"one\00"
@.str.2 = [4 x i8] c"two\00"
@.str.3 = [6 x i8] c"three\00"
@.str.4 = [5 x i8] c"four\00"
@.str.5 = [5 x i8] c"five\00"
@.str.6 = [4 x i8] c"six\00"
@.str.7 = [6 x i8] c"seven\00"
@.str.8 = [6 x i8] c"eight\00"
@.str.9 = [5 x i8] c"nine\00"
@.str.10 = [4 x i8] c"ten\00"
@.str.11 = [7 x i8] c"eleven\00"
@.str.12 = [7 x i8] c"twelve\00"
@.str.13 = [9 x i8] c"thirteen\00"
@.str.14 = [9 x i8] c"fourteen\00"
@.str.15 = [8 x i8] c"fifteen\00"
@.str.16 = [8 x i8] c"sixteen\00"
@.str.17 = [10 x i8] c"seventeen\00"
@.str.18 = [9 x i8] c"eighteen\00"
@.str.19 = [9 x i8] c"nineteen\00"
@__const.main.ones = [20 x i8*] [i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.19, i32 0, i32 0)]
@.str.20 = [7 x i8] c"twenty\00"
@.str.21 = [7 x i8] c"thirty\00"
@.str.22 = [6 x i8] c"forty\00"
@.str.23 = [6 x i8] c"fifty\00"
@.str.24 = [6 x i8] c"sixty\00"
@.str.25 = [8 x i8] c"seventy\00"
@.str.26 = [7 x i8] c"eighty\00"
@.str.27 = [7 x i8] c"ninety\00"
@reltable.main = [10 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([1 x i8]* @.str to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([1 x i8]* @.str to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.20 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.21 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.22 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.23 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([6 x i8]* @.str.24 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.25 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.26 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([7 x i8]* @.str.27 to i64), i64 ptrtoint ([10 x i32]* @reltable.main to i64)) to i32)]
@.str.31 = [4 x i8] c"%d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
br label %3
3: ; preds = %2, %41
%4 = phi i32 [ 0, %2 ], [ %49, %41 ]
%5 = phi i32 [ 1, %2 ], [ %50, %41 ]
%6 = icmp eq i32 %5, 1000
%7 = add i32 %4, 11
%8 = select i1 %6, i32 0, i32 %5
%9 = select i1 %6, i32 %7, i32 %4
%10 = icmp ugt i32 %8, 99
br i1 %10, label %11, label %26
11: ; preds = %3
%12 = trunc i32 %8 to i16
%13 = udiv i16 %12, 100
%14 = zext i16 %13 to i64
%15 = getelementptr inbounds [20 x i8*], [20 x i8*]* @__const.main.ones, i64 0, i64 %14
%16 = load i8*, i8** %15
%17 = tail call i64 @strlen(i8* dereferenceable(1) %16)
%18 = trunc i64 %17 to i32
%19 = add i32 %9, 7
%20 = add i32 %19, %18
%21 = urem i16 %12, 100
%22 = zext i16 %21 to i32
%23 = icmp eq i16 %21, 0
%24 = add i32 %20, 3
%25 = select i1 %23, i32 %20, i32 %24
br label %26
26: ; preds = %11, %3
%27 = phi i32 [ %8, %3 ], [ %22, %11 ]
%28 = phi i32 [ %9, %3 ], [ %25, %11 ]
%29 = icmp ugt i32 %27, 19
br i1 %29, label %30, label %41
30: ; preds = %26
%31 = trunc i32 %27 to i8
%32 = udiv i8 %31, 10
%33 = zext i8 %32 to i64
%34 = shl i64 %33, 2
%35 = call i8* @llvm.load.relative.i64(i8* bitcast ([10 x i32]* @reltable.main to i8*), i64 %34)
%36 = tail call i64 @strlen(i8* dereferenceable(1) %35)
%37 = trunc i64 %36 to i32
%38 = add i32 %28, %37
%39 = urem i8 %31, 10
%40 = zext i8 %39 to i32
br label %41
41: ; preds = %30, %26
%42 = phi i32 [ %40, %30 ], [ %27, %26 ]
%43 = phi i32 [ %38, %30 ], [ %28, %26 ]
%44 = zext i32 %42 to i64
%45 = getelementptr inbounds [20 x i8*], [20 x i8*]* @__const.main.ones, i64 0, i64 %44
%46 = load i8*, i8** %45
%47 = tail call i64 @strlen(i8* dereferenceable(1) %46)
%48 = trunc i64 %47 to i32
%49 = add i32 %43, %48
%50 = add nuw nsw i32 %5, 1
%51 = icmp eq i32 %50, 1001
br i1 %51, label %52, label %3
52: ; preds = %41
%53 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i64 0, i64 0), i32 %49)
ret i32 0
}