#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*/ putchar(char);
int main(void) {
  int n;
  int i;
  for (n = 0; n <= 8; n++) {
    for (i = 1; i <= 9; i++) {
      if (n < i) {
        putchar('0' + n);
        putchar('0' + i);
        if (n != 8 || i != 9) {
          putchar(',');
          putchar(' ');
        }
      }
    }
  }
  putchar('\n');
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x8,-0x8(%rbp)
jg     11bc <main+0xac>
movl   $0x1,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jg     11a9 <main+0x99>
mov    -0x8(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1196 <main+0x86>
mov    -0x8(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
cmpl   $0x8,-0x8(%rbp)
jne    117d <main+0x6d>
cmpl   $0x9,-0xc(%rbp)
je     1191 <main+0x81>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1196 <main+0x86>
jmp    119b <main+0x8b>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1137 <main+0x27>
jmp    11ae <main+0x9e>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
lea    0x30(%rbx),%ebp
cmp    $0x1,%ebx
je     1157 <main+0x47>
test   %ebx,%ebx
jne    12a0 <main+0x190>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x31,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x32,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x33,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x34,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x35,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x36,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x37,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x38,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
movsbl %bpl,%edi
call   1030 <putchar@plt>
mov    $0x39,%edi
call   1030 <putchar@plt>
cmp    $0x8,%ebx
je     12d8 <main+0x1c8>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
jmp    1120 <main+0x10>
nopl   0x0(%rax)
cmp    $0x2,%ebx
jbe    117e <main+0x6e>
cmp    $0x3,%ebx
je     11a5 <main+0x95>
cmp    $0x4,%ebx
jbe    11cc <main+0xbc>
cmp    $0x5,%ebx
je     11f3 <main+0xe3>
cmp    $0x6,%ebx
jbe    121a <main+0x10a>
cmp    $0x7,%ebx
je     1241 <main+0x131>
jmp    1268 <main+0x158>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %4
4: ; preds = %38, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 8
br i1 %6, label %7, label %41
7: ; preds = %4
store i32 1, i32* %3
br label %8
8: ; preds = %34, %7
%9 = load i32, i32* %3
%10 = icmp sle i32 %9, 9
br i1 %10, label %11, label %37
11: ; preds = %8
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %33
15: ; preds = %11
%16 = load i32, i32* %2
%17 = add nsw i32 48, %16
%18 = trunc i32 %17 to i8
%19 = call i32 @putchar(i8 signext %18)
%20 = load i32, i32* %3
%21 = add nsw i32 48, %20
%22 = trunc i32 %21 to i8
%23 = call i32 @putchar(i8 signext %22)
%24 = load i32, i32* %2
%25 = icmp ne i32 %24, 8
br i1 %25, label %29, label %26
26: ; preds = %15
%27 = load i32, i32* %3
%28 = icmp ne i32 %27, 9
br i1 %28, label %29, label %32
29: ; preds = %26, %15
%30 = call i32 @putchar(i8 signext 44)
%31 = call i32 @putchar(i8 signext 32)
br label %32
32: ; preds = %29, %26
br label %33
33: ; preds = %32, %11
br label %34
34: ; preds = %33
%35 = load i32, i32* %3
%36 = add nsw i32 %35, 1
store i32 %36, i32* %3
br label %8
37: ; preds = %8
br label %38
38: ; preds = %37
%39 = load i32, i32* %2
%40 = add nsw i32 %39, 1
store i32 %40, i32* %2
br label %4
41: ; preds = %4
%42 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
br label %1
1: ; preds = %61, %0
%2 = phi i32 [ 0, %0 ], [ %64, %61 ]
%3 = trunc i32 %2 to i8
%4 = add i8 %3, 48
%5 = icmp eq i32 %2, 8
switch i32 %2, label %16 [
i32 0, label %6
i32 1, label %11
]
6: ; preds = %1
%7 = tail call i32 @putchar(i8 signext %4)
%8 = tail call i32 @putchar(i8 signext 49)
%9 = tail call i32 @putchar(i8 signext 44)
%10 = tail call i32 @putchar(i8 signext 32)
br label %11
11: ; preds = %1, %6
%12 = tail call i32 @putchar(i8 signext %4)
%13 = tail call i32 @putchar(i8 signext 50)
%14 = tail call i32 @putchar(i8 signext 44)
%15 = tail call i32 @putchar(i8 signext 32)
br label %18
16: ; preds = %1
%17 = icmp ult i32 %2, 3
br i1 %17, label %18, label %23
18: ; preds = %11, %16
%19 = tail call i32 @putchar(i8 signext %4)
%20 = tail call i32 @putchar(i8 signext 51)
%21 = tail call i32 @putchar(i8 signext 44)
%22 = tail call i32 @putchar(i8 signext 32)
br label %25
23: ; preds = %16
%24 = icmp eq i32 %2, 3
br i1 %24, label %25, label %30
25: ; preds = %18, %23
%26 = tail call i32 @putchar(i8 signext %4)
%27 = tail call i32 @putchar(i8 signext 52)
%28 = tail call i32 @putchar(i8 signext 44)
%29 = tail call i32 @putchar(i8 signext 32)
br label %32
30: ; preds = %23
%31 = icmp ult i32 %2, 5
br i1 %31, label %32, label %37
32: ; preds = %25, %30
%33 = tail call i32 @putchar(i8 signext %4)
%34 = tail call i32 @putchar(i8 signext 53)
%35 = tail call i32 @putchar(i8 signext 44)
%36 = tail call i32 @putchar(i8 signext 32)
br label %39
37: ; preds = %30
%38 = icmp eq i32 %2, 5
br i1 %38, label %39, label %44
39: ; preds = %32, %37
%40 = tail call i32 @putchar(i8 signext %4)
%41 = tail call i32 @putchar(i8 signext 54)
%42 = tail call i32 @putchar(i8 signext 44)
%43 = tail call i32 @putchar(i8 signext 32)
br label %46
44: ; preds = %37
%45 = icmp ult i32 %2, 7
br i1 %45, label %46, label %51
46: ; preds = %39, %44
%47 = tail call i32 @putchar(i8 signext %4)
%48 = tail call i32 @putchar(i8 signext 55)
%49 = tail call i32 @putchar(i8 signext 44)
%50 = tail call i32 @putchar(i8 signext 32)
br label %53
51: ; preds = %44
%52 = icmp eq i32 %2, 7
br i1 %52, label %53, label %58
53: ; preds = %51, %46
%54 = tail call i32 @putchar(i8 signext %4)
%55 = tail call i32 @putchar(i8 signext 56)
%56 = tail call i32 @putchar(i8 signext 44)
%57 = tail call i32 @putchar(i8 signext 32)
br label %58
58: ; preds = %51, %53
%59 = tail call i32 @putchar(i8 signext %4)
%60 = tail call i32 @putchar(i8 signext 57)
br i1 %5, label %65, label %61
61: ; preds = %58
%62 = tail call i32 @putchar(i8 signext 44)
%63 = tail call i32 @putchar(i8 signext 32)
%64 = add nuw nsw i32 %2, 1
br label %1
65: ; preds = %58
%66 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}