#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*/ print_reverse(char *);
int /*<<< orphan*/ puts(char *);
int main() {
  char *juices[] = {"dragofruit", "waterberry", "sharonfruit", "uglifruit",
                    "rumberry",   "kiwifruit",  "mulberry",    "strawberry",
                    "blueberry",  "blackberry", "starfruit"};
  char *a;
  puts(juices[6]);
  print_reverse(juices[7]);
  a = juices[2];
  juices[2] = juices[8];
  juices[8] = a;
  puts(juices[8]);
  print_reverse(juices[(18 + 7) / 5]);
  puts(juices[2]);
  print_reverse(juices[9]);
  juices[1] = juices[3];
  puts(juices[10]);
  print_reverse(juices[1]);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x60(%rbp),%rdi
lea    0x2c76(%rip),%rsi
mov    $0x58,%edx
call   1040 <memcpy@plt>
mov    -0x30(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x28(%rbp),%rdi
call   1050 <print_reverse@plt>
mov    -0x50(%rbp),%rax
mov    %rax,-0x68(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x68(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x38(%rbp),%rdi
call   1050 <print_reverse@plt>
mov    -0x50(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x18(%rbp),%rdi
call   1050 <print_reverse@plt>
mov    -0x48(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x58(%rbp),%rdi
call   1050 <print_reverse@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
call   1030 <puts@plt>
lea    0xef5(%rip),%rdi
call   1040 <print_reverse@plt>
lea    0xec0(%rip),%rdi
call   1030 <puts@plt>
lea    0xeca(%rip),%rdi
call   1040 <print_reverse@plt>
lea    0xedc(%rip),%rdi
call   1030 <puts@plt>
lea    0xeda(%rip),%rdi
call   1040 <print_reverse@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rdi
call   1040 <print_reverse@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [11 x i8] c"dragofruit\00"
@.str.1 = [11 x i8] c"waterberry\00"
@.str.2 = [12 x i8] c"sharonfruit\00"
@.str.3 = [10 x i8] c"uglifruit\00"
@.str.4 = [9 x i8] c"rumberry\00"
@.str.5 = [10 x i8] c"kiwifruit\00"
@.str.6 = [9 x i8] c"mulberry\00"
@.str.7 = [11 x i8] c"strawberry\00"
@.str.8 = [10 x i8] c"blueberry\00"
@.str.9 = [11 x i8] c"blackberry\00"
@.str.10 = [10 x i8] c"starfruit\00"
@__const.main.juices = [11 x i8*] [i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i32 0, i32 0)]
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8*]
%3 = alloca i8*
store i32 0, i32* %1
%4 = bitcast [11 x i8*]* %2 to i8*
%5 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 6
%6 = load i8*, i8** %5
%7 = call i32 @puts(i8* %6)
%8 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 7
%9 = load i8*, i8** %8
%10 = call i32 @print_reverse(i8* %9)
%11 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 2
%12 = load i8*, i8** %11
store i8* %12, i8** %3
%13 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 8
%14 = load i8*, i8** %13
%15 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 2
store i8* %14, i8** %15
%16 = load i8*, i8** %3
%17 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 8
store i8* %16, i8** %17
%18 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 8
%19 = load i8*, i8** %18
%20 = call i32 @puts(i8* %19)
%21 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 5
%22 = load i8*, i8** %21
%23 = call i32 @print_reverse(i8* %22)
%24 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 2
%25 = load i8*, i8** %24
%26 = call i32 @puts(i8* %25)
%27 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 9
%28 = load i8*, i8** %27
%29 = call i32 @print_reverse(i8* %28)
%30 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 3
%31 = load i8*, i8** %30
%32 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 1
store i8* %31, i8** %32
%33 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 10
%34 = load i8*, i8** %33
%35 = call i32 @puts(i8* %34)
%36 = getelementptr inbounds [11 x i8*], [11 x i8*]* %2, i64 0, i64 1
%37 = load i8*, i8** %36
%38 = call i32 @print_reverse(i8* %37)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [12 x i8] c"sharonfruit\00"
@.str.3 = [10 x i8] c"uglifruit\00"
@.str.5 = [10 x i8] c"kiwifruit\00"
@.str.6 = [9 x i8] c"mulberry\00"
@.str.7 = [11 x i8] c"strawberry\00"
@.str.8 = [10 x i8] c"blueberry\00"
@.str.9 = [11 x i8] c"blackberry\00"
@.str.10 = [10 x i8] c"starfruit\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%2 = tail call i32 @print_reverse(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @print_reverse(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.8, i64 0, i64 0))
%6 = tail call i32 @print_reverse(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 @print_reverse(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
ret i32 0
}