#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*/ output_const_array(int /*<<< orphan*/ *, int, int);
int /*<<< orphan*/ output_default_array(int /*<<< orphan*/ *, int);
int /*<<< orphan*/ output_oneval_array(int /*<<< orphan*/ *, int, int);
int main() {
  FILE *file = fopen("earth.tab", "wt");
  output_default_array(file, 0);
  output_const_array(file, 1, 254);
  output_default_array(file, 2);
  output_default_array(file, 3);
  output_oneval_array(file, 4, 251);
  output_default_array(file, 5);
  output_oneval_array(file, 6, 250);
  output_default_array(file, 7);
  output_const_array(file, 8, 253);
  output_default_array(file, 9);
  output_default_array(file, 10);
  output_const_array(file, 11, 255);
  output_default_array(file, 12);
  output_oneval_array(file, 13, 252);
  output_default_array(file, 14);
  fclose(file);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xe9d(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
xor    %esi,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x1,%esi
mov    $0xfe,%edx
call   1040 <output_const_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x2,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x3,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x4,%esi
mov    $0xfb,%edx
call   1050 <output_oneval_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x5,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x6,%esi
mov    $0xfa,%edx
call   1050 <output_oneval_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x7,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x8,%esi
mov    $0xfd,%edx
call   1040 <output_const_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0x9,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0xa,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0xb,%esi
mov    $0xff,%edx
call   1040 <output_const_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0xc,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0xd,%esi
mov    $0xfc,%edx
call   1050 <output_oneval_array@plt>
mov    -0x10(%rbp),%rdi
mov    $0xe,%esi
call   1070 <output_default_array@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
lea    0xea8(%rip),%rdi
lea    0xeab(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
mov    %rax,%rdi
xor    %esi,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xfe,%edx
call   1040 <output_const_array@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0xfb,%edx
call   1050 <output_oneval_array@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0xfa,%edx
call   1050 <output_oneval_array@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    $0xfd,%edx
call   1040 <output_const_array@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0xa,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
mov    $0xff,%edx
call   1040 <output_const_array@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    $0xfc,%edx
call   1050 <output_oneval_array@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
call   1070 <output_default_array@plt>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [10 x i8] c"earth.tab\00"
@.str.1 = [3 x i8] c"wt\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
store i32 0, i32* %1
%3 = call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %3, i32** %2
%4 = load i32*, i32** %2
%5 = call i32 @output_default_array(i32* %4, i32 0)
%6 = load i32*, i32** %2
%7 = call i32 @output_const_array(i32* %6, i32 1, i32 254)
%8 = load i32*, i32** %2
%9 = call i32 @output_default_array(i32* %8, i32 2)
%10 = load i32*, i32** %2
%11 = call i32 @output_default_array(i32* %10, i32 3)
%12 = load i32*, i32** %2
%13 = call i32 @output_oneval_array(i32* %12, i32 4, i32 251)
%14 = load i32*, i32** %2
%15 = call i32 @output_default_array(i32* %14, i32 5)
%16 = load i32*, i32** %2
%17 = call i32 @output_oneval_array(i32* %16, i32 6, i32 250)
%18 = load i32*, i32** %2
%19 = call i32 @output_default_array(i32* %18, i32 7)
%20 = load i32*, i32** %2
%21 = call i32 @output_const_array(i32* %20, i32 8, i32 253)
%22 = load i32*, i32** %2
%23 = call i32 @output_default_array(i32* %22, i32 9)
%24 = load i32*, i32** %2
%25 = call i32 @output_default_array(i32* %24, i32 10)
%26 = load i32*, i32** %2
%27 = call i32 @output_const_array(i32* %26, i32 11, i32 255)
%28 = load i32*, i32** %2
%29 = call i32 @output_default_array(i32* %28, i32 12)
%30 = load i32*, i32** %2
%31 = call i32 @output_oneval_array(i32* %30, i32 13, i32 252)
%32 = load i32*, i32** %2
%33 = call i32 @output_default_array(i32* %32, i32 14)
%34 = load i32*, i32** %2
%35 = call i32 @fclose(i32* %34)
ret i32 0
}

LLVM IR (-O2):
@.str = [10 x i8] c"earth.tab\00"
@.str.1 = [3 x i8] c"wt\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @output_default_array(i32* %1, i32 0)
%3 = tail call i32 @output_const_array(i32* %1, i32 1, i32 254)
%4 = tail call i32 @output_default_array(i32* %1, i32 2)
%5 = tail call i32 @output_default_array(i32* %1, i32 3)
%6 = tail call i32 @output_oneval_array(i32* %1, i32 4, i32 251)
%7 = tail call i32 @output_default_array(i32* %1, i32 5)
%8 = tail call i32 @output_oneval_array(i32* %1, i32 6, i32 250)
%9 = tail call i32 @output_default_array(i32* %1, i32 7)
%10 = tail call i32 @output_const_array(i32* %1, i32 8, i32 253)
%11 = tail call i32 @output_default_array(i32* %1, i32 9)
%12 = tail call i32 @output_default_array(i32* %1, i32 10)
%13 = tail call i32 @output_const_array(i32* %1, i32 11, i32 255)
%14 = tail call i32 @output_default_array(i32* %1, i32 12)
%15 = tail call i32 @output_oneval_array(i32* %1, i32 13, i32 252)
%16 = tail call i32 @output_default_array(i32* %1, i32 14)
%17 = tail call i32 @fclose(i32* %1)
ret i32 0
}