#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 */
char *mastrcpy(char *, char *);
char *mastrncpy(char *, char *, int);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *, ...);
int main(void) {
  {
    char a[80] = "xxx", *b = "y";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s ", a, a, b, b);
      tmp = mastrcpy(a, b);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "y";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 0);
      tmp = mastrncpy(a, b, 0);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "y";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 1);
      tmp = mastrncpy(a, b, 1);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "y";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 2);
      tmp = mastrncpy(a, b, 2);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "y";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 3);
      tmp = mastrncpy(a, b, 3);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "ttttt";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 0);
      tmp = mastrncpy(a, b, 0);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "ttttt";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 1);
      tmp = mastrncpy(a, b, 1);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "ttttt";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 2);
      tmp = mastrncpy(a, b, 2);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  {
    char a[80] = "xxx", *b = "ttttt";
    {
      char *tmp;
      printf("a: %p:%s b: %p:%s len: %d ", a, a, b, b, 7);
      tmp = mastrncpy(a, b, 7);
      printf("a: %p:%s b: %p:%s ret: %p\n", a, a, b, b, tmp);
    };
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x370,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x60(%rbp)
movb   $0x78,-0x5f(%rbp)
movb   $0x78,-0x5e(%rbp)
lea    0xe8b(%rip),%rax
mov    %rax,-0x68(%rbp)
lea    -0x60(%rbp),%rsi
lea    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    -0x68(%rbp),%r8
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
mov    -0x68(%rbp),%rsi
call   1030 <mastrcpy@plt>
mov    %rax,-0x70(%rbp)
lea    -0x60(%rbp),%rsi
lea    -0x60(%rbp),%rdx
mov    -0x68(%rbp),%rcx
mov    -0x68(%rbp),%r8
mov    -0x70(%rbp),%r9
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xc0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0xc0(%rbp)
movb   $0x78,-0xbf(%rbp)
movb   $0x78,-0xbe(%rbp)
lea    0xe07(%rip),%rax
mov    %rax,-0xc8(%rbp)
lea    -0xc0(%rbp),%rsi
lea    -0xc0(%rbp),%rdx
mov    -0xc8(%rbp),%rcx
mov    -0xc8(%rbp),%r8
lea    0xe0d(%rip),%rdi
xor    %r9d,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0xc0(%rbp),%rdi
mov    -0xc8(%rbp),%rsi
xor    %edx,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0xd0(%rbp)
lea    -0xc0(%rbp),%rsi
lea    -0xc0(%rbp),%rdx
mov    -0xc8(%rbp),%rcx
mov    -0xc8(%rbp),%r8
mov    -0xd0(%rbp),%r9
lea    0xda2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x120(%rbp)
movb   $0x78,-0x11f(%rbp)
movb   $0x78,-0x11e(%rbp)
lea    0xd57(%rip),%rax
mov    %rax,-0x128(%rbp)
lea    -0x120(%rbp),%rsi
lea    -0x120(%rbp),%rdx
mov    -0x128(%rbp),%rcx
mov    -0x128(%rbp),%r8
lea    0xd5d(%rip),%rdi
mov    $0x1,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x120(%rbp),%rdi
mov    -0x128(%rbp),%rsi
mov    $0x1,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x130(%rbp)
lea    -0x120(%rbp),%rsi
lea    -0x120(%rbp),%rdx
mov    -0x128(%rbp),%rcx
mov    -0x128(%rbp),%r8
mov    -0x130(%rbp),%r9
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x180(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x180(%rbp)
movb   $0x78,-0x17f(%rbp)
movb   $0x78,-0x17e(%rbp)
lea    0xca1(%rip),%rax
mov    %rax,-0x188(%rbp)
lea    -0x180(%rbp),%rsi
lea    -0x180(%rbp),%rdx
mov    -0x188(%rbp),%rcx
mov    -0x188(%rbp),%r8
lea    0xca7(%rip),%rdi
mov    $0x2,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x180(%rbp),%rdi
mov    -0x188(%rbp),%rsi
mov    $0x2,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x190(%rbp)
lea    -0x180(%rbp),%rsi
lea    -0x180(%rbp),%rdx
mov    -0x188(%rbp),%rcx
mov    -0x188(%rbp),%r8
mov    -0x190(%rbp),%r9
lea    0xc36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1e0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x1e0(%rbp)
movb   $0x78,-0x1df(%rbp)
movb   $0x78,-0x1de(%rbp)
lea    0xbeb(%rip),%rax
mov    %rax,-0x1e8(%rbp)
lea    -0x1e0(%rbp),%rsi
lea    -0x1e0(%rbp),%rdx
mov    -0x1e8(%rbp),%rcx
mov    -0x1e8(%rbp),%r8
lea    0xbf1(%rip),%rdi
mov    $0x3,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x1e0(%rbp),%rdi
mov    -0x1e8(%rbp),%rsi
mov    $0x3,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x1f0(%rbp)
lea    -0x1e0(%rbp),%rsi
lea    -0x1e0(%rbp),%rdx
mov    -0x1e8(%rbp),%rcx
mov    -0x1e8(%rbp),%r8
mov    -0x1f0(%rbp),%r9
lea    0xb80(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x240(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x240(%rbp)
movb   $0x78,-0x23f(%rbp)
movb   $0x78,-0x23e(%rbp)
lea    0xb80(%rip),%rax
mov    %rax,-0x248(%rbp)
lea    -0x240(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    -0x248(%rbp),%rcx
mov    -0x248(%rbp),%r8
lea    0xb3b(%rip),%rdi
xor    %r9d,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x240(%rbp),%rdi
mov    -0x248(%rbp),%rsi
xor    %edx,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x250(%rbp)
lea    -0x240(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    -0x248(%rbp),%rcx
mov    -0x248(%rbp),%r8
mov    -0x250(%rbp),%r9
lea    0xad0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x2a0(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x2a0(%rbp)
movb   $0x78,-0x29f(%rbp)
movb   $0x78,-0x29e(%rbp)
lea    0xad0(%rip),%rax
mov    %rax,-0x2a8(%rbp)
lea    -0x2a0(%rbp),%rsi
lea    -0x2a0(%rbp),%rdx
mov    -0x2a8(%rbp),%rcx
mov    -0x2a8(%rbp),%r8
lea    0xa8b(%rip),%rdi
mov    $0x1,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x2a0(%rbp),%rdi
mov    -0x2a8(%rbp),%rsi
mov    $0x1,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x2b0(%rbp)
lea    -0x2a0(%rbp),%rsi
lea    -0x2a0(%rbp),%rdx
mov    -0x2a8(%rbp),%rcx
mov    -0x2a8(%rbp),%r8
mov    -0x2b0(%rbp),%r9
lea    0xa1a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x300(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x300(%rbp)
movb   $0x78,-0x2ff(%rbp)
movb   $0x78,-0x2fe(%rbp)
lea    0xa1a(%rip),%rax
mov    %rax,-0x308(%rbp)
lea    -0x300(%rbp),%rsi
lea    -0x300(%rbp),%rdx
mov    -0x308(%rbp),%rcx
mov    -0x308(%rbp),%r8
lea    0x9d5(%rip),%rdi
mov    $0x2,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x300(%rbp),%rdi
mov    -0x308(%rbp),%rsi
mov    $0x2,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x310(%rbp)
lea    -0x300(%rbp),%rsi
lea    -0x300(%rbp),%rdx
mov    -0x308(%rbp),%rcx
mov    -0x308(%rbp),%r8
mov    -0x310(%rbp),%r9
lea    0x964(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x360(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
movb   $0x78,-0x360(%rbp)
movb   $0x78,-0x35f(%rbp)
movb   $0x78,-0x35e(%rbp)
lea    0x964(%rip),%rax
mov    %rax,-0x368(%rbp)
lea    -0x360(%rbp),%rsi
lea    -0x360(%rbp),%rdx
mov    -0x368(%rbp),%rcx
mov    -0x368(%rbp),%r8
lea    0x91f(%rip),%rdi
mov    $0x7,%r9d
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x360(%rbp),%rdi
mov    -0x368(%rbp),%rsi
mov    $0x7,%edx
call   1060 <mastrncpy@plt>
mov    %rax,-0x370(%rbp)
lea    -0x360(%rbp),%rsi
lea    -0x360(%rbp),%rdx
mov    -0x368(%rbp),%rcx
mov    -0x368(%rbp),%r8
mov    -0x370(%rbp),%r9
lea    0x8ae(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x370,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x58,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
lea    0xe9a(%rip),%rdi
lea    0xe91(%rip),%r12
mov    %rsp,%rbx
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1030 <mastrcpy@plt>
lea    0xe7e(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
lea    0xe53(%rip),%r15
mov    %rsp,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
xor    %r9d,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
xor    %edx,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
mov    %rsp,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    $0x1,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x1,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
mov    %rsp,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    $0x2,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x2,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
mov    %rsp,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    $0x3,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0x3,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r12,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
lea    0xcb5(%rip),%rbx
mov    %rsp,%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
xor    %r9d,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
mov    %rsp,%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    $0x1,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x1,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
mov    %rsp,%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    $0x2,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x2,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movw   $0x7878,(%rsp)
movb   $0x78,0x2(%rsp)
mov    %rsp,%r12
mov    %r15,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    $0x7,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
mov    $0x7,%edx
call   1050 <mastrncpy@plt>
mov    %r14,%rdi
mov    %r12,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
mov    %rbx,%r8
mov    %rax,%r9
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [2 x i8] c"y\00"
@.str.1 = [19 x i8] c"a: %p:%s b: %p:%s \00"
@.str.2 = [27 x i8] c"a: %p:%s b: %p:%s ret: %p\0A\00"
@.str.3 = [27 x i8] c"a: %p:%s b: %p:%s len: %d \00"
@.str.4 = [6 x i8] c"ttttt\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [80 x i8]
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca [80 x i8]
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [80 x i8]
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca [80 x i8]
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca [80 x i8]
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca [80 x i8]
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca [80 x i8]
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca [80 x i8]
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca [80 x i8]
%27 = alloca i8*
%28 = alloca i8*
store i32 0, i32* %1
%29 = bitcast [80 x i8]* %2 to i8*
%30 = bitcast i8* %29 to [80 x i8]*
%31 = getelementptr inbounds [80 x i8], [80 x i8]* %30, i32 0, i32 0
store i8 120, i8* %31
%32 = getelementptr inbounds [80 x i8], [80 x i8]* %30, i32 0, i32 1
store i8 120, i8* %32
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %30, i32 0, i32 2
store i8 120, i8* %33
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %3
%34 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%35 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%36 = load i8*, i8** %3
%37 = load i8*, i8** %3
%38 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %34, i8* %35, i8* %36, i8* %37)
%39 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%40 = load i8*, i8** %3
%41 = call i8* @mastrcpy(i8* %39, i8* %40)
store i8* %41, i8** %4
%42 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%43 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%44 = load i8*, i8** %3
%45 = load i8*, i8** %3
%46 = load i8*, i8** %4
%47 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %42, i8* %43, i8* %44, i8* %45, i8* %46)
%48 = bitcast [80 x i8]* %5 to i8*
%49 = bitcast i8* %48 to [80 x i8]*
%50 = getelementptr inbounds [80 x i8], [80 x i8]* %49, i32 0, i32 0
store i8 120, i8* %50
%51 = getelementptr inbounds [80 x i8], [80 x i8]* %49, i32 0, i32 1
store i8 120, i8* %51
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %49, i32 0, i32 2
store i8 120, i8* %52
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %6
%53 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%54 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%55 = load i8*, i8** %6
%56 = load i8*, i8** %6
%57 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %53, i8* %54, i8* %55, i8* %56, i32 0)
%58 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%59 = load i8*, i8** %6
%60 = call i8* @mastrncpy(i8* %58, i8* %59, i32 0)
store i8* %60, i8** %7
%61 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%62 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
%63 = load i8*, i8** %6
%64 = load i8*, i8** %6
%65 = load i8*, i8** %7
%66 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %61, i8* %62, i8* %63, i8* %64, i8* %65)
%67 = bitcast [80 x i8]* %8 to i8*
%68 = bitcast i8* %67 to [80 x i8]*
%69 = getelementptr inbounds [80 x i8], [80 x i8]* %68, i32 0, i32 0
store i8 120, i8* %69
%70 = getelementptr inbounds [80 x i8], [80 x i8]* %68, i32 0, i32 1
store i8 120, i8* %70
%71 = getelementptr inbounds [80 x i8], [80 x i8]* %68, i32 0, i32 2
store i8 120, i8* %71
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %9
%72 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%74 = load i8*, i8** %9
%75 = load i8*, i8** %9
%76 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %72, i8* %73, i8* %74, i8* %75, i32 1)
%77 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%78 = load i8*, i8** %9
%79 = call i8* @mastrncpy(i8* %77, i8* %78, i32 1)
store i8* %79, i8** %10
%80 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%81 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
%82 = load i8*, i8** %9
%83 = load i8*, i8** %9
%84 = load i8*, i8** %10
%85 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %80, i8* %81, i8* %82, i8* %83, i8* %84)
%86 = bitcast [80 x i8]* %11 to i8*
%87 = bitcast i8* %86 to [80 x i8]*
%88 = getelementptr inbounds [80 x i8], [80 x i8]* %87, i32 0, i32 0
store i8 120, i8* %88
%89 = getelementptr inbounds [80 x i8], [80 x i8]* %87, i32 0, i32 1
store i8 120, i8* %89
%90 = getelementptr inbounds [80 x i8], [80 x i8]* %87, i32 0, i32 2
store i8 120, i8* %90
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %12
%91 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%92 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%93 = load i8*, i8** %12
%94 = load i8*, i8** %12
%95 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %91, i8* %92, i8* %93, i8* %94, i32 2)
%96 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%97 = load i8*, i8** %12
%98 = call i8* @mastrncpy(i8* %96, i8* %97, i32 2)
store i8* %98, i8** %13
%99 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%100 = getelementptr inbounds [80 x i8], [80 x i8]* %11, i64 0, i64 0
%101 = load i8*, i8** %12
%102 = load i8*, i8** %12
%103 = load i8*, i8** %13
%104 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %99, i8* %100, i8* %101, i8* %102, i8* %103)
%105 = bitcast [80 x i8]* %14 to i8*
%106 = bitcast i8* %105 to [80 x i8]*
%107 = getelementptr inbounds [80 x i8], [80 x i8]* %106, i32 0, i32 0
store i8 120, i8* %107
%108 = getelementptr inbounds [80 x i8], [80 x i8]* %106, i32 0, i32 1
store i8 120, i8* %108
%109 = getelementptr inbounds [80 x i8], [80 x i8]* %106, i32 0, i32 2
store i8 120, i8* %109
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %15
%110 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%111 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%112 = load i8*, i8** %15
%113 = load i8*, i8** %15
%114 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %110, i8* %111, i8* %112, i8* %113, i32 3)
%115 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%116 = load i8*, i8** %15
%117 = call i8* @mastrncpy(i8* %115, i8* %116, i32 3)
store i8* %117, i8** %16
%118 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%119 = getelementptr inbounds [80 x i8], [80 x i8]* %14, i64 0, i64 0
%120 = load i8*, i8** %15
%121 = load i8*, i8** %15
%122 = load i8*, i8** %16
%123 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %118, i8* %119, i8* %120, i8* %121, i8* %122)
%124 = bitcast [80 x i8]* %17 to i8*
%125 = bitcast i8* %124 to [80 x i8]*
%126 = getelementptr inbounds [80 x i8], [80 x i8]* %125, i32 0, i32 0
store i8 120, i8* %126
%127 = getelementptr inbounds [80 x i8], [80 x i8]* %125, i32 0, i32 1
store i8 120, i8* %127
%128 = getelementptr inbounds [80 x i8], [80 x i8]* %125, i32 0, i32 2
store i8 120, i8* %128
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8** %18
%129 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%130 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%131 = load i8*, i8** %18
%132 = load i8*, i8** %18
%133 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %129, i8* %130, i8* %131, i8* %132, i32 0)
%134 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%135 = load i8*, i8** %18
%136 = call i8* @mastrncpy(i8* %134, i8* %135, i32 0)
store i8* %136, i8** %19
%137 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%138 = getelementptr inbounds [80 x i8], [80 x i8]* %17, i64 0, i64 0
%139 = load i8*, i8** %18
%140 = load i8*, i8** %18
%141 = load i8*, i8** %19
%142 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %137, i8* %138, i8* %139, i8* %140, i8* %141)
%143 = bitcast [80 x i8]* %20 to i8*
%144 = bitcast i8* %143 to [80 x i8]*
%145 = getelementptr inbounds [80 x i8], [80 x i8]* %144, i32 0, i32 0
store i8 120, i8* %145
%146 = getelementptr inbounds [80 x i8], [80 x i8]* %144, i32 0, i32 1
store i8 120, i8* %146
%147 = getelementptr inbounds [80 x i8], [80 x i8]* %144, i32 0, i32 2
store i8 120, i8* %147
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8** %21
%148 = getelementptr inbounds [80 x i8], [80 x i8]* %20, i64 0, i64 0
%149 = getelementptr inbounds [80 x i8], [80 x i8]* %20, i64 0, i64 0
%150 = load i8*, i8** %21
%151 = load i8*, i8** %21
%152 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %148, i8* %149, i8* %150, i8* %151, i32 1)
%153 = getelementptr inbounds [80 x i8], [80 x i8]* %20, i64 0, i64 0
%154 = load i8*, i8** %21
%155 = call i8* @mastrncpy(i8* %153, i8* %154, i32 1)
store i8* %155, i8** %22
%156 = getelementptr inbounds [80 x i8], [80 x i8]* %20, i64 0, i64 0
%157 = getelementptr inbounds [80 x i8], [80 x i8]* %20, i64 0, i64 0
%158 = load i8*, i8** %21
%159 = load i8*, i8** %21
%160 = load i8*, i8** %22
%161 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %156, i8* %157, i8* %158, i8* %159, i8* %160)
%162 = bitcast [80 x i8]* %23 to i8*
%163 = bitcast i8* %162 to [80 x i8]*
%164 = getelementptr inbounds [80 x i8], [80 x i8]* %163, i32 0, i32 0
store i8 120, i8* %164
%165 = getelementptr inbounds [80 x i8], [80 x i8]* %163, i32 0, i32 1
store i8 120, i8* %165
%166 = getelementptr inbounds [80 x i8], [80 x i8]* %163, i32 0, i32 2
store i8 120, i8* %166
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8** %24
%167 = getelementptr inbounds [80 x i8], [80 x i8]* %23, i64 0, i64 0
%168 = getelementptr inbounds [80 x i8], [80 x i8]* %23, i64 0, i64 0
%169 = load i8*, i8** %24
%170 = load i8*, i8** %24
%171 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %167, i8* %168, i8* %169, i8* %170, i32 2)
%172 = getelementptr inbounds [80 x i8], [80 x i8]* %23, i64 0, i64 0
%173 = load i8*, i8** %24
%174 = call i8* @mastrncpy(i8* %172, i8* %173, i32 2)
store i8* %174, i8** %25
%175 = getelementptr inbounds [80 x i8], [80 x i8]* %23, i64 0, i64 0
%176 = getelementptr inbounds [80 x i8], [80 x i8]* %23, i64 0, i64 0
%177 = load i8*, i8** %24
%178 = load i8*, i8** %24
%179 = load i8*, i8** %25
%180 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %175, i8* %176, i8* %177, i8* %178, i8* %179)
%181 = bitcast [80 x i8]* %26 to i8*
%182 = bitcast i8* %181 to [80 x i8]*
%183 = getelementptr inbounds [80 x i8], [80 x i8]* %182, i32 0, i32 0
store i8 120, i8* %183
%184 = getelementptr inbounds [80 x i8], [80 x i8]* %182, i32 0, i32 1
store i8 120, i8* %184
%185 = getelementptr inbounds [80 x i8], [80 x i8]* %182, i32 0, i32 2
store i8 120, i8* %185
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8** %27
%186 = getelementptr inbounds [80 x i8], [80 x i8]* %26, i64 0, i64 0
%187 = getelementptr inbounds [80 x i8], [80 x i8]* %26, i64 0, i64 0
%188 = load i8*, i8** %27
%189 = load i8*, i8** %27
%190 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %186, i8* %187, i8* %188, i8* %189, i32 7)
%191 = getelementptr inbounds [80 x i8], [80 x i8]* %26, i64 0, i64 0
%192 = load i8*, i8** %27
%193 = call i8* @mastrncpy(i8* %191, i8* %192, i32 7)
store i8* %193, i8** %28
%194 = getelementptr inbounds [80 x i8], [80 x i8]* %26, i64 0, i64 0
%195 = getelementptr inbounds [80 x i8], [80 x i8]* %26, i64 0, i64 0
%196 = load i8*, i8** %27
%197 = load i8*, i8** %27
%198 = load i8*, i8** %28
%199 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %194, i8* %195, i8* %196, i8* %197, i8* %198)
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"y\00"
@.str.1 = [19 x i8] c"a: %p:%s b: %p:%s \00"
@.str.2 = [27 x i8] c"a: %p:%s b: %p:%s ret: %p\0A\00"
@.str.3 = [27 x i8] c"a: %p:%s b: %p:%s len: %d \00"
@.str.4 = [6 x i8] c"ttttt\00"
define i32 @main() {
%1 = alloca [80 x i8]
%2 = alloca [80 x i8]
%3 = alloca [80 x i8]
%4 = alloca [80 x i8]
%5 = alloca [80 x i8]
%6 = alloca [80 x i8]
%7 = alloca [80 x i8]
%8 = alloca [80 x i8]
%9 = alloca [80 x i8]
%10 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 0
store i8 120, i8* %10
%11 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 1
store i8 120, i8* %11
%12 = getelementptr inbounds [80 x i8], [80 x i8]* %1, i64 0, i64 2
store i8 120, i8* %12
%13 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i8* %10, i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = call i8* @mastrcpy(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%15 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %10, i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
store i8 120, i8* %16
%17 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 1
store i8 120, i8* %17
%18 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 2
store i8 120, i8* %18
%19 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %16, i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 0)
%20 = call i8* @mastrncpy(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 0)
%21 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %16, i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 0
store i8 120, i8* %22
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 1
store i8 120, i8* %23
%24 = getelementptr inbounds [80 x i8], [80 x i8]* %3, i64 0, i64 2
store i8 120, i8* %24
%25 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %22, i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%26 = call i8* @mastrncpy(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 1)
%27 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %22, i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 0
store i8 120, i8* %28
%29 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 1
store i8 120, i8* %29
%30 = getelementptr inbounds [80 x i8], [80 x i8]* %4, i64 0, i64 2
store i8 120, i8* %30
%31 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %28, i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%32 = call i8* @mastrncpy(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 2)
%33 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %28, i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 0
store i8 120, i8* %34
%35 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 1
store i8 120, i8* %35
%36 = getelementptr inbounds [80 x i8], [80 x i8]* %5, i64 0, i64 2
store i8 120, i8* %36
%37 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %34, i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 3)
%38 = call i8* @mastrncpy(i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 3)
%39 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %34, i8* %34, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 0
store i8 120, i8* %40
%41 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 1
store i8 120, i8* %41
%42 = getelementptr inbounds [80 x i8], [80 x i8]* %6, i64 0, i64 2
store i8 120, i8* %42
%43 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %40, i8* %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 0)
%44 = call i8* @mastrncpy(i8* %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 0)
%45 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %40, i8* %40, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 0
store i8 120, i8* %46
%47 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 1
store i8 120, i8* %47
%48 = getelementptr inbounds [80 x i8], [80 x i8]* %7, i64 0, i64 2
store i8 120, i8* %48
%49 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %46, i8* %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 1)
%50 = call i8* @mastrncpy(i8* %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 1)
%51 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %46, i8* %46, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %50)
%52 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 0
store i8 120, i8* %52
%53 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 1
store i8 120, i8* %53
%54 = getelementptr inbounds [80 x i8], [80 x i8]* %8, i64 0, i64 2
store i8 120, i8* %54
%55 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %52, i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2)
%56 = call i8* @mastrncpy(i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 2)
%57 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %52, i8* %52, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %56)
%58 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 0
store i8 120, i8* %58
%59 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 1
store i8 120, i8* %59
%60 = getelementptr inbounds [80 x i8], [80 x i8]* %9, i64 0, i64 2
store i8 120, i8* %60
%61 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %58, i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 7)
%62 = call i8* @mastrncpy(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 7)
%63 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* %58, i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* %62)
ret i32 0
}