#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_memccpy();
int /*<<< orphan*/ test_memchr();
int /*<<< orphan*/ test_memcmp();
int /*<<< orphan*/ test_memcpy();
int /*<<< orphan*/ test_memmove();
int /*<<< orphan*/ test_memset();
int /*<<< orphan*/ test_stpcpy();
int /*<<< orphan*/ test_stpncpy();
int /*<<< orphan*/ test_strchr();
int /*<<< orphan*/ test_strcmp();
int /*<<< orphan*/ test_strcpy();
int /*<<< orphan*/ test_strcspn();
int /*<<< orphan*/ test_strerror();
int /*<<< orphan*/ test_strerror_r();
int /*<<< orphan*/ test_strlen();
int /*<<< orphan*/ test_strncmp();
int /*<<< orphan*/ test_strncpy();
int /*<<< orphan*/ test_strnlen();
int /*<<< orphan*/ test_strsignal();
void run_string_lib_tests() {
  printf("\nRunning Test Case: %s\n", "Test POSIX string.h functions");
  ;
  test_memccpy();
  test_memchr();
  test_memcmp();
  test_memcpy();
  test_memmove();
  test_memset();
  test_stpcpy();
  test_stpncpy();
  test_strchr();
  test_strcmp();
  test_strcpy();
  test_strcspn();
  test_strerror();
  test_strerror_r();
  test_strlen();
  test_strncmp();
  test_strncpy();
  test_strnlen();
  test_strsignal();
}


x86 assembly (clang, -O0):
<run_string_lib_tests>:
push   %rbp
mov    %rsp,%rbp
lea    0xdb5(%rip),%rdi
lea    0xdc6(%rip),%rsi
call   10b0 <printf@plt>
mov    $0x0,%al
call   1090 <test_memccpy@plt>
mov    $0x0,%al
call   1110 <test_memchr@plt>
mov    $0x0,%al
call   1140 <test_memcmp@plt>
mov    $0x0,%al
call   1050 <test_memcpy@plt>
mov    $0x0,%al
call   10f0 <test_memmove@plt>
mov    $0x0,%al
call   10c0 <test_memset@plt>
mov    $0x0,%al
call   10e0 <test_stpcpy@plt>
mov    $0x0,%al
call   1160 <test_stpncpy@plt>
mov    $0x0,%al
call   1130 <test_strchr@plt>
mov    $0x0,%al
call   1100 <test_strcmp@plt>
mov    $0x0,%al
call   10d0 <test_strcpy@plt>
mov    $0x0,%al
call   1150 <test_strcspn@plt>
mov    $0x0,%al
call   1120 <test_strerror@plt>
mov    $0x0,%al
call   10a0 <test_strerror_r@plt>
mov    $0x0,%al
call   1040 <test_strlen@plt>
mov    $0x0,%al
call   1070 <test_strncmp@plt>
mov    $0x0,%al
call   1030 <test_strncpy@plt>
mov    $0x0,%al
call   1060 <test_strnlen@plt>
mov    $0x0,%al
call   1080 <test_strsignal@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_string_lib_tests>:
push   %rax
lea    0xdb8(%rip),%rdi
lea    0xdc9(%rip),%rsi
call   10b0 <printf@plt>
xor    %eax,%eax
call   1090 <test_memccpy@plt>
xor    %eax,%eax
call   1110 <test_memchr@plt>
xor    %eax,%eax
call   1140 <test_memcmp@plt>
xor    %eax,%eax
call   1050 <test_memcpy@plt>
xor    %eax,%eax
call   10f0 <test_memmove@plt>
xor    %eax,%eax
call   10c0 <test_memset@plt>
xor    %eax,%eax
call   10e0 <test_stpcpy@plt>
xor    %eax,%eax
call   1160 <test_stpncpy@plt>
xor    %eax,%eax
call   1130 <test_strchr@plt>
xor    %eax,%eax
call   1100 <test_strcmp@plt>
xor    %eax,%eax
call   10d0 <test_strcpy@plt>
xor    %eax,%eax
call   1150 <test_strcspn@plt>
xor    %eax,%eax
call   1120 <test_strerror@plt>
xor    %eax,%eax
call   10a0 <test_strerror_r@plt>
xor    %eax,%eax
call   1040 <test_strlen@plt>
xor    %eax,%eax
call   1070 <test_strncmp@plt>
xor    %eax,%eax
call   1030 <test_strncpy@plt>
xor    %eax,%eax
call   1060 <test_strnlen@plt>
xor    %eax,%eax
pop    %rcx
jmp    1080 <test_strsignal@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"\0ARunning Test Case: %s\0A\00"
@.str.1 = [30 x i8] c"Test POSIX string.h functions\00"
define void @run_string_lib_tests() {
%1 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (...) @test_memccpy()
%3 = call i32 (...) @test_memchr()
%4 = call i32 (...) @test_memcmp()
%5 = call i32 (...) @test_memcpy()
%6 = call i32 (...) @test_memmove()
%7 = call i32 (...) @test_memset()
%8 = call i32 (...) @test_stpcpy()
%9 = call i32 (...) @test_stpncpy()
%10 = call i32 (...) @test_strchr()
%11 = call i32 (...) @test_strcmp()
%12 = call i32 (...) @test_strcpy()
%13 = call i32 (...) @test_strcspn()
%14 = call i32 (...) @test_strerror()
%15 = call i32 (...) @test_strerror_r()
%16 = call i32 (...) @test_strlen()
%17 = call i32 (...) @test_strncmp()
%18 = call i32 (...) @test_strncpy()
%19 = call i32 (...) @test_strnlen()
%20 = call i32 (...) @test_strsignal()
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"\0ARunning Test Case: %s\0A\00"
@.str.1 = [30 x i8] c"Test POSIX string.h functions\00"
define void @run_string_lib_tests() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (...) @test_memccpy()
%3 = tail call i32 (...) @test_memchr()
%4 = tail call i32 (...) @test_memcmp()
%5 = tail call i32 (...) @test_memcpy()
%6 = tail call i32 (...) @test_memmove()
%7 = tail call i32 (...) @test_memset()
%8 = tail call i32 (...) @test_stpcpy()
%9 = tail call i32 (...) @test_stpncpy()
%10 = tail call i32 (...) @test_strchr()
%11 = tail call i32 (...) @test_strcmp()
%12 = tail call i32 (...) @test_strcpy()
%13 = tail call i32 (...) @test_strcspn()
%14 = tail call i32 (...) @test_strerror()
%15 = tail call i32 (...) @test_strerror_r()
%16 = tail call i32 (...) @test_strlen()
%17 = tail call i32 (...) @test_strncmp()
%18 = tail call i32 (...) @test_strncpy()
%19 = tail call i32 (...) @test_strnlen()
%20 = tail call i32 (...) @test_strsignal()
ret void
}