#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 scalar_t__ uint8_t;
typedef scalar_t__ uint64_t;
typedef scalar_t__ int8_t;
typedef scalar_t__ int64_t;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, ...);
int main(int argc, char *argv[]) {
  printf("%d\n", argc);
  printf("%d %d %d %d %d %d\n", (uint8_t)(0xff) == (int8_t)(argc - 2),
         (uint8_t)(0xff) == (uint8_t)(argc - 2),
         (uint8_t)(0xff) > (int8_t)(argc - 2),
         (uint8_t)(0xff) < (int8_t)(argc - 2),
         (uint8_t)(0xf) > (int8_t)(argc - 2),
         (uint8_t)(0xf) < (int8_t)(argc - 2));
  printf("%d %d %d %d %d %d\n",
         (uint64_t)(0xffffffffffffffff) == (int64_t)(argc - 2),
         (uint64_t)(0xffffffffffffffff) == (uint64_t)(argc - 2),
         (uint64_t)(0xffffffffffffffff) > (int64_t)(argc - 2),
         (uint64_t)(0xffffffffffffffff) < (int64_t)(argc - 2),
         (uint64_t)(0xffffffffffffff) > (int64_t)(argc - 2),
         (uint64_t)(0xffffffffffffff) < (int64_t)(argc - 2));
  return 0;
}


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    -0x8(%rbp),%esi
lea    0xedf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
mov    $0xff,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%esi
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
mov    $0xff,%eax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edx
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
mov    $0xff,%eax
cmp    %rcx,%rax
setg   %al
and    $0x1,%al
movzbl %al,%ecx
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rdi
mov    $0xff,%eax
cmp    %rdi,%rax
setl   %al
and    $0x1,%al
movzbl %al,%r8d
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rdi
mov    $0xf,%eax
cmp    %rdi,%rax
setg   %al
and    $0x1,%al
movzbl %al,%r9d
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rdi
mov    $0xf,%eax
cmp    %rdi,%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
lea    0xe2a(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
mov    $0xffffffffffffffff,%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%esi
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
mov    $0xffffffffffffffff,%rax
cmp    %rcx,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edx
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rcx
mov    $0xffffffffffffffff,%rax
cmp    %rcx,%rax
setg   %al
and    $0x1,%al
movzbl %al,%ecx
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rdi
mov    $0xffffffffffffffff,%rax
cmp    %rdi,%rax
setl   %al
and    $0x1,%al
movzbl %al,%r8d
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rdi
movabs $0xffffffffffffff,%rax
cmp    %rdi,%rax
setg   %al
and    $0x1,%al
movzbl %al,%r9d
mov    -0x8(%rbp),%eax
sub    $0x2,%eax
movslq %eax,%rdi
movabs $0xffffffffffffff,%rax
cmp    %rdi,%rax
setl   %al
and    $0x1,%al
movzbl %al,%eax
lea    0xd6f(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %edi,%ebx
lea    0xeee(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    -0x2(%rbx),%ebp
xor    %edx,%edx
cmp    $0xff,%ebp
sete   %dl
xor    %ecx,%ecx
xor    %r8d,%r8d
cmp    $0x101,%ebx
setl   %cl
setg   %r8b
xor    %r9d,%r9d
xor    %eax,%eax
cmp    $0x11,%ebx
setl   %r9b
setg   %al
mov    %eax,(%rsp)
lea    0xe9d(%rip),%r14
mov    %r14,%rdi
mov    %edx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
xor    %edx,%edx
cmp    $0xffffffff,%ebp
sete   %dl
xor    %ecx,%ecx
test   %ebx,%ebx
setle  %cl
xor    %r8d,%r8d
cmp    $0x2,%ebx
setge  %r8b
movl   $0x0,(%rsp)
mov    %r14,%rdi
mov    %edx,%esi
mov    $0x1,%r9d
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [19 x i8] c"%d %d %d %d %d %d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* %4
%9 = sub nsw i32 %8, 2
%10 = sext i32 %9 to i64
%11 = icmp eq i64 255, %10
%12 = zext i1 %11 to i32
%13 = load i32, i32* %4
%14 = sub nsw i32 %13, 2
%15 = sext i32 %14 to i64
%16 = icmp eq i64 255, %15
%17 = zext i1 %16 to i32
%18 = load i32, i32* %4
%19 = sub nsw i32 %18, 2
%20 = sext i32 %19 to i64
%21 = icmp sgt i64 255, %20
%22 = zext i1 %21 to i32
%23 = load i32, i32* %4
%24 = sub nsw i32 %23, 2
%25 = sext i32 %24 to i64
%26 = icmp slt i64 255, %25
%27 = zext i1 %26 to i32
%28 = load i32, i32* %4
%29 = sub nsw i32 %28, 2
%30 = sext i32 %29 to i64
%31 = icmp sgt i64 15, %30
%32 = zext i1 %31 to i32
%33 = load i32, i32* %4
%34 = sub nsw i32 %33, 2
%35 = sext i32 %34 to i64
%36 = icmp slt i64 15, %35
%37 = zext i1 %36 to i32
%38 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %12, i32 %17, i32 %22, i32 %27, i32 %32, i32 %37)
%39 = load i32, i32* %4
%40 = sub nsw i32 %39, 2
%41 = sext i32 %40 to i64
%42 = icmp eq i64 -1, %41
%43 = zext i1 %42 to i32
%44 = load i32, i32* %4
%45 = sub nsw i32 %44, 2
%46 = sext i32 %45 to i64
%47 = icmp eq i64 -1, %46
%48 = zext i1 %47 to i32
%49 = load i32, i32* %4
%50 = sub nsw i32 %49, 2
%51 = sext i32 %50 to i64
%52 = icmp sgt i64 -1, %51
%53 = zext i1 %52 to i32
%54 = load i32, i32* %4
%55 = sub nsw i32 %54, 2
%56 = sext i32 %55 to i64
%57 = icmp slt i64 -1, %56
%58 = zext i1 %57 to i32
%59 = load i32, i32* %4
%60 = sub nsw i32 %59, 2
%61 = sext i32 %60 to i64
%62 = icmp sgt i64 72057594037927935, %61
%63 = zext i1 %62 to i32
%64 = load i32, i32* %4
%65 = sub nsw i32 %64, 2
%66 = sext i32 %65 to i64
%67 = icmp slt i64 72057594037927935, %66
%68 = zext i1 %67 to i32
%69 = call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %43, i32 %48, i32 %53, i32 %58, i32 %63, i32 %68)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"%d\0A\00"
@.str.1 = [19 x i8] c"%d %d %d %d %d %d\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32 %0)
%4 = add nsw i32 %0, -2
%5 = icmp eq i32 %4, 255
%6 = zext i1 %5 to i32
%7 = icmp slt i32 %0, 257
%8 = zext i1 %7 to i32
%9 = icmp sgt i32 %0, 257
%10 = zext i1 %9 to i32
%11 = icmp slt i32 %0, 17
%12 = zext i1 %11 to i32
%13 = icmp sgt i32 %0, 17
%14 = zext i1 %13 to i32
%15 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %6, i32 %6, i32 %8, i32 %10, i32 %12, i32 %14)
%16 = icmp eq i32 %4, -1
%17 = zext i1 %16 to i32
%18 = icmp slt i32 %0, 1
%19 = zext i1 %18 to i32
%20 = icmp sgt i32 %0, 1
%21 = zext i1 %20 to i32
%22 = tail call i32 (i8*, i32, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %17, i32 %17, i32 %19, i32 %21, i32 1, i32 0)
ret i32 0
}