#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*/ printf(char *);
int /*<<< orphan*/ test_char();
int /*<<< orphan*/ test_double();
int /*<<< orphan*/ test_float();
int /*<<< orphan*/ test_long();
int /*<<< orphan*/ test_short();
int /*<<< orphan*/ test_uchar();
int /*<<< orphan*/ test_ulong();
int /*<<< orphan*/ test_ushort();
int main(void) {
  printf("\nChecking operations on cl_types.\nNumbers, where presented, should "
         "walk upward from 0, with step of 1:\n");
  test_char();
  test_uchar();
  test_short();
  test_ushort();
  test_long();
  test_ulong();
  test_float();
  test_double();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe5a(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <test_char@plt>
mov    $0x0,%al
call   1030 <test_uchar@plt>
mov    $0x0,%al
call   10a0 <test_short@plt>
mov    $0x0,%al
call   1070 <test_ushort@plt>
mov    $0x0,%al
call   1060 <test_long@plt>
mov    $0x0,%al
call   10b0 <test_ulong@plt>
mov    $0x0,%al
call   1050 <test_float@plt>
mov    $0x0,%al
call   1080 <test_double@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe68(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1090 <test_char@plt>
xor    %eax,%eax
call   1040 <test_uchar@plt>
xor    %eax,%eax
call   10a0 <test_short@plt>
xor    %eax,%eax
call   1070 <test_ushort@plt>
xor    %eax,%eax
call   1060 <test_long@plt>
xor    %eax,%eax
call   10b0 <test_ulong@plt>
xor    %eax,%eax
call   1050 <test_float@plt>
xor    %eax,%eax
call   1080 <test_double@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [104 x i8] c"\0AChecking operations on cl_types.\0ANumbers, where presented, should walk upward from 0, with step of 1:\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([104 x i8], [104 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @test_char()
%4 = call i32 (...) @test_uchar()
%5 = call i32 (...) @test_short()
%6 = call i32 (...) @test_ushort()
%7 = call i32 (...) @test_long()
%8 = call i32 (...) @test_ulong()
%9 = call i32 (...) @test_float()
%10 = call i32 (...) @test_double()
ret i32 0
}

LLVM IR (-O2):
@str = [103 x i8] c"\0AChecking operations on cl_types.\0ANumbers, where presented, should walk upward from 0, with step of 1:\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @test_char()
%3 = tail call i32 (...) @test_uchar()
%4 = tail call i32 (...) @test_short()
%5 = tail call i32 (...) @test_ushort()
%6 = tail call i32 (...) @test_long()
%7 = tail call i32 (...) @test_ulong()
%8 = tail call i32 (...) @test_float()
%9 = tail call i32 (...) @test_double()
ret i32 0
}