#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*/ mygetstr(char *, char *, char **);
int /*<<< orphan*/ printf(char *, char *);
int testMain(void) {
  char *srcStr[8] = {"vince_lee", "jay_", "chou", "jay_chou",
                     "jay_chou",  "23",   "24",   "25"};
  char des[80] = {0};
  mygetstr(des, "ife[3|4|5|6]", srcStr);
  printf("the des1_1:%s\n", des);
  mygetstr(des, "ife[2|3|5|6]", srcStr);
  printf("the des1_2:%s\n", des);
  mygetstr(des, "add[1|2]", srcStr);
  printf("the des1_3:%s\n", des);
  mygetstr(des, "ife[add[1|2]|3|5|6]", srcStr);
  printf("the des1_4:%s\n", des);
  mygetstr(des, "sub[3|4|4]", srcStr);
  printf("the des1_5:%s\n", des);
  mygetstr(des, "ife[sub[3|4|4]|2|5|6]", srcStr);
  printf("the des1_6:%s\n", des);
  mygetstr(des, "add[sub[3|0|4]|2]", srcStr);
  printf("the des2_1:%s\n", des);
  mygetstr(des, "add[1|sub[3|4|4]]", srcStr);
  printf("the des2_1:%s\n", des);
  mygetstr(des, "add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]", srcStr);
  printf("the des3_1:%s\n", des);
  mygetstr(des, "sub[add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]|0|8]", srcStr);
  printf("the des3_2:%s\n", des);
  mygetstr(des, "ife[sub[add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]|0|8]|3|5|6]",
           srcStr);
  printf("the des3_3:%s\n", des);
  mygetstr(des, "ife[0|&vince_lee|1|2]", srcStr);
  printf("the des3_4:%s\n", des);
  mygetstr(des, "ife[0|&vince_lee|&1|&2]", srcStr);
  printf("the des3_5:%s\n", des);
  mygetstr(des, "ife[add[1|2]|&jay_chou|&1|&2]", srcStr);
  printf("the des3_6:%s\n", des);
  return 0;
}


