#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*/ clst(char *, char *, char);
int main(void) {
  clst("lower123", "lowerabc", '\0');
  clst("higher234", "higher123", '\0');
  clst("equal", "equal", '\0');
  clst("equal", "equallong", '\0');
  clst("equallong", "equal", '\0');
  clst("lower1", "lower2", 'w');
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
lea    0xedc(%rip),%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xed7(%rip),%rdi
lea    0xeda(%rip),%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xed6(%rip),%rsi
xor    %edx,%edx
mov    %rsi,%rdi
call   1030 <clst@plt>
lea    0xec5(%rip),%rdi
lea    0xec4(%rip),%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xeb6(%rip),%rdi
lea    0xea9(%rip),%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xeab(%rip),%rdi
lea    0xeab(%rip),%rsi
mov    $0x77,%edx
call   1030 <clst@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rdi
lea    0xee7(%rip),%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xee2(%rip),%rdi
lea    0xee5(%rip),%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xee1(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xed3(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %edx,%edx
call   1030 <clst@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1030 <clst@plt>
lea    0xebc(%rip),%rdi
lea    0xebc(%rip),%rsi
mov    $0x77,%edx
call   1030 <clst@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [9 x i8] c"lower123\00"
@.str.1 = [9 x i8] c"lowerabc\00"
@.str.2 = [10 x i8] c"higher234\00"
@.str.3 = [10 x i8] c"higher123\00"
@.str.4 = [6 x i8] c"equal\00"
@.str.5 = [10 x i8] c"equallong\00"
@.str.6 = [7 x i8] c"lower1\00"
@.str.7 = [7 x i8] c"lower2\00"
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @clst(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 signext 0)
%3 = call i32 @clst(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8 signext 0)
%4 = call i32 @clst(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8 signext 0)
%5 = call i32 @clst(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8 signext 0)
%6 = call i32 @clst(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8 signext 0)
%7 = call i32 @clst(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8 signext 119)
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"lower123\00"
@.str.1 = [9 x i8] c"lowerabc\00"
@.str.2 = [10 x i8] c"higher234\00"
@.str.3 = [10 x i8] c"higher123\00"
@.str.4 = [6 x i8] c"equal\00"
@.str.5 = [10 x i8] c"equallong\00"
@.str.6 = [7 x i8] c"lower1\00"
@.str.7 = [7 x i8] c"lower2\00"
define i32 @main() {
%1 = tail call i32 @clst(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i8 signext 0)
%2 = tail call i32 @clst(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8 signext 0)
%3 = tail call i32 @clst(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8 signext 0)
%4 = tail call i32 @clst(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8 signext 0)
%5 = tail call i32 @clst(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8 signext 0)
%6 = tail call i32 @clst(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i8 signext 119)
ret i32 0
}