#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  int _fileno;
  int _flags2;
  char *_IO_backup_base;
  char *_IO_buf_base;
};
typedef TYPE_1__ FILE;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, int, int, char *, char *);
TYPE_1__ *stdout;
int main(int argc, char **argv) {
  FILE *fp = stdout;
  printf("%d\n%d\n%s\n%s\n", fp->_fileno, fp->_flags2, fp->_IO_backup_base,
         fp->_IO_buf_base);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb3(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x18(%rbp),%rax
mov    0x4(%rax),%edx
mov    -0x18(%rbp),%rax
mov    0x8(%rax),%rcx
mov    -0x18(%rbp),%rax
mov    0x10(%rax),%r8
lea    0xea8(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2ec8(%rip),%rax
mov    (%rax),%rax
mov    (%rax),%esi
mov    0x4(%rax),%edx
mov    0x8(%rax),%rcx
mov    0x10(%rax),%r8
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.TYPE_3__ = type { i32, i32, i8*, i8* }
@stdout = global %struct.TYPE_3__* null
@.str = [13 x i8] c"%d\0A%d\0A%s\0A%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.TYPE_3__*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load %struct.TYPE_3__*, %struct.TYPE_3__** @stdout
store %struct.TYPE_3__* %7, %struct.TYPE_3__** %6
%8 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%9 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %8, i32 0, i32 0
%10 = load i32, i32* %9
%11 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%12 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %11, i32 0, i32 1
%13 = load i32, i32* %12
%14 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%15 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %14, i32 0, i32 2
%16 = load i8*, i8** %15
%17 = load %struct.TYPE_3__*, %struct.TYPE_3__** %6
%18 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %17, i32 0, i32 3
%19 = load i8*, i8** %18
%20 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %10, i32 %13, i8* %16, i8* %19)
ret i32 0
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i32, i32, i8*, i8* }
@stdout = global %struct.TYPE_3__* null
@.str = [13 x i8] c"%d\0A%d\0A%s\0A%s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load %struct.TYPE_3__*, %struct.TYPE_3__** @stdout
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 0
%5 = load i32, i32* %4
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 1
%7 = load i32, i32* %6
%8 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 2
%9 = load i8*, i8** %8
%10 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %3, i64 0, i32 3
%11 = load i8*, i8** %10
%12 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 %5, i32 %7, i8* %9, i8* %11)
ret i32 0
}