x86 assembly (clang, -O0):
<testMain>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
lea    -0x40(%rbp),%rdi
lea    0x2c8a(%rip),%rsi
mov    $0x40,%edx
call   1060 <memcpy@plt>
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x50,%edx
call   1050 <memset@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe9c(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe96(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe8e(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe88(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe80(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe76(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe6e(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe6f(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe67(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe5f(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe57(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe5a(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe52(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe51(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe49(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe27(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe31(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe47(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe3f(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe5e(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe56(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe80(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe78(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe7b(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe73(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe78(%rip),%rdi
call   1040 <printf@plt>
lea    -0x90(%rbp),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe70(%rip),%rsi
call   1030 <mygetstr@plt>
lea    -0x90(%rbp),%rsi
lea    0xe7b(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<testMain>:
push   %r15
push   %r14
push   %rbx
sub    $0x90,%rsp
movaps 0x2cdd(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0x2cc1(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0x2ca5(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movaps 0x2c89(%rip),%xmm0
movaps %xmm0,(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
lea    0xea0(%rip),%rsi
lea    0x40(%rsp),%rbx
mov    %rsp,%r14
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe93(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe93(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe8e(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe8e(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe85(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe85(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe87(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe87(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe80(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe80(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe84(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe84(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe84(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe81(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe76(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xe8d(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xe8d(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xead(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xead(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xed8(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xed8(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xedc(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xee2(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
lea    0xee2(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <mygetstr@plt>
lea    0xeee(%rip),%rdi
mov    %rbx,%rsi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [10 x i8] c"vince_lee\00"
@.str.1 = [5 x i8] c"jay_\00"
@.str.2 = [5 x i8] c"chou\00"
@.str.3 = [9 x i8] c"jay_chou\00"
@.str.4 = [3 x i8] c"23\00"
@.str.5 = [3 x i8] c"24\00"
@.str.6 = [3 x i8] c"25\00"
@__const.testMain.srcStr = [8 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0)]
@.str.7 = [13 x i8] c"ife[3|4|5|6]\00"
@.str.8 = [15 x i8] c"the des1_1:%s\0A\00"
@.str.9 = [13 x i8] c"ife[2|3|5|6]\00"
@.str.10 = [15 x i8] c"the des1_2:%s\0A\00"
@.str.11 = [9 x i8] c"add[1|2]\00"
@.str.12 = [15 x i8] c"the des1_3:%s\0A\00"
@.str.13 = [20 x i8] c"ife[add[1|2]|3|5|6]\00"
@.str.14 = [15 x i8] c"the des1_4:%s\0A\00"
@.str.15 = [11 x i8] c"sub[3|4|4]\00"
@.str.16 = [15 x i8] c"the des1_5:%s\0A\00"
@.str.17 = [22 x i8] c"ife[sub[3|4|4]|2|5|6]\00"
@.str.18 = [15 x i8] c"the des1_6:%s\0A\00"
@.str.19 = [18 x i8] c"add[sub[3|0|4]|2]\00"
@.str.20 = [15 x i8] c"the des2_1:%s\0A\00"
@.str.21 = [18 x i8] c"add[1|sub[3|4|4]]\00"
@.str.22 = [41 x i8] c"add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]\00"
@.str.23 = [15 x i8] c"the des3_1:%s\0A\00"
@.str.24 = [50 x i8] c"sub[add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]|0|8]\00"
@.str.25 = [15 x i8] c"the des3_2:%s\0A\00"
@.str.26 = [61 x i8] c"ife[sub[add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]|0|8]|3|5|6]\00"
@.str.27 = [15 x i8] c"the des3_3:%s\0A\00"
@.str.28 = [22 x i8] c"ife[0|&vince_lee|1|2]\00"
@.str.29 = [15 x i8] c"the des3_4:%s\0A\00"
@.str.30 = [24 x i8] c"ife[0|&vince_lee|&1|&2]\00"
@.str.31 = [15 x i8] c"the des3_5:%s\0A\00"
@.str.32 = [30 x i8] c"ife[add[1|2]|&jay_chou|&1|&2]\00"
@.str.33 = [15 x i8] c"the des3_6:%s\0A\00"
define i32 @testMain() {
%1 = alloca [8 x i8*]
%2 = alloca [80 x i8]
%3 = bitcast [8 x i8*]* %1 to i8*
%4 = bitcast [80 x i8]* %2 to i8*
%5 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%7 = call i32 @mygetstr(i8* %5, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8** %6)
%8 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%11 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%12 = call i32 @mygetstr(i8* %10, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8** %11)
%13 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%14 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%16 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%17 = call i32 @mygetstr(i8* %15, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** %16)
%18 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%21 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%22 = call i32 @mygetstr(i8* %20, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i8** %21)
%23 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%24 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8* %23)
%25 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%26 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%27 = call i32 @mygetstr(i8* %25, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8** %26)
%28 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%29 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i8* %28)
%30 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%31 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%32 = call i32 @mygetstr(i8* %30, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i8** %31)
%33 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%34 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8* %33)
%35 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%36 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%37 = call i32 @mygetstr(i8* %35, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i8** %36)
%38 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%39 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* %38)
%40 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%41 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%42 = call i32 @mygetstr(i8* %40, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), i8** %41)
%43 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%44 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* %43)
%45 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%46 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%47 = call i32 @mygetstr(i8* %45, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0), i8** %46)
%48 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%49 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8* %48)
%50 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%51 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%52 = call i32 @mygetstr(i8* %50, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.24, i64 0, i64 0), i8** %51)
%53 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%54 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8* %53)
%55 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%56 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%57 = call i32 @mygetstr(i8* %55, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.26, i64 0, i64 0), i8** %56)
%58 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%59 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8* %58)
%60 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%61 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%62 = call i32 @mygetstr(i8* %60, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), i8** %61)
%63 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%64 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0), i8* %63)
%65 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%66 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%67 = call i32 @mygetstr(i8* %65, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.30, i64 0, i64 0), i8** %66)
%68 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%69 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.31, i64 0, i64 0), i8* %68)
%70 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%71 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%72 = call i32 @mygetstr(i8* %70, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.32, i64 0, i64 0), i8** %71)
%73 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%74 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.33, i64 0, i64 0), i8* %73)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"vince_lee\00"
@.str.1 = [5 x i8] c"jay_\00"
@.str.2 = [5 x i8] c"chou\00"
@.str.3 = [9 x i8] c"jay_chou\00"
@.str.4 = [3 x i8] c"23\00"
@.str.5 = [3 x i8] c"24\00"
@.str.6 = [3 x i8] c"25\00"
@__const.testMain.srcStr = [8 x i8*] [i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i32 0, i32 0)]
@.str.7 = [13 x i8] c"ife[3|4|5|6]\00"
@.str.8 = [15 x i8] c"the des1_1:%s\0A\00"
@.str.9 = [13 x i8] c"ife[2|3|5|6]\00"
@.str.10 = [15 x i8] c"the des1_2:%s\0A\00"
@.str.11 = [9 x i8] c"add[1|2]\00"
@.str.12 = [15 x i8] c"the des1_3:%s\0A\00"
@.str.13 = [20 x i8] c"ife[add[1|2]|3|5|6]\00"
@.str.14 = [15 x i8] c"the des1_4:%s\0A\00"
@.str.15 = [11 x i8] c"sub[3|4|4]\00"
@.str.16 = [15 x i8] c"the des1_5:%s\0A\00"
@.str.17 = [22 x i8] c"ife[sub[3|4|4]|2|5|6]\00"
@.str.18 = [15 x i8] c"the des1_6:%s\0A\00"
@.str.19 = [18 x i8] c"add[sub[3|0|4]|2]\00"
@.str.20 = [15 x i8] c"the des2_1:%s\0A\00"
@.str.21 = [18 x i8] c"add[1|sub[3|4|4]]\00"
@.str.22 = [41 x i8] c"add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]\00"
@.str.23 = [15 x i8] c"the des3_1:%s\0A\00"
@.str.24 = [50 x i8] c"sub[add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]|0|8]\00"
@.str.25 = [15 x i8] c"the des3_2:%s\0A\00"
@.str.26 = [61 x i8] c"ife[sub[add[add[sub[3|0|4]|2]|add[1|sub[3|4|4]]]|0|8]|3|5|6]\00"
@.str.27 = [15 x i8] c"the des3_3:%s\0A\00"
@.str.28 = [22 x i8] c"ife[0|&vince_lee|1|2]\00"
@.str.29 = [15 x i8] c"the des3_4:%s\0A\00"
@.str.30 = [24 x i8] c"ife[0|&vince_lee|&1|&2]\00"
@.str.31 = [15 x i8] c"the des3_5:%s\0A\00"
@.str.32 = [30 x i8] c"ife[add[1|2]|&jay_chou|&1|&2]\00"
@.str.33 = [15 x i8] c"the des3_6:%s\0A\00"
define i32 @testMain() {
%1 = alloca [8 x i8*]
%2 = alloca [80 x i8]
%3 = bitcast [8 x i8*]* %1 to i8*
%4 = getelementptr inbounds [80 x i8], [80 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [8 x i8*], [8 x i8*]* %1, i64 0, i64 0
%6 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8** %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.8, i64 0, i64 0), i8* %4)
%8 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8** %5)
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0), i8* %4)
%10 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i8** %5)
%11 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0), i8* %4)
%12 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i8** %5)
%13 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i8* %4)
%14 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i8** %5)
%15 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.16, i64 0, i64 0), i8* %4)
%16 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.17, i64 0, i64 0), i8** %5)
%17 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.18, i64 0, i64 0), i8* %4)
%18 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i8** %5)
%19 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* %4)
%20 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.21, i64 0, i64 0), i8** %5)
%21 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.20, i64 0, i64 0), i8* %4)
%22 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.22, i64 0, i64 0), i8** %5)
%23 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0), i8* %4)
%24 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.24, i64 0, i64 0), i8** %5)
%25 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), i8* %4)
%26 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.26, i64 0, i64 0), i8** %5)
%27 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), i8* %4)
%28 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.28, i64 0, i64 0), i8** %5)
%29 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0), i8* %4)
%30 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.30, i64 0, i64 0), i8** %5)
%31 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.31, i64 0, i64 0), i8* %4)
%32 = call i32 @mygetstr(i8* %4, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.32, i64 0, i64 0), i8** %5)
%33 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.33, i64 0, i64 0), i8* %4)
ret i32 0
}