int main() {
  char *s = "I am Job. Yes?";
  char str[30];
  countdown(5);
  printf("\n");
  printf("%u\n", add(3, 7));
  printf("\n");
  printf("%u\n", multiply(3, 7));
  printf("\n");
  printf("%u\n", power(3, 7));
  printf("\n");
  output(s);
  printf("\n");
  printf("%u\n", length(s));
  printf("%u\n", howMany('e', s));
  reverse(s);
  printf("\n");
  copy(str, s);
  printf("%s\n", str);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe4a(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    $0x5,%edi
mov    $0x0,%al
call   1080 <countdown@plt>
lea    0xe48(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
mov    $0x0,%al
call   1050 <add@plt>
mov    %eax,%esi
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
mov    $0x0,%al
call   1070 <multiply@plt>
mov    %eax,%esi
lea    0xdf2(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    $0x3,%edi
mov    $0x7,%esi
mov    $0x0,%al
call   1060 <power@plt>
mov    %eax,%esi
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1090 <output@plt>
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1040 <length@plt>
mov    %eax,%esi
lea    0xd81(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    $0x65,%edi
mov    $0x0,%al
call   10c0 <howMany@plt>
mov    %eax,%esi
lea    0xd61(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1030 <reverse@plt>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
lea    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   10b0 <copy@plt>
lea    -0x30(%rbp),%rsi
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   10a0 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    $0x5,%edi
xor    %eax,%eax
call   10a0 <countdown@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x3,%edi
mov    $0x7,%esi
xor    %eax,%eax
call   1060 <add@plt>
lea    0xe18(%rip),%r14
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x3,%edi
mov    $0x7,%esi
xor    %eax,%eax
call   1080 <multiply@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    $0x3,%edi
mov    $0x7,%esi
xor    %eax,%eax
call   1070 <power@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
lea    0xd9e(%rip),%r15
mov    %r15,%rdi
xor    %eax,%eax
call   10b0 <output@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1050 <length@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0x65,%edi
mov    %r15,%rsi
xor    %eax,%eax
call   10e0 <howMany@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <reverse@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   10d0 <copy@plt>
mov    %rbx,%rdi
call   1090 <puts@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [15 x i8] c"I am Job. Yes?\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [4 x i8] c"%u\0A\00"
@.str.3 = [4 x i8] c"%s\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca [30 x i8]
store i32 0, i32* %1
store i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8** %2
%4 = call i32 (i32, ...) bitcast (i32 (...)* @countdown to i32 (i32, ...)*)(i32 5)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%6 = call i32 (i32, i32, ...) bitcast (i32 (...)* @add to i32 (i32, i32, ...)*)(i32 3, i32 7)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %6)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 (i32, i32, ...) bitcast (i32 (...)* @multiply to i32 (i32, i32, ...)*)(i32 3, i32 7)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %9)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 (i32, i32, ...) bitcast (i32 (...)* @power to i32 (i32, i32, ...)*)(i32 3, i32 7)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%15 = load i8*, i8** %2
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @output to i32 (i8*, ...)*)(i8* %15)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = load i8*, i8** %2
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @length to i32 (i8*, ...)*)(i8* %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %19)
%21 = load i8*, i8** %2
%22 = call i32 (i32, i8*, ...) bitcast (i32 (...)* @howMany to i32 (i32, i8*, ...)*)(i32 101, i8* %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %22)
%24 = load i8*, i8** %2
%25 = call i32 (i8*, ...) bitcast (i32 (...)* @reverse to i32 (i8*, ...)*)(i8* %24)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%27 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%28 = load i8*, i8** %2
%29 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @copy to i32 (i8*, i8*, ...)*)(i8* %27, i8* %28)
%30 = getelementptr inbounds [30 x i8], [30 x i8]* %3, i64 0, i64 0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* %30)
ret i32 0
}

LLVM IR (-O2):
@.str = [15 x i8] c"I am Job. Yes?\00"
@.str.2 = [4 x i8] c"%u\0A\00"
define i32 @main() {
%1 = alloca [30 x i8]
%2 = getelementptr inbounds [30 x i8], [30 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (i32, ...) bitcast (i32 (...)* @countdown to i32 (i32, ...)*)(i32 5)
%4 = tail call i32 @putchar(i32 10)
%5 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @add to i32 (i32, i32, ...)*)(i32 3, i32 7)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @putchar(i32 10)
%8 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @multiply to i32 (i32, i32, ...)*)(i32 3, i32 7)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %8)
%10 = tail call i32 @putchar(i32 10)
%11 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @power to i32 (i32, i32, ...)*)(i32 3, i32 7)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = tail call i32 @putchar(i32 10)
%14 = tail call i32 (i8*, ...) bitcast (i32 (...)* @output to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%15 = tail call i32 @putchar(i32 10)
%16 = tail call i32 (i8*, ...) bitcast (i32 (...)* @length to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = tail call i32 (i32, i8*, ...) bitcast (i32 (...)* @howMany to i32 (i32, i8*, ...)*)(i32 101, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = tail call i32 (i8*, ...) bitcast (i32 (...)* @reverse to i32 (i8*, ...)*)(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
%22 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @copy to i32 (i8*, i8*, ...)*)(i8* %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%23 = call i32 @puts(i8* %2)
ret i32 0
}