#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 i = '0';
  int j = '0';
  while (i <= '9') {
    while (j <= '9') {
      putchar(i);
      putchar(j);
      if ((i != '9') || (j != '9')) {
        putchar(',');
        putchar(' ');
      }
      j++;
    }
    i++;
    j = '0';
  }
  putchar('\n');
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x30,-0x8(%rbp)
movl   $0x30,-0xc(%rbp)
cmpl   $0x39,-0x8(%rbp)
jg     11a7 <main+0x97>
jmp    113c <main+0x2c>
cmpl   $0x39,-0xc(%rbp)
jg     1192 <main+0x82>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
cmpl   $0x39,-0x8(%rbp)
jne    1170 <main+0x60>
cmpl   $0x39,-0xc(%rbp)
je     1184 <main+0x74>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    113c <main+0x2c>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
movl   $0x30,-0xc(%rbp)
jmp    112d <main+0x1d>
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 48, i32* %2
store i32 48, i32* %3
br label %4
4: ; preds = %29, %0
%5 = load i32, i32* %2
%6 = icmp sle i32 %5, 57
br i1 %6, label %7, label %32
7: ; preds = %4
br label %8
8: ; preds = %26, %7
%9 = load i32, i32* %3
%10 = icmp sle i32 %9, 57
br i1 %10, label %11, label %29
11: ; preds = %8
%12 = load i32, i32* %2
%13 = trunc i32 %12 to i8
%14 = call i32 @putchar(i8 signext %13)
%15 = load i32, i32* %3
%16 = trunc i32 %15 to i8
%17 = call i32 @putchar(i8 signext %16)
%18 = load i32, i32* %2
%19 = icmp ne i32 %18, 57
br i1 %19, label %23, label %20
20: ; preds = %11
%21 = load i32, i32* %3
%22 = icmp ne i32 %21, 57
br i1 %22, label %23, label %26
23: ; preds = %20, %11
%24 = call i32 @putchar(i8 signext 44)
%25 = call i32 @putchar(i8 signext 32)
br label %26
26: ; preds = %23, %20
%27 = load i32, i32* %3
%28 = add nsw i32 %27, 1
store i32 %28, i32* %3
br label %8
29: ; preds = %8
%30 = load i32, i32* %2
%31 = add nsw i32 %30, 1
store i32 %31, i32* %2
store i32 48, i32* %3
br label %4
32: ; preds = %4
%33 = call i32 @putchar(i8 signext 10)
ret i32 0
}

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