#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*/ string;

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, char *);
int /*<<< orphan*/ setbuf(int /*<<< orphan*/, int /*<<< orphan*/ *);
int /*<<< orphan*/ stdin;
int strlen(char *);
int main() {
  int i;
  char string[10];
  char l1, ol2;
  char ol1[1], ol1_save;
  printf("String: ");
  setbuf(stdin, NULL);
  fgets(string, (int)sizeof(string), stdin);
  printf("sizeof(string): %d\n", (int)sizeof(string));
  printf("strlen(string): %d\n", (int)strlen(string));
  printf("Qual L1: ");
  scanf("%s", &ol1[0]);
  ol1_save = ol1[0];
  printf("%c\n", ol1_save);
  printf("Por L1: ");
  scanf("%s", &l1);
  printf("Qual L2: ");
  scanf("%s", &ol2);
  char l2;
  printf("Por L2: ");
  scanf("%s", &l2);
  int string_size = (int)strlen(string);
  printf("%c\n", ol1_save);
  for (i = 0; i <= string_size; i++) {
    if (string[i] == ol1_save) {
      string[i] = l1;
    } else if (string[i] == ol2) {
      string[i] = l2;
    }
  }
  for (i = 0; i < strlen(string); i++) {
    printf("%c", string[i]);
  }
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <setbuf@plt>
lea    -0x12(%rbp),%rdi
mov    0x2e5e(%rip),%rax
mov    (%rax),%edx
mov    $0xa,%esi
call   1060 <fgets@plt>
lea    0xe6c(%rip),%rdi
mov    $0xa,%esi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x12(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%esi
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x15(%rbp),%rsi
lea    0xe60(%rip),%rdi
call   1070 <scanf@plt>
mov    -0x15(%rbp),%al
mov    %al,-0x16(%rbp)
movsbl -0x16(%rbp),%esi
lea    0xe4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe2e(%rip),%rdi
lea    -0x13(%rbp),%rsi
call   1070 <scanf@plt>
lea    0xe2e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe10(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1070 <scanf@plt>
lea    0xe1a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xdf2(%rip),%rdi
lea    -0x17(%rbp),%rsi
call   1070 <scanf@plt>
lea    -0x12(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,-0x1c(%rbp)
movsbl -0x16(%rbp),%esi
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jg     12e0 <main+0x190>
movslq -0x8(%rbp),%rax
movsbl -0x12(%rbp,%rax,1),%eax
movsbl -0x16(%rbp),%ecx
cmp    %ecx,%eax
jne    12a8 <main+0x158>
mov    -0x13(%rbp),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x12(%rbp,%rax,1)
jmp    12cd <main+0x17d>
movslq -0x8(%rbp),%rax
movsbl -0x12(%rbp,%rax,1),%eax
movsbl -0x14(%rbp),%ecx
cmp    %ecx,%eax
jne    12c8 <main+0x178>
mov    -0x17(%rbp),%cl
movslq -0x8(%rbp),%rax
mov    %cl,-0x12(%rbp,%rax,1)
jmp    12cd <main+0x17d>
jmp    12d2 <main+0x182>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1277 <main+0x127>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    %eax,-0x20(%rbp)
lea    -0x12(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x20(%rbp),%eax
cmp    %ecx,%eax
jge    1328 <main+0x1d8>
movslq -0x8(%rbp),%rax
movsbl -0x12(%rbp,%rax,1),%esi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    12e7 <main+0x197>
lea    0xd11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xe8d(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2e67(%rip),%rbx
mov    (%rbx),%edi
xor    %esi,%esi
call   1050 <setbuf@plt>
mov    (%rbx),%edx
lea    0x6(%rsp),%r14
mov    %r14,%rdi
mov    $0xa,%esi
call   1070 <fgets@plt>
lea    0xe64(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
lea    0xe5d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe61(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe5d(%rip),%rbx
lea    0x3(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
mov    0x3(%rsp),%r12b
movsbl %r12b,%ebp
lea    0xe43(%rip),%r15
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe34(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x5(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0xe22(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
lea    0xe11(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0x2(%rsp),%rsi
mov    %rbx,%rdi
call   1080 <scanf@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%ebx
mov    %r15,%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
test   %ebx,%ebx
js     13cb <main+0x26b>
mov    0x4(%rsp),%r8b
mov    0x2(%rsp),%cl
mov    0x5(%rsp),%al
lea    0x1(%rbx),%esi
cmp    $0x7,%ebx
jae    1292 <main+0x132>
xor    %edi,%edi
jmp    142d <main+0x2cd>
mov    %esi,%edi
and    $0xfffffff8,%edi
movzbl %r12b,%edx
movd   %edx,%xmm0
punpcklbw %xmm0,%xmm0
pshuflw $0x0,%xmm0,%xmm0
movzbl %r8b,%edx
movd   %edx,%xmm1
punpcklbw %xmm1,%xmm1
pshuflw $0x0,%xmm1,%xmm1
movzbl %al,%edx
movd   %edx,%xmm2
punpcklbw %xmm2,%xmm2
pshuflw $0x0,%xmm2,%xmm2
movzbl %cl,%edx
movd   %edx,%xmm3
punpcklbw %xmm3,%xmm3
pshuflw $0x0,%xmm3,%xmm3
xor    %ebx,%ebx
jmp    12ed <main+0x18d>
nopl   (%rax)
add    $0x8,%rbx
cmp    %rbx,%rdi
je     13c6 <main+0x266>
movq   0x6(%rsp,%rbx,1),%xmm6
movdqa %xmm6,%xmm4
pcmpeqb %xmm0,%xmm4
punpcklbw %xmm4,%xmm7
pcmpeqb %xmm1,%xmm6
punpcklbw %xmm6,%xmm5
por    %xmm7,%xmm5
pandn  %xmm6,%xmm4
movdqa %xmm3,%xmm6
pand   %xmm4,%xmm6
pandn  %xmm2,%xmm4
por    %xmm6,%xmm4
psraw  $0x8,%xmm5
movd   %xmm5,%ebp
test   $0x1,%bpl
je     1336 <main+0x1d6>
movd   %xmm4,%edx
mov    %dl,0x6(%rsp,%rbx,1)
shr    $0x10,%ebp
test   $0x1,%bpl
je     1347 <main+0x1e7>
movd   %xmm4,%edx
mov    %dh,0x7(%rsp,%rbx,1)
pextrw $0x2,%xmm5,%edx
test   $0x1,%dl
je     135c <main+0x1fc>
movd   %xmm4,%edx
shr    $0x10,%edx
mov    %dl,0x8(%rsp,%rbx,1)
pextrw $0x3,%xmm5,%edx
test   $0x1,%dl
je     1371 <main+0x211>
movd   %xmm4,%edx
shr    $0x18,%edx
mov    %dl,0x9(%rsp,%rbx,1)
pextrw $0x4,%xmm5,%edx
test   $0x1,%dl
je     1384 <main+0x224>
pextrw $0x2,%xmm4,%edx
mov    %dl,0xa(%rsp,%rbx,1)
pextrw $0x5,%xmm5,%edx
test   $0x1,%dl
je     1397 <main+0x237>
pextrw $0x2,%xmm4,%edx
mov    %dh,0xb(%rsp,%rbx,1)
pextrw $0x6,%xmm5,%edx
test   $0x1,%dl
je     13aa <main+0x24a>
pextrw $0x3,%xmm4,%edx
mov    %dl,0xc(%rsp,%rbx,1)
pextrw $0x7,%xmm5,%edx
test   $0x1,%dl
je     12e0 <main+0x180>
pextrw $0x3,%xmm4,%edx
mov    %dh,0xd(%rsp,%rbx,1)
jmp    12e0 <main+0x180>
cmp    %rsi,%rdi
jne    142d <main+0x2cd>
lea    0x6(%rsp),%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    13fd <main+0x29d>
xor    %ebp,%ebp
lea    0x6(%rsp),%rbx
movsbl 0x6(%rsp,%rbp,1),%edi
call   1030 <putchar@plt>
add    $0x1,%rbp
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%rbp
jl     13e0 <main+0x280>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
cs nopw 0x0(%rax,%rax,1)
mov    %dl,0x6(%rsp,%rdi,1)
add    $0x1,%rdi
cmp    %rdi,%rsi
je     13cb <main+0x26b>
movzbl 0x6(%rsp,%rdi,1),%ebx
mov    %eax,%edx
cmp    %r12b,%bl
je     1420 <main+0x2c0>
mov    %ecx,%edx
cmp    %r8b,%bl
je     1420 <main+0x2c0>
jmp    1424 <main+0x2c4>

LLVM IR (-O0):
@.str = [9 x i8] c"String: \00"
@stdin = global i32 0
@.str.1 = [20 x i8] c"sizeof(string): %d\0A\00"
@.str.2 = [20 x i8] c"strlen(string): %d\0A\00"
@.str.3 = [10 x i8] c"Qual L1: \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [4 x i8] c"%c\0A\00"
@.str.6 = [9 x i8] c"Por L1: \00"
@.str.7 = [10 x i8] c"Qual L2: \00"
@.str.8 = [9 x i8] c"Por L2: \00"
@.str.9 = [3 x i8] c"%c\00"
@.str.10 = [2 x i8] c"\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x i8]
%4 = alloca i8
%5 = alloca i8
%6 = alloca [1 x i8]
%7 = alloca i8
%8 = alloca i8
%9 = alloca i32
store i32 0, i32* %1
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* @stdin
%12 = call i32 @setbuf(i32 %11, i32* null)
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%14 = load i32, i32* @stdin
%15 = call i32 @fgets(i8* %13, i32 10, i32 %14)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 10)
%17 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%18 = call i32 @strlen(i8* %17)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%21 = getelementptr inbounds [1 x i8], [1 x i8]* %6, i64 0, i64 0
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %21)
%23 = getelementptr inbounds [1 x i8], [1 x i8]* %6, i64 0, i64 0
%24 = load i8, i8* %23
store i8 %24, i8* %7
%25 = load i8, i8* %7
%26 = sext i8 %25 to i32
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %4)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%33 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %8)
%34 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%35 = call i32 @strlen(i8* %34)
store i32 %35, i32* %9
%36 = load i8, i8* %7
%37 = sext i8 %36 to i32
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %37)
store i32 0, i32* %2
br label %39
39: ; preds = %73, %0
%40 = load i32, i32* %2
%41 = load i32, i32* %9
%42 = icmp sle i32 %40, %41
br i1 %42, label %43, label %76
43: ; preds = %39
%44 = load i32, i32* %2
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %45
%47 = load i8, i8* %46
%48 = sext i8 %47 to i32
%49 = load i8, i8* %7
%50 = sext i8 %49 to i32
%51 = icmp eq i32 %48, %50
br i1 %51, label %52, label %57
52: ; preds = %43
%53 = load i8, i8* %4
%54 = load i32, i32* %2
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %55
store i8 %53, i8* %56
br label %72
57: ; preds = %43
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = sext i8 %61 to i32
%63 = load i8, i8* %5
%64 = sext i8 %63 to i32
%65 = icmp eq i32 %62, %64
br i1 %65, label %66, label %71
66: ; preds = %57
%67 = load i8, i8* %8
%68 = load i32, i32* %2
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %69
store i8 %67, i8* %70
br label %71
71: ; preds = %66, %57
br label %72
72: ; preds = %71, %52
br label %73
73: ; preds = %72
%74 = load i32, i32* %2
%75 = add nsw i32 %74, 1
store i32 %75, i32* %2
br label %39
76: ; preds = %39
store i32 0, i32* %2
br label %77
77: ; preds = %89, %76
%78 = load i32, i32* %2
%79 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%80 = call i32 @strlen(i8* %79)
%81 = icmp slt i32 %78, %80
br i1 %81, label %82, label %92
82: ; preds = %77
%83 = load i32, i32* %2
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 %84
%86 = load i8, i8* %85
%87 = sext i8 %86 to i32
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %87)
br label %89
89: ; preds = %82
%90 = load i32, i32* %2
%91 = add nsw i32 %90, 1
store i32 %91, i32* %2
br label %77
92: ; preds = %77
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"String: \00"
@stdin = global i32 0
@.str.1 = [20 x i8] c"sizeof(string): %d\0A\00"
@.str.2 = [20 x i8] c"strlen(string): %d\0A\00"
@.str.3 = [10 x i8] c"Qual L1: \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [4 x i8] c"%c\0A\00"
@.str.6 = [9 x i8] c"Por L1: \00"
@.str.7 = [10 x i8] c"Qual L2: \00"
@.str.8 = [9 x i8] c"Por L2: \00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca i8
%3 = alloca i8
%4 = alloca [1 x i8]
%5 = alloca i8
%6 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%7 = getelementptr inbounds [1 x i8], [1 x i8]* %4, i64 0, i64 0
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%9 = load i32, i32* @stdin
%10 = tail call i32 @setbuf(i32 %9, i32* null)
%11 = load i32, i32* @stdin
%12 = call i32 @fgets(i8* %6, i32 10, i32 %11)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0), i32 10)
%14 = call i32 @strlen(i8* %6)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%17 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %7)
%18 = load i8, i8* %7
%19 = sext i8 %18 to i32
%20 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %2)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %3)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%26 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %5)
%27 = call i32 @strlen(i8* %6)
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i32 %19)
%29 = icmp slt i32 %27, 0
br i1 %29, label %111, label %30
30: ; preds = %0
%31 = load i8, i8* %3
%32 = load i8, i8* %5
%33 = load i8, i8* %2
%34 = add nuw i32 %27, 1
%35 = zext i32 %34 to i64
%36 = icmp ult i32 %27, 7
br i1 %36, label %109, label %37
37: ; preds = %30
%38 = and i64 %35, 4294967288
%39 = insertelement <8 x i8> poison, i8 %18, i64 0
%40 = shufflevector <8 x i8> %39, <8 x i8> poison, <8 x i32> zeroinitializer
%41 = insertelement <8 x i8> poison, i8 %31, i64 0
%42 = shufflevector <8 x i8> %41, <8 x i8> poison, <8 x i32> zeroinitializer
%43 = insertelement <8 x i8> poison, i8 %33, i64 0
%44 = shufflevector <8 x i8> %43, <8 x i8> poison, <8 x i32> zeroinitializer
%45 = insertelement <8 x i8> poison, i8 %32, i64 0
%46 = shufflevector <8 x i8> %45, <8 x i8> poison, <8 x i32> zeroinitializer
br label %47
47: ; preds = %104, %37
%48 = phi i64 [ 0, %37 ], [ %105, %104 ]
%49 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %48
%50 = bitcast i8* %49 to <8 x i8>*
%51 = load <8 x i8>, <8 x i8>* %50
%52 = icmp eq <8 x i8> %51, %40
%53 = icmp eq <8 x i8> %51, %42
%54 = xor <8 x i1> %52, <i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true, i1 true>
%55 = select <8 x i1> %54, <8 x i1> %53, <8 x i1> zeroinitializer
%56 = select <8 x i1> %55, <8 x i8> %46, <8 x i8> %44
%57 = or <8 x i1> %55, %52
%58 = extractelement <8 x i1> %57, i64 0
br i1 %58, label %59, label %62
59: ; preds = %47
%60 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %48
%61 = extractelement <8 x i8> %56, i64 0
store i8 %61, i8* %60
br label %62
62: ; preds = %59, %47
%63 = extractelement <8 x i1> %57, i64 1
br i1 %63, label %64, label %68
64: ; preds = %62
%65 = or i64 %48, 1
%66 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %65
%67 = extractelement <8 x i8> %56, i64 1
store i8 %67, i8* %66
br label %68
68: ; preds = %64, %62
%69 = extractelement <8 x i1> %57, i64 2
br i1 %69, label %70, label %74
70: ; preds = %68
%71 = or i64 %48, 2
%72 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %71
%73 = extractelement <8 x i8> %56, i64 2
store i8 %73, i8* %72
br label %74
74: ; preds = %70, %68
%75 = extractelement <8 x i1> %57, i64 3
br i1 %75, label %76, label %80
76: ; preds = %74
%77 = or i64 %48, 3
%78 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %77
%79 = extractelement <8 x i8> %56, i64 3
store i8 %79, i8* %78
br label %80
80: ; preds = %76, %74
%81 = extractelement <8 x i1> %57, i64 4
br i1 %81, label %82, label %86
82: ; preds = %80
%83 = or i64 %48, 4
%84 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %83
%85 = extractelement <8 x i8> %56, i64 4
store i8 %85, i8* %84
br label %86
86: ; preds = %82, %80
%87 = extractelement <8 x i1> %57, i64 5
br i1 %87, label %88, label %92
88: ; preds = %86
%89 = or i64 %48, 5
%90 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %89
%91 = extractelement <8 x i8> %56, i64 5
store i8 %91, i8* %90
br label %92
92: ; preds = %88, %86
%93 = extractelement <8 x i1> %57, i64 6
br i1 %93, label %94, label %98
94: ; preds = %92
%95 = or i64 %48, 6
%96 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %95
%97 = extractelement <8 x i8> %56, i64 6
store i8 %97, i8* %96
br label %98
98: ; preds = %94, %92
%99 = extractelement <8 x i1> %57, i64 7
br i1 %99, label %100, label %104
100: ; preds = %98
%101 = or i64 %48, 7
%102 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %101
%103 = extractelement <8 x i8> %56, i64 7
store i8 %103, i8* %102
br label %104
104: ; preds = %100, %98
%105 = add nuw i64 %48, 8
%106 = icmp eq i64 %105, %38
br i1 %106, label %107, label %47
107: ; preds = %104
%108 = icmp eq i64 %38, %35
br i1 %108, label %111, label %109
109: ; preds = %30, %107
%110 = phi i64 [ 0, %30 ], [ %38, %107 ]
br label %114
111: ; preds = %123, %107, %0
%112 = call i32 @strlen(i8* %6)
%113 = icmp sgt i32 %112, 0
br i1 %113, label %126, label %136
114: ; preds = %109, %123
%115 = phi i64 [ %124, %123 ], [ %110, %109 ]
%116 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %115
%117 = load i8, i8* %116
%118 = icmp eq i8 %117, %18
br i1 %118, label %121, label %119
119: ; preds = %114
%120 = icmp eq i8 %117, %31
br i1 %120, label %121, label %123
121: ; preds = %119, %114
%122 = phi i8 [ %33, %114 ], [ %32, %119 ]
store i8 %122, i8* %116
br label %123
123: ; preds = %121, %119
%124 = add nuw nsw i64 %115, 1
%125 = icmp eq i64 %124, %35
br i1 %125, label %111, label %114
126: ; preds = %111, %126
%127 = phi i64 [ %132, %126 ], [ 0, %111 ]
%128 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 %127
%129 = load i8, i8* %128
%130 = sext i8 %129 to i32
%131 = call i32 @putchar(i32 %130)
%132 = add nuw nsw i64 %127, 1
%133 = call i32 @strlen(i8* %6)
%134 = sext i32 %133 to i64
%135 = icmp slt i64 %132, %134
br i1 %135, label %126, label %136
136: ; preds = %126, %111
%137 = call i32 @putchar(i32 10)
ret i32 0
}