#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 <= 9; n++) {
    for (i = 0; i <= 9; i++) {
      putchar('0' + n);
      putchar('0' + i);
      if (n != 9 || 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   $0x9,-0x8(%rbp)
jg     11ab <main+0x9b>
movl   $0x0,-0xc(%rbp)
cmpl   $0x9,-0xc(%rbp)
jg     1198 <main+0x88>
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   $0x9,-0x8(%rbp)
jne    1171 <main+0x61>
cmpl   $0x9,-0xc(%rbp)
je     1185 <main+0x75>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    118a <main+0x7a>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1137 <main+0x27>
jmp    119d <main+0x8d>
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   %r14
push   %rbx
push   %rax
mov    $0xfffffff7,%r14d
nopw   0x0(%rax,%rax,1)
lea    0x39(%r14),%eax
movsbl %al,%ebx
mov    %ebx,%edi
call   1030 <putchar@plt>
mov    $0x30,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%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>
mov    %ebx,%edi
call   1030 <putchar@plt>
mov    $0x39,%edi
call   1030 <putchar@plt>
test   %r14d,%r14d
je     12a7 <main+0x197>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
add    $0x1,%r14d
jmp    1120 <main+0x10>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
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 = %33, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 9
br i1 %6, label %7, label %36
7: ; preds = %4
store i32 0, i32* %3
br label %8
8: ; preds = %29, %7
%9 = load i32, i32* %3
%10 = icmp sle i32 %9, 9
br i1 %10, label %11, label %32
11: ; preds = %8
%12 = load i32, i32* %2
%13 = add nsw i32 48, %12
%14 = trunc i32 %13 to i8
%15 = call i32 @putchar(i8 signext %14)
%16 = load i32, i32* %3
%17 = add nsw i32 48, %16
%18 = trunc i32 %17 to i8
%19 = call i32 @putchar(i8 signext %18)
%20 = load i32, i32* %2
%21 = icmp ne i32 %20, 9
br i1 %21, label %25, label %22
22: ; preds = %11
%23 = load i32, i32* %3
%24 = icmp ne i32 %23, 9
br i1 %24, label %25, label %28
25: ; preds = %22, %11
%26 = call i32 @putchar(i8 signext 44)
%27 = call i32 @putchar(i8 signext 32)
br label %28
28: ; preds = %25, %22
br label %29
29: ; preds = %28
%30 = load i32, i32* %3
%31 = add nsw i32 %30, 1
store i32 %31, i32* %3
br label %8
32: ; preds = %8
br label %33
33: ; preds = %32
%34 = load i32, i32* %2
%35 = add nsw i32 %34, 1
store i32 %35, i32* %2
br label %4
36: ; preds = %4
%37 = call i32 @putchar(i8 signext 10)
ret i32 0
}

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