#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*/ addglb(char *, char, char, int);
int /*<<< orphan*/ bob(int);
int /*<<< orphan*/ carl(int, int);
int /*<<< orphan*/ dan(char);
int /*<<< orphan*/ dude(int);
int /*<<< orphan*/ dude2(int, int);
int /*<<< orphan*/ eddie(char, int);
int /*<<< orphan*/ empty();
int gcd(int, int);
int /*<<< orphan*/ herbert(char *);
int /*<<< orphan*/ printf(char *, int);
main() {
  char b;
  int a;
  empty();
  a = gcd(200, 100);
  printf("GCD: %d\n", a);
  addglb("dude", 'b', 'c', 11);
  dude(5);
  dude2(5, 6);
  bob(5);
  carl(6, 7);
  dan('B');
  eddie('C', 69);
  herbert("rob\n");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   10a0 <empty@plt>
mov    $0xc8,%edi
mov    $0x64,%esi
call   10d0 <gcd@plt>
mov    %eax,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xe25(%rip),%rdi
call   1060 <printf@plt>
lea    0xe22(%rip),%rdi
mov    $0x62,%esi
mov    $0x63,%edx
mov    $0xb,%ecx
call   1040 <addglb@plt>
mov    $0x5,%edi
call   1070 <dude@plt>
mov    $0x5,%edi
mov    $0x6,%esi
call   1080 <dude2@plt>
mov    $0x5,%edi
call   1090 <bob@plt>
mov    $0x6,%edi
mov    $0x7,%esi
call   10c0 <carl@plt>
mov    $0x42,%edi
call   1050 <dan@plt>
mov    $0x43,%edi
mov    $0x45,%esi
call   10b0 <eddie@plt>
lea    0xdc1(%rip),%rdi
call   1030 <herbert@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %eax,%eax
call   10a0 <empty@plt>
mov    $0xc8,%edi
mov    $0x64,%esi
call   10d0 <gcd@plt>
lea    0xe32(%rip),%rdi
mov    %eax,%esi
call   1060 <printf@plt>
lea    0xe2d(%rip),%rdi
mov    $0x62,%esi
mov    $0x63,%edx
mov    $0xb,%ecx
call   1040 <addglb@plt>
mov    $0x5,%edi
call   1070 <dude@plt>
mov    $0x5,%edi
mov    $0x6,%esi
call   1080 <dude2@plt>
mov    $0x5,%edi
call   1090 <bob@plt>
mov    $0x6,%edi
mov    $0x7,%esi
call   10c0 <carl@plt>
mov    $0x42,%edi
call   1050 <dan@plt>
mov    $0x43,%edi
mov    $0x45,%esi
call   10b0 <eddie@plt>
lea    0xdcc(%rip),%rdi
call   1030 <herbert@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"GCD: %d\0A\00"
@.str.1 = [5 x i8] c"dude\00"
@.str.2 = [5 x i8] c"rob\0A\00"
define i32 @main() {
%1 = alloca i8
%2 = alloca i32
%3 = call i32 (...) @empty()
%4 = call i32 @gcd(i32 200, i32 100)
store i32 %4, i32* %2
%5 = load i32, i32* %2
%6 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %5)
%7 = call i32 @addglb(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8 signext 98, i8 signext 99, i32 11)
%8 = call i32 @dude(i32 5)
%9 = call i32 @dude2(i32 5, i32 6)
%10 = call i32 @bob(i32 5)
%11 = call i32 @carl(i32 6, i32 7)
%12 = call i32 @dan(i8 signext 66)
%13 = call i32 @eddie(i8 signext 67, i32 69)
%14 = call i32 @herbert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"GCD: %d\0A\00"
@.str.1 = [5 x i8] c"dude\00"
@.str.2 = [5 x i8] c"rob\0A\00"
define i32 @main() {
%1 = tail call i32 (...) @empty()
%2 = tail call i32 @gcd(i32 200, i32 100)
%3 = tail call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %2)
%4 = tail call i32 @addglb(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i8 signext 98, i8 signext 99, i32 11)
%5 = tail call i32 @dude(i32 5)
%6 = tail call i32 @dude2(i32 5, i32 6)
%7 = tail call i32 @bob(i32 5)
%8 = tail call i32 @carl(i32 6, i32 7)
%9 = tail call i32 @dan(i8 signext 66)
%10 = tail call i32 @eddie(i8 signext 67, i32 69)
%11 = tail call i32 @herbert(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
ret i32 0
}