#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*/ *fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ isAlphaNum(char);
scalar_t__ isUpperAlpha(char);
int /*<<< orphan*/ printf(char *, ...);
char randUpperChar();
int /*<<< orphan*/ srand(int /*<<< orphan*/);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ strfilter(char *, char *, char);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int main() {
  char s1[41] = "\0";
  char s2[21] = "\0";
  char c = '\0';
  char userInput[50] = "\0";
  char *someChar = s2;
  unsigned int i = 0;
  unsigned int j = 0;
  unsigned int k = 0;
  srand(time(NULL));
  for (i; i < 40; i++) {
    s1[i] = randUpperChar();
  }
  printf("Let's reset some letters!\nPlease input at least 2 upper case "
         "letters to reset followed by a space and a \"reset\" character.\n");
  while (fgets(userInput, 20, stdin) != NULL) {
    printf("dereference userInput = %c\n", *userInput);
    if (userInput[0] == 'N' && userInput[1] == 'o')
      break;
    while (isUpperAlpha(userInput[j]) && j < 20) {
      s2[j] = userInput[j];
      j++;
    }
    c = userInput[j + 1];
    if (j < 2 || !isAlphaNum(c))
      printf("Invalid input.\nPlease input at least 2 upper case letters to "
             "reset followed by a space and a \"reset\" character.\n");
    else {
      printf("s1 = {\"%s\"}\n", s1);
      printf("s2 = {\"%s\"}\n", s2);
      printf("c = {\"%c\"}\n", c);
      strfilter(s1, s2, c);
    }
    for (k; k < 20; k++)
      s2[k] = '\0';
    c = '\0';
    j = 0;
    k = 0;
    printf("someChar = %c\npointer s2 = %c\npointer s2 + 1 = %c\n", *someChar,
           *s2, *s2 + 1);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x29,%edx
call   1060 <memset@plt>
lea    -0x50(%rbp),%rdi
xor    %esi,%esi
mov    $0x15,%edx
call   1060 <memset@plt>
movb   $0x0,-0x51(%rbp)
lea    -0x90(%rbp),%rdi
xor    %esi,%esi
mov    $0x32,%edx
call   1060 <memset@plt>
lea    -0x50(%rbp),%rax
mov    %rax,-0x98(%rbp)
movl   $0x0,-0x9c(%rbp)
movl   $0x0,-0xa0(%rbp)
movl   $0x0,-0xa4(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
cmpl   $0x28,-0x9c(%rbp)
jae    1246 <main+0xb6>
mov    $0x0,%al
call   1030 <randUpperChar@plt>
mov    %al,%cl
mov    -0x9c(%rbp),%eax
mov    %cl,-0x30(%rbp,%rax,1)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
jmp    1212 <main+0x82>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x90(%rbp),%rdi
mov    0x2d86(%rip),%rax
mov    (%rax),%edx
mov    $0x14,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     1427 <main+0x297>
movsbl -0x90(%rbp),%esi
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x90(%rbp),%eax
cmp    $0x4e,%eax
jne    12b2 <main+0x122>
movsbl -0x8f(%rbp),%eax
cmp    $0x6f,%eax
jne    12b2 <main+0x122>
jmp    1427 <main+0x297>
jmp    12b7 <main+0x127>
mov    -0xa0(%rbp),%eax
movsbl -0x90(%rbp,%rax,1),%edi
ff
call   10b0 <isUpperAlpha@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0xa5(%rbp)
je     12ef <main+0x15f>
cmpl   $0x14,-0xa0(%rbp)
setb   %al
mov    %al,-0xa5(%rbp)
mov    -0xa5(%rbp),%al
test   $0x1,%al
jne    1302 <main+0x172>
jmp    132d <main+0x19d>
mov    -0xa0(%rbp),%eax
mov    -0x90(%rbp,%rax,1),%cl
mov    -0xa0(%rbp),%eax
mov    %cl,-0x50(%rbp,%rax,1)
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    12b7 <main+0x127>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    -0x90(%rbp,%rax,1),%al
mov    %al,-0x51(%rbp)
cmpl   $0x2,-0xa0(%rbp)
jb     1361 <main+0x1d1>
movsbl -0x51(%rbp),%edi
call   10a0 <isAlphaNum@plt>
cmp    $0x0,%eax
jne    1374 <main+0x1e4>
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13bb <main+0x22b>
lea    -0x30(%rbp),%rsi
lea    0xd8a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x50(%rbp),%rsi
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsbl -0x51(%rbp),%esi
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x30(%rbp),%rdi
lea    -0x50(%rbp),%rsi
movsbl -0x51(%rbp),%edx
call   1040 <strfilter@plt>
cmpl   $0x14,-0xa4(%rbp)
jae    13e7 <main+0x257>
mov    -0xa4(%rbp),%eax
movb   $0x0,-0x50(%rbp,%rax,1)
mov    -0xa4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa4(%rbp)
jmp    13bb <main+0x22b>
movb   $0x0,-0x51(%rbp)
movl   $0x0,-0xa0(%rbp)
movl   $0x0,-0xa4(%rbp)
mov    -0x98(%rbp),%rax
movsbl (%rax),%esi
movsbl -0x50(%rbp),%edx
movsbl -0x50(%rbp),%ecx
add    $0x1,%ecx
lea    0xd14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1254 <main+0xc4>
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
xorps  %xmm0,%xmm0
movups %xmm0,0x79(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,(%rsp)
movq   $0x0,0xd(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movw   $0x0,0x50(%rsp)
xor    %edi,%edi
call   1090 <time@plt>
mov    %eax,%edi
call   1070 <srand@plt>
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xor    %eax,%eax
call   1040 <randUpperChar@plt>
mov    %al,0x60(%rsp,%rbx,1)
add    $0x1,%rbx
cmp    $0x28,%rbx
jne    11f0 <main+0x60>
lea    0xe79(%rip),%rdi
call   1030 <puts@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%edx
lea    0x20(%rsp),%rdi
mov    $0x14,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     136e <main+0x1de>
lea    0xdd7(%rip),%r12
lea    0xe12(%rip),%r15
lea    0x20(%rsp),%rbx
jmp    129d <main+0x10d>
nopw   0x0(%rax,%rax,1)
lea    0xea9(%rip),%rdi
call   1030 <puts@plt>
xorps  %xmm0,%xmm0
movaps %xmm0,(%rsp)
movl   $0x0,0x10(%rsp)
mov    %r15,%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2d63(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     136e <main+0x1de>
movsbl 0x20(%rsp),%esi
mov    %r12,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x20(%rsp),%al
cmp    $0x4e,%al
jne    12bf <main+0x12f>
cmpb   $0x6f,0x21(%rsp)
je     136e <main+0x1de>
movsbl %al,%edi
call   10b0 <isUpperAlpha@plt>
test   %rax,%rax
je     1250 <main+0xc0>
xor    %ebp,%ebp
xchg   %ax,%ax
movzbl 0x20(%rsp,%rbp,1),%eax
mov    %al,(%rsp,%rbp,1)
lea    0x1(%rbp),%r14
movsbl 0x21(%rsp,%rbp,1),%edi
call   10b0 <isUpperAlpha@plt>
test   %rax,%rax
je     12f4 <main+0x164>
cmp    $0x13,%rbp
mov    %r14,%rbp
jb     12d0 <main+0x140>
test   $0xfffffffe,%r14d
je     1250 <main+0xc0>
movsbl 0x21(%rsp,%r14,1),%ebp
mov    %ebp,%edi
call   10a0 <isAlphaNum@plt>
test   %eax,%eax
je     1250 <main+0xc0>
lea    0xd0f(%rip),%rdi
lea    0x60(%rsp),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xd06(%rip),%rdi
mov    %r12,%r13
mov    %r15,%r12
mov    %rsp,%r15
mov    %r15,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xcf9(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r14,%rdi
mov    %r15,%rsi
mov    %r12,%r15
mov    %r13,%r12
mov    %ebp,%edx
call   1050 <strfilter@plt>
jmp    125c <main+0xcc>
xor    %eax,%eax
add    $0x98,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [124 x i8] c"Let's reset some letters!\0APlease input at least 2 upper case letters to reset followed by a space and a \22reset\22 character.\0A\00"
@stdin = global i32 0
@.str.1 = [28 x i8] c"dereference userInput = %c\0A\00"
@.str.2 = [113 x i8] c"Invalid input.\0APlease input at least 2 upper case letters to reset followed by a space and a \22reset\22 character.\0A\00"
@.str.3 = [13 x i8] c"s1 = {\22%s\22}\0A\00"
@.str.4 = [13 x i8] c"s2 = {\22%s\22}\0A\00"
@.str.5 = [12 x i8] c"c = {\22%c\22}\0A\00"
@.str.6 = [51 x i8] c"someChar = %c\0Apointer s2 = %c\0Apointer s2 + 1 = %c\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [41 x i8]
%3 = alloca [21 x i8]
%4 = alloca i8
%5 = alloca [50 x i8]
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
%10 = bitcast [41 x i8]* %2 to i8*
%11 = bitcast [21 x i8]* %3 to i8*
store i8 0, i8* %4
%12 = bitcast [50 x i8]* %5 to i8*
%13 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 0
store i8* %13, i8** %6
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
%14 = call i32 @time(i32* null)
%15 = call i32 @srand(i32 %14)
%16 = load i32, i32* %7
br label %17
17: ; preds = %25, %0
%18 = load i32, i32* %7
%19 = icmp ult i32 %18, 40
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = call signext i8 (...) @randUpperChar()
%22 = load i32, i32* %7
%23 = zext i32 %22 to i64
%24 = getelementptr inbounds [41 x i8], [41 x i8]* %2, i64 0, i64 %23
store i8 %21, i8* %24
br label %25
25: ; preds = %20
%26 = load i32, i32* %7
%27 = add i32 %26, 1
store i32 %27, i32* %7
br label %17
28: ; preds = %17
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([124 x i8], [124 x i8]* @.str, i64 0, i64 0))
br label %30
30: ; preds = %111, %28
%31 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%32 = load i32, i32* @stdin
%33 = call i32* @fgets(i8* %31, i32 20, i32 %32)
%34 = icmp ne i32* %33, null
br i1 %34, label %35, label %123
35: ; preds = %30
%36 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %38)
%40 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%41 = load i8, i8* %40
%42 = sext i8 %41 to i32
%43 = icmp eq i32 %42, 78
br i1 %43, label %44, label %50
44: ; preds = %35
%45 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 1
%46 = load i8, i8* %45
%47 = sext i8 %46 to i32
%48 = icmp eq i32 %47, 111
br i1 %48, label %49, label %50
49: ; preds = %44
br label %123
50: ; preds = %44, %35
br label %51
51: ; preds = %63, %50
%52 = load i32, i32* %8
%53 = zext i32 %52 to i64
%54 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 %53
%55 = load i8, i8* %54
%56 = call i64 @isUpperAlpha(i8 signext %55)
%57 = icmp ne i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %51
%59 = load i32, i32* %8
%60 = icmp ult i32 %59, 20
br label %61
61: ; preds = %58, %51
%62 = phi i1 [ false, %51 ], [ %60, %58 ]
br i1 %62, label %63, label %73
63: ; preds = %61
%64 = load i32, i32* %8
%65 = zext i32 %64 to i64
%66 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 %65
%67 = load i8, i8* %66
%68 = load i32, i32* %8
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 %69
store i8 %67, i8* %70
%71 = load i32, i32* %8
%72 = add i32 %71, 1
store i32 %72, i32* %8
br label %51
73: ; preds = %61
%74 = load i32, i32* %8
%75 = add i32 %74, 1
%76 = zext i32 %75 to i64
%77 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 %76
%78 = load i8, i8* %77
store i8 %78, i8* %4
%79 = load i32, i32* %8
%80 = icmp ult i32 %79, 2
br i1 %80, label %85, label %81
81: ; preds = %73
%82 = load i8, i8* %4
%83 = call i32 @isAlphaNum(i8 signext %82)
%84 = icmp ne i32 %83, 0
br i1 %84, label %87, label %85
85: ; preds = %81, %73
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str.2, i64 0, i64 0))
br label %99
87: ; preds = %81
%88 = getelementptr inbounds [41 x i8], [41 x i8]* %2, i64 0, i64 0
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %88)
%90 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 0
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %90)
%92 = load i8, i8* %4
%93 = sext i8 %92 to i32
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %93)
%95 = getelementptr inbounds [41 x i8], [41 x i8]* %2, i64 0, i64 0
%96 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 0
%97 = load i8, i8* %4
%98 = call i32 @strfilter(i8* %95, i8* %96, i8 signext %97)
br label %99
99: ; preds = %87, %85
%100 = load i32, i32* %9
br label %101
101: ; preds = %108, %99
%102 = load i32, i32* %9
%103 = icmp ult i32 %102, 20
br i1 %103, label %104, label %111
104: ; preds = %101
%105 = load i32, i32* %9
%106 = zext i32 %105 to i64
%107 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 %106
store i8 0, i8* %107
br label %108
108: ; preds = %104
%109 = load i32, i32* %9
%110 = add i32 %109, 1
store i32 %110, i32* %9
br label %101
111: ; preds = %101
store i8 0, i8* %4
store i32 0, i32* %8
store i32 0, i32* %9
%112 = load i8*, i8** %6
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 0
%116 = load i8, i8* %115
%117 = sext i8 %116 to i32
%118 = getelementptr inbounds [21 x i8], [21 x i8]* %3, i64 0, i64 0
%119 = load i8, i8* %118
%120 = sext i8 %119 to i32
%121 = add nsw i32 %120, 1
%122 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i32 %114, i32 %117, i32 %121)
br label %30
123: ; preds = %49, %30
ret i32 0
}

LLVM IR (-O2):
@stdin = global i32 0
@.str.1 = [28 x i8] c"dereference userInput = %c\0A\00"
@.str.3 = [13 x i8] c"s1 = {\22%s\22}\0A\00"
@.str.4 = [13 x i8] c"s2 = {\22%s\22}\0A\00"
@.str.5 = [12 x i8] c"c = {\22%c\22}\0A\00"
@.str.6 = [51 x i8] c"someChar = %c\0Apointer s2 = %c\0Apointer s2 + 1 = %c\0A\00"
@str = [123 x i8] c"Let's reset some letters!\0APlease input at least 2 upper case letters to reset followed by a space and a \22reset\22 character.\00"
@str.7 = [112 x i8] c"Invalid input.\0APlease input at least 2 upper case letters to reset followed by a space and a \22reset\22 character.\00"
define i32 @main() {
%1 = alloca [41 x i8]
%2 = alloca [21 x i8]
%3 = getelementptr inbounds [21 x i8], [21 x i8]* %2, i64 0, i64 0
%4 = alloca [50 x i8]
%5 = getelementptr inbounds [41 x i8], [41 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [21 x i8], [21 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 0
%8 = tail call i32 @time(i32* null)
%9 = tail call i32 @srand(i32 %8)
br label %10
10: ; preds = %0, %10
%11 = phi i64 [ 0, %0 ], [ %14, %10 ]
%12 = tail call signext i8 (...) @randUpperChar()
%13 = getelementptr inbounds [41 x i8], [41 x i8]* %1, i64 0, i64 %11
store i8 %12, i8* %13
%14 = add nuw nsw i64 %11, 1
%15 = icmp eq i64 %14, 40
br i1 %15, label %16, label %10
16: ; preds = %10
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([123 x i8], [123 x i8]* @str, i64 0, i64 0))
%18 = load i32, i32* @stdin
%19 = call i32* @fgets(i8* %7, i32 20, i32 %18)
%20 = icmp eq i32* %19, null
br i1 %20, label %70, label %21
21: ; preds = %16
%22 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 1
br label %23
23: ; preds = %21, %65
%24 = load i8, i8* %7
%25 = sext i8 %24 to i32
%26 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i32 %25)
%27 = load i8, i8* %7
%28 = icmp eq i8 %27, 78
%29 = load i8, i8* %22
%30 = icmp eq i8 %29, 111
%31 = select i1 %28, i1 %30, i1 false
br i1 %31, label %70, label %32
32: ; preds = %23
%33 = call i64 @isUpperAlpha(i8 signext %27)
%34 = icmp eq i64 %33, 0
br i1 %34, label %57, label %35
35: ; preds = %32, %35
%36 = phi i64 [ %40, %35 ], [ 0, %32 ]
%37 = phi i8* [ %41, %35 ], [ %7, %32 ]
%38 = load i8, i8* %37
%39 = getelementptr inbounds [21 x i8], [21 x i8]* %2, i64 0, i64 %36
store i8 %38, i8* %39
%40 = add nuw nsw i64 %36, 1
%41 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 %40
%42 = load i8, i8* %41
%43 = call i64 @isUpperAlpha(i8 signext %42)
%44 = icmp ne i64 %43, 0
%45 = icmp ult i64 %36, 19
%46 = select i1 %44, i1 %45, i1 false
br i1 %46, label %35, label %47
47: ; preds = %35
%48 = add nuw i64 %36, 2
%49 = and i64 %48, 4294967295
%50 = getelementptr inbounds [50 x i8], [50 x i8]* %4, i64 0, i64 %49
%51 = load i8, i8* %50
%52 = and i64 %40, 4294967294
%53 = icmp eq i64 %52, 0
br i1 %53, label %57, label %54
54: ; preds = %47
%55 = call i32 @isAlphaNum(i8 signext %51)
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %32, %54, %47
%58 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str.7, i64 0, i64 0))
br label %65
59: ; preds = %54
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* %5)
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* %6)
%62 = sext i8 %51 to i32
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %62)
%64 = call i32 @strfilter(i8* %5, i8* %6, i8 signext %51)
br label %65
65: ; preds = %59, %57
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.6, i64 0, i64 0), i32 0, i32 0, i32 1)
%67 = load i32, i32* @stdin
%68 = call i32* @fgets(i8* %7, i32 20, i32 %67)
%69 = icmp eq i32* %68, null
br i1 %69, label %70, label %23
70: ; preds = %65, %23, %16
ret i32 0
}