#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 area(int, int);
int /*<<< orphan*/ printf(char *, int);
int /*<<< orphan*/ square1();
int /*<<< orphan*/ square2(int);
int square3();
int square4(int);
int main(void) {
  square1();
  square2(7);
  printf("The value of square3() is %d\n", square3());
  printf("The value of square4(5) is %d\n", square4(5));
  printf("The value of area(3,7) is %d\n", area(3, 7));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1040 <square1@plt>
mov    $0x7,%edi
call   1070 <square2@plt>
mov    $0x0,%al
call   1060 <square3@plt>
mov    %eax,%esi
lea    0xe7b(%rip),%rdi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1080 <square4@plt>
mov    %eax,%esi
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1050 <area@plt>
mov    %eax,%esi
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   1040 <square1@plt>
mov    $0x7,%edi
call   1070 <square2@plt>
xor    %eax,%eax
call   1060 <square3@plt>
lea    0xe80(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x5,%edi
call   1080 <square4@plt>
lea    0xe86(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
call   1050 <area@plt>
lea    0xe88(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [30 x i8] c"The value of square3() is %d\0A\00"
@.str.1 = [31 x i8] c"The value of square4(5) is %d\0A\00"
@.str.2 = [30 x i8] c"The value of area(3,7) is %d\0A\00"
define i32 @main() {
%1 = call i32 (...) @square1()
%2 = call i32 @square2(i32 7)
%3 = call i32 (...) @square3()
%4 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = call i32 @square4(i32 5)
%6 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = call i32 @area(i32 3, i32 7)
%8 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %7)
ret i32 0
}

LLVM IR (-O2):
@.str = [30 x i8] c"The value of square3() is %d\0A\00"
@.str.1 = [31 x i8] c"The value of square4(5) is %d\0A\00"
@.str.2 = [30 x i8] c"The value of area(3,7) is %d\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @square1()
%2 = tail call i32 @square2(i32 7)
%3 = tail call i32 (...) @square3()
%4 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i32 %3)
%5 = tail call i32 @square4(i32 5)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = tail call i32 @area(i32 3, i32 7)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %7)
ret i32 0
}