#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*/ printf(char *);
int /*<<< orphan*/ validate_coin_five(int *);
int /*<<< orphan*/ validate_coin_five_hundred(int *);
int /*<<< orphan*/ validate_coin_five_thousand(int *);
int /*<<< orphan*/ validate_coin_one_hundred(int *);
int /*<<< orphan*/ validate_coin_one_thousand(int *);
int /*<<< orphan*/ validate_coin_ten(int *);
int /*<<< orphan*/ validate_coin_three(int *);
int /*<<< orphan*/ validate_coin_twenty(int *);
int /*<<< orphan*/ validate_coin_two_fifty(int *);
int /*<<< orphan*/ validate_coin_two_hundred(int *);
int /*<<< orphan*/ validate_coin_zero(int *);
void validate_coin_tests(int stats[3]) {
  printf("Testing validate coin on:\n");
  validate_coin_zero(stats);
  validate_coin_three(stats);
  validate_coin_two_fifty(stats);
  validate_coin_five_thousand(stats);
  validate_coin_five(stats);
  validate_coin_ten(stats);
  validate_coin_twenty(stats);
  validate_coin_one_hundred(stats);
  validate_coin_two_hundred(stats);
  validate_coin_five_hundred(stats);
  validate_coin_one_thousand(stats);
  printf("\n");
}


x86 assembly (clang, -O0):
<validate_coin_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xe2d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
call   10a0 <validate_coin_zero@plt>
mov    -0x8(%rbp),%rdi
call   1080 <validate_coin_three@plt>
mov    -0x8(%rbp),%rdi
call   10c0 <validate_coin_two_fifty@plt>
mov    -0x8(%rbp),%rdi
call   1030 <validate_coin_five_thousand@plt>
mov    -0x8(%rbp),%rdi
call   10e0 <validate_coin_five@plt>
mov    -0x8(%rbp),%rdi
call   1070 <validate_coin_ten@plt>
mov    -0x8(%rbp),%rdi
call   10d0 <validate_coin_twenty@plt>
mov    -0x8(%rbp),%rdi
call   1090 <validate_coin_one_hundred@plt>
mov    -0x8(%rbp),%rdi
call   10b0 <validate_coin_two_hundred@plt>
mov    -0x8(%rbp),%rdi
call   1060 <validate_coin_five_hundred@plt>
mov    -0x8(%rbp),%rdi
call   1050 <validate_coin_one_thousand@plt>
lea    0xdd7(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<validate_coin_tests>:
push   %rbx
mov    %rdi,%rbx
lea    0xe25(%rip),%rdi
call   1050 <puts@plt>
mov    %rbx,%rdi
call   10b0 <validate_coin_zero@plt>
mov    %rbx,%rdi
call   1090 <validate_coin_three@plt>
mov    %rbx,%rdi
call   10d0 <validate_coin_two_fifty@plt>
mov    %rbx,%rdi
call   1040 <validate_coin_five_thousand@plt>
mov    %rbx,%rdi
call   10f0 <validate_coin_five@plt>
mov    %rbx,%rdi
call   1080 <validate_coin_ten@plt>
mov    %rbx,%rdi
call   10e0 <validate_coin_twenty@plt>
mov    %rbx,%rdi
call   10a0 <validate_coin_one_hundred@plt>
mov    %rbx,%rdi
call   10c0 <validate_coin_two_hundred@plt>
mov    %rbx,%rdi
call   1070 <validate_coin_five_hundred@plt>
mov    %rbx,%rdi
call   1060 <validate_coin_one_thousand@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [27 x i8] c"Testing validate coin on:\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
define void @validate_coin_tests(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%4 = load i32*, i32** %2
%5 = call i32 @validate_coin_zero(i32* %4)
%6 = load i32*, i32** %2
%7 = call i32 @validate_coin_three(i32* %6)
%8 = load i32*, i32** %2
%9 = call i32 @validate_coin_two_fifty(i32* %8)
%10 = load i32*, i32** %2
%11 = call i32 @validate_coin_five_thousand(i32* %10)
%12 = load i32*, i32** %2
%13 = call i32 @validate_coin_five(i32* %12)
%14 = load i32*, i32** %2
%15 = call i32 @validate_coin_ten(i32* %14)
%16 = load i32*, i32** %2
%17 = call i32 @validate_coin_twenty(i32* %16)
%18 = load i32*, i32** %2
%19 = call i32 @validate_coin_one_hundred(i32* %18)
%20 = load i32*, i32** %2
%21 = call i32 @validate_coin_two_hundred(i32* %20)
%22 = load i32*, i32** %2
%23 = call i32 @validate_coin_five_hundred(i32* %22)
%24 = load i32*, i32** %2
%25 = call i32 @validate_coin_one_thousand(i32* %24)
%26 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [26 x i8] c"Testing validate coin on:\00"
define void @validate_coin_tests(i32* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @validate_coin_zero(i32* %0)
%4 = tail call i32 @validate_coin_three(i32* %0)
%5 = tail call i32 @validate_coin_two_fifty(i32* %0)
%6 = tail call i32 @validate_coin_five_thousand(i32* %0)
%7 = tail call i32 @validate_coin_five(i32* %0)
%8 = tail call i32 @validate_coin_ten(i32* %0)
%9 = tail call i32 @validate_coin_twenty(i32* %0)
%10 = tail call i32 @validate_coin_one_hundred(i32* %0)
%11 = tail call i32 @validate_coin_two_hundred(i32* %0)
%12 = tail call i32 @validate_coin_five_hundred(i32* %0)
%13 = tail call i32 @validate_coin_one_thousand(i32* %0)
%14 = tail call i32 @putchar(i32 10)
ret void
}