#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*/ getchar();
int /*<<< orphan*/ printf(char *, ...);
int main() {
  int i1, i2, i3, i4, i5;
  long multi, result;
  for (i1 = 1; i1 <= 9; i1++) {
    for (i2 = 0; i2 <= 9; i2++) {
      for (i3 = 0; i3 <= 9; i3++) {
        for (i4 = 0; i4 <= 9; i4++) {
          for (i5 = 1; i5 <= 9; i5++) {
            multi = i1 * 10000 + i2 * 1000 + i3 * 100 + i4 * 10 + i5;
            result =
                i5 * 100000 + i5 * 10000 + i5 * 1000 + i5 * 100 + i5 * 10 + i5;
            if (multi * i1 == result) {
              printf("%5d%2d%2d%2d%2d\n", i1, i2, i3, i4, i5);
              printf("X%12d\n", i1);
              printf("---------------\n");
              printf("%3d%2d%2d%2d%2d%2d\n", i5, i5, i5, i5, i5, i5);
            }
          }
        }
      }
    }
  }
  getchar();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x9,-0x8(%rbp)
jg     12af <main+0x18f>
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jg     129c <main+0x17c>
movl   $0x0,-0x10(%rbp)
cmpl   $0x9,-0x10(%rbp)
jg     1289 <main+0x169>
movl   $0x0,-0x14(%rbp)
cmpl   $0x9,-0x14(%rbp)
jg     1276 <main+0x156>
movl   $0x1,-0x18(%rbp)
cmpl   $0x9,-0x18(%rbp)
jg     1263 <main+0x143>
imul   $0x2710,-0x8(%rbp),%eax
imul   $0x3e8,-0xc(%rbp),%ecx
add    %ecx,%eax
imul   $0x64,-0x10(%rbp),%ecx
add    %ecx,%eax
imul   $0xa,-0x14(%rbp),%ecx
add    %ecx,%eax
add    -0x18(%rbp),%eax
cltq
mov    %rax,-0x20(%rbp)
imul   $0x186a0,-0x18(%rbp),%eax
imul   $0x2710,-0x18(%rbp),%ecx
add    %ecx,%eax
imul   $0x3e8,-0x18(%rbp),%ecx
add    %ecx,%eax
imul   $0x64,-0x18(%rbp),%ecx
add    %ecx,%eax
imul   $0xa,-0x18(%rbp),%ecx
add    %ecx,%eax
add    -0x18(%rbp),%eax
cltq
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x8(%rbp),%rcx
imul   %rcx,%rax
cmp    -0x28(%rbp),%rax
jne    1250 <main+0x130>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
lea    0xdfb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdf4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x18(%rbp),%r9d
mov    -0x18(%rbp),%eax
lea    0xde3(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1255 <main+0x135>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    117a <main+0x5a>
jmp    1268 <main+0x148>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1169 <main+0x49>
jmp    127b <main+0x15b>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1158 <main+0x38>
jmp    128e <main+0x16e>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1147 <main+0x27>
jmp    12a1 <main+0x181>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
mov    $0x0,%al
call   1040 <getchar@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    $0x1,%ebx
mov    $0xffffffffffff8acf,%rax
mov    $0x18af6,%r12d
movq   $0xfffffffffffffc18,0x8(%rsp)
ff ff
movq   $0xffffffffffffff9c,0x10(%rsp)
ff ff
movq   $0xfffffffffffffff6,0x18(%rsp)
ff ff
jmp    11a6 <main+0x76>
nopl   (%rax)
add    $0x1,%rbx
mov    0x28(%rsp),%rax
mov    0x20(%rsp),%r12
add    %rax,%r12
add    $0xffffffffffffb1e0,%rax
addq   $0xfffffffffffffc18,0x8(%rsp)
ff ff
addq   $0xffffffffffffff9c,0x10(%rsp)
addq   $0xfffffffffffffff6,0x18(%rsp)
cmp    $0xa,%rbx
je     1685 <main+0x555>
mov    %rax,0x28(%rsp)
imul   $0x2710,%rbx,%rax
mov    %rax,0x30(%rsp)
mov    %r12,0x20(%rsp)
xor    %ebp,%ebp
jmp    11d4 <main+0xa4>
add    $0x1,%rbp
mov    0x38(%rsp),%r12
add    0x8(%rsp),%r12
cmp    $0xa,%rbp
je     1170 <main+0x40>
imul   $0x3e8,%rbp,%rax
add    0x30(%rsp),%rax
mov    %rax,0x40(%rsp)
mov    %r12,0x38(%rsp)
xor    %r14d,%r14d
jmp    1204 <main+0xd4>
nop
add    $0x1,%r14
mov    0x48(%rsp),%r12
add    0x10(%rsp),%r12
cmp    $0xa,%r14
je     11c0 <main+0x90>
imul   $0x64,%r14,%rax
add    0x40(%rsp),%rax
mov    %rax,0x50(%rsp)
mov    %r12,0x48(%rsp)
xor    %r15d,%r15d
jmp    122f <main+0xff>
nopl   0x0(%rax)
add    $0x1,%r15
add    0x18(%rsp),%r12
cmp    $0xa,%r15
je     11f0 <main+0xc0>
test   %r12,%r12
jne    129e <main+0x16e>
lea    0xdc5(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdb8(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xdc3(%rip),%rdi
call   1030 <puts@plt>
movl   $0x1,(%rsp)
lea    0xd9c(%rip),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
mov    $0x1,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    (%r15,%r15,4),%rax
mov    0x50(%rsp),%rcx
lea    (%rcx,%rax,2),%r13
lea    0x2(%r13),%rax
imul   %rbx,%rax
cmp    $0x3640e,%rax
jne    1325 <main+0x1f5>
lea    0xd3e(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x2,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd31(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xd3c(%rip),%rdi
call   1030 <puts@plt>
movl   $0x2,(%rsp)
lea    0xd15(%rip),%rdi
mov    $0x2,%esi
mov    $0x2,%edx
mov    $0x2,%ecx
mov    $0x2,%r8d
mov    $0x2,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x3(%r13),%rax
imul   %rbx,%rax
cmp    $0x51615,%rax
jne    139f <main+0x26f>
lea    0xcc4(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcb7(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xcc2(%rip),%rdi
call   1030 <puts@plt>
movl   $0x3,(%rsp)
lea    0xc9b(%rip),%rdi
mov    $0x3,%esi
mov    $0x3,%edx
mov    $0x3,%ecx
mov    $0x3,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x4(%r13),%rax
imul   %rbx,%rax
cmp    $0x6c81c,%rax
jne    1419 <main+0x2e9>
lea    0xc4a(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc3d(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xc48(%rip),%rdi
call   1030 <puts@plt>
movl   $0x4,(%rsp)
lea    0xc21(%rip),%rdi
mov    $0x4,%esi
mov    $0x4,%edx
mov    $0x4,%ecx
mov    $0x4,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x5(%r13),%rax
imul   %rbx,%rax
cmp    $0x87a23,%rax
jne    1493 <main+0x363>
lea    0xbd0(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbc3(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xbce(%rip),%rdi
call   1030 <puts@plt>
movl   $0x5,(%rsp)
lea    0xba7(%rip),%rdi
mov    $0x5,%esi
mov    $0x5,%edx
mov    $0x5,%ecx
mov    $0x5,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x6(%r13),%rax
imul   %rbx,%rax
cmp    $0xa2c2a,%rax
jne    150d <main+0x3dd>
lea    0xb56(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb49(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xb54(%rip),%rdi
call   1030 <puts@plt>
movl   $0x6,(%rsp)
lea    0xb2d(%rip),%rdi
mov    $0x6,%esi
mov    $0x6,%edx
mov    $0x6,%ecx
mov    $0x6,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x7(%r13),%rax
imul   %rbx,%rax
cmp    $0xbde31,%rax
jne    1587 <main+0x457>
lea    0xadc(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x7,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xacf(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xada(%rip),%rdi
call   1030 <puts@plt>
movl   $0x7,(%rsp)
lea    0xab3(%rip),%rdi
mov    $0x7,%esi
mov    $0x7,%edx
mov    $0x7,%ecx
mov    $0x7,%r8d
mov    $0x7,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x8(%r13),%rax
imul   %rbx,%rax
cmp    $0xd9038,%rax
jne    1601 <main+0x4d1>
lea    0xa62(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x8,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa55(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xa60(%rip),%rdi
call   1030 <puts@plt>
movl   $0x8,(%rsp)
lea    0xa39(%rip),%rdi
mov    $0x8,%esi
mov    $0x8,%edx
mov    $0x8,%ecx
mov    $0x8,%r8d
mov    $0x8,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x9,%r13
imul   %rbx,%r13
cmp    $0xf423f,%r13
jne    1220 <main+0xf0>
lea    0x9e3(%rip),%rdi
mov    %ebx,%esi
mov    %ebp,%edx
mov    %r14d,%ecx
mov    %r15d,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9d6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x9e1(%rip),%rdi
call   1030 <puts@plt>
movl   $0x9,(%rsp)
lea    0x9ba(%rip),%rdi
mov    $0x9,%esi
mov    $0x9,%edx
mov    $0x9,%ecx
mov    $0x9,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1220 <main+0xf0>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"%5d%2d%2d%2d%2d\0A\00"
@.str.1 = [7 x i8] c"X%12d\0A\00"
@.str.2 = [17 x i8] c"---------------\0A\00"
@.str.3 = [20 x i8] c"%3d%2d%2d%2d%2d%2d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i64
%8 = alloca i64
store i32 0, i32* %1
store i32 1, i32* %2
br label %9
9: ; preds = %100, %0
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 9
br i1 %11, label %12, label %103
12: ; preds = %9
store i32 0, i32* %3
br label %13
13: ; preds = %96, %12
%14 = load i32, i32* %3
%15 = icmp sle i32 %14, 9
br i1 %15, label %16, label %99
16: ; preds = %13
store i32 0, i32* %4
br label %17
17: ; preds = %92, %16
%18 = load i32, i32* %4
%19 = icmp sle i32 %18, 9
br i1 %19, label %20, label %95
20: ; preds = %17
store i32 0, i32* %5
br label %21
21: ; preds = %88, %20
%22 = load i32, i32* %5
%23 = icmp sle i32 %22, 9
br i1 %23, label %24, label %91
24: ; preds = %21
store i32 1, i32* %6
br label %25
25: ; preds = %84, %24
%26 = load i32, i32* %6
%27 = icmp sle i32 %26, 9
br i1 %27, label %28, label %87
28: ; preds = %25
%29 = load i32, i32* %2
%30 = mul nsw i32 %29, 10000
%31 = load i32, i32* %3
%32 = mul nsw i32 %31, 1000
%33 = add nsw i32 %30, %32
%34 = load i32, i32* %4
%35 = mul nsw i32 %34, 100
%36 = add nsw i32 %33, %35
%37 = load i32, i32* %5
%38 = mul nsw i32 %37, 10
%39 = add nsw i32 %36, %38
%40 = load i32, i32* %6
%41 = add nsw i32 %39, %40
%42 = sext i32 %41 to i64
store i64 %42, i64* %7
%43 = load i32, i32* %6
%44 = mul nsw i32 %43, 100000
%45 = load i32, i32* %6
%46 = mul nsw i32 %45, 10000
%47 = add nsw i32 %44, %46
%48 = load i32, i32* %6
%49 = mul nsw i32 %48, 1000
%50 = add nsw i32 %47, %49
%51 = load i32, i32* %6
%52 = mul nsw i32 %51, 100
%53 = add nsw i32 %50, %52
%54 = load i32, i32* %6
%55 = mul nsw i32 %54, 10
%56 = add nsw i32 %53, %55
%57 = load i32, i32* %6
%58 = add nsw i32 %56, %57
%59 = sext i32 %58 to i64
store i64 %59, i64* %8
%60 = load i64, i64* %7
%61 = load i32, i32* %2
%62 = sext i32 %61 to i64
%63 = mul nsw i64 %60, %62
%64 = load i64, i64* %8
%65 = icmp eq i64 %63, %64
br i1 %65, label %66, label %83
66: ; preds = %28
%67 = load i32, i32* %2
%68 = load i32, i32* %3
%69 = load i32, i32* %4
%70 = load i32, i32* %5
%71 = load i32, i32* %6
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %67, i32 %68, i32 %69, i32 %70, i32 %71)
%73 = load i32, i32* %2
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %73)
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%76 = load i32, i32* %6
%77 = load i32, i32* %6
%78 = load i32, i32* %6
%79 = load i32, i32* %6
%80 = load i32, i32* %6
%81 = load i32, i32* %6
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %76, i32 %77, i32 %78, i32 %79, i32 %80, i32 %81)
br label %83
83: ; preds = %66, %28
br label %84
84: ; preds = %83
%85 = load i32, i32* %6
%86 = add nsw i32 %85, 1
store i32 %86, i32* %6
br label %25
87: ; preds = %25
br label %88
88: ; preds = %87
%89 = load i32, i32* %5
%90 = add nsw i32 %89, 1
store i32 %90, i32* %5
br label %21
91: ; preds = %21
br label %92
92: ; preds = %91
%93 = load i32, i32* %4
%94 = add nsw i32 %93, 1
store i32 %94, i32* %4
br label %17
95: ; preds = %17
br label %96
96: ; preds = %95
%97 = load i32, i32* %3
%98 = add nsw i32 %97, 1
store i32 %98, i32* %3
br label %13
99: ; preds = %13
br label %100
100: ; preds = %99
%101 = load i32, i32* %2
%102 = add nsw i32 %101, 1
store i32 %102, i32* %2
br label %9
103: ; preds = %9
%104 = call i32 (...) @getchar()
ret i32 0
}

LLVM IR (-O2):
@.str = [17 x i8] c"%5d%2d%2d%2d%2d\0A\00"
@.str.1 = [7 x i8] c"X%12d\0A\00"
@.str.3 = [20 x i8] c"%3d%2d%2d%2d%2d%2d\0A\00"
@str = [16 x i8] c"---------------\00"
define i32 @main() {
br label %1
1: ; preds = %0, %141
%2 = phi i64 [ 1, %0 ], [ %142, %141 ]
%3 = mul nuw nsw i64 %2, 10000
%4 = trunc i64 %2 to i32
%5 = trunc i64 %2 to i32
%6 = trunc i64 %2 to i32
%7 = trunc i64 %2 to i32
%8 = trunc i64 %2 to i32
%9 = trunc i64 %2 to i32
%10 = trunc i64 %2 to i32
%11 = trunc i64 %2 to i32
%12 = trunc i64 %2 to i32
br label %13
13: ; preds = %1, %138
%14 = phi i64 [ 0, %1 ], [ %139, %138 ]
%15 = mul nuw nsw i64 %14, 1000
%16 = add nuw nsw i64 %15, %3
%17 = trunc i64 %14 to i32
%18 = trunc i64 %14 to i32
%19 = trunc i64 %14 to i32
%20 = trunc i64 %14 to i32
%21 = trunc i64 %14 to i32
%22 = trunc i64 %14 to i32
%23 = trunc i64 %14 to i32
%24 = trunc i64 %14 to i32
%25 = trunc i64 %14 to i32
br label %26
26: ; preds = %13, %135
%27 = phi i64 [ 0, %13 ], [ %136, %135 ]
%28 = mul nuw nsw i64 %27, 100
%29 = add nuw nsw i64 %16, %28
%30 = trunc i64 %27 to i32
%31 = trunc i64 %27 to i32
%32 = trunc i64 %27 to i32
%33 = trunc i64 %27 to i32
%34 = trunc i64 %27 to i32
%35 = trunc i64 %27 to i32
%36 = trunc i64 %27 to i32
%37 = trunc i64 %27 to i32
%38 = trunc i64 %27 to i32
br label %39
39: ; preds = %26, %132
%40 = phi i64 [ 0, %26 ], [ %133, %132 ]
%41 = mul nuw nsw i64 %40, 10
%42 = add nuw nsw i64 %29, %41
%43 = or i64 %42, 1
%44 = mul nuw nsw i64 %43, %2
%45 = icmp eq i64 %44, 111111
br i1 %45, label %46, label %52
46: ; preds = %39
%47 = trunc i64 %40 to i32
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %4, i32 %17, i32 %30, i32 %47, i32 1)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%50 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 1, i32 1, i32 1, i32 1, i32 1, i32 1)
br label %52
52: ; preds = %39, %46
%53 = add nuw nsw i64 %42, 2
%54 = mul nuw nsw i64 %53, %2
%55 = icmp eq i64 %54, 222222
br i1 %55, label %56, label %62
56: ; preds = %52
%57 = trunc i64 %40 to i32
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %18, i32 %31, i32 %57, i32 2)
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%61 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 2, i32 2, i32 2, i32 2, i32 2, i32 2)
br label %62
62: ; preds = %56, %52
%63 = add nuw nsw i64 %42, 3
%64 = mul nuw nsw i64 %63, %2
%65 = icmp eq i64 %64, 333333
br i1 %65, label %66, label %72
66: ; preds = %62
%67 = trunc i64 %40 to i32
%68 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %6, i32 %19, i32 %32, i32 %67, i32 3)
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%70 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%71 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 3, i32 3, i32 3, i32 3, i32 3, i32 3)
br label %72
72: ; preds = %66, %62
%73 = add nuw nsw i64 %42, 4
%74 = mul nuw nsw i64 %73, %2
%75 = icmp eq i64 %74, 444444
br i1 %75, label %76, label %82
76: ; preds = %72
%77 = trunc i64 %40 to i32
%78 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %7, i32 %20, i32 %33, i32 %77, i32 4)
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%80 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 4, i32 4, i32 4, i32 4, i32 4, i32 4)
br label %82
82: ; preds = %76, %72
%83 = add nuw nsw i64 %42, 5
%84 = mul nuw nsw i64 %83, %2
%85 = icmp eq i64 %84, 555555
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = trunc i64 %40 to i32
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %8, i32 %21, i32 %34, i32 %87, i32 5)
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%90 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 5, i32 5, i32 5, i32 5, i32 5, i32 5)
br label %92
92: ; preds = %86, %82
%93 = add nuw nsw i64 %42, 6
%94 = mul nuw nsw i64 %93, %2
%95 = icmp eq i64 %94, 666666
br i1 %95, label %96, label %102
96: ; preds = %92
%97 = trunc i64 %40 to i32
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %9, i32 %22, i32 %35, i32 %97, i32 6)
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %9)
%100 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 6, i32 6, i32 6, i32 6, i32 6, i32 6)
br label %102
102: ; preds = %96, %92
%103 = add nuw nsw i64 %42, 7
%104 = mul nuw nsw i64 %103, %2
%105 = icmp eq i64 %104, 777777
br i1 %105, label %106, label %112
106: ; preds = %102
%107 = trunc i64 %40 to i32
%108 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %23, i32 %36, i32 %107, i32 7)
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%110 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 7, i32 7, i32 7, i32 7, i32 7, i32 7)
br label %112
112: ; preds = %106, %102
%113 = add nuw nsw i64 %42, 8
%114 = mul nuw nsw i64 %113, %2
%115 = icmp eq i64 %114, 888888
br i1 %115, label %116, label %122
116: ; preds = %112
%117 = trunc i64 %40 to i32
%118 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %11, i32 %24, i32 %37, i32 %117, i32 8)
%119 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%120 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%121 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 8, i32 8, i32 8, i32 8, i32 8, i32 8)
br label %122
122: ; preds = %116, %112
%123 = add nuw nsw i64 %42, 9
%124 = mul nuw nsw i64 %123, %2
%125 = icmp eq i64 %124, 999999
br i1 %125, label %126, label %132
126: ; preds = %122
%127 = trunc i64 %40 to i32
%128 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %12, i32 %25, i32 %38, i32 %127, i32 9)
%129 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 %12)
%130 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
%131 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 9, i32 9, i32 9, i32 9, i32 9, i32 9)
br label %132
132: ; preds = %126, %122
%133 = add nuw nsw i64 %40, 1
%134 = icmp eq i64 %133, 10
br i1 %134, label %135, label %39
135: ; preds = %132
%136 = add nuw nsw i64 %27, 1
%137 = icmp eq i64 %136, 10
br i1 %137, label %138, label %26
138: ; preds = %135
%139 = add nuw nsw i64 %14, 1
%140 = icmp eq i64 %139, 10
br i1 %140, label %141, label %13
141: ; preds = %138
%142 = add nuw nsw i64 %2, 1
%143 = icmp eq i64 %142, 10
br i1 %143, label %144, label %1
144: ; preds = %141
%145 = tail call i32 (...) @getchar()
ret i32 0
}