#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*/ dotest(char *, char *);
int main() {
  {
    char *s = "who hit retaining The That a we taken";
    dotest(s, "who RETAINING hit THAT a THE we TAKEN");
  }
  {
    char *s = "on I came up were so grandmothers";
    char *sol = "i CAME on WERE up GRANDMOTHERS so";
    dotest(s, sol);
  }
  {
    char *s = "way the my wall them him";
    char *sol = "way THE my WALL him THEM";
    dotest(s, sol);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
lea    0xee1(%rip),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xef8(%rip),%rsi
call   1030 <dotest@plt>
lea    0xf12(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xf29(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   1030 <dotest@plt>
lea    0xf33(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xf41(%rip),%rax
mov    %rax,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1030 <dotest@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xf07(%rip),%rsi
call   1030 <dotest@plt>
lea    0xf21(%rip),%rdi
lea    0xf3c(%rip),%rsi
call   1030 <dotest@plt>
lea    0xf52(%rip),%rdi
lea    0xf64(%rip),%rsi
call   1030 <dotest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"who hit retaining The That a we taken\00"
@.str.1 = [38 x i8] c"who RETAINING hit THAT a THE we TAKEN\00"
@.str.2 = [34 x i8] c"on I came up were so grandmothers\00"
@.str.3 = [34 x i8] c"i CAME on WERE up GRANDMOTHERS so\00"
@.str.4 = [25 x i8] c"way the my wall them him\00"
@.str.5 = [25 x i8] c"way THE my WALL him THEM\00"
define i32 @main() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8** %1
%6 = load i8*, i8** %1
%7 = call i32 @dotest(i8* %6, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i8** %3
%8 = load i8*, i8** %2
%9 = load i8*, i8** %3
%10 = call i32 @dotest(i8* %8, i8* %9)
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8** %4
store i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8** %5
%11 = load i8*, i8** %4
%12 = load i8*, i8** %5
%13 = call i32 @dotest(i8* %11, i8* %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [38 x i8] c"who hit retaining The That a we taken\00"
@.str.1 = [38 x i8] c"who RETAINING hit THAT a THE we TAKEN\00"
@.str.2 = [34 x i8] c"on I came up were so grandmothers\00"
@.str.3 = [34 x i8] c"i CAME on WERE up GRANDMOTHERS so\00"
@.str.4 = [25 x i8] c"way the my wall them him\00"
@.str.5 = [25 x i8] c"way THE my WALL him THEM\00"
define i32 @main() {
%1 = tail call i32 @dotest(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @dotest(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 @dotest(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
ret i32 0
}