#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*/ assert(int);
int /*<<< orphan*/ filter_printf(char *, char *);
int filter_result_len(char *, char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ strcmp(int /*<<< orphan*/, char *);
void test_filter_printf(void) {
  assert(filter_result_len("meno %u", "doof", NULL) == 10);
  assert(filter_result_len("meno %u %u", "doof", NULL) == 15);
  assert(filter_result_len("%u meno %u", "doof", NULL) == 15);
  assert(filter_result_len("%u me %u no %u", "doof", NULL) == 21);
  assert(filter_result_len("meno %w %%u", "doof", NULL) == 14);
  assert(filter_result_len("meno %w %%u meno", "doof", NULL) == 19);
  assert(filter_result_len("meno ", "doof", NULL) == 6);
  assert(!strcmp(filter_printf("meno %u", "doof"), "meno doof"));
  assert(!strcmp(filter_printf("meno %u %u", "doof"), "meno doof doof"));
  assert(!strcmp(filter_printf("%u meno %u", "doof"), "doof meno doof"));
  assert(
      !strcmp(filter_printf("%u me %u no %u", "doof"), "doof me doof no doof"));
  assert(!strcmp(filter_printf("meno %w %%u", "doof"), "meno %w %doof"));
  assert(
      !strcmp(filter_printf("meno %w %%u meno", "doof"), "meno %w %doof meno"));
  assert(!strcmp(filter_printf("meno ", "doof"), "meno "));
  printf("test_filter_printf OK\n");
}


x86 assembly (clang, -O0):
<test_filter_printf>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb3(%rip),%rdi
lea    0xef0(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0xa,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe7e(%rip),%rdi
lea    0xec9(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0xf,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe62(%rip),%rdi
lea    0xea2(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0xf,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe46(%rip),%rdi
lea    0xe7b(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0x15,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe2e(%rip),%rdi
lea    0xe54(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0xe,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xe13(%rip),%rdi
lea    0xe2d(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0x13,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xdfd(%rip),%rdi
lea    0xe06(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
call   1070 <filter_result_len@plt>
cmp    $0x6,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xda2(%rip),%rdi
lea    0xddf(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xddb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd61(%rip),%rdi
lea    0xdac(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xd94(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd39(%rip),%rdi
lea    0xd79(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xd70(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xd11(%rip),%rdi
lea    0xd46(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xd4c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xced(%rip),%rdi
lea    0xd13(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xd2e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xcc6(%rip),%rdi
lea    0xce0(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xd09(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xca4(%rip),%rdi
lea    0xcad(%rip),%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
lea    0xc8f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
lea    0xccb(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_filter_printf>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeac(%rip),%r12
lea    0xee9(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0xa,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xe75(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0xf,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xe5e(%rip),%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0xf,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xe47(%rip),%r13
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0x15,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xe34(%rip),%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0xe,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xe21(%rip),%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0x13,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xe13(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1070 <filter_result_len@plt>
xor    %edi,%edi
cmp    $0x6,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
lea    0xe00(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
lea    0xdc6(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
lea    0xdaf(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
lea    0xd98(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xd3c(%rip),%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
lea    0xd83(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xd1e(%rip),%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
lea    0xd67(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1060 <filter_printf@plt>
mov    %eax,%edi
mov    %r14,%rsi
call   1040 <strcmp@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   1050 <assert@plt>
lea    0xd3d(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"meno %u\00"
@.str.1 = [5 x i8] c"doof\00"
@.str.2 = [11 x i8] c"meno %u %u\00"
@.str.3 = [11 x i8] c"%u meno %u\00"
@.str.4 = [15 x i8] c"%u me %u no %u\00"
@.str.5 = [12 x i8] c"meno %w %%u\00"
@.str.6 = [17 x i8] c"meno %w %%u meno\00"
@.str.7 = [6 x i8] c"meno \00"
@.str.8 = [10 x i8] c"meno doof\00"
@.str.9 = [15 x i8] c"meno doof doof\00"
@.str.10 = [15 x i8] c"doof meno doof\00"
@.str.11 = [21 x i8] c"doof me doof no doof\00"
@.str.12 = [14 x i8] c"meno %w %doof\00"
@.str.13 = [19 x i8] c"meno %w %doof meno\00"
@.str.14 = [23 x i8] c"test_filter_printf OK\0A\00"
define void @test_filter_printf() {
%1 = call i32 @filter_result_len(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = call i32 @assert(i32 %3)
%5 = call i32 @filter_result_len(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%6 = icmp eq i32 %5, 15
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = call i32 @filter_result_len(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%10 = icmp eq i32 %9, 15
%11 = zext i1 %10 to i32
%12 = call i32 @assert(i32 %11)
%13 = call i32 @filter_result_len(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%14 = icmp eq i32 %13, 21
%15 = zext i1 %14 to i32
%16 = call i32 @assert(i32 %15)
%17 = call i32 @filter_result_len(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%18 = icmp eq i32 %17, 14
%19 = zext i1 %18 to i32
%20 = call i32 @assert(i32 %19)
%21 = call i32 @filter_result_len(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%22 = icmp eq i32 %21, 19
%23 = zext i1 %22 to i32
%24 = call i32 @assert(i32 %23)
%25 = call i32 @filter_result_len(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%26 = icmp eq i32 %25, 6
%27 = zext i1 %26 to i32
%28 = call i32 @assert(i32 %27)
%29 = call i32 @filter_printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%30 = call i32 @strcmp(i32 %29, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%31 = icmp ne i32 %30, 0
%32 = xor i1 %31, true
%33 = zext i1 %32 to i32
%34 = call i32 @assert(i32 %33)
%35 = call i32 @filter_printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%36 = call i32 @strcmp(i32 %35, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%37 = icmp ne i32 %36, 0
%38 = xor i1 %37, true
%39 = zext i1 %38 to i32
%40 = call i32 @assert(i32 %39)
%41 = call i32 @filter_printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%42 = call i32 @strcmp(i32 %41, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
%44 = xor i1 %43, true
%45 = zext i1 %44 to i32
%46 = call i32 @assert(i32 %45)
%47 = call i32 @filter_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%48 = call i32 @strcmp(i32 %47, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%49 = icmp ne i32 %48, 0
%50 = xor i1 %49, true
%51 = zext i1 %50 to i32
%52 = call i32 @assert(i32 %51)
%53 = call i32 @filter_printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%54 = call i32 @strcmp(i32 %53, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%55 = icmp ne i32 %54, 0
%56 = xor i1 %55, true
%57 = zext i1 %56 to i32
%58 = call i32 @assert(i32 %57)
%59 = call i32 @filter_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%60 = call i32 @strcmp(i32 %59, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
%61 = icmp ne i32 %60, 0
%62 = xor i1 %61, true
%63 = zext i1 %62 to i32
%64 = call i32 @assert(i32 %63)
%65 = call i32 @filter_printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%66 = call i32 @strcmp(i32 %65, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%67 = icmp ne i32 %66, 0
%68 = xor i1 %67, true
%69 = zext i1 %68 to i32
%70 = call i32 @assert(i32 %69)
%71 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.14, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [8 x i8] c"meno %u\00"
@.str.1 = [5 x i8] c"doof\00"
@.str.2 = [11 x i8] c"meno %u %u\00"
@.str.3 = [11 x i8] c"%u meno %u\00"
@.str.4 = [15 x i8] c"%u me %u no %u\00"
@.str.5 = [12 x i8] c"meno %w %%u\00"
@.str.6 = [17 x i8] c"meno %w %%u meno\00"
@.str.7 = [6 x i8] c"meno \00"
@.str.8 = [10 x i8] c"meno doof\00"
@.str.9 = [15 x i8] c"meno doof doof\00"
@.str.10 = [15 x i8] c"doof meno doof\00"
@.str.11 = [21 x i8] c"doof me doof no doof\00"
@.str.12 = [14 x i8] c"meno %w %doof\00"
@.str.13 = [19 x i8] c"meno %w %doof meno\00"
@str = [22 x i8] c"test_filter_printf OK\00"
define void @test_filter_printf() {
%1 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%2 = icmp eq i32 %1, 10
%3 = zext i1 %2 to i32
%4 = tail call i32 @assert(i32 %3)
%5 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%6 = icmp eq i32 %5, 15
%7 = zext i1 %6 to i32
%8 = tail call i32 @assert(i32 %7)
%9 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%10 = icmp eq i32 %9, 15
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%14 = icmp eq i32 %13, 21
%15 = zext i1 %14 to i32
%16 = tail call i32 @assert(i32 %15)
%17 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%18 = icmp eq i32 %17, 14
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%22 = icmp eq i32 %21, 19
%23 = zext i1 %22 to i32
%24 = tail call i32 @assert(i32 %23)
%25 = tail call i32 @filter_result_len(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32* null)
%26 = icmp eq i32 %25, 6
%27 = zext i1 %26 to i32
%28 = tail call i32 @assert(i32 %27)
%29 = tail call i32 @filter_printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%30 = tail call i32 @strcmp(i32 %29, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%31 = icmp eq i32 %30, 0
%32 = zext i1 %31 to i32
%33 = tail call i32 @assert(i32 %32)
%34 = tail call i32 @filter_printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%35 = tail call i32 @strcmp(i32 %34, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i32 %35, 0
%37 = zext i1 %36 to i32
%38 = tail call i32 @assert(i32 %37)
%39 = tail call i32 @filter_printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%40 = tail call i32 @strcmp(i32 %39, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
%42 = zext i1 %41 to i32
%43 = tail call i32 @assert(i32 %42)
%44 = tail call i32 @filter_printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%45 = tail call i32 @strcmp(i32 %44, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%46 = icmp eq i32 %45, 0
%47 = zext i1 %46 to i32
%48 = tail call i32 @assert(i32 %47)
%49 = tail call i32 @filter_printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%50 = tail call i32 @strcmp(i32 %49, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.12, i64 0, i64 0))
%51 = icmp eq i32 %50, 0
%52 = zext i1 %51 to i32
%53 = tail call i32 @assert(i32 %52)
%54 = tail call i32 @filter_printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%55 = tail call i32 @strcmp(i32 %54, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.13, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
%57 = zext i1 %56 to i32
%58 = tail call i32 @assert(i32 %57)
%59 = tail call i32 @filter_printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%60 = tail call i32 @strcmp(i32 %59, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%61 = icmp eq i32 %60, 0
%62 = zext i1 %61 to i32
%63 = tail call i32 @assert(i32 %62)
%64 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
ret void
}