#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);
int main() {
  int a, b, c;
  int A;
  int B;
  for (a = 1; a < 10; a++) {
    for (b = 1; b < 10; b++) {
      for (c = 0; c < 10; c++) {
        A = 100 * a + 10 * b + c;
        B = 100 * b + 10 * c + c;
        if (A + B == 532)
          printf("%d %d %d\n", a, b, c);
      }
    }
  }
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0xa,-0x8(%rbp)
jge    11e1 <main+0xc1>
movl   $0x1,-0xc(%rbp)
cmpl   $0xa,-0xc(%rbp)
jge    11ce <main+0xae>
movl   $0x0,-0x10(%rbp)
cmpl   $0xa,-0x10(%rbp)
jge    11bb <main+0x9b>
imul   $0x64,-0x8(%rbp),%eax
imul   $0xa,-0xc(%rbp),%ecx
add    %ecx,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x14(%rbp)
imul   $0x64,-0xc(%rbp),%eax
imul   $0xa,-0x10(%rbp),%ecx
add    %ecx,%eax
add    -0x10(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
cmp    $0x214,%eax
jne    11a8 <main+0x88>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe5d(%rip),%rdi
call   1030 <printf@plt>
jmp    11ad <main+0x8d>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1158 <main+0x38>
jmp    11c0 <main+0xa0>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1147 <main+0x27>
jmp    11d3 <main+0xb3>
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   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
movl   $0x1,(%rsp)
xor    %r12d,%r12d
jmp    1156 <main+0x36>
nopw   0x0(%rax,%rax,1)
mov    (%rsp),%eax
add    $0x1,%eax
add    $0x64,%r12d
mov    %eax,(%rsp)
cmp    $0xa,%eax
je     1350 <main+0x230>
mov    $0xfffffc22,%ebp
mov    $0x12a,%ebx
mov    $0x142,%r14d
mov    $0x136,%r15d
mov    $0x1,%r13d
mov    %r12,0x8(%rsp)
jmp    11a2 <main+0x82>
nopl   0x0(%rax)
mov    0x4(%rsp),%ebx
add    $0xffffff92,%ebx
add    $0xffffff92,%r14d
add    $0xffffff92,%r15d
add    $0x1,%r13d
mov    0x10(%rsp),%rbp
add    $0x6e,%ebp
mov    0x8(%rsp),%r12
je     1140 <main+0x20>
cmp    %r14d,%r12d
jne    11bb <main+0x9b>
lea    0xe52(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
xor    %ecx,%ecx
call   1030 <printf@plt>
cmp    %r15d,%r12d
jne    11d7 <main+0xb7>
lea    0xe39(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x1,%ecx
call   1030 <printf@plt>
mov    %ebx,0x4(%rsp)
cmp    %ebx,%r12d
jne    11f7 <main+0xd7>
lea    0xe19(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x2,%ecx
call   1030 <printf@plt>
mov    %r12,%rbx
mov    %rbp,0x10(%rsp)
add    %ebp,%r12d
cmp    $0xfffffd40,%r12d
je     1260 <main+0x140>
cmp    $0xfffffd34,%r12d
je     1280 <main+0x160>
cmp    $0xfffffd28,%r12d
je     12a4 <main+0x184>
cmp    $0xfffffd1c,%r12d
je     12c8 <main+0x1a8>
cmp    $0xfffffd10,%r12d
je     12ec <main+0x1cc>
cmp    $0xfffffd04,%r12d
je     1310 <main+0x1f0>
cmp    $0xfffffcf8,%r12d
jne    1180 <main+0x60>
jmp    1334 <main+0x214>
nopw   0x0(%rax,%rax,1)
lea    0xd99(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x3,%ecx
call   1030 <printf@plt>
cmp    $0xfffffd34,%r12d
jne    1214 <main+0xf4>
lea    0xd79(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x4,%ecx
call   1030 <printf@plt>
cmp    $0xfffffd28,%r12d
jne    1221 <main+0x101>
lea    0xd55(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x5,%ecx
call   1030 <printf@plt>
cmp    $0xfffffd1c,%r12d
jne    122e <main+0x10e>
lea    0xd31(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x6,%ecx
call   1030 <printf@plt>
cmp    $0xfffffd10,%r12d
jne    123b <main+0x11b>
lea    0xd0d(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x7,%ecx
call   1030 <printf@plt>
cmp    $0xfffffd04,%r12d
jne    1248 <main+0x128>
lea    0xce9(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x8,%ecx
call   1030 <printf@plt>
cmp    $0xfffffcf8,%r12d
jne    1180 <main+0x60>
lea    0xcc5(%rip),%rdi
mov    (%rsp),%esi
mov    %r13d,%edx
mov    $0x9,%ecx
call   1030 <printf@plt>
jmp    1180 <main+0x60>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O2):
@.str = [10 x i8] c"%d %d %d\0A\00"
define i32 @main() {
br label %1
1: ; preds = %0, %70
%2 = phi i32 [ 1, %0 ], [ %71, %70 ]
br label %3
3: ; preds = %1, %68
%4 = phi i32 [ 1, %1 ], [ %13, %68 ]
%5 = add nuw nsw i32 %4, %2
%6 = mul nuw nsw i32 %5, 100
%7 = mul nuw nsw i32 %4, 10
%8 = add nuw nsw i32 %6, %7
%9 = icmp eq i32 %8, 532
br i1 %9, label %10, label %12
10: ; preds = %3
%11 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 0)
br label %12
12: ; preds = %3, %10
%13 = add nuw nsw i32 %4, 1
%14 = mul nuw nsw i32 %13, 10
%15 = or i32 %6, 2
%16 = add nuw nsw i32 %15, %14
%17 = icmp eq i32 %16, 532
br i1 %17, label %18, label %20
18: ; preds = %12
%19 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 1)
br label %20
20: ; preds = %18, %12
%21 = mul i32 %4, 10
%22 = add i32 %6, %21
%23 = icmp eq i32 %22, 508
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 2)
br label %26
26: ; preds = %24, %20
%27 = mul i32 %4, 10
%28 = add i32 %6, %27
%29 = icmp eq i32 %28, 496
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 3)
br label %32
32: ; preds = %30, %26
%33 = mul i32 %4, 10
%34 = add i32 %6, %33
%35 = icmp eq i32 %34, 484
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 4)
br label %38
38: ; preds = %36, %32
%39 = mul i32 %4, 10
%40 = add i32 %6, %39
%41 = icmp eq i32 %40, 472
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 5)
br label %44
44: ; preds = %42, %38
%45 = mul i32 %4, 10
%46 = add i32 %6, %45
%47 = icmp eq i32 %46, 460
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 6)
br label %50
50: ; preds = %48, %44
%51 = mul i32 %4, 10
%52 = add i32 %6, %51
%53 = icmp eq i32 %52, 448
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 7)
br label %56
56: ; preds = %54, %50
%57 = mul i32 %4, 10
%58 = add i32 %6, %57
%59 = icmp eq i32 %58, 436
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 8)
br label %62
62: ; preds = %60, %56
%63 = mul i32 %4, 10
%64 = add i32 %6, %63
%65 = icmp eq i32 %64, 424
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %2, i32 %4, i32 9)
br label %68
68: ; preds = %66, %62
%69 = icmp eq i32 %13, 10
br i1 %69, label %70, label %3
70: ; preds = %68
%71 = add nuw nsw i32 %2, 1
%72 = icmp eq i32 %71, 10
br i1 %72, label %73, label %1
73: ; preds = %70
%74 = tail call i32 @exit(i32 0)
unreachable
}