#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;
  for (n = 0; n <= 9; n++) {
    putchar('0' + n);
    if (n != 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     116f <main+0x5f>
mov    -0x8(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <putchar@plt>
cmpl   $0x9,-0x8(%rbp)
je     115c <main+0x4c>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
jmp    1161 <main+0x51>
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   %rax
mov    $0x30,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%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    $0x32,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%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    $0x34,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%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    $0x36,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%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    $0x38,%edi
call   1030 <putchar@plt>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    $0x39,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %3
3: ; preds = %17, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 9
br i1 %5, label %6, label %20
6: ; preds = %3
%7 = load i32, i32* %2
%8 = add nsw i32 48, %7
%9 = trunc i32 %8 to i8
%10 = call i32 @putchar(i8 signext %9)
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 9
br i1 %12, label %13, label %16
13: ; preds = %6
%14 = call i32 @putchar(i8 signext 44)
%15 = call i32 @putchar(i8 signext 32)
br label %16
16: ; preds = %13, %6
br label %17
17: ; preds = %16
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %3
20: ; preds = %3
%21 = call i32 @putchar(i8 signext 10)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @putchar(i8 signext 48)
%2 = tail call i32 @putchar(i8 signext 44)
%3 = tail call i32 @putchar(i8 signext 32)
%4 = tail call i32 @putchar(i8 signext 49)
%5 = tail call i32 @putchar(i8 signext 44)
%6 = tail call i32 @putchar(i8 signext 32)
%7 = tail call i32 @putchar(i8 signext 50)
%8 = tail call i32 @putchar(i8 signext 44)
%9 = tail call i32 @putchar(i8 signext 32)
%10 = tail call i32 @putchar(i8 signext 51)
%11 = tail call i32 @putchar(i8 signext 44)
%12 = tail call i32 @putchar(i8 signext 32)
%13 = tail call i32 @putchar(i8 signext 52)
%14 = tail call i32 @putchar(i8 signext 44)
%15 = tail call i32 @putchar(i8 signext 32)
%16 = tail call i32 @putchar(i8 signext 53)
%17 = tail call i32 @putchar(i8 signext 44)
%18 = tail call i32 @putchar(i8 signext 32)
%19 = tail call i32 @putchar(i8 signext 54)
%20 = tail call i32 @putchar(i8 signext 44)
%21 = tail call i32 @putchar(i8 signext 32)
%22 = tail call i32 @putchar(i8 signext 55)
%23 = tail call i32 @putchar(i8 signext 44)
%24 = tail call i32 @putchar(i8 signext 32)
%25 = tail call i32 @putchar(i8 signext 56)
%26 = tail call i32 @putchar(i8 signext 44)
%27 = tail call i32 @putchar(i8 signext 32)
%28 = tail call i32 @putchar(i8 signext 57)
%29 = tail call i32 @putchar(i8 signext 10)
ret i32 0
}