#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*/ test_case;

/* Variables and functions */
int /*<<< orphan*/ assert_test(int, char **, char **);
void t_simple(void *context) {
  char *test_case[] = {"1.1-d", "3-ab", "2-x"};
  char *expected[] = {"1.1-d", "2-x", "3-ab"};
  assert_test(sizeof(test_case) / sizeof(char *), test_case, expected);
}


x86 assembly (clang, -O0):
<t_simple>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2cbd(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2cba(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0x2cb7(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    0x2cbc(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0x2cb9(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0x2cb6(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    -0x20(%rbp),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x3,%edi
call   1030 <assert_test@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<t_simple>:
sub    $0x38,%rsp
mov    0x2cd5(%rip),%rax
mov    %rax,0x30(%rsp)
movaps 0x2cb9(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
mov    0x2cdd(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0x2cc1(%rip),%xmm0
movaps %xmm0,(%rsp)
lea    0x20(%rsp),%rsi
mov    %rsp,%rdx
mov    $0x3,%edi
call   1030 <assert_test@plt>
add    $0x38,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"1.1-d\00"
@.str.1 = [5 x i8] c"3-ab\00"
@.str.2 = [4 x i8] c"2-x\00"
@__const.t_simple.test_case = [3 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0)]
@__const.t_simple.expected = [3 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0)]
define void @t_simple(i8* %0) {
%2 = alloca i8*
%3 = alloca [3 x i8*]
%4 = alloca [3 x i8*]
store i8* %0, i8** %2
%5 = bitcast [3 x i8*]* %3 to i8*
%6 = bitcast [3 x i8*]* %4 to i8*
%7 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 0
%8 = getelementptr inbounds [3 x i8*], [3 x i8*]* %4, i64 0, i64 0
%9 = call i32 @assert_test(i32 3, i8** %7, i8** %8)
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"1.1-d\00"
@.str.1 = [5 x i8] c"3-ab\00"
@.str.2 = [4 x i8] c"2-x\00"
@__const.t_simple.test_case = [3 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0)]
@__const.t_simple.expected = [3 x i8*] [i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0)]
define void @t_simple(i8* nocapture readnone %0) {
%2 = alloca [3 x i8*]
%3 = alloca [3 x i8*]
%4 = bitcast [3 x i8*]* %2 to i8*
%5 = bitcast [3 x i8*]* %3 to i8*
%6 = getelementptr inbounds [3 x i8*], [3 x i8*]* %2, i64 0, i64 0
%7 = getelementptr inbounds [3 x i8*], [3 x i8*]* %3, i64 0, i64 0
%8 = call i32 @assert_test(i32 3, i8** %6, i8** %7)
ret void
}