#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 EXIT_SUCCESS;
int INT_MIN;
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  int val1 = INT_MIN;
  if ((val1 > 0) || (val1 - 1 < 0))
    printf("true\n");
  else
    printf("false; %d - 1 = %d\n", INT_MIN, INT_MIN - 1);
  if ((val1 & 7) != 7 || (val1 << 29 < 0))
    printf("true\n");
  int val2 = 65535;
  int res2 = val2 * val2;
  if ((val2 * val2) >= 0)
    printf("true\n");
  else
    printf("false; %d(%#x) * %d(%#x) = %d(%#x)\n", val2, val2, val2, val2, res2,
           res2);
  if ((val2 < 0) || (-val2 <= 0))
    printf("true\n");
  if ((val1 > 0) || (val1 >= 0))
    printf("true\n");
  else
    printf("false; (%d > 0) || (%d >= 0)\n", val1, val1);
  return (EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2ec2(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x8(%rbp)
cmpl   $0x0,-0x8(%rbp)
jg     1144 <main+0x34>
mov    -0x8(%rbp),%eax
sub    $0x1,%eax
cmp    $0x0,%eax
jge    1157 <main+0x47>
lea    0xeb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    117a <main+0x6a>
mov    0x2e8a(%rip),%rax
mov    (%rax),%esi
mov    0x2e81(%rip),%rax
mov    (%rax),%edx
sub    $0x1,%edx
lea    0xe93(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x7,%eax
cmp    $0x7,%eax
jne    1198 <main+0x88>
mov    -0x8(%rbp),%eax
shl    $0x1d,%eax
cmp    $0x0,%eax
jge    11a6 <main+0x96>
lea    0xe61(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0xffff,-0xc(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
mov    %eax,-0x10(%rbp)
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
cmp    $0x0,%eax
jl     11da <main+0xca>
lea    0xe32(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11ff <main+0xef>
mov    -0xc(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0xc(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    -0x10(%rbp),%r9d
mov    -0x10(%rbp),%eax
lea    0xe25(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0xc(%rbp)
jl     1217 <main+0x107>
xor    %eax,%eax
sub    -0xc(%rbp),%eax
cmp    $0x0,%eax
jg     1225 <main+0x115>
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x8(%rbp)
jg     1239 <main+0x129>
cmpl   $0x0,-0x8(%rbp)
jl     124c <main+0x13c>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1260 <main+0x150>
mov    -0x8(%rbp),%esi
mov    -0x8(%rbp),%edx
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2d71(%rip),%rax
mov    (%rax),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    0x2ebd(%rip),%rax
mov    (%rax),%ebx
lea    0xf0e(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
movl   $0xfffe0001,(%rsp)
lea    0xeae(%rip),%rdi
mov    $0xffff,%esi
mov    $0xffff,%edx
mov    $0xffff,%ecx
mov    $0xffff,%r8d
mov    $0xfffe0001,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
test   %ebx,%ebx
js     118e <main+0x6e>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
jmp    11a0 <main+0x80>
lea    0xe8f(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e31(%rip),%rax
mov    (%rax),%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
@INT_MIN = global i32 0
@.str.2 = [36 x i8] c"false; %d(%#x) * %d(%#x) = %d(%#x)\0A\00"
@.str.3 = [30 x i8] c"false; (%d > 0) || (%d >= 0)\0A\00"
@EXIT_SUCCESS = global i32 0
@str.6 = [5 x i8] c"true\00"
define i32 @main() {
%1 = load i32, i32* @INT_MIN
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32 65535, i32 65535, i32 65535, i32 65535, i32 -131071, i32 -131071)
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0))
%6 = icmp sgt i32 %1, -1
br i1 %6, label %7, label %9
7: ; preds = %0
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @str.6, i64 0, i64 0))
br label %11
9: ; preds = %0
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0), i32 %1, i32 %1)
br label %11
11: ; preds = %9, %7
%12 = load i32, i32* @EXIT_SUCCESS
ret i32 %12
}