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

/* Variables and functions */
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
void WriteArrayBeginExpression(char *elementType, char *arrayName,
                               char *arraySize, FILE *out) {
  fputs("\n", out);
  fputs(elementType, out);
  fputc(' ', out);
  fputs(arrayName, out);
  fputc('[', out);
  fputs(arraySize, out);
  fputs("] = {\n", out);
  return;
}


x86 assembly (clang, -O0):
<WriteArrayBeginExpression>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xec2(%rip),%rdi
call   1030 <fputs@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <fputs@plt>
mov    -0x20(%rbp),%rsi
mov    $0x20,%edi
call   1040 <fputc@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <fputs@plt>
mov    -0x20(%rbp),%rsi
mov    $0x5b,%edi
call   1040 <fputc@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1030 <fputs@plt>
mov    -0x20(%rbp),%rsi
lea    0xe6a(%rip),%rdi
call   1030 <fputs@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteArrayBeginExpression>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%r12
mov    $0xa,%edi
mov    %rcx,%rsi
call   1040 <fputc@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1030 <fputs@plt>
mov    $0x20,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <fputs@plt>
mov    $0x5b,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
call   1030 <fputs@plt>
lea    0xe6d(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1050 <fwrite@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
@.str.1 = [7 x i8] c"] = {\0A\00"
define void @WriteArrayBeginExpression(i8* %0, i8* %1, i8* %2, i32* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32*
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i32* %3, i32** %8
%9 = load i32*, i32** %8
%10 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32* %9)
%11 = load i8*, i8** %5
%12 = load i32*, i32** %8
%13 = call i32 @fputs(i8* %11, i32* %12)
%14 = load i32*, i32** %8
%15 = call i32 @fputc(i8 signext 32, i32* %14)
%16 = load i8*, i8** %6
%17 = load i32*, i32** %8
%18 = call i32 @fputs(i8* %16, i32* %17)
%19 = load i32*, i32** %8
%20 = call i32 @fputc(i8 signext 91, i32* %19)
%21 = load i8*, i8** %7
%22 = load i32*, i32** %8
%23 = call i32 @fputs(i8* %21, i32* %22)
%24 = load i32*, i32** %8
%25 = call i32 @fputs(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32* %24)
ret void
}

LLVM IR (-O2):
@.str.1 = [7 x i8] c"] = {\0A\00"
define void @WriteArrayBeginExpression(i8* nocapture %0, i8* nocapture %1, i8* nocapture %2, i32* %3) {
%5 = tail call i32 bitcast (i32 (i8, i32*)* @fputc to i32 (i32, i32*)*)(i32 10, i32* %3)
%6 = tail call i32 @fputs(i8* %0, i32* %3)
%7 = tail call i32 @fputc(i8 signext 32, i32* %3)
%8 = tail call i32 @fputs(i8* %1, i32* %3)
%9 = tail call i32 @fputc(i8 signext 91, i32* %3)
%10 = tail call i32 @fputs(i8* %2, i32* %3)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i64 6, i64 1, i32* %3)
ret void
}