#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*/ calleeChecks1();
int /*<<< orphan*/ calleeChecks2();
int /*<<< orphan*/ calleeChecks3();
int /*<<< orphan*/ checkForCallee(int *);
int /*<<< orphan*/ checkForCallee2();
int /*<<< orphan*/ checkForCallee3(char **);
int /*<<< orphan*/ checkForCallee4(int *);
int /*<<< orphan*/ checkForCallee5(int *);
int /*<<< orphan*/ inputNonNullA(int *);
int /*<<< orphan*/ notCheckedForCallee(int *);
int main(int argc, char *argv[]) {
  int x;
  int *np = NULL;
  int *uninit;
  checkForCallee(&x);
  checkForCallee(&argc);
  checkForCallee2();
  checkForCallee3(argv);
  notCheckedForCallee(np);
  notCheckedForCallee(&x);
  notCheckedForCallee(uninit);
  notCheckedForCallee(NULL);
  calleeChecks1();
  calleeChecks2();
  calleeChecks3();
  checkForCallee4(&x);
  checkForCallee5(&x);
  inputNonNullA(&x);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
lea    -0x14(%rbp),%rdi
call   10c0 <checkForCallee@plt>
lea    -0x8(%rbp),%rdi
call   10c0 <checkForCallee@plt>
mov    $0x0,%al
call   1080 <checkForCallee2@plt>
mov    -0x10(%rbp),%rdi
call   1030 <checkForCallee3@plt>
mov    -0x20(%rbp),%rdi
call   1070 <notCheckedForCallee@plt>
lea    -0x14(%rbp),%rdi
call   1070 <notCheckedForCallee@plt>
mov    -0x28(%rbp),%rdi
call   1070 <notCheckedForCallee@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <notCheckedForCallee@plt>
mov    $0x0,%al
call   10b0 <calleeChecks1@plt>
mov    $0x0,%al
call   1050 <calleeChecks2@plt>
mov    $0x0,%al
call   10a0 <calleeChecks3@plt>
lea    -0x14(%rbp),%rdi
call   1090 <checkForCallee4@plt>
lea    -0x14(%rbp),%rdi
call   1040 <checkForCallee5@plt>
lea    -0x14(%rbp),%rdi
call   1060 <inputNonNullA@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,(%rsp)
lea    0x4(%rsp),%r14
mov    %r14,%rdi
call   10c0 <checkForCallee@plt>
mov    %rsp,%rdi
call   10c0 <checkForCallee@plt>
xor    %eax,%eax
call   1080 <checkForCallee2@plt>
mov    %rbx,%rdi
call   1030 <checkForCallee3@plt>
xor    %edi,%edi
call   1070 <notCheckedForCallee@plt>
mov    %r14,%rdi
call   1070 <notCheckedForCallee@plt>
call   1070 <notCheckedForCallee@plt>
xor    %edi,%edi
call   1070 <notCheckedForCallee@plt>
xor    %eax,%eax
call   10b0 <calleeChecks1@plt>
xor    %eax,%eax
call   1050 <calleeChecks2@plt>
xor    %eax,%eax
call   10a0 <calleeChecks3@plt>
mov    %r14,%rdi
call   1090 <checkForCallee4@plt>
mov    %r14,%rdi
call   1040 <checkForCallee5@plt>
mov    %r14,%rdi
call   1060 <inputNonNullA@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32* null, i32** %7
%9 = call i32 @checkForCallee(i32* %6)
%10 = call i32 @checkForCallee(i32* %4)
%11 = call i32 (...) @checkForCallee2()
%12 = load i8**, i8*** %5
%13 = call i32 @checkForCallee3(i8** %12)
%14 = load i32*, i32** %7
%15 = call i32 @notCheckedForCallee(i32* %14)
%16 = call i32 @notCheckedForCallee(i32* %6)
%17 = load i32*, i32** %8
%18 = call i32 @notCheckedForCallee(i32* %17)
%19 = call i32 @notCheckedForCallee(i32* null)
%20 = call i32 (...) @calleeChecks1()
%21 = call i32 (...) @calleeChecks2()
%22 = call i32 (...) @calleeChecks3()
%23 = call i32 @checkForCallee4(i32* %6)
%24 = call i32 @checkForCallee5(i32* %6)
%25 = call i32 @inputNonNullA(i32* %6)
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
%5 = bitcast i32* %4 to i8*
%6 = call i32 @checkForCallee(i32* %4)
%7 = call i32 @checkForCallee(i32* %3)
%8 = call i32 (...) @checkForCallee2()
%9 = call i32 @checkForCallee3(i8** %1)
%10 = call i32 @notCheckedForCallee(i32* null)
%11 = call i32 @notCheckedForCallee(i32* %4)
%12 = call i32 @notCheckedForCallee(i32* undef)
%13 = call i32 @notCheckedForCallee(i32* null)
%14 = call i32 (...) @calleeChecks1()
%15 = call i32 (...) @calleeChecks2()
%16 = call i32 (...) @calleeChecks3()
%17 = call i32 @checkForCallee4(i32* %4)
%18 = call i32 @checkForCallee5(i32* %4)
%19 = call i32 @inputNonNullA(i32* %4)
ret i32 0
}