#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, int, int);
int main() {
  int b, c;
  int num;
  int renum;
  for (b = 0; b < 10; b++)
    for (c = 0; c < 10; c++) {
      num = 1009 + 100 * b + 10 * c;
      renum = 9001 + 100 * c + 10 * b;
      if (num * 9 == renum)
        printf("1%d%d9\n", b, c);
    }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11ba <main+0x9a>
movl   $0x0,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    11a7 <main+0x87>
imul   $0x64,-0x8(%rbp),%eax
add    $0x3f1,%eax
imul   $0xa,-0xc(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x10(%rbp)
imul   $0x64,-0xc(%rbp),%eax
add    $0x2329,%eax
imul   $0xa,-0x8(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x14(%rbp)
imul   $0x9,-0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
jne    1194 <main+0x74>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
jmp    1199 <main+0x79>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1147 <main+0x27>
jmp    11ac <main+0x8c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xed8(%rip),%rdi
xor    %esi,%esi
mov    $0x8,%edx
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"1%d%d9\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %6
6: ; preds = %39, %0
%7 = load i32, i32* %2
%8 = icmp slt i32 %7, 10
br i1 %8, label %9, label %42
9: ; preds = %6
store i32 0, i32* %3
br label %10
10: ; preds = %35, %9
%11 = load i32, i32* %3
%12 = icmp slt i32 %11, 10
br i1 %12, label %13, label %38
13: ; preds = %10
%14 = load i32, i32* %2
%15 = mul nsw i32 100, %14
%16 = add nsw i32 1009, %15
%17 = load i32, i32* %3
%18 = mul nsw i32 10, %17
%19 = add nsw i32 %16, %18
store i32 %19, i32* %4
%20 = load i32, i32* %3
%21 = mul nsw i32 100, %20
%22 = add nsw i32 9001, %21
%23 = load i32, i32* %2
%24 = mul nsw i32 10, %23
%25 = add nsw i32 %22, %24
store i32 %25, i32* %5
%26 = load i32, i32* %4
%27 = mul nsw i32 %26, 9
%28 = load i32, i32* %5
%29 = icmp eq i32 %27, %28
br i1 %29, label %30, label %34
30: ; preds = %13
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %32)
br label %34
34: ; preds = %30, %13
br label %35
35: ; preds = %34
%36 = load i32, i32* %3
%37 = add nsw i32 %36, 1
store i32 %37, i32* %3
br label %10
38: ; preds = %10
br label %39
39: ; preds = %38
%40 = load i32, i32* %2
%41 = add nsw i32 %40, 1
store i32 %41, i32* %2
br label %6
42: ; preds = %6
%43 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [8 x i8] c"1%d%d9\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 0, i32 8)
%2 = tail call i32 @exit(i32 0)
unreachable
}