#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 cmps(char const *, char const *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int doCmpsTests() {
  const char *s1 = "abcdefg";
  const char *s2 = "abcdefh";
  const char *s3 = &s2[1];
  int df = 0;
  int results[4];
  int failures = 0;
  printf("s1 : '%s' @%p\n"
         "s2 : '%s' @%p\n",
         s1, s1, s2, s2);
  for (df = 0; df < 2; df++) {
    int d1 = df ? 6 : 0;
    int d2 = df ? 5 : 0;
    printf("DF = %d\n", df);
    results[0] = cmps(s1 + d1, s1 + d1, 7, df);
    results[1] = cmps(s1 + d1, s2 + d1, 7, df);
    results[2] = cmps(s2 + d1, s1 + d1, 7, df);
    results[3] = cmps(s3 + d2, s2 + d2, 6, df);
    printf("cmps (%s,%s) = %d, should be 0\n", s1, s1, results[0]);
    printf("cmps (%s,%s) = %d, should be -1\n", s1, s2, results[1]);
    printf("cmps (%s,%s) = %d, should be 1\n", s2, s1, results[2]);
    printf("cmps (%s,%s) = %d, should be 1\n", s3, s2, results[3]);
    failures += results[0] != 0;
    failures += results[1] != -1;
    failures += results[2] != 1;
    failures += results[3] != 1;
  }
  return failures;
}


