#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*/ exit(int);
int /*<<< orphan*/ putchar(int);
int main(int argc, char **argv) {
  int i;
  putchar(0xf);
  for (i = 0; i < 16; i++) {
    putchar(i + ((15 - i) << 4));
  }
  exit(1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0xf,%edi
call   1030 <putchar@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x10,-0x14(%rbp)
jge    1174 <main+0x54>
mov    -0x14(%rbp),%edi
mov    $0xf,%eax
sub    -0x14(%rbp),%eax
shl    $0x4,%eax
add    %eax,%edi
call   1030 <putchar@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1147 <main+0x27>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xf,%edi
call   1030 <putchar@plt>
mov    $0xf0,%edi
call   1030 <putchar@plt>
mov    $0xe1,%edi
call   1030 <putchar@plt>
mov    $0xd2,%edi
call   1030 <putchar@plt>
mov    $0xc3,%edi
call   1030 <putchar@plt>
mov    $0xb4,%edi
call   1030 <putchar@plt>
mov    $0xa5,%edi
call   1030 <putchar@plt>
mov    $0x96,%edi
call   1030 <putchar@plt>
mov    $0x87,%edi
call   1030 <putchar@plt>
mov    $0x78,%edi
call   1030 <putchar@plt>
mov    $0x69,%edi
call   1030 <putchar@plt>
mov    $0x5a,%edi
call   1030 <putchar@plt>
mov    $0x4b,%edi
call   1030 <putchar@plt>
mov    $0x3c,%edi
call   1030 <putchar@plt>
mov    $0x2d,%edi
call   1030 <putchar@plt>
mov    $0x1e,%edi
call   1030 <putchar@plt>
mov    $0xf,%edi
call   1030 <putchar@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @putchar(i32 15)
store i32 0, i32* %6
br label %8
8: ; preds = %18, %2
%9 = load i32, i32* %6
%10 = icmp slt i32 %9, 16
br i1 %10, label %11, label %21
11: ; preds = %8
%12 = load i32, i32* %6
%13 = load i32, i32* %6
%14 = sub nsw i32 15, %13
%15 = shl i32 %14, 4
%16 = add nsw i32 %12, %15
%17 = call i32 @putchar(i32 %16)
br label %18
18: ; preds = %11
%19 = load i32, i32* %6
%20 = add nsw i32 %19, 1
store i32 %20, i32* %6
br label %8
21: ; preds = %8
%22 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @putchar(i32 15)
%4 = tail call i32 @putchar(i32 240)
%5 = tail call i32 @putchar(i32 225)
%6 = tail call i32 @putchar(i32 210)
%7 = tail call i32 @putchar(i32 195)
%8 = tail call i32 @putchar(i32 180)
%9 = tail call i32 @putchar(i32 165)
%10 = tail call i32 @putchar(i32 150)
%11 = tail call i32 @putchar(i32 135)
%12 = tail call i32 @putchar(i32 120)
%13 = tail call i32 @putchar(i32 105)
%14 = tail call i32 @putchar(i32 90)
%15 = tail call i32 @putchar(i32 75)
%16 = tail call i32 @putchar(i32 60)
%17 = tail call i32 @putchar(i32 45)
%18 = tail call i32 @putchar(i32 30)
%19 = tail call i32 @putchar(i32 15)
%20 = tail call i32 @exit(i32 1)
unreachable
}