#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 */
typedef int /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
int main() {
  int n;
  unsigned short s1 = 10;
  unsigned int s2 = 10;
  size_t s3 = 10;
  char buf[10];
  n = -1;
  if (n < s1)
    printf("-1 < 10 (unsigned short) \n");
  else
    printf("-1 >= 10 (unsigned short)\n");
  if (n < s2)
    printf("-1 < 10 (unsigned int) \n");
  else
    printf("-1 >= 10 (unsigned int) \n");
  if (n < s3)
    printf("-1 < 10 (size_t) \n");
  else
    printf("-1 >= 10 (size_t) \n");
  if (n < sizeof(buf))
    printf("-1 < 10 (sizeof(buf)) \n");
  else
    printf("-1 >= 10 (sizeof(buf)) \n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movw   $0xa,-0xa(%rbp)
movl   $0xa,-0x10(%rbp)
movq   $0xa,-0x18(%rbp)
movl   $0xffffffff,-0x8(%rbp)
mov    -0x8(%rbp),%eax
movzwl -0xa(%rbp),%ecx
cmp    %ecx,%eax
jge    115b <main+0x4b>
lea    0xeaf(%rip),%rdi
call   1030 <printf@plt>
jmp    1167 <main+0x57>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
cmp    -0x10(%rbp),%eax
jae    1184 <main+0x74>
lea    0xebc(%rip),%rdi
call   1030 <printf@plt>
jmp    1190 <main+0x80>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
cmp    -0x18(%rbp),%rax
jae    11af <main+0x9f>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
jmp    11bb <main+0xab>
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
movslq -0x8(%rbp),%rax
cmp    $0xa,%rax
jae    11da <main+0xca>
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
jmp    11e6 <main+0xd6>
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef6(%rip),%rdi
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0a(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"-1 < 10 (unsigned short) \0A\00"
@.str.1 = [27 x i8] c"-1 >= 10 (unsigned short)\0A\00"
@.str.2 = [25 x i8] c"-1 < 10 (unsigned int) \0A\00"
@.str.3 = [26 x i8] c"-1 >= 10 (unsigned int) \0A\00"
@.str.4 = [19 x i8] c"-1 < 10 (size_t) \0A\00"
@.str.5 = [20 x i8] c"-1 >= 10 (size_t) \0A\00"
@.str.6 = [24 x i8] c"-1 < 10 (sizeof(buf)) \0A\00"
@.str.7 = [25 x i8] c"-1 >= 10 (sizeof(buf)) \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i16
%4 = alloca i32
%5 = alloca i64
%6 = alloca [10 x i8]
store i32 0, i32* %1
store i16 10, i16* %3
store i32 10, i32* %4
store i64 10, i64* %5
store i32 -1, i32* %2
%7 = load i32, i32* %2
%8 = load i16, i16* %3
%9 = zext i16 %8 to i32
%10 = icmp slt i32 %7, %9
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
br label %15
13: ; preds = %0
%14 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
br label %15
15: ; preds = %13, %11
%16 = load i32, i32* %2
%17 = load i32, i32* %4
%18 = icmp ult i32 %16, %17
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
br label %23
21: ; preds = %15
%22 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
%24 = load i32, i32* %2
%25 = sext i32 %24 to i64
%26 = load i64, i64* %5
%27 = icmp ult i64 %25, %26
br i1 %27, label %28, label %30
28: ; preds = %23
%29 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %32
30: ; preds = %23
%31 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %32
32: ; preds = %30, %28
%33 = load i32, i32* %2
%34 = sext i32 %33 to i64
%35 = icmp ult i64 %34, 10
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
br label %40
38: ; preds = %32
%39 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %40
40: ; preds = %38, %36
ret i32 0
}

LLVM IR (-O2):
@str = [26 x i8] c"-1 < 10 (unsigned short) \00"
@str.8 = [25 x i8] c"-1 >= 10 (unsigned int) \00"
@str.9 = [19 x i8] c"-1 >= 10 (size_t) \00"
@str.10 = [24 x i8] c"-1 >= 10 (sizeof(buf)) \00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.8, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.10, i64 0, i64 0))
ret i32 0
}