#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*/ testa_check(int);
int /*<<< orphan*/ testb_check(int);
int /*<<< orphan*/ testc_check(int);
int main(void) {
  testa_check(0);
  testa_check(1);
  testa_check(10);
  testa_check(100);
  testa_check(1000);
  testb_check(0);
  testb_check(1);
  testb_check(10);
  testb_check(100);
  testb_check(1000);
  testc_check(0);
  testc_check(1);
  testc_check(10);
  testc_check(100);
  testc_check(1000);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   1040 <testa_check@plt>
mov    $0x1,%edi
call   1040 <testa_check@plt>
mov    $0xa,%edi
call   1040 <testa_check@plt>
mov    $0x64,%edi
call   1040 <testa_check@plt>
mov    $0x3e8,%edi
call   1040 <testa_check@plt>
xor    %edi,%edi
call   1030 <testb_check@plt>
mov    $0x1,%edi
call   1030 <testb_check@plt>
mov    $0xa,%edi
call   1030 <testb_check@plt>
mov    $0x64,%edi
call   1030 <testb_check@plt>
mov    $0x3e8,%edi
call   1030 <testb_check@plt>
xor    %edi,%edi
call   1050 <testc_check@plt>
mov    $0x1,%edi
call   1050 <testc_check@plt>
mov    $0xa,%edi
call   1050 <testc_check@plt>
mov    $0x64,%edi
call   1050 <testc_check@plt>
mov    $0x3e8,%edi
call   1050 <testc_check@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
xor    %edi,%edi
call   1040 <testa_check@plt>
mov    $0x1,%edi
call   1040 <testa_check@plt>
mov    $0xa,%edi
call   1040 <testa_check@plt>
mov    $0x64,%edi
call   1040 <testa_check@plt>
mov    $0x3e8,%edi
call   1040 <testa_check@plt>
xor    %edi,%edi
call   1030 <testb_check@plt>
mov    $0x1,%edi
call   1030 <testb_check@plt>
mov    $0xa,%edi
call   1030 <testb_check@plt>
mov    $0x64,%edi
call   1030 <testb_check@plt>
mov    $0x3e8,%edi
call   1030 <testb_check@plt>
xor    %edi,%edi
call   1050 <testc_check@plt>
mov    $0x1,%edi
call   1050 <testc_check@plt>
mov    $0xa,%edi
call   1050 <testc_check@plt>
mov    $0x64,%edi
call   1050 <testc_check@plt>
mov    $0x3e8,%edi
call   1050 <testc_check@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @testa_check(i32 0)
%3 = call i32 @testa_check(i32 1)
%4 = call i32 @testa_check(i32 10)
%5 = call i32 @testa_check(i32 100)
%6 = call i32 @testa_check(i32 1000)
%7 = call i32 @testb_check(i32 0)
%8 = call i32 @testb_check(i32 1)
%9 = call i32 @testb_check(i32 10)
%10 = call i32 @testb_check(i32 100)
%11 = call i32 @testb_check(i32 1000)
%12 = call i32 @testc_check(i32 0)
%13 = call i32 @testc_check(i32 1)
%14 = call i32 @testc_check(i32 10)
%15 = call i32 @testc_check(i32 100)
%16 = call i32 @testc_check(i32 1000)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @testa_check(i32 0)
%2 = tail call i32 @testa_check(i32 1)
%3 = tail call i32 @testa_check(i32 10)
%4 = tail call i32 @testa_check(i32 100)
%5 = tail call i32 @testa_check(i32 1000)
%6 = tail call i32 @testb_check(i32 0)
%7 = tail call i32 @testb_check(i32 1)
%8 = tail call i32 @testb_check(i32 10)
%9 = tail call i32 @testb_check(i32 100)
%10 = tail call i32 @testb_check(i32 1000)
%11 = tail call i32 @testc_check(i32 0)
%12 = tail call i32 @testc_check(i32 1)
%13 = tail call i32 @testc_check(i32 10)
%14 = tail call i32 @testc_check(i32 100)
%15 = tail call i32 @testc_check(i32 1000)
ret i32 0
}