#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 EOF;
int SEEK_CUR;
int SEEK_END;
int SEEK_SET;
int /*<<< orphan*/ printf(char *, ...);
main() {
  printf("! DO NOT EDIT THIS FILE. \n");
  printf("! It is created from f90_unix_io_const.c\n");
  printf("integer, parameter :: EOF=%d\n", EOF);
  printf("integer, parameter :: FILE_KIND=%d\n", sizeof(FILE *));
  printf("integer, parameter :: LONG_KIND=%d\n", sizeof(long));
  printf("integer, parameter :: SEEK_SET=%d\n", SEEK_SET);
  printf("integer, parameter :: SEEK_CUR=%d\n", SEEK_CUR);
  printf("integer, parameter :: SEEK_END=%d\n", SEEK_END);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e96(%rip),%rax
mov    (%rax),%esi
lea    0xefa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1b(%rip),%rdi
mov    $0x8,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%esi
lea    0xf23(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e4a(%rip),%rax
mov    (%rax),%esi
lea    0xf2f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e3b(%rip),%rax
mov    (%rax),%esi
lea    0xf3b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xfa7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb5(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e98(%rip),%rax
mov    (%rax),%esi
lea    0xeb7(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec7(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed8(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e4b(%rip),%rax
mov    (%rax),%esi
lea    0xee0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e4c(%rip),%rax
mov    (%rax),%esi
lea    0xeec(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    0x2e3d(%rip),%rax
mov    (%rax),%esi
lea    0xef8(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [27 x i8] c"! DO NOT EDIT THIS FILE. \0A\00"
@.str.1 = [42 x i8] c"! It is created from f90_unix_io_const.c\0A\00"
@.str.2 = [30 x i8] c"integer, parameter :: EOF=%d\0A\00"
@EOF = global i32 0
@.str.3 = [36 x i8] c"integer, parameter :: FILE_KIND=%d\0A\00"
@.str.4 = [36 x i8] c"integer, parameter :: LONG_KIND=%d\0A\00"
@.str.5 = [35 x i8] c"integer, parameter :: SEEK_SET=%d\0A\00"
@SEEK_SET = global i32 0
@.str.6 = [35 x i8] c"integer, parameter :: SEEK_CUR=%d\0A\00"
@SEEK_CUR = global i32 0
@.str.7 = [35 x i8] c"integer, parameter :: SEEK_END=%d\0A\00"
@SEEK_END = global i32 0
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%4 = load i32, i32* @EOF
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i64 8)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 8)
%8 = load i32, i32* @SEEK_SET
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @SEEK_CUR
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @SEEK_END
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [30 x i8] c"integer, parameter :: EOF=%d\0A\00"
@EOF = global i32 0
@.str.3 = [36 x i8] c"integer, parameter :: FILE_KIND=%d\0A\00"
@.str.4 = [36 x i8] c"integer, parameter :: LONG_KIND=%d\0A\00"
@.str.5 = [35 x i8] c"integer, parameter :: SEEK_SET=%d\0A\00"
@SEEK_SET = global i32 0
@.str.6 = [35 x i8] c"integer, parameter :: SEEK_CUR=%d\0A\00"
@SEEK_CUR = global i32 0
@.str.7 = [35 x i8] c"integer, parameter :: SEEK_END=%d\0A\00"
@SEEK_END = global i32 0
@str = [26 x i8] c"! DO NOT EDIT THIS FILE. \00"
@str.8 = [41 x i8] c"! It is created from f90_unix_io_const.c\00"
define i32 @main() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.8, i64 0, i64 0))
%3 = load i32, i32* @EOF
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0), i64 8)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0), i64 8)
%7 = load i32, i32* @SEEK_SET
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @SEEK_CUR
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @SEEK_END
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0), i32 %11)
ret i32 0
}