#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 */
typedef int /*<<< orphan*/ arr;

/* Variables and functions */
int /*<<< orphan*/ printAnagram(char **, int);
int main() {
  char *arr[] = {"cat", "dog", "act", "god", "dgo", "tca"};
  int size = sizeof(arr) / sizeof(arr[0]);
  printAnagram(arr, size);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
lea    -0x30(%rbp),%rdi
xor    %esi,%esi
mov    $0x30,%edx
call   1030 <memset@plt>
lea    0xec1(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xeba(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xeb3(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xeac(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    0xea5(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xe9e(%rip),%rax
mov    %rax,-0x8(%rbp)
movl   $0x6,-0x34(%rbp)
lea    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
call   1040 <printAnagram@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x38,%rsp
lea    0xee5(%rip),%rax
mov    %rax,(%rsp)
lea    0xede(%rip),%rax
mov    %rax,0x8(%rsp)
lea    0xed6(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xece(%rip),%rax
mov    %rax,0x18(%rsp)
lea    0xec6(%rip),%rax
mov    %rax,0x20(%rsp)
lea    0xebe(%rip),%rax
mov    %rax,0x28(%rsp)
mov    %rsp,%rdi
mov    $0x6,%esi
call   1030 <printAnagram@plt>
xor    %eax,%eax
add    $0x38,%rsp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"cat\00"
@.str.1 = [4 x i8] c"dog\00"
@.str.2 = [4 x i8] c"act\00"
@.str.3 = [4 x i8] c"god\00"
@.str.4 = [4 x i8] c"dgo\00"
@.str.5 = [4 x i8] c"tca\00"
define i32 @main() {
%1 = alloca [6 x i8*]
%2 = alloca i32
%3 = bitcast [6 x i8*]* %1 to i8*
%4 = bitcast i8* %3 to [6 x i8*]*
%5 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i32 0, i32 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i32 0, i32 0), i8** %5
%6 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i32 0, i32 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8** %6
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i32 0, i32 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8** %7
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i32 0, i32 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i32 0, i32 0), i8** %8
%9 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i32 0, i32 4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i32 0, i32 0), i8** %9
%10 = getelementptr inbounds [6 x i8*], [6 x i8*]* %4, i32 0, i32 5
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i32 0, i32 0), i8** %10
store i32 6, i32* %2
%11 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 0
%12 = load i32, i32* %2
%13 = call i32 @printAnagram(i8** %11, i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [4 x i8] c"cat\00"
@.str.1 = [4 x i8] c"dog\00"
@.str.2 = [4 x i8] c"act\00"
@.str.3 = [4 x i8] c"god\00"
@.str.4 = [4 x i8] c"dgo\00"
@.str.5 = [4 x i8] c"tca\00"
define i32 @main() {
%1 = alloca [6 x i8*]
%2 = bitcast [6 x i8*]* %1 to i8*
%3 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 0
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8** %3
%4 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 1
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8** %4
%5 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 2
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8** %5
%6 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 3
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8** %6
%7 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 4
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8** %7
%8 = getelementptr inbounds [6 x i8*], [6 x i8*]* %1, i64 0, i64 5
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8** %8
%9 = call i32 @printAnagram(i8** %3, i32 6)
ret i32 0
}