#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 */
typedef int /*<<< orphan*/ string2;
typedef int /*<<< orphan*/ string1;
typedef int /*<<< orphan*/ string0;
typedef int /*<<< orphan*/ double_long_string;

/* Variables and functions */
int /*<<< orphan*/ free(char *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int main() {
  char string0[50] = {'e', 'n', 'o', 'u', 'g', 'h'};
  char string1[35] = "receive_perceive_conceive_retrieve";
  char string2[] = "four_similar_words";
  printf("sizeof_string0 %lu\n", sizeof(string0));
  printf("sizeof_string1 %lu\n", sizeof(string1));
  printf("sizeof_string2 %lu\n", sizeof(string2));
  printf("strlen_string0 %lu\n", strlen(string0));
  printf("strlen_string1 %lu\n", strlen(string1));
  printf("strlen_string2 %lu\n\n", strlen(string2));
  if (sizeof(string0) > strlen(string0) + strlen(string1)) {
    strcat(string0, string1);
    printf("string0: %s\n", string0);
  }
  printf("sizeof_string0 %lu\n", sizeof(string0));
  printf("strlen_string0 %lu\n\n", strlen(string0));
  if (sizeof(string1) > strlen(string1) + strlen(string2)) {
    strcat(string1, string2);
    printf("string1:%s\n", string1);
  }
  printf("sizeof_string1 %lu\n", sizeof(string0));
  printf("strlen_string1 %lu\n\n", strlen(string0));
  int L = (((strlen(string1)) > (strlen(string2))) ? (strlen(string1))
                                                   : (strlen(string2))) *
          2;
  char *double_long_string = (char *)malloc(sizeof(char) * L);
  printf("sizeof_double_long_string %lu\n", sizeof(double_long_string));
  printf("strlen_double_long_string %lu\n\n", strlen(double_long_string));
  strcpy(double_long_string, string1);
  strcat(double_long_string, string2);
  printf("sizeof_double_long_string %lu\n", sizeof(double_long_string));
  printf("strlen_double_long_string %lu\n\n", strlen(double_long_string));
  free(double_long_string);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x40(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1070 <memset@plt>
movb   $0x65,-0x40(%rbp)
movb   $0x6e,-0x3f(%rbp)
movb   $0x6f,-0x3e(%rbp)
movb   $0x75,-0x3d(%rbp)
movb   $0x67,-0x3c(%rbp)
movb   $0x68,-0x3b(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xe3b(%rip),%rsi
mov    $0x23,%edx
call   1080 <memcpy@plt>
mov    0xe5a(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    0xe54(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0xe4e(%rip),%ax
mov    %ax,-0x80(%rbp)
mov    0xe46(%rip),%al
mov    %al,-0x7e(%rbp)
lea    0xe3d(%rip),%rdi
mov    $0x32,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe3e(%rip),%rdi
mov    $0x23,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe3f(%rip),%rdi
mov    $0x13,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xe35(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x70(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0xa4(%rbp)
lea    -0x70(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0xa4(%rbp),%eax
add    %ecx,%eax
movslq %eax,%rcx
mov    $0x32,%eax
cmp    %rcx,%rax
jbe    12d8 <main+0x158>
lea    -0x40(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   10a0 <strcat@plt>
lea    -0x40(%rbp),%rsi
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd64(%rip),%rdi
mov    $0x32,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x70(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0xa8(%rbp)
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0xa8(%rbp),%eax
add    %ecx,%eax
movslq %eax,%rcx
mov    $0x23,%eax
cmp    %rcx,%rax
jbe    135c <main+0x1dc>
lea    -0x70(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   10a0 <strcat@plt>
lea    -0x70(%rbp),%rsi
lea    0xd89(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcf4(%rip),%rdi
mov    $0x32,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x40(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xd69(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x70(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0xac(%rbp)
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%ecx
mov    -0xac(%rbp),%eax
cmp    %ecx,%eax
jle    13c7 <main+0x247>
lea    -0x70(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0xb0(%rbp)
jmp    13d9 <main+0x259>
lea    -0x90(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,-0xb0(%rbp)
mov    -0xb0(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x94(%rbp)
movslq -0x94(%rbp),%rax
shl    $0x0,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0xa0(%rbp)
lea    0xcf7(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xa0(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xcf5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xa0(%rbp),%rdi
lea    -0x70(%rbp),%rsi
call   1040 <strcpy@plt>
mov    -0xa0(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   10a0 <strcat@plt>
lea    0xca5(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xa0(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xca3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0xa0(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x90,%rsp
xorps  %xmm0,%xmm0
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movw   $0x0,0x80(%rsp)
movl   $0x756f6e65,0x50(%rsp)
75
movw   $0x6867,0x54(%rsp)
movaps 0xe6f(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xe53(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movl   $0x657665,0x3f(%rsp)
movaps 0xe6f(%rip),%xmm0
movaps %xmm0,(%rsp)
movl   $0x736472,0xf(%rsp)
lea    0xe6f(%rip),%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe70(%rip),%rdi
mov    $0x23,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe71(%rip),%rdi
mov    $0x13,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x50(%rsp),%r14
mov    %r14,%rdi
call   1050 <strlen@plt>
lea    0xe65(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xe5c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rsp,%rdi
call   1050 <strlen@plt>
lea    0xe58(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1050 <strlen@plt>
add    %ebp,%eax
cmp    $0x31,%eax
ja     1294 <main+0x134>
lea    0x50(%rsp),%rbx
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0xe32(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xda8(%rip),%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x50(%rsp),%rdi
call   1050 <strlen@plt>
lea    0xe11(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebx
mov    %rsp,%r15
mov    %r15,%rdi
call   1050 <strlen@plt>
add    %ebx,%eax
cmp    $0x22,%eax
ja     1303 <main+0x1a3>
lea    0x20(%rsp),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1080 <strcat@plt>
lea    0xde5(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd4d(%rip),%rdi
mov    $0x32,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x50(%rsp),%rdi
call   1050 <strlen@plt>
lea    0xdc3(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1050 <strlen@plt>
mov    %eax,%ebx
mov    %r15,%rdi
call   1050 <strlen@plt>
cmp    %eax,%ebx
mov    %r15,%rdi
cmovg  %r14,%rdi
call   1050 <strlen@plt>
lea    (%rax,%rax,1),%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
lea    0xd9d(%rip),%r12
mov    $0x8,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
lea    0xd9e(%rip),%rbp
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <strcpy@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1080 <strcat@plt>
mov    $0x8,%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.string1 = [35 x i8] c"receive_perceive_conceive_retrieve\00"
@__const.main.string2 = [19 x i8] c"four_similar_words\00"
@.str = [20 x i8] c"sizeof_string0 %lu\0A\00"
@.str.1 = [20 x i8] c"sizeof_string1 %lu\0A\00"
@.str.2 = [20 x i8] c"sizeof_string2 %lu\0A\00"
@.str.3 = [20 x i8] c"strlen_string0 %lu\0A\00"
@.str.4 = [20 x i8] c"strlen_string1 %lu\0A\00"
@.str.5 = [21 x i8] c"strlen_string2 %lu\0A\0A\00"
@.str.6 = [13 x i8] c"string0: %s\0A\00"
@.str.7 = [21 x i8] c"strlen_string0 %lu\0A\0A\00"
@.str.8 = [12 x i8] c"string1:%s\0A\00"
@.str.9 = [21 x i8] c"strlen_string1 %lu\0A\0A\00"
@.str.10 = [31 x i8] c"sizeof_double_long_string %lu\0A\00"
@.str.11 = [32 x i8] c"strlen_double_long_string %lu\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [50 x i8]
%3 = alloca [35 x i8]
%4 = alloca [19 x i8]
%5 = alloca i32
%6 = alloca i8*
store i32 0, i32* %1
%7 = bitcast [50 x i8]* %2 to i8*
%8 = bitcast i8* %7 to <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>*
%9 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>* %8, i32 0, i32 0
store i8 101, i8* %9
%10 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>* %8, i32 0, i32 1
store i8 110, i8* %10
%11 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>* %8, i32 0, i32 2
store i8 111, i8* %11
%12 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>* %8, i32 0, i32 3
store i8 117, i8* %12
%13 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>* %8, i32 0, i32 4
store i8 103, i8* %13
%14 = getelementptr inbounds <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>, <{ i8, i8, i8, i8, i8, i8, [44 x i8] }>* %8, i32 0, i32 5
store i8 104, i8* %14
%15 = bitcast [35 x i8]* %3 to i8*
%16 = bitcast [19 x i8]* %4 to i8*
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 50)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 35)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 19)
%20 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%21 = call i32 @strlen(i8* %20)
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %21)
%23 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%24 = call i32 @strlen(i8* %23)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %24)
%26 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%27 = call i32 @strlen(i8* %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %27)
%29 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%30 = call i32 @strlen(i8* %29)
%31 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%32 = call i32 @strlen(i8* %31)
%33 = add nsw i32 %30, %32
%34 = sext i32 %33 to i64
%35 = icmp ugt i64 50, %34
br i1 %35, label %36, label %42
36: ; preds = %0
%37 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%38 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%39 = call i32 @strcat(i8* %37, i8* %38)
%40 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %40)
br label %42
42: ; preds = %36, %0
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 50)
%44 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%45 = call i32 @strlen(i8* %44)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %45)
%47 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%48 = call i32 @strlen(i8* %47)
%49 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%50 = call i32 @strlen(i8* %49)
%51 = add nsw i32 %48, %50
%52 = sext i32 %51 to i64
%53 = icmp ugt i64 35, %52
br i1 %53, label %54, label %60
54: ; preds = %42
%55 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%56 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%57 = call i32 @strcat(i8* %55, i8* %56)
%58 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* %58)
br label %60
60: ; preds = %54, %42
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 50)
%62 = getelementptr inbounds [50 x i8], [50 x i8]* %2, i64 0, i64 0
%63 = call i32 @strlen(i8* %62)
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %63)
%65 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%66 = call i32 @strlen(i8* %65)
%67 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%68 = call i32 @strlen(i8* %67)
%69 = icmp sgt i32 %66, %68
br i1 %69, label %70, label %73
70: ; preds = %60
%71 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%72 = call i32 @strlen(i8* %71)
br label %76
73: ; preds = %60
%74 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%75 = call i32 @strlen(i8* %74)
br label %76
76: ; preds = %73, %70
%77 = phi i32 [ %72, %70 ], [ %75, %73 ]
%78 = mul nsw i32 %77, 2
store i32 %78, i32* %5
%79 = load i32, i32* %5
%80 = sext i32 %79 to i64
%81 = mul i64 1, %80
%82 = trunc i64 %81 to i32
%83 = call i64 @malloc(i32 %82)
%84 = inttoptr i64 %83 to i8*
store i8* %84, i8** %6
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i64 8)
%86 = load i8*, i8** %6
%87 = call i32 @strlen(i8* %86)
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %87)
%89 = load i8*, i8** %6
%90 = getelementptr inbounds [35 x i8], [35 x i8]* %3, i64 0, i64 0
%91 = call i32 @strcpy(i8* %89, i8* %90)
%92 = load i8*, i8** %6
%93 = getelementptr inbounds [19 x i8], [19 x i8]* %4, i64 0, i64 0
%94 = call i32 @strcat(i8* %92, i8* %93)
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i64 8)
%96 = load i8*, i8** %6
%97 = call i32 @strlen(i8* %96)
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %97)
%99 = load i8*, i8** %6
%100 = call i32 @free(i8* %99)
ret i32 0
}

LLVM IR (-O2):
@__const.main.string1 = [35 x i8] c"receive_perceive_conceive_retrieve\00"
@__const.main.string2 = [19 x i8] c"four_similar_words\00"
@.str = [20 x i8] c"sizeof_string0 %lu\0A\00"
@.str.1 = [20 x i8] c"sizeof_string1 %lu\0A\00"
@.str.2 = [20 x i8] c"sizeof_string2 %lu\0A\00"
@.str.3 = [20 x i8] c"strlen_string0 %lu\0A\00"
@.str.4 = [20 x i8] c"strlen_string1 %lu\0A\00"
@.str.5 = [21 x i8] c"strlen_string2 %lu\0A\0A\00"
@.str.6 = [13 x i8] c"string0: %s\0A\00"
@.str.7 = [21 x i8] c"strlen_string0 %lu\0A\0A\00"
@.str.8 = [12 x i8] c"string1:%s\0A\00"
@.str.9 = [21 x i8] c"strlen_string1 %lu\0A\0A\00"
@.str.10 = [31 x i8] c"sizeof_double_long_string %lu\0A\00"
@.str.11 = [32 x i8] c"strlen_double_long_string %lu\0A\0A\00"
define i32 @main() {
%1 = alloca [50 x i8]
%2 = alloca [35 x i8]
%3 = alloca [19 x i8]
%4 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 0
store i8 101, i8* %4
%5 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 1
store i8 110, i8* %5
%6 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 2
store i8 111, i8* %6
%7 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 3
store i8 117, i8* %7
%8 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 4
store i8 103, i8* %8
%9 = getelementptr inbounds [50 x i8], [50 x i8]* %1, i64 0, i64 5
store i8 104, i8* %9
%10 = getelementptr inbounds [35 x i8], [35 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [19 x i8], [19 x i8]* %3, i64 0, i64 0
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 50)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 35)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i64 19)
%15 = call i32 @strlen(i8* %4)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%17 = call i32 @strlen(i8* %10)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0), i32 %17)
%19 = call i32 @strlen(i8* %11)
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%21 = call i32 @strlen(i8* %4)
%22 = call i32 @strlen(i8* %10)
%23 = add nsw i32 %22, %21
%24 = icmp ult i32 %23, 50
br i1 %24, label %25, label %28
25: ; preds = %0
%26 = call i32 @strcat(i8* %4, i8* %10)
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i8* %4)
br label %28
28: ; preds = %25, %0
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0), i64 50)
%30 = call i32 @strlen(i8* %4)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0), i32 %30)
%32 = call i32 @strlen(i8* %10)
%33 = call i32 @strlen(i8* %11)
%34 = add nsw i32 %33, %32
%35 = icmp ult i32 %34, 35
br i1 %35, label %36, label %39
36: ; preds = %28
%37 = call i32 @strcat(i8* %10, i8* %11)
%38 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i8* %10)
br label %39
39: ; preds = %36, %28
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i64 50)
%41 = call i32 @strlen(i8* %4)
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i32 %41)
%43 = call i32 @strlen(i8* %10)
%44 = call i32 @strlen(i8* %11)
%45 = icmp sgt i32 %43, %44
%46 = select i1 %45, i8* %10, i8* %11
%47 = call i32 @strlen(i8* %46)
%48 = shl nsw i32 %47, 1
%49 = call i64 @malloc(i32 %48)
%50 = inttoptr i64 %49 to i8*
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i64 8)
%52 = call i32 @strlen(i8* %50)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %52)
%54 = call i32 @strcpy(i8* %50, i8* %10)
%55 = call i32 @strcat(i8* %50, i8* %11)
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.10, i64 0, i64 0), i64 8)
%57 = call i32 @strlen(i8* %50)
%58 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i64 0, i64 0), i32 %57)
%59 = call i32 @free(i8* %50)
ret i32 0
}