#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 *strcat1(char *, char *);
char *strcpy1(char *, char *);
char *strcpy2(char *, char *);
char *strncat1(char *, char *, int);
char *strncat2(char *, char *, int);
char *strncpy1(char *, char *, int);
char *strncpy2(char *, char *, int);
int main() {
  char s1[15], s2[20];
  printf("---- strcpy1 ----\n");
  printf("Value returned = '%s'\n", strcpy1(s1, "Test String"));
  printf("Value of s1 = '%s'\n", s1);
  printf("\n---- strncpy1 ----\n");
  printf("Value returned = '%s'\n", strncpy1(s2, "Test String", 4));
  printf("Value of s2 = '%s'\n", s2);
  printf("\n---- strcat1 ----\n");
  printf("Value returned = '%s'\n", strcat1(s2, "added"));
  printf("Value of s2 = '%s'\n", s2);
  printf("\n---- strncat1 ----\n");
  printf("Value returned = '%s'\n", strncat1(s2, "onto", 2));
  printf("Value of s2 = '%s'\n", s2);
  char s3[15], s4[20];
  printf("\n---- strcpy2 ----\n");
  printf("Value returned = '%s'\n", strcpy2(s3, "Test String2"));
  printf("Value of s3 = '%s'\n", s3);
  printf("\n---- strncpy2 ----\n");
  printf("Value returned = '%s'\n", strncpy2(s4, "New String", 3));
  printf("Value of s4 = '%s'\n", s4);
  printf("\n---- strcat2 ----\n");
  printf("Value returned = '%s'\n", strcat1(s4, "ts"));
  printf("Value of s4 = '%s'\n", s4);
  printf("\n---- strncat2 ----\n");
  printf("Value returned = '%s'\n", strncat2(s4, " are gorgeous", 7));
  printf("Value of s4 = '%s'\n", s4);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x13(%rbp),%rdi
lea    0xe82(%rip),%rsi
call   1060 <strcpy1@plt>
mov    %rax,%rsi
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x13(%rbp),%rsi
lea    0xe6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe73(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x30(%rbp),%rdi
lea    0xe41(%rip),%rsi
mov    $0x4,%edx
call   1050 <strncpy1@plt>
mov    %rax,%rsi
lea    0xe16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x30(%rbp),%rdi
lea    0xe58(%rip),%rsi
call   1070 <strcat1@plt>
mov    %rax,%rsi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x30(%rbp),%rdi
lea    0xe32(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncat1@plt>
mov    %rax,%rsi
lea    0xd8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x30(%rbp),%rsi
lea    0xdc9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe03(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x3f(%rbp),%rdi
lea    0xe05(%rip),%rsi
call   10a0 <strcpy2@plt>
mov    %rax,%rsi
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x3f(%rbp),%rsi
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
lea    0xdfa(%rip),%rsi
mov    $0x3,%edx
call   1090 <strncpy2@plt>
mov    %rax,%rsi
lea    0xd08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xddf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
lea    0xde7(%rip),%rsi
call   1070 <strcat1@plt>
mov    %rax,%rsi
lea    0xcc7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdbb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rdi
lea    0xdbe(%rip),%rsi
mov    $0x7,%edx
call   1080 <strncat2@plt>
mov    %rax,%rsi
lea    0xc81(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x60(%rbp),%rsi
lea    0xd58(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x60,%rsp
lea    0xf07(%rip),%rdi
call   1040 <puts@plt>
lea    0xe6b(%rip),%r15
lea    0x11(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
call   1070 <strcpy1@plt>
lea    0xe3d(%rip),%r14
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe4c(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xed1(%rip),%rdi
call   1040 <puts@plt>
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x4,%edx
call   1060 <strncpy1@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe21(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xea3(%rip),%rdi
call   1040 <puts@plt>
lea    0xe15(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat1@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe81(%rip),%rdi
call   1040 <puts@plt>
lea    0xde6(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncat1@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe5b(%rip),%rdi
call   1040 <puts@plt>
lea    0xdb1(%rip),%rsi
lea    0x2(%rsp),%rbx
mov    %rbx,%rdi
call   10b0 <strcpy2@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd9d(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe30(%rip),%rdi
call   1040 <puts@plt>
lea    0xd94(%rip),%rsi
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x3,%edx
call   10a0 <strncpy2@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd79(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xdfe(%rip),%rdi
call   1040 <puts@plt>
lea    0xd6d(%rip),%rsi
mov    %rbx,%rdi
call   1080 <strcat1@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xddc(%rip),%rdi
call   1040 <puts@plt>
lea    0xd3b(%rip),%rsi
mov    %rbx,%rdi
mov    $0x7,%edx
call   1090 <strncat2@plt>
mov    %r14,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [19 x i8] c"---- strcpy1 ----\0A\00"
@.str.1 = [23 x i8] c"Value returned = '%s'\0A\00"
@.str.2 = [12 x i8] c"Test String\00"
@.str.3 = [20 x i8] c"Value of s1 = '%s'\0A\00"
@.str.4 = [21 x i8] c"\0A---- strncpy1 ----\0A\00"
@.str.5 = [20 x i8] c"Value of s2 = '%s'\0A\00"
@.str.6 = [20 x i8] c"\0A---- strcat1 ----\0A\00"
@.str.7 = [6 x i8] c"added\00"
@.str.8 = [21 x i8] c"\0A---- strncat1 ----\0A\00"
@.str.9 = [5 x i8] c"onto\00"
@.str.10 = [20 x i8] c"\0A---- strcpy2 ----\0A\00"
@.str.11 = [13 x i8] c"Test String2\00"
@.str.12 = [20 x i8] c"Value of s3 = '%s'\0A\00"
@.str.13 = [21 x i8] c"\0A---- strncpy2 ----\0A\00"
@.str.14 = [11 x i8] c"New String\00"
@.str.15 = [20 x i8] c"Value of s4 = '%s'\0A\00"
@.str.16 = [20 x i8] c"\0A---- strcat2 ----\0A\00"
@.str.17 = [3 x i8] c"ts\00"
@.str.18 = [21 x i8] c"\0A---- strncat2 ----\0A\00"
@.str.19 = [14 x i8] c" are gorgeous\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [15 x i8]
%3 = alloca [20 x i8]
%4 = alloca [15 x i8]
%5 = alloca [20 x i8]
store i32 0, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [15 x i8], [15 x i8]* %2, i64 0, i64 0
%8 = call i8* @strcpy1(i8* %7, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [15 x i8], [15 x i8]* %2, i64 0, i64 0
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %10)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%13 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%14 = call i8* @strncpy1(i8* %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 4)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %14)
%16 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %16)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
%19 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%20 = call i8* @strcat1(i8* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %22)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0))
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%26 = call i8* @strncat1(i8* %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 2)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %28)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0))
%31 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 0
%32 = call i8* @strcpy2(i8* %31, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %32)
%34 = getelementptr inbounds [15 x i8], [15 x i8]* %4, i64 0, i64 0
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0))
%37 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%38 = call i8* @strncpy2(i8* %37, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 3)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
%43 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%44 = call i8* @strcat1(i8* %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.18, i64 0, i64 0))
%49 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%50 = call i8* @strncat2(i8* %49, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 7)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %50)
%52 = getelementptr inbounds [20 x i8], [20 x i8]* %5, i64 0, i64 0
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* %52)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [23 x i8] c"Value returned = '%s'\0A\00"
@.str.2 = [12 x i8] c"Test String\00"
@.str.3 = [20 x i8] c"Value of s1 = '%s'\0A\00"
@.str.5 = [20 x i8] c"Value of s2 = '%s'\0A\00"
@.str.7 = [6 x i8] c"added\00"
@.str.9 = [5 x i8] c"onto\00"
@.str.11 = [13 x i8] c"Test String2\00"
@.str.12 = [20 x i8] c"Value of s3 = '%s'\0A\00"
@.str.14 = [11 x i8] c"New String\00"
@.str.15 = [20 x i8] c"Value of s4 = '%s'\0A\00"
@.str.17 = [3 x i8] c"ts\00"
@.str.19 = [14 x i8] c" are gorgeous\00"
@str = [18 x i8] c"---- strcpy1 ----\00"
@str.20 = [20 x i8] c"\0A---- strncpy1 ----\00"
@str.21 = [19 x i8] c"\0A---- strcat1 ----\00"
@str.22 = [20 x i8] c"\0A---- strncat1 ----\00"
@str.23 = [19 x i8] c"\0A---- strcpy2 ----\00"
@str.24 = [20 x i8] c"\0A---- strncpy2 ----\00"
@str.25 = [19 x i8] c"\0A---- strcat2 ----\00"
@str.26 = [20 x i8] c"\0A---- strncat2 ----\00"
define i32 @main() {
%1 = alloca [15 x i8]
%2 = alloca [20 x i8]
%3 = alloca [15 x i8]
%4 = alloca [20 x i8]
%5 = getelementptr inbounds [15 x i8], [15 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%8 = call i8* @strcpy1(i8* %5, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %8)
%10 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i8* %5)
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%12 = call i8* @strncpy1(i8* %6, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0), i32 4)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %12)
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.21, i64 0, i64 0))
%16 = call i8* @strcat1(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %16)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.22, i64 0, i64 0))
%20 = call i8* @strncat1(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i32 2)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %20)
%22 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), i8* %6)
%23 = getelementptr inbounds [15 x i8], [15 x i8]* %3, i64 0, i64 0
%24 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.23, i64 0, i64 0))
%26 = call i8* @strcpy2(i8* %23, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0), i8* %23)
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.24, i64 0, i64 0))
%30 = call i8* @strncpy2(i8* %24, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 3)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %30)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* %24)
%33 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.25, i64 0, i64 0))
%34 = call i8* @strcat1(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %34)
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* %24)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.26, i64 0, i64 0))
%38 = call i8* @strncat2(i8* %24, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.19, i64 0, i64 0), i32 7)
%39 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* %24)
ret i32 0
}