#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*/ *fopen(char *, char *);
int /*<<< orphan*/ init_keyword();
int /*<<< orphan*/ init_lex(int /*<<< orphan*/ *);
int /*<<< orphan*/ init_syntax();
int /*<<< orphan*/ init_var();
int /*<<< orphan*/ verify_syntax();
int main(int argc, char *argv[]) {
  FILE *src_file = fopen("ENTRADA.TXT", "r");
  if (src_file != NULL) {
    init_lex(src_file);
    init_var();
    init_keyword();
    init_syntax();
    verify_syntax();
  }
  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)
lea    0xe83(%rip),%rdi
lea    0xe88(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     11bd <main+0x5d>
mov    -0x18(%rbp),%rdi
call   1040 <init_lex@plt>
mov    $0x0,%al
call   1060 <init_var@plt>
mov    $0x0,%al
call   1030 <init_keyword@plt>
mov    $0x0,%al
call   1070 <init_syntax@plt>
mov    $0x0,%al
call   1050 <verify_syntax@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xe98(%rip),%rdi
lea    0xe9d(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     119d <main+0x3d>
mov    %rax,%rdi
call   1040 <init_lex@plt>
xor    %eax,%eax
call   1060 <init_var@plt>
xor    %eax,%eax
call   1030 <init_keyword@plt>
xor    %eax,%eax
call   1070 <init_syntax@plt>
xor    %eax,%eax
call   1050 <verify_syntax@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"ENTRADA.TXT\00"
@.str.1 = [2 x i8] c"r\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = 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* %7, i32** %6
%8 = load i32*, i32** %6
%9 = icmp ne i32* %8, null
br i1 %9, label %10, label %17
10: ; preds = %2
%11 = load i32*, i32** %6
%12 = call i32 @init_lex(i32* %11)
%13 = call i32 (...) @init_var()
%14 = call i32 (...) @init_keyword()
%15 = call i32 (...) @init_syntax()
%16 = call i32 (...) @verify_syntax()
br label %17
17: ; preds = %10, %2
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"ENTRADA.TXT\00"
@.str.1 = [2 x i8] c"r\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = 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))
%4 = icmp eq i32* %3, null
br i1 %4, label %11, label %5
5: ; preds = %2
%6 = tail call i32 @init_lex(i32* %3)
%7 = tail call i32 (...) @init_var()
%8 = tail call i32 (...) @init_keyword()
%9 = tail call i32 (...) @init_syntax()
%10 = tail call i32 (...) @verify_syntax()
br label %11
11: ; preds = %5, %2
ret i32 0
}