#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*/ boil(int *);
int /*<<< orphan*/ display_status(int);
int /*<<< orphan*/ fry(int);
int /*<<< orphan*/ printf(char *);
int main(int argc, char **argv) {
  int n = 5;
  printf("Initial: ");
  display_status(n);
  printf("\n");
  fry(n);
  printf("After fry(): ");
  display_status(n);
  printf("\n");
  boil(&n);
  printf("After boil(): ");
  display_status(n);
  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)
movl   $0x5,-0x14(%rbp)
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
call   1030 <display_status@plt>
lea    0xe92(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
call   1060 <fry@plt>
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
call   1030 <display_status@plt>
lea    0xe6a(%rip),%rdi
call   1040 <printf@plt>
lea    -0x14(%rbp),%rdi
call   1050 <boil@plt>
lea    0xe65(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%edi
call   1030 <display_status@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
movl   $0x5,0x4(%rsp)
lea    0xea0(%rip),%rdi
call   1050 <printf@plt>
mov    $0x5,%edi
call   1040 <display_status@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x5,%edi
call   1070 <fry@plt>
lea    0xe80(%rip),%rdi
call   1050 <printf@plt>
mov    $0x5,%edi
call   1040 <display_status@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0x4(%rsp),%rdi
call   1060 <boil@plt>
lea    0xe64(%rip),%rdi
call   1050 <printf@plt>
mov    0x4(%rsp),%edi
call   1040 <display_status@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"Initial: \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [14 x i8] c"After fry(): \00"
@.str.3 = [15 x i8] c"After boil(): \00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 5, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %6
%9 = call i32 @display_status(i32 %8)
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* %6
%12 = call i32 @fry(i32 %11)
%13 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* %6
%15 = call i32 @display_status(i32 %14)
%16 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%17 = call i32 @boil(i32* %6)
%18 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%19 = load i32, i32* %6
%20 = call i32 @display_status(i32 %19)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"Initial: \00"
@.str.2 = [14 x i8] c"After fry(): \00"
@.str.3 = [15 x i8] c"After boil(): \00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = bitcast i32* %3 to i8*
store i32 5, i32* %3
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @display_status(i32 5)
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 @fry(i32 5)
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @display_status(i32 5)
%11 = tail call i32 @putchar(i32 10)
%12 = call i32 @boil(i32* %3)
%13 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32, i32* %3
%15 = call i32 @display_status(i32 %14)
ret i32 0
}