int main() {
  char s1[] = "asdfis";
  char s2[] = "dododdttre";
  printf("\nString s1: %s\n", s1);
  printf("Length of s1: %d\n", mystrlen(s1));
  printf("String s2: %s\n", s2);
  printf("Length of s2: %d\n\n", mystrlen(s2));
  char s3[] = "asdjdsfk";
  char s4[] = "kjskskasks";
  printf("String s3: %s\n", s3);
  printf("String s4: %s\n", s4);
  printf("Copied s4 onto s3: %s\n\n", mystrcpy(s3, s4));
  char s5[] = "sdaiusdafasasgdf";
  char s6[] = "gffffgjjklfdjkldf";
  printf("String s5: %s\n", s5);
  printf("String s6: %s\n", s6);
  printf("Concatenated 3 of s6 onto s5: %s\n\n", mystrncat(s5, s6, 3));
  char s7[] = "asdfasdf";
  char s8[] = "asdfasdf";
  printf("String s7: %s\n", s7);
  printf("String s8: %s\n", s8);
  printf("String s7 vs String s8: %d\n\n", mystrcmp(s7, s8));
  char s9[] = "asdfasd";
  char s10[] = "asdfasdf";
  printf("String s9: %s\n", s9);
  printf("String s10: %s\n", s10);
  printf("String s9 vs String s10: %d\n\n", mystrcmp(s9, s10));
  char s11[] = "asdfasdf";
  char s12[] = "asdfasd";
  printf("String s11: %s\n", s11);
  printf("String s12: %s\n", s12);
  printf("String s11 vs String s12: %d\n\n", mystrcmp(s11, s12));
  char s13[] = "asdfasdg";
  char s14[] = "asdfasdf";
  printf("String s13: %s\n", s13);
  printf("String s14: %s\n", s14);
  printf("String s13 vs String s14: %d\n\n", mystrcmp(s13, s14));
  char s15[] = "asdfasdf";
  char s16[] = "asdfasdg";
  printf("String s15: %s\n", s15);
  printf("String s16: %s\n", s16);
  printf("String s15 vs String s16: %d\n\n", mystrcmp(s15, s16));
  char s17[] = "asdfasdf";
  printf("String s17: %s\n", s17);
  printf("Address of String s17: %lu\n", &s17);
  printf("Address of \"a\" in s17: %lu\n", mystrchr(s17, "a"));
  printf("Address of \"sdf\" in s17: %lu\n\n", mystrchr(s17, "sdf"));
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    0xe8f(%rip),%eax
mov    %eax,-0x7(%rbp)
mov    0xe89(%rip),%ax
mov    %ax,-0x3(%rbp)
mov    0xe81(%rip),%al
mov    %al,-0x1(%rbp)
mov    0xe78(%rip),%rax
mov    %rax,-0x12(%rbp)
mov    0xe75(%rip),%ax
mov    %ax,-0xa(%rbp)
mov    0xe6d(%rip),%al
mov    %al,-0x8(%rbp)
lea    -0x7(%rbp),%rsi
lea    0xe60(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x7(%rbp),%rdi
mov    $0x0,%al
call   1070 <mystrlen@plt>
mov    %eax,%esi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x12(%rbp),%rsi
lea    0xe55(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x12(%rbp),%rdi
mov    $0x0,%al
call   1070 <mystrlen@plt>
mov    %eax,%esi
lea    0xe49(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xe4e(%rip),%rax
mov    %rax,-0x1b(%rbp)
mov    0xe4c(%rip),%al
mov    %al,-0x13(%rbp)
mov    0xe43(%rip),%rax
mov    %rax,-0x26(%rbp)
mov    0xe40(%rip),%ax
mov    %ax,-0x1e(%rbp)
mov    0xe38(%rip),%al
mov    %al,-0x1c(%rbp)
lea    -0x1b(%rbp),%rsi
lea    0xe2b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x26(%rbp),%rsi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x1b(%rbp),%rdi
lea    -0x26(%rbp),%rsi
mov    $0x0,%al
call   1080 <mystrcpy@plt>
mov    %eax,%esi
lea    0xe18(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0x1022(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0x101f(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0x101d(%rip),%al
mov    %al,-0x30(%rbp)
mov    0x1023(%rip),%rax
mov    %rax,-0x60(%rbp)
mov    0x1020(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0x101d(%rip),%ax
mov    %ax,-0x50(%rbp)
lea    -0x40(%rbp),%rsi
lea    0xdde(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xddb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x40(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x3,%edx
mov    $0x0,%al
call   1050 <mystrncat@plt>
mov    %eax,%esi
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xddb(%rip),%rax
mov    %rax,-0x69(%rbp)
mov    0xdd9(%rip),%al
mov    %al,-0x61(%rbp)
mov    0xdc7(%rip),%rax
mov    %rax,-0x72(%rbp)
mov    0xdc5(%rip),%al
mov    %al,-0x6a(%rbp)
lea    -0x69(%rbp),%rsi
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x72(%rbp),%rsi
lea    0xdb5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x69(%rbp),%rdi
lea    -0x72(%rbp),%rsi
mov    $0x0,%al
call   1030 <mystrcmp@plt>
mov    %eax,%esi
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xdb4(%rip),%rax
mov    %rax,-0x7a(%rbp)
mov    0xd65(%rip),%rax
mov    %rax,-0x83(%rbp)
mov    0xd60(%rip),%al
mov    %al,-0x7b(%rbp)
lea    -0x7a(%rbp),%rsi
lea    0xd96(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x83(%rbp),%rsi
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x7a(%rbp),%rdi
lea    -0x83(%rbp),%rsi
mov    $0x0,%al
call   1030 <mystrcmp@plt>
mov    %eax,%esi
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xd05(%rip),%rax
mov    %rax,-0x8c(%rbp)
mov    0xd00(%rip),%al
mov    %al,-0x84(%rbp)
mov    0xd2f(%rip),%rax
mov    %rax,-0x94(%rbp)
lea    -0x8c(%rbp),%rsi
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x94(%rbp),%rsi
lea    0xd5a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x8c(%rbp),%rdi
lea    -0x94(%rbp),%rsi
mov    $0x0,%al
call   1030 <mystrcmp@plt>
mov    %eax,%esi
lea    0xd45(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xd56(%rip),%rax
mov    %rax,-0x9d(%rbp)
mov    0xd51(%rip),%al
mov    %al,-0x95(%rbp)
mov    0xc74(%rip),%rax
mov    %rax,-0xa6(%rbp)
mov    0xc6f(%rip),%al
mov    %al,-0x9e(%rbp)
lea    -0x9d(%rbp),%rsi
lea    0xd24(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xa6(%rbp),%rsi
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x9d(%rbp),%rdi
lea    -0xa6(%rbp),%rsi
mov    $0x0,%al
call   1030 <mystrcmp@plt>
mov    %eax,%esi
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xc0b(%rip),%rax
mov    %rax,-0xaf(%rbp)
mov    0xc06(%rip),%al
mov    %al,-0xa7(%rbp)
mov    0xcb9(%rip),%rax
mov    %rax,-0xb8(%rbp)
mov    0xcb4(%rip),%al
mov    %al,-0xb0(%rbp)
lea    -0xaf(%rbp),%rsi
lea    0xce0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xb8(%rbp),%rsi
lea    0xcdb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xaf(%rbp),%rdi
lea    -0xb8(%rbp),%rsi
mov    $0x0,%al
call   1030 <mystrcmp@plt>
mov    %eax,%esi
lea    0xcc6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    0xb88(%rip),%rax
mov    %rax,-0xc1(%rbp)
mov    0xb83(%rip),%al
mov    %al,-0xb9(%rbp)
lea    -0xc1(%rbp),%rsi
lea    0xcb6(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcb8(%rip),%rdi
lea    -0xc1(%rbp),%rsi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc1(%rbp),%rdi
lea    0xcd4(%rip),%rsi
mov    $0x0,%al
call   1040 <mystrchr@plt>
mov    %eax,%esi
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0xc1(%rbp),%rdi
lea    0xb1d(%rip),%rsi
mov    $0x0,%al
call   1040 <mystrchr@plt>
mov    %eax,%esi
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
xor    %eax,%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x118,%rsp
movl   $0x736966,0xb(%rsp)
movl   $0x66647361,0x8(%rsp)
66
movabs $0x747464646f646f64,%rax
64 74 74
mov    %rax,0xc0(%rsp)
movl   $0x657274,0xc7(%rsp)
lea    0xe70(%rip),%rdi
lea    0x8(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <mystrlen@plt>
lea    0xe60(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe62(%rip),%rdi
lea    0xc0(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <mystrlen@plt>
lea    0xe4e(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movabs $0x6b6673646a647361,%rax
73 66 6b
mov    %rax,0xa0(%rsp)
movb   $0x0,0xa8(%rsp)
movabs $0x73616b736b736a6b,%rax
6b 61 73
mov    %rax,0xb0(%rsp)
movl   $0x736b73,0xb7(%rsp)
lea    0xe2e(%rip),%rdi
lea    0xa0(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe24(%rip),%rdi
lea    0xb0(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1080 <mystrcpy@plt>
lea    0xe0d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movaps 0x1015(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movb   $0x0,0xf0(%rsp)
movaps 0x101e(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movw   $0x66,0x110(%rsp)
lea    0xde5(%rip),%rdi
lea    0xe0(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xddb(%rip),%rdi
lea    0x100(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1050 <mystrncat@plt>
lea    0xdbf(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movabs $0x6664736166647361,%r15
73 64 66
mov    %r15,0x90(%rsp)
movb   $0x0,0x98(%rsp)
mov    %r15,0x80(%rsp)
movb   $0x0,0x88(%rsp)
lea    0xda8(%rip),%rdi
lea    0x90(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd9e(%rip),%rdi
lea    0x80(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <mystrcmp@plt>
lea    0xd87(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movabs $0x64736166647361,%r12
mov    %r12,0xd8(%rsp)
mov    %r15,0x70(%rsp)
movb   $0x0,0x78(%rsp)
lea    0xd78(%rip),%rdi
lea    0xd8(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd6e(%rip),%rdi
lea    0x70(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <mystrcmp@plt>
lea    0xd5b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,0x60(%rsp)
movb   $0x0,0x68(%rsp)
mov    %r12,0xd0(%rsp)
lea    0xd57(%rip),%rdi
lea    0x60(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd51(%rip),%rdi
lea    0xd0(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <mystrcmp@plt>
lea    0xd3b(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
movabs $0x6764736166647361,%r12
73 64 67
mov    %r12,0x50(%rsp)
movb   $0x0,0x58(%rsp)
mov    %r15,0x40(%rsp)
movb   $0x0,0x48(%rsp)
lea    0xd2c(%rip),%rdi
lea    0x50(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd26(%rip),%rdi
lea    0x40(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <mystrcmp@plt>
lea    0xd13(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,0x30(%rsp)
movb   $0x0,0x38(%rsp)
mov    %r12,0x20(%rsp)
movb   $0x0,0x28(%rsp)
lea    0xd17(%rip),%rdi
lea    0x30(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd11(%rip),%rdi
lea    0x20(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <mystrcmp@plt>
lea    0xcfe(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,0x10(%rsp)
movb   $0x0,0x18(%rsp)
lea    0xd0c(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd06(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd2d(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <mystrchr@plt>
lea    0xd00(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcc0(%rip),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <mystrchr@plt>
lea    0xcfd(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
xor    %eax,%eax
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.s1 = [7 x i8] c"asdfis\00"
@__const.main.s2 = [11 x i8] c"dododdttre\00"
@.str = [16 x i8] c"\0AString s1: %s\0A\00"
@.str.1 = [18 x i8] c"Length of s1: %d\0A\00"
@.str.2 = [15 x i8] c"String s2: %s\0A\00"
@.str.3 = [19 x i8] c"Length of s2: %d\0A\0A\00"
@__const.main.s3 = [9 x i8] c"asdjdsfk\00"
@__const.main.s4 = [11 x i8] c"kjskskasks\00"
@.str.4 = [15 x i8] c"String s3: %s\0A\00"
@.str.5 = [15 x i8] c"String s4: %s\0A\00"
@.str.6 = [24 x i8] c"Copied s4 onto s3: %s\0A\0A\00"
@__const.main.s5 = [17 x i8] c"sdaiusdafasasgdf\00"
@__const.main.s6 = [18 x i8] c"gffffgjjklfdjkldf\00"
@.str.7 = [15 x i8] c"String s5: %s\0A\00"
@.str.8 = [15 x i8] c"String s6: %s\0A\00"
@.str.9 = [35 x i8] c"Concatenated 3 of s6 onto s5: %s\0A\0A\00"
@__const.main.s7 = [9 x i8] c"asdfasdf\00"
@__const.main.s8 = [9 x i8] c"asdfasdf\00"
@.str.10 = [15 x i8] c"String s7: %s\0A\00"
@.str.11 = [15 x i8] c"String s8: %s\0A\00"
@.str.12 = [29 x i8] c"String s7 vs String s8: %d\0A\0A\00"
@__const.main.s9 = [8 x i8] c"asdfasd\00"
@__const.main.s10 = [9 x i8] c"asdfasdf\00"
@.str.13 = [15 x i8] c"String s9: %s\0A\00"
@.str.14 = [16 x i8] c"String s10: %s\0A\00"
@.str.15 = [30 x i8] c"String s9 vs String s10: %d\0A\0A\00"
@__const.main.s11 = [9 x i8] c"asdfasdf\00"
@__const.main.s12 = [8 x i8] c"asdfasd\00"
@.str.16 = [16 x i8] c"String s11: %s\0A\00"
@.str.17 = [16 x i8] c"String s12: %s\0A\00"
@.str.18 = [31 x i8] c"String s11 vs String s12: %d\0A\0A\00"
@__const.main.s13 = [9 x i8] c"asdfasdg\00"
@__const.main.s14 = [9 x i8] c"asdfasdf\00"
@.str.19 = [16 x i8] c"String s13: %s\0A\00"
@.str.20 = [16 x i8] c"String s14: %s\0A\00"
@.str.21 = [31 x i8] c"String s13 vs String s14: %d\0A\0A\00"
@__const.main.s15 = [9 x i8] c"asdfasdf\00"
@__const.main.s16 = [9 x i8] c"asdfasdg\00"
@.str.22 = [16 x i8] c"String s15: %s\0A\00"
@.str.23 = [16 x i8] c"String s16: %s\0A\00"
@.str.24 = [31 x i8] c"String s15 vs String s16: %d\0A\0A\00"
@__const.main.s17 = [9 x i8] c"asdfasdf\00"
@.str.25 = [16 x i8] c"String s17: %s\0A\00"
@.str.26 = [28 x i8] c"Address of String s17: %lu\0A\00"
@.str.27 = [28 x i8] c"Address of \22a\22 in s17: %lu\0A\00"
@.str.28 = [2 x i8] c"a\00"
@.str.29 = [31 x i8] c"Address of \22sdf\22 in s17: %lu\0A\0A\00"
@.str.30 = [4 x i8] c"sdf\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = alloca [11 x i8]
%3 = alloca [9 x i8]
%4 = alloca [11 x i8]
%5 = alloca [17 x i8]
%6 = alloca [18 x i8]
%7 = alloca [9 x i8]
%8 = alloca [9 x i8]
%9 = alloca [8 x i8]
%10 = alloca [9 x i8]
%11 = alloca [9 x i8]
%12 = alloca [8 x i8]
%13 = alloca [9 x i8]
%14 = alloca [9 x i8]
%15 = alloca [9 x i8]
%16 = alloca [9 x i8]
%17 = alloca [9 x i8]
%18 = bitcast [7 x i8]* %1 to i8*
%19 = bitcast [11 x i8]* %2 to i8*
%20 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%23 = call i32 (i8*, ...) bitcast (i32 (...)* @mystrlen to i32 (i8*, ...)*)(i8* %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %23)
%25 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %25)
%27 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%28 = call i32 (i8*, ...) bitcast (i32 (...)* @mystrlen to i32 (i8*, ...)*)(i8* %27)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %28)
%30 = bitcast [9 x i8]* %3 to i8*
%31 = bitcast [11 x i8]* %4 to i8*
%32 = getelementptr inbounds [9 x i8], [9 x i8]* %3, i64 0, i64 0
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds [11 x i8], [11 x i8]* %4, i64 0, i64 0
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %34)
%36 = getelementptr inbounds [9 x i8], [9 x i8]* %3, i64 0, i64 0
%37 = getelementptr inbounds [11 x i8], [11 x i8]* %4, i64 0, i64 0
%38 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcpy to i32 (i8*, i8*, ...)*)(i8* %36, i8* %37)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %38)
%40 = bitcast [17 x i8]* %5 to i8*
%41 = bitcast [18 x i8]* %6 to i8*
%42 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %42)
%44 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 0
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 0
%47 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 0
%48 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @mystrncat to i32 (i8*, i8*, i32, ...)*)(i8* %46, i8* %47, i32 3)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i32 %48)
%50 = bitcast [9 x i8]* %7 to i8*
%51 = bitcast [9 x i8]* %8 to i8*
%52 = getelementptr inbounds [9 x i8], [9 x i8]* %7, i64 0, i64 0
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* %52)
%54 = getelementptr inbounds [9 x i8], [9 x i8]* %8, i64 0, i64 0
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %54)
%56 = getelementptr inbounds [9 x i8], [9 x i8]* %7, i64 0, i64 0
%57 = getelementptr inbounds [9 x i8], [9 x i8]* %8, i64 0, i64 0
%58 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %56, i8* %57)
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %58)
%60 = bitcast [8 x i8]* %9 to i8*
%61 = bitcast [9 x i8]* %10 to i8*
%62 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* %62)
%64 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 0
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i8* %64)
%66 = getelementptr inbounds [8 x i8], [8 x i8]* %9, i64 0, i64 0
%67 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 0
%68 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %66, i8* %67)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 %68)
%70 = bitcast [9 x i8]* %11 to i8*
%71 = bitcast [8 x i8]* %12 to i8*
%72 = getelementptr inbounds [9 x i8], [9 x i8]* %11, i64 0, i64 0
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i8* %72)
%74 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 0
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i8* %74)
%76 = getelementptr inbounds [9 x i8], [9 x i8]* %11, i64 0, i64 0
%77 = getelementptr inbounds [8 x i8], [8 x i8]* %12, i64 0, i64 0
%78 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %76, i8* %77)
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i32 %78)
%80 = bitcast [9 x i8]* %13 to i8*
%81 = bitcast [9 x i8]* %14 to i8*
%82 = getelementptr inbounds [9 x i8], [9 x i8]* %13, i64 0, i64 0
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* %82)
%84 = getelementptr inbounds [9 x i8], [9 x i8]* %14, i64 0, i64 0
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* %84)
%86 = getelementptr inbounds [9 x i8], [9 x i8]* %13, i64 0, i64 0
%87 = getelementptr inbounds [9 x i8], [9 x i8]* %14, i64 0, i64 0
%88 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %86, i8* %87)
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.21, i64 0, i64 0), i32 %88)
%90 = bitcast [9 x i8]* %15 to i8*
%91 = bitcast [9 x i8]* %16 to i8*
%92 = getelementptr inbounds [9 x i8], [9 x i8]* %15, i64 0, i64 0
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i8* %92)
%94 = getelementptr inbounds [9 x i8], [9 x i8]* %16, i64 0, i64 0
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), i8* %94)
%96 = getelementptr inbounds [9 x i8], [9 x i8]* %15, i64 0, i64 0
%97 = getelementptr inbounds [9 x i8], [9 x i8]* %16, i64 0, i64 0
%98 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %96, i8* %97)
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.24, i64 0, i64 0), i32 %98)
%100 = bitcast [9 x i8]* %17 to i8*
%101 = getelementptr inbounds [9 x i8], [9 x i8]* %17, i64 0, i64 0
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), i8* %101)
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.26, i64 0, i64 0), [9 x i8]* %17)
%104 = getelementptr inbounds [9 x i8], [9 x i8]* %17, i64 0, i64 0
%105 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrchr to i32 (i8*, i8*, ...)*)(i8* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i64 0, i64 0))
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.27, i64 0, i64 0), i32 %105)
%107 = getelementptr inbounds [9 x i8], [9 x i8]* %17, i64 0, i64 0
%108 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrchr to i32 (i8*, i8*, ...)*)(i8* %107, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.29, i64 0, i64 0), i32 %108)
ret i32 0
}

LLVM IR (-O2):
@__const.main.s1 = [7 x i8] c"asdfis\00"
@__const.main.s2 = [11 x i8] c"dododdttre\00"
@.str = [16 x i8] c"\0AString s1: %s\0A\00"
@.str.1 = [18 x i8] c"Length of s1: %d\0A\00"
@.str.2 = [15 x i8] c"String s2: %s\0A\00"
@.str.3 = [19 x i8] c"Length of s2: %d\0A\0A\00"
@__const.main.s3 = [9 x i8] c"asdjdsfk\00"
@__const.main.s4 = [11 x i8] c"kjskskasks\00"
@.str.4 = [15 x i8] c"String s3: %s\0A\00"
@.str.5 = [15 x i8] c"String s4: %s\0A\00"
@.str.6 = [24 x i8] c"Copied s4 onto s3: %s\0A\0A\00"
@__const.main.s5 = [17 x i8] c"sdaiusdafasasgdf\00"
@__const.main.s6 = [18 x i8] c"gffffgjjklfdjkldf\00"
@.str.7 = [15 x i8] c"String s5: %s\0A\00"
@.str.8 = [15 x i8] c"String s6: %s\0A\00"
@.str.9 = [35 x i8] c"Concatenated 3 of s6 onto s5: %s\0A\0A\00"
@.str.10 = [15 x i8] c"String s7: %s\0A\00"
@.str.11 = [15 x i8] c"String s8: %s\0A\00"
@.str.12 = [29 x i8] c"String s7 vs String s8: %d\0A\0A\00"
@.str.13 = [15 x i8] c"String s9: %s\0A\00"
@.str.14 = [16 x i8] c"String s10: %s\0A\00"
@.str.15 = [30 x i8] c"String s9 vs String s10: %d\0A\0A\00"
@.str.16 = [16 x i8] c"String s11: %s\0A\00"
@.str.17 = [16 x i8] c"String s12: %s\0A\00"
@.str.18 = [31 x i8] c"String s11 vs String s12: %d\0A\0A\00"
@.str.19 = [16 x i8] c"String s13: %s\0A\00"
@.str.20 = [16 x i8] c"String s14: %s\0A\00"
@.str.21 = [31 x i8] c"String s13 vs String s14: %d\0A\0A\00"
@__const.main.s16 = [9 x i8] c"asdfasdg\00"
@.str.22 = [16 x i8] c"String s15: %s\0A\00"
@.str.23 = [16 x i8] c"String s16: %s\0A\00"
@.str.24 = [31 x i8] c"String s15 vs String s16: %d\0A\0A\00"
@__const.main.s17 = [9 x i8] c"asdfasdf\00"
@.str.25 = [16 x i8] c"String s17: %s\0A\00"
@.str.26 = [28 x i8] c"Address of String s17: %lu\0A\00"
@.str.27 = [28 x i8] c"Address of \22a\22 in s17: %lu\0A\00"
@.str.28 = [2 x i8] c"a\00"
@.str.29 = [31 x i8] c"Address of \22sdf\22 in s17: %lu\0A\0A\00"
@.str.30 = [4 x i8] c"sdf\00"
define i32 @main() {
%1 = alloca [7 x i8]
%2 = alloca [11 x i8]
%3 = alloca [9 x i8]
%4 = alloca [11 x i8]
%5 = alloca [17 x i8]
%6 = alloca [18 x i8]
%7 = alloca [9 x i8]
%8 = alloca [9 x i8]
%9 = alloca i64
%10 = alloca [9 x i8]
%11 = alloca [9 x i8]
%12 = alloca i64
%13 = alloca [9 x i8]
%14 = alloca [9 x i8]
%15 = alloca [9 x i8]
%16 = alloca [9 x i8]
%17 = alloca [9 x i8]
%18 = getelementptr inbounds [7 x i8], [7 x i8]* %1, i64 0, i64 0
%19 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i8* %18)
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @mystrlen to i32 (i8*, ...)*)(i8* %18)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %21)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* %19)
%24 = call i32 (i8*, ...) bitcast (i32 (...)* @mystrlen to i32 (i8*, ...)*)(i8* %19)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds [9 x i8], [9 x i8]* %3, i64 0, i64 0
%27 = getelementptr inbounds [11 x i8], [11 x i8]* %4, i64 0, i64 0
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* %26)
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i8* %27)
%30 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcpy to i32 (i8*, i8*, ...)*)(i8* %26, i8* %27)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0), i32 %30)
%32 = getelementptr inbounds [17 x i8], [17 x i8]* %5, i64 0, i64 0
%33 = getelementptr inbounds [18 x i8], [18 x i8]* %6, i64 0, i64 0
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0), i8* %32)
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* %33)
%36 = call i32 (i8*, i8*, i32, ...) bitcast (i32 (...)* @mystrncat to i32 (i8*, i8*, i32, ...)*)(i8* %32, i8* %33, i32 3)
%37 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i32 %36)
%38 = getelementptr inbounds [9 x i8], [9 x i8]* %7, i64 0, i64 0
%39 = getelementptr inbounds [9 x i8], [9 x i8]* %8, i64 0, i64 0
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* %38)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0), i8* %39)
%42 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %38, i8* %39)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.12, i64 0, i64 0), i32 %42)
%44 = bitcast i64* %9 to i8*
store i64 28274359837946721, i64* %9
%45 = getelementptr inbounds [9 x i8], [9 x i8]* %10, i64 0, i64 0
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i64* %9)
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i8* %45)
%48 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %44, i8* %45)
%49 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.15, i64 0, i64 0), i32 %48)
%50 = getelementptr inbounds [9 x i8], [9 x i8]* %11, i64 0, i64 0
%51 = bitcast i64* %12 to i8*
store i64 28274359837946721, i64* %12
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.16, i64 0, i64 0), i8* %50)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), i64* %12)
%54 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %50, i8* %51)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.18, i64 0, i64 0), i32 %54)
%56 = getelementptr inbounds [9 x i8], [9 x i8]* %13, i64 0, i64 0
%57 = getelementptr inbounds [9 x i8], [9 x i8]* %14, i64 0, i64 0
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.19, i64 0, i64 0), i8* %56)
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.20, i64 0, i64 0), i8* %57)
%60 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %56, i8* %57)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.21, i64 0, i64 0), i32 %60)
%62 = getelementptr inbounds [9 x i8], [9 x i8]* %15, i64 0, i64 0
%63 = getelementptr inbounds [9 x i8], [9 x i8]* %16, i64 0, i64 0
%64 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.22, i64 0, i64 0), i8* %62)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), i8* %63)
%66 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrcmp to i32 (i8*, i8*, ...)*)(i8* %62, i8* %63)
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.24, i64 0, i64 0), i32 %66)
%68 = getelementptr inbounds [9 x i8], [9 x i8]* %17, i64 0, i64 0
%69 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), i8* %68)
%70 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.26, i64 0, i64 0), [9 x i8]* %17)
%71 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrchr to i32 (i8*, i8*, ...)*)(i8* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.28, i64 0, i64 0))
%72 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.27, i64 0, i64 0), i32 %71)
%73 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @mystrchr to i32 (i8*, i8*, ...)*)(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.29, i64 0, i64 0), i32 %73)
ret i32 0
}