#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*/ memccpyTest();
int /*<<< orphan*/ memchrTest();
int /*<<< orphan*/ memcmpTest();
int /*<<< orphan*/ memcpyTest();
int /*<<< orphan*/ memmoveTest();
int /*<<< orphan*/ memsetTest();
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcatTest();
int /*<<< orphan*/ strchrTest();
int /*<<< orphan*/ strcspnTest();
int /*<<< orphan*/ strncatTest();
int /*<<< orphan*/ strncmpTest();
int /*<<< orphan*/ strncpyTest();
int /*<<< orphan*/ strpbrkTest();
int /*<<< orphan*/ strrchrTest();
int /*<<< orphan*/ strspnTest();
int /*<<< orphan*/ strstrTest();
int /*<<< orphan*/ strtokTest();
int main() {
  printf("strcat:\n");
  strcatTest();
  printf("\nstrcspn:\n");
  strcspnTest();
  printf("\nstrncpy:\n");
  strncpyTest();
  printf("\nstrncat:\n");
  strncatTest();
  printf("\nstrncmp:\n");
  strncmpTest();
  printf("\nstrpbrk:\n");
  strpbrkTest();
  printf("\nstrrchr:\n");
  strrchrTest();
  printf("\nstrchr:\n");
  strchrTest();
  printf("\nstrspn:\n");
  strspnTest();
  printf("\nstrstr:\n");
  strstrTest();
  printf("\nstrtok:\n");
  strtokTest();
  printf("\nmemccpy:\n");
  memccpyTest();
  printf("\nmemchr:\n");
  memchrTest();
  printf("\nmemcmp:\n");
  memcmpTest();
  printf("\nmemcpy:\n");
  memcpyTest();
  printf("\nmemmove:\n");
  memmoveTest();
  printf("\nmemset:\n");
  memsetTest();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xdca(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1040 <strcatTest@plt>
lea    0xdc0(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   10e0 <strcspnTest@plt>
lea    0xdb8(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1120 <strncpyTest@plt>
lea    0xdb0(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   10f0 <strncatTest@plt>
lea    0xda8(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1090 <strncmpTest@plt>
lea    0xda0(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1140 <strpbrkTest@plt>
lea    0xd98(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1110 <strrchrTest@plt>
lea    0xd90(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1130 <strchrTest@plt>
lea    0xd87(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1050 <strspnTest@plt>
lea    0xd7e(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   10b0 <strstrTest@plt>
lea    0xd75(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1070 <strtokTest@plt>
lea    0xd6c(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1060 <memccpyTest@plt>
lea    0xd64(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1030 <memchrTest@plt>
lea    0xd5b(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   10d0 <memcmpTest@plt>
lea    0xd52(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   10c0 <memcpyTest@plt>
lea    0xd49(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1100 <memmoveTest@plt>
lea    0xd41(%rip),%rdi
call   10a0 <printf@plt>
mov    $0x0,%al
call   1080 <memsetTest@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xdd8(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1040 <strcatTest@plt>
lea    0xdcd(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10e0 <strcspnTest@plt>
lea    0xdc4(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1120 <strncpyTest@plt>
lea    0xdbb(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10f0 <strncatTest@plt>
lea    0xdb2(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10a0 <strncmpTest@plt>
lea    0xda9(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1140 <strpbrkTest@plt>
lea    0xda0(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1110 <strrchrTest@plt>
lea    0xd97(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1130 <strchrTest@plt>
lea    0xd8d(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1050 <strspnTest@plt>
lea    0xd83(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10b0 <strstrTest@plt>
lea    0xd79(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1080 <strtokTest@plt>
lea    0xd6f(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1060 <memccpyTest@plt>
lea    0xd66(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1030 <memchrTest@plt>
lea    0xd5c(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10d0 <memcmpTest@plt>
lea    0xd52(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   10c0 <memcpyTest@plt>
lea    0xd48(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1100 <memmoveTest@plt>
lea    0xd3f(%rip),%rdi
call   1070 <puts@plt>
xor    %eax,%eax
call   1090 <memsetTest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"strcat:\0A\00"
@.str.1 = [11 x i8] c"\0Astrcspn:\0A\00"
@.str.2 = [11 x i8] c"\0Astrncpy:\0A\00"
@.str.3 = [11 x i8] c"\0Astrncat:\0A\00"
@.str.4 = [11 x i8] c"\0Astrncmp:\0A\00"
@.str.5 = [11 x i8] c"\0Astrpbrk:\0A\00"
@.str.6 = [11 x i8] c"\0Astrrchr:\0A\00"
@.str.7 = [10 x i8] c"\0Astrchr:\0A\00"
@.str.8 = [10 x i8] c"\0Astrspn:\0A\00"
@.str.9 = [10 x i8] c"\0Astrstr:\0A\00"
@.str.10 = [10 x i8] c"\0Astrtok:\0A\00"
@.str.11 = [11 x i8] c"\0Amemccpy:\0A\00"
@.str.12 = [10 x i8] c"\0Amemchr:\0A\00"
@.str.13 = [10 x i8] c"\0Amemcmp:\0A\00"
@.str.14 = [10 x i8] c"\0Amemcpy:\0A\00"
@.str.15 = [11 x i8] c"\0Amemmove:\0A\00"
@.str.16 = [10 x i8] c"\0Amemset:\0A\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (...) @strcatTest()
%4 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 (...) @strcspnTest()
%6 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 (...) @strncpyTest()
%8 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 (...) @strncatTest()
%10 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
%11 = call i32 (...) @strncmpTest()
%12 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0))
%13 = call i32 (...) @strpbrkTest()
%14 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%15 = call i32 (...) @strrchrTest()
%16 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (...) @strchrTest()
%18 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%19 = call i32 (...) @strspnTest()
%20 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0))
%21 = call i32 (...) @strstrTest()
%22 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%23 = call i32 (...) @strtokTest()
%24 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%25 = call i32 (...) @memccpyTest()
%26 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%27 = call i32 (...) @memchrTest()
%28 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%29 = call i32 (...) @memcmpTest()
%30 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%31 = call i32 (...) @memcpyTest()
%32 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
%33 = call i32 (...) @memmoveTest()
%34 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%35 = call i32 (...) @memsetTest()
ret i32 0
}

LLVM IR (-O2):
@str = [8 x i8] c"strcat:\00"
@str.17 = [10 x i8] c"\0Astrcspn:\00"
@str.18 = [10 x i8] c"\0Astrncpy:\00"
@str.19 = [10 x i8] c"\0Astrncat:\00"
@str.20 = [10 x i8] c"\0Astrncmp:\00"
@str.21 = [10 x i8] c"\0Astrpbrk:\00"
@str.22 = [10 x i8] c"\0Astrrchr:\00"
@str.23 = [9 x i8] c"\0Astrchr:\00"
@str.24 = [9 x i8] c"\0Astrspn:\00"
@str.25 = [9 x i8] c"\0Astrstr:\00"
@str.26 = [9 x i8] c"\0Astrtok:\00"
@str.27 = [10 x i8] c"\0Amemccpy:\00"
@str.28 = [9 x i8] c"\0Amemchr:\00"
@str.29 = [9 x i8] c"\0Amemcmp:\00"
@str.30 = [9 x i8] c"\0Amemcpy:\00"
@str.31 = [10 x i8] c"\0Amemmove:\00"
@str.32 = [9 x i8] c"\0Amemset:\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (...) @strcatTest()
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.17, i64 0, i64 0))
%4 = tail call i32 (...) @strcspnTest()
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.18, i64 0, i64 0))
%6 = tail call i32 (...) @strncpyTest()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 (...) @strncatTest()
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.20, i64 0, i64 0))
%10 = tail call i32 (...) @strncmpTest()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 (...) @strpbrkTest()
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 (...) @strrchrTest()
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.23, i64 0, i64 0))
%16 = tail call i32 (...) @strchrTest()
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.24, i64 0, i64 0))
%18 = tail call i32 (...) @strspnTest()
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.25, i64 0, i64 0))
%20 = tail call i32 (...) @strstrTest()
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.26, i64 0, i64 0))
%22 = tail call i32 (...) @strtokTest()
%23 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.27, i64 0, i64 0))
%24 = tail call i32 (...) @memccpyTest()
%25 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.28, i64 0, i64 0))
%26 = tail call i32 (...) @memchrTest()
%27 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.29, i64 0, i64 0))
%28 = tail call i32 (...) @memcmpTest()
%29 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.30, i64 0, i64 0))
%30 = tail call i32 (...) @memcpyTest()
%31 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.31, i64 0, i64 0))
%32 = tail call i32 (...) @memmoveTest()
%33 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.32, i64 0, i64 0))
%34 = tail call i32 (...) @memsetTest()
ret i32 0
}