#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 main(int argc, char *argv[], char *envp[]) {
  unsigned char cl;
  unsigned char dl;
  printf("Hello, set\n");
  dl = (argc < 3) ? 1 : 0;
  printf("argc <u 3: %d\n", 0 >> 8 & 0xffffff | (dl));
  cl = (argc - 4 >= 0) ? 1 : 0;
  printf("(argc - 4) >= 0: %d\n", 0 >> 8 & 0xffffff | (cl));
  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    %rdx,-0x18(%rbp)
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x3,%edx
cmovl  %ecx,%eax
mov    %al,-0x1a(%rbp)
movzbl -0x1a(%rbp),%esi
or     $0x0,%esi
lea    0xeb3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%edx
sub    $0x4,%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x0,%edx
cmovge %ecx,%eax
mov    %al,-0x19(%rbp)
movzbl -0x19(%rbp),%esi
or     $0x0,%esi
lea    0xe97(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    %edi,%ebx
lea    0xefa(%rip),%rdi
call   1030 <puts@plt>
xor    %esi,%esi
cmp    $0x3,%ebx
setl   %sil
lea    0xec1(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %esi,%esi
cmp    $0x4,%ebx
setge  %sil
lea    0xeb9(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Hello, set\0A\00"
@.str.1 = [15 x i8] c"argc <u 3: %d\0A\00"
@.str.2 = [21 x i8] c"(argc - 4) >= 0: %d\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i8
%9 = alloca i8
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %5
%12 = icmp slt i32 %11, 3
%13 = zext i1 %12 to i64
%14 = select i1 %12, i32 1, i32 0
%15 = trunc i32 %14 to i8
store i8 %15, i8* %9
%16 = load i8, i8* %9
%17 = zext i8 %16 to i32
%18 = or i32 0, %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = load i32, i32* %5
%21 = sub nsw i32 %20, 4
%22 = icmp sge i32 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i32 1, i32 0
%25 = trunc i32 %24 to i8
store i8 %25, i8* %8
%26 = load i8, i8* %8
%27 = zext i8 %26 to i32
%28 = or i32 0, %27
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %28)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [15 x i8] c"argc <u 3: %d\0A\00"
@.str.2 = [21 x i8] c"(argc - 4) >= 0: %d\0A\00"
@str = [11 x i8] c"Hello, set\00"
define i32 @main(i32 %0, i8** nocapture readnone %1, i8** nocapture readnone %2) {
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%5 = icmp slt i32 %0, 3
%6 = zext i1 %5 to i32
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%8 = icmp sgt i32 %0, 3
%9 = zext i1 %8 to i32
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i32 %9)
ret i32 0
}