#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 *, char *);
int /*<<< orphan*/ test__tolower();
int /*<<< orphan*/ test__toupper();
int /*<<< orphan*/ test_isalnum();
int /*<<< orphan*/ test_isalpha();
int /*<<< orphan*/ test_isascii();
int /*<<< orphan*/ test_isblank();
int /*<<< orphan*/ test_iscntrl();
int /*<<< orphan*/ test_isdigit();
int /*<<< orphan*/ test_islower();
int /*<<< orphan*/ test_isprint();
int /*<<< orphan*/ test_ispunct();
int /*<<< orphan*/ test_isspace();
int /*<<< orphan*/ test_isupper();
int /*<<< orphan*/ test_toascii();
int /*<<< orphan*/ test_tolower();
int /*<<< orphan*/ test_toupper();
void run_posix_ctype_tests() {
  printf("\nRunning Test Case: %s\n", "Test POSIX ctype.h functions");
  ;
  test_isascii();
  test_isalnum();
  test_isalpha();
  test_isblank();
  test_iscntrl();
  test_isdigit();
  test_islower();
  test_isprint();
  test_ispunct();
  test_isspace();
  test_isupper();
  test_toascii();
  test_tolower();
  test_toupper();
  test__tolower();
  test__toupper();
}


x86 assembly (clang, -O0):
<run_posix_ctype_tests>:
push   %rbp
mov    %rsp,%rbp
lea    0xde5(%rip),%rdi
lea    0xdf6(%rip),%rsi
call   1080 <printf@plt>
mov    $0x0,%al
call   1060 <test_isascii@plt>
mov    $0x0,%al
call   1100 <test_isalnum@plt>
mov    $0x0,%al
call   10d0 <test_isalpha@plt>
mov    $0x0,%al
call   1040 <test_isblank@plt>
mov    $0x0,%al
call   10b0 <test_iscntrl@plt>
mov    $0x0,%al
call   1120 <test_isdigit@plt>
mov    $0x0,%al
call   1090 <test_islower@plt>
mov    $0x0,%al
call   10f0 <test_isprint@plt>
mov    $0x0,%al
call   1030 <test_ispunct@plt>
mov    $0x0,%al
call   1050 <test_isspace@plt>
mov    $0x0,%al
call   1070 <test_isupper@plt>
mov    $0x0,%al
call   1130 <test_toascii@plt>
mov    $0x0,%al
call   10a0 <test_tolower@plt>
mov    $0x0,%al
call   10c0 <test_toupper@plt>
mov    $0x0,%al
call   10e0 <test__tolower@plt>
mov    $0x0,%al
call   1110 <test__toupper@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_posix_ctype_tests>:
push   %rax
lea    0xde8(%rip),%rdi
lea    0xdf9(%rip),%rsi
call   1080 <printf@plt>
xor    %eax,%eax
call   1060 <test_isascii@plt>
xor    %eax,%eax
call   1100 <test_isalnum@plt>
xor    %eax,%eax
call   10d0 <test_isalpha@plt>
xor    %eax,%eax
call   1040 <test_isblank@plt>
xor    %eax,%eax
call   10b0 <test_iscntrl@plt>
xor    %eax,%eax
call   1120 <test_isdigit@plt>
xor    %eax,%eax
call   1090 <test_islower@plt>
xor    %eax,%eax
call   10f0 <test_isprint@plt>
xor    %eax,%eax
call   1030 <test_ispunct@plt>
xor    %eax,%eax
call   1050 <test_isspace@plt>
xor    %eax,%eax
call   1070 <test_isupper@plt>
xor    %eax,%eax
call   1130 <test_toascii@plt>
xor    %eax,%eax
call   10a0 <test_tolower@plt>
xor    %eax,%eax
call   10c0 <test_toupper@plt>
xor    %eax,%eax
call   10e0 <test__tolower@plt>
xor    %eax,%eax
pop    %rcx
jmp    1110 <test__toupper@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"\0ARunning Test Case: %s\0A\00"
@.str.1 = [29 x i8] c"Test POSIX ctype.h functions\00"
define void @run_posix_ctype_tests() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (...) @test_isascii()
%3 = call i32 (...) @test_isalnum()
%4 = call i32 (...) @test_isalpha()
%5 = call i32 (...) @test_isblank()
%6 = call i32 (...) @test_iscntrl()
%7 = call i32 (...) @test_isdigit()
%8 = call i32 (...) @test_islower()
%9 = call i32 (...) @test_isprint()
%10 = call i32 (...) @test_ispunct()
%11 = call i32 (...) @test_isspace()
%12 = call i32 (...) @test_isupper()
%13 = call i32 (...) @test_toascii()
%14 = call i32 (...) @test_tolower()
%15 = call i32 (...) @test_toupper()
%16 = call i32 (...) @test__tolower()
%17 = call i32 (...) @test__toupper()
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"\0ARunning Test Case: %s\0A\00"
@.str.1 = [29 x i8] c"Test POSIX ctype.h functions\00"
define void @run_posix_ctype_tests() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @test_isascii()
%3 = tail call i32 (...) @test_isalnum()
%4 = tail call i32 (...) @test_isalpha()
%5 = tail call i32 (...) @test_isblank()
%6 = tail call i32 (...) @test_iscntrl()
%7 = tail call i32 (...) @test_isdigit()
%8 = tail call i32 (...) @test_islower()
%9 = tail call i32 (...) @test_isprint()
%10 = tail call i32 (...) @test_ispunct()
%11 = tail call i32 (...) @test_isspace()
%12 = tail call i32 (...) @test_isupper()
%13 = tail call i32 (...) @test_toascii()
%14 = tail call i32 (...) @test_tolower()
%15 = tail call i32 (...) @test_toupper()
%16 = tail call i32 (...) @test__tolower()
%17 = tail call i32 (...) @test__toupper()
ret void
}