#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 sd = 48;
  while (sd < 58) {
    putchar(sd);
    if (sd <= 56) {
      putchar(',');
      putchar(' ');
      sd++;
    } else {
      sd++;
    }
  }
  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)
cmpl   $0x3a,-0x8(%rbp)
jge    1175 <main+0x65>
mov    -0x8(%rbp),%eax
movsbl %al,%edi
call   1030 <putchar@plt>
cmpl   $0x38,-0x8(%rbp)
jg     1167 <main+0x57>
mov    $0x2c,%edi
call   1030 <putchar@plt>
mov    $0x20,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1170 <main+0x60>
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 48, i32* %2
br label %3
3: ; preds = %20, %0
%4 = load i32, i32* %2
%5 = icmp slt i32 %4, 58
br i1 %5, label %6, label %21
6: ; preds = %3
%7 = load i32, i32* %2
%8 = trunc i32 %7 to i8
%9 = call i32 @putchar(i8 signext %8)
%10 = load i32, i32* %2
%11 = icmp sle i32 %10, 56
br i1 %11, label %12, label %17
12: ; preds = %6
%13 = call i32 @putchar(i8 signext 44)
%14 = call i32 @putchar(i8 signext 32)
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %20
17: ; preds = %6
%18 = load i32, i32* %2
%19 = add nsw i32 %18, 1
store i32 %19, i32* %2
br label %20
20: ; preds = %17, %12
br label %3
21: ; preds = %3
%22 = 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
}