#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
main() {
  size_t a, b, c;
  a = 2097152000;
  b = 2101975680;
  c = a / 100;
  fprintf(stderr, "sizeof(size_t) = %d\n", sizeof(size_t));
  fprintf(stderr, "a = %d\n", a);
  fprintf(stderr, "b = %d\n", b);
  fprintf(stderr, "c = %d\n", c);
  fprintf(stderr, "a - b = %u\n", a - b);
  fprintf(stderr, "a - b = %d\n", a - b);
  if ((a - b) < c)
    fprintf(stderr, "(a - b) < c: true\n");
  else
    fprintf(stderr, "(a - b) < c: false\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movq   $0x7d000000,-0x10(%rbp)
7d
movq   $0x7d499a80,-0x18(%rbp)
7d
mov    -0x10(%rbp),%rax
mov    $0x64,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,-0x20(%rbp)
mov    0x2e98(%rip),%rax
mov    (%rax),%edi
lea    0xeaf(%rip),%rsi
mov    $0x8,%edx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e7c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xea4(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e61(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0xea9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e46(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
lea    0xe76(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2b(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
sub    -0x18(%rbp),%rdx
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e0c(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
sub    -0x18(%rbp),%rdx
lea    0xe4c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x10(%rbp),%rax
sub    -0x18(%rbp),%rax
cmp    -0x20(%rbp),%rax
jae    121a <main+0x10a>
mov    0x2ddb(%rip),%rax
mov    (%rax),%edi
lea    0xe2f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
jmp    1231 <main+0x121>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
mov    $0x8,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
mov    $0x7d000000,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeea(%rip),%rsi
mov    $0x7d499a80,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xebd(%rip),%rsi
mov    $0x1400000,%edx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xeb0(%rip),%rsi
mov    $0xffffffffffb66580,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xea5(%rip),%rsi
mov    $0xffffffffffb66580,%rdx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe9a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [21 x i8] c"sizeof(size_t) = %d\0A\00"
@.str.1 = [8 x i8] c"a = %d\0A\00"
@.str.2 = [8 x i8] c"b = %d\0A\00"
@.str.3 = [8 x i8] c"c = %d\0A\00"
@.str.4 = [12 x i8] c"a - b = %u\0A\00"
@.str.5 = [12 x i8] c"a - b = %d\0A\00"
@.str.6 = [19 x i8] c"(a - b) < c: true\0A\00"
@.str.7 = [20 x i8] c"(a - b) < c: false\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i64
store i32 0, i32* %1
store i64 2097152000, i64* %2
store i64 2101975680, i64* %3
%5 = load i64, i64* %2
%6 = udiv i64 %5, 100
store i64 %6, i64* %4
%7 = load i32, i32* @stderr
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i64 8)
%9 = load i32, i32* @stderr
%10 = load i64, i64* %2
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i64 %10)
%12 = load i32, i32* @stderr
%13 = load i64, i64* %3
%14 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 %13)
%15 = load i32, i32* @stderr
%16 = load i64, i64* %4
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 %16)
%18 = load i32, i32* @stderr
%19 = load i64, i64* %2
%20 = load i64, i64* %3
%21 = sub i64 %19, %20
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 %21)
%23 = load i32, i32* @stderr
%24 = load i64, i64* %2
%25 = load i64, i64* %3
%26 = sub i64 %24, %25
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i64 %26)
%28 = load i64, i64* %2
%29 = load i64, i64* %3
%30 = sub i64 %28, %29
%31 = load i64, i64* %4
%32 = icmp ult i64 %30, %31
br i1 %32, label %33, label %36
33: ; preds = %0
%34 = load i32, i32* @stderr
%35 = call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %39
36: ; preds = %0
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
br label %39
39: ; preds = %36, %33
%40 = load i32, i32* %1
ret i32 %40
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [21 x i8] c"sizeof(size_t) = %d\0A\00"
@.str.1 = [8 x i8] c"a = %d\0A\00"
@.str.2 = [8 x i8] c"b = %d\0A\00"
@.str.3 = [8 x i8] c"c = %d\0A\00"
@.str.4 = [12 x i8] c"a - b = %u\0A\00"
@.str.5 = [12 x i8] c"a - b = %d\0A\00"
@.str.7 = [20 x i8] c"(a - b) < c: false\0A\00"
define i32 @main() {
%1 = load i32, i32* @stderr
%2 = tail call i32 (i32, i8*, ...) @fprintf(i32 %1, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i64 8)
%3 = load i32, i32* @stderr
%4 = tail call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i64 2097152000)
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i64 2101975680)
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 20971520)
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0), i64 -4823680)
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i64 -4823680)
%13 = load i32, i32* @stderr
%14 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}