#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, ...);
int main() {
  FILE *out_file;
  out_file = fopen("Configure.h", "w");
  fprintf(out_file, "%s\n", "#ifndef BSL_CONFIGURE");
  fprintf(out_file, "%s\n", "#define BSL_CONFIGURE");
  fprintf(out_file, "%s%d\n", "#define SIZEOF_CHAR ", sizeof(char));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_SHORT ", sizeof(short));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_INT ", sizeof(int));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_LONG ", sizeof(long));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_LONG_LONG ", sizeof(long long));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_FLOAT ", sizeof(float));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_DOUBLE ", sizeof(double));
  fprintf(out_file, "%s%d\n", "#define SIZEOF_LONG_DOUBLE ",
          sizeof(long double));
  fprintf(out_file, "%s\n", "#endif");
  fclose(out_file);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    0xec6(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xeb4(%rip),%rsi
lea    0xeb1(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe9b(%rip),%rsi
lea    0xeae(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xeb2(%rip),%rsi
lea    0xeb1(%rip),%rdx
mov    $0x1,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe94(%rip),%rsi
lea    0xea8(%rip),%rdx
mov    $0x2,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe76(%rip),%rsi
lea    0xea0(%rip),%rdx
mov    $0x4,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe58(%rip),%rsi
lea    0xe96(%rip),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe3a(%rip),%rsi
lea    0xe8d(%rip),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xe1c(%rip),%rsi
lea    0xe89(%rip),%rdx
mov    $0x4,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xdfe(%rip),%rsi
lea    0xe81(%rip),%rdx
mov    $0x8,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xde0(%rip),%rsi
lea    0xe7a(%rip),%rdx
mov    $0x10,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xd92(%rip),%rsi
lea    0xe78(%rip),%rdx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
lea    0xec4(%rip),%rdi
lea    0xec9(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%rbx
lea    0xebc(%rip),%r14
lea    0xeb9(%rip),%rdx
mov    %rax,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xebb(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xebd(%rip),%r15
lea    0xebc(%rip),%rdx
mov    $0x1,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xeb8(%rip),%rdx
mov    $0x2,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xeb5(%rip),%rdx
mov    $0x4,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xeb0(%rip),%rdx
mov    $0x8,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xeac(%rip),%rdx
mov    $0x8,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xead(%rip),%rdx
mov    $0x4,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xeaa(%rip),%rdx
mov    $0x8,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xea8(%rip),%rdx
mov    $0x10,%ecx
mov    %rbx,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xeab(%rip),%rdx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Configure.h\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [22 x i8] c"#ifndef BSL_CONFIGURE\00"
@.str.4 = [22 x i8] c"#define BSL_CONFIGURE\00"
@.str.5 = [6 x i8] c"%s%d\0A\00"
@.str.6 = [21 x i8] c"#define SIZEOF_CHAR \00"
@.str.7 = [22 x i8] c"#define SIZEOF_SHORT \00"
@.str.8 = [20 x i8] c"#define SIZEOF_INT \00"
@.str.9 = [21 x i8] c"#define SIZEOF_LONG \00"
@.str.10 = [26 x i8] c"#define SIZEOF_LONG_LONG \00"
@.str.11 = [22 x i8] c"#define SIZEOF_FLOAT \00"
@.str.12 = [23 x i8] c"#define SIZEOF_DOUBLE \00"
@.str.13 = [28 x i8] c"#define SIZEOF_LONG_DOUBLE \00"
@.str.14 = [7 x i8] c"#endif\00"
define i32 @main() {
%1 = alloca i32*
%2 = call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %2, i32** %1
%3 = load i32*, i32** %1
%4 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%5 = load i32*, i32** %1
%6 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%7 = load i32*, i32** %1
%8 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i64 1)
%9 = load i32*, i32** %1
%10 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i64 2)
%11 = load i32*, i32** %1
%12 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i64 4)
%13 = load i32*, i32** %1
%14 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i64 8)
%15 = load i32*, i32** %1
%16 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 8)
%17 = load i32*, i32** %1
%18 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i64 4)
%19 = load i32*, i32** %1
%20 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i64 8)
%21 = load i32*, i32** %1
%22 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i64 16)
%23 = load i32*, i32** %1
%24 = call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%25 = load i32*, i32** %1
%26 = call i32 @fclose(i32* %25)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"Configure.h\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [4 x i8] c"%s\0A\00"
@.str.3 = [22 x i8] c"#ifndef BSL_CONFIGURE\00"
@.str.4 = [22 x i8] c"#define BSL_CONFIGURE\00"
@.str.5 = [6 x i8] c"%s%d\0A\00"
@.str.6 = [21 x i8] c"#define SIZEOF_CHAR \00"
@.str.7 = [22 x i8] c"#define SIZEOF_SHORT \00"
@.str.8 = [20 x i8] c"#define SIZEOF_INT \00"
@.str.9 = [21 x i8] c"#define SIZEOF_LONG \00"
@.str.10 = [26 x i8] c"#define SIZEOF_LONG_LONG \00"
@.str.11 = [22 x i8] c"#define SIZEOF_FLOAT \00"
@.str.12 = [23 x i8] c"#define SIZEOF_DOUBLE \00"
@.str.13 = [28 x i8] c"#define SIZEOF_LONG_DOUBLE \00"
@.str.14 = [7 x i8] c"#endif\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%3 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%4 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i64 1)
%5 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), i64 2)
%6 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i64 4)
%7 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i64 8)
%8 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i64 8)
%9 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i64 4)
%10 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i64 8)
%11 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i64 16)
%12 = tail call i32 (i32*, i8*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%13 = tail call i32 @fclose(i32* %1)
ret i32 0
}