x86 assembly (clang, -O0):
<doCmpsTests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    0xed1(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xece(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x10(%rbp),%r8
lea    0xea1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    1310 <doCmpsTests+0x1f0>
mov    -0x1c(%rbp),%edx
xor    %eax,%eax
mov    $0x6,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x38(%rbp)
mov    -0x1c(%rbp),%edx
xor    %eax,%eax
mov    $0x5,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xe76(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
movslq -0x38(%rbp),%rax
add    %rax,%rdi
mov    -0x8(%rbp),%rsi
movslq -0x38(%rbp),%rax
add    %rax,%rsi
mov    -0x1c(%rbp),%ecx
mov    $0x7,%edx
call   1040 <cmps@plt>
mov    %eax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
movslq -0x38(%rbp),%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
movslq -0x38(%rbp),%rax
add    %rax,%rsi
mov    -0x1c(%rbp),%ecx
mov    $0x7,%edx
call   1040 <cmps@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x38(%rbp),%rax
add    %rax,%rdi
mov    -0x8(%rbp),%rsi
movslq -0x38(%rbp),%rax
add    %rax,%rsi
mov    -0x1c(%rbp),%ecx
mov    $0x7,%edx
call   1040 <cmps@plt>
mov    %eax,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
movslq -0x3c(%rbp),%rax
add    %rax,%rdi
mov    -0x10(%rbp),%rsi
movslq -0x3c(%rbp),%rax
add    %rax,%rsi
mov    -0x1c(%rbp),%ecx
mov    $0x6,%edx
call   1040 <cmps@plt>
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x30(%rbp),%ecx
lea    0xdce(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    -0x28(%rbp),%ecx
lea    0xddd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x24(%rbp),%ecx
lea    0xdc4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x0,-0x30(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0xffffffff,-0x2c(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x28(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x1,-0x24(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
add    -0x34(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    117d <doCmpsTests+0x5d>
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<doCmpsTests>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xede(%rip),%rdi
lea    0xec7(%rip),%rbx
lea    0xec8(%rip),%r14
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xed3(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    $0x7,%edx
xor    %ecx,%ecx
call   1040 <cmps@plt>
mov    %eax,%r13d
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x7,%edx
xor    %ecx,%ecx
call   1040 <cmps@plt>
mov    %eax,%r15d
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x7,%edx
xor    %ecx,%ecx
call   1040 <cmps@plt>
mov    %eax,0x4(%rsp)
lea    0xe5f(%rip),%rdi
mov    %r14,%rsi
mov    $0x6,%edx
xor    %ecx,%ecx
call   1040 <cmps@plt>
mov    %eax,%r12d
lea    0xe73(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe7c(%rip),%rdi
mov    %rbx,%rsi
mov    %r14,%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xe86(%rip),%rbp
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
mov    0x4(%rsp),%ebx
mov    %ebx,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %rbp,%rdi
lea    0xdf8(%rip),%rsi
mov    %r14,%rdx
mov    %r12d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
xor    %eax,%eax
test   %r13d,%r13d
setne  %al
xor    %ecx,%ecx
cmp    $0xffffffff,%r15d
setne  %cl
add    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%ebx
setne  %al
add    %ecx,%eax
xor    %ebp,%ebp
cmp    $0x1,%r12d
setne  %bpl
add    %eax,%ebp
lea    0xddf(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xda5(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
mov    $0x7,%edx
mov    $0x1,%ecx
call   1040 <cmps@plt>
mov    %eax,%r14d
mov    %eax,0x4(%rsp)
lea    0xd8a(%rip),%r15
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x7,%edx
mov    $0x1,%ecx
call   1040 <cmps@plt>
mov    %eax,%r12d
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x7,%edx
mov    $0x1,%ecx
call   1040 <cmps@plt>
mov    %eax,%r13d
lea    0xd52(%rip),%rsi
mov    %r15,%rdi
mov    $0x6,%edx
mov    $0x1,%ecx
call   1040 <cmps@plt>
mov    %eax,%r15d
lea    0xd5f(%rip),%rdi
lea    0xd22(%rip),%rdx
mov    %rdx,%rsi
mov    %rdx,%rbx
mov    %r14d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd61(%rip),%rdi
mov    %rbx,%rsi
lea    0xd09(%rip),%rbx
mov    %rbx,%rdx
mov    %r12d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xd64(%rip),%r14
mov    %r14,%rdi
mov    %rbx,%rsi
lea    0xce0(%rip),%rdx
mov    %r13d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
lea    0xcd5(%rip),%rsi
mov    %rbx,%rdx
mov    %r15d,%ecx
xor    %eax,%eax
call   1030 <printf@plt>
cmpl   $0x1,0x4(%rsp)
sbb    $0xffffffff,%ebp
xor    %eax,%eax
cmp    $0xffffffff,%r12d
setne  %al
add    %ebp,%eax
xor    %ecx,%ecx
cmp    $0x1,%r13d
setne  %cl
add    %eax,%ecx
xor    %eax,%eax
cmp    $0x1,%r15d
setne  %al
add    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"abcdefg\00"
@.str.1 = [8 x i8] c"abcdefh\00"
@.str.2 = [29 x i8] c"s1 : '%s' @%p\0As2 : '%s' @%p\0A\00"
@.str.3 = [9 x i8] c"DF = %d\0A\00"
@.str.4 = [32 x i8] c"cmps (%s,%s) = %d, should be 0\0A\00"
@.str.5 = [33 x i8] c"cmps (%s,%s) = %d, should be -1\0A\00"
@.str.6 = [32 x i8] c"cmps (%s,%s) = %d, should be 1\0A\00"
define i32 @doCmpsTests() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca [4 x i32]
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** %2
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 1
store i8* %10, i8** %3
store i32 0, i32* %4
store i32 0, i32* %6
%11 = load i8*, i8** %1
%12 = load i8*, i8** %1
%13 = load i8*, i8** %2
%14 = load i8*, i8** %2
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* %14)
store i32 0, i32* %4
br label %16
16: ; preds = %118, %0
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 2
br i1 %18, label %19, label %121
19: ; preds = %16
%20 = load i32, i32* %4
%21 = icmp ne i32 %20, 0
%22 = zext i1 %21 to i64
%23 = select i1 %21, i32 6, i32 0
store i32 %23, i32* %7
%24 = load i32, i32* %4
%25 = icmp ne i32 %24, 0
%26 = zext i1 %25 to i64
%27 = select i1 %25, i32 5, i32 0
store i32 %27, i32* %8
%28 = load i32, i32* %4
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 %28)
%30 = load i8*, i8** %1
%31 = load i32, i32* %7
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds i8, i8* %30, i64 %32
%34 = load i8*, i8** %1
%35 = load i32, i32* %7
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, i8* %34, i64 %36
%38 = load i32, i32* %4
%39 = call i32 @cmps(i8* %33, i8* %37, i32 7, i32 %38)
%40 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
store i32 %39, i32* %40
%41 = load i8*, i8** %1
%42 = load i32, i32* %7
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %41, i64 %43
%45 = load i8*, i8** %2
%46 = load i32, i32* %7
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds i8, i8* %45, i64 %47
%49 = load i32, i32* %4
%50 = call i32 @cmps(i8* %44, i8* %48, i32 7, i32 %49)
%51 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 1
store i32 %50, i32* %51
%52 = load i8*, i8** %2
%53 = load i32, i32* %7
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds i8, i8* %52, i64 %54
%56 = load i8*, i8** %1
%57 = load i32, i32* %7
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds i8, i8* %56, i64 %58
%60 = load i32, i32* %4
%61 = call i32 @cmps(i8* %55, i8* %59, i32 7, i32 %60)
%62 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 2
store i32 %61, i32* %62
%63 = load i8*, i8** %3
%64 = load i32, i32* %8
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %63, i64 %65
%67 = load i8*, i8** %2
%68 = load i32, i32* %8
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8, i8* %67, i64 %69
%71 = load i32, i32* %4
%72 = call i32 @cmps(i8* %66, i8* %70, i32 6, i32 %71)
%73 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 3
store i32 %72, i32* %73
%74 = load i8*, i8** %1
%75 = load i8*, i8** %1
%76 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%77 = load i32, i32* %76
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* %74, i8* %75, i32 %77)
%79 = load i8*, i8** %1
%80 = load i8*, i8** %2
%81 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 1
%82 = load i32, i32* %81
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* %79, i8* %80, i32 %82)
%84 = load i8*, i8** %2
%85 = load i8*, i8** %1
%86 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 2
%87 = load i32, i32* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %84, i8* %85, i32 %87)
%89 = load i8*, i8** %3
%90 = load i8*, i8** %2
%91 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 3
%92 = load i32, i32* %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* %89, i8* %90, i32 %92)
%94 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 0
%95 = load i32, i32* %94
%96 = icmp ne i32 %95, 0
%97 = zext i1 %96 to i32
%98 = load i32, i32* %6
%99 = add nsw i32 %98, %97
store i32 %99, i32* %6
%100 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 1
%101 = load i32, i32* %100
%102 = icmp ne i32 %101, -1
%103 = zext i1 %102 to i32
%104 = load i32, i32* %6
%105 = add nsw i32 %104, %103
store i32 %105, i32* %6
%106 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 2
%107 = load i32, i32* %106
%108 = icmp ne i32 %107, 1
%109 = zext i1 %108 to i32
%110 = load i32, i32* %6
%111 = add nsw i32 %110, %109
store i32 %111, i32* %6
%112 = getelementptr inbounds [4 x i32], [4 x i32]* %5, i64 0, i64 3
%113 = load i32, i32* %112
%114 = icmp ne i32 %113, 1
%115 = zext i1 %114 to i32
%116 = load i32, i32* %6
%117 = add nsw i32 %116, %115
store i32 %117, i32* %6
br label %118
118: ; preds = %19
%119 = load i32, i32* %4
%120 = add nsw i32 %119, 1
store i32 %120, i32* %4
br label %16
121: ; preds = %16
%122 = load i32, i32* %6
ret i32 %122
}

LLVM IR (-O2):
@.str = [8 x i8] c"abcdefg\00"
@.str.1 = [8 x i8] c"abcdefh\00"
@.str.2 = [29 x i8] c"s1 : '%s' @%p\0As2 : '%s' @%p\0A\00"
@.str.3 = [9 x i8] c"DF = %d\0A\00"
@.str.4 = [32 x i8] c"cmps (%s,%s) = %d, should be 0\0A\00"
@.str.5 = [33 x i8] c"cmps (%s,%s) = %d, should be -1\0A\00"
@.str.6 = [32 x i8] c"cmps (%s,%s) = %d, should be 1\0A\00"
define i32 @doCmpsTests() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 0)
%3 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7, i32 0)
%4 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 7, i32 0)
%5 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 7, i32 0)
%6 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 1), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 6, i32 0)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %3)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %4)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %5)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 1), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%11 = icmp ne i32 %3, 0
%12 = zext i1 %11 to i32
%13 = icmp ne i32 %4, -1
%14 = zext i1 %13 to i32
%15 = add nuw nsw i32 %12, %14
%16 = icmp ne i32 %5, 1
%17 = zext i1 %16 to i32
%18 = add nuw nsw i32 %15, %17
%19 = icmp ne i32 %6, 1
%20 = zext i1 %19 to i32
%21 = add nuw nsw i32 %18, %20
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 1)
%23 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 6), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 6), i32 7, i32 1)
%24 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 6), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 6), i32 7, i32 1)
%25 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 6), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 6), i32 7, i32 1)
%26 = tail call i32 @cmps(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 6), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 5), i32 6, i32 1)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %23)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %24)
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i32 %25)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 1), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i32 %26)
%31 = icmp ne i32 %23, 0
%32 = zext i1 %31 to i32
%33 = add nuw nsw i32 %21, %32
%34 = icmp ne i32 %24, -1
%35 = zext i1 %34 to i32
%36 = add nuw nsw i32 %33, %35
%37 = icmp ne i32 %25, 1
%38 = zext i1 %37 to i32
%39 = add nuw nsw i32 %36, %38
%40 = icmp ne i32 %26, 1
%41 = zext i1 %40 to i32
%42 = add nuw nsw i32 %39, %41
ret i32 %42
}