#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 */
scalar_t__ EOF;
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, char **, int *, int *, int *,
                  int *, char **, char **, int *, int *, long long *,
                  long long *);
int /*<<< orphan*/ printf(char *, char *, int, int, int, int, char *, char *,
                          int, int, long long, long long);
int main(void) {
  char a[10], b[10], c[10];
  int d, e, f, g = 0;
  long long q, j = 0;
  int h, i = 0;
  FILE *file;
  char x[10], z[10];
  file = fopen("superliga.txt", "r");
  while (fscanf(file, " %s %d / %d %d . %d %s - %s %d - %d %lld . %lld", &a, &d,
                &e, &f, &g, &b, &c, &h, &i, &q, &j) != EOF) {
    printf(" %3s %2d %2d %2d %2d %3s %3s %2d %2d %3lld.%lld \n", a, d, e, f, g,
           b, c, h, i, q, j);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0xb0,%rsp
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x54(%rbp)
movq   $0x0,-0x68(%rbp)
movl   $0x0,-0x70(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xea1(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
lea    -0x2e(%rbp),%rdx
lea    -0x38(%rbp),%r15
lea    -0x42(%rbp),%r14
lea    0xe83(%rip),%rsi
lea    -0x48(%rbp),%rcx
lea    -0x4c(%rbp),%r8
lea    -0x50(%rbp),%r9
lea    -0x54(%rbp),%r12
lea    -0x6c(%rbp),%rbx
lea    -0x70(%rbp),%r11
lea    -0x60(%rbp),%r10
lea    -0x68(%rbp),%rax
mov    %r12,(%rsp)
mov    %r15,0x8(%rsp)
mov    %r14,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    %r11,0x20(%rsp)
mov    %r10,0x28(%rsp)
mov    %rax,0x30(%rsp)
call   1040 <fscanf@plt>
mov    0x2e0d(%rip),%rcx
cmp    (%rcx),%rax
je     123a <main+0x10a>
lea    -0x2e(%rbp),%rsi
mov    -0x48(%rbp),%edx
mov    -0x4c(%rbp),%ecx
mov    -0x50(%rbp),%r8d
mov    -0x54(%rbp),%r9d
lea    -0x38(%rbp),%r15
lea    -0x42(%rbp),%r14
mov    -0x6c(%rbp),%ebx
mov    -0x70(%rbp),%r11d
mov    -0x60(%rbp),%r10
mov    -0x68(%rbp),%rax
lea    0xe2c(%rip),%rdi
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
call   1030 <printf@plt>
jmp    1176 <main+0x46>
mov    -0x24(%rbp),%eax
add    $0xb0,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
movl   $0x0,0x4(%rsp)
movq   $0x0,0x18(%rsp)
movl   $0x0,(%rsp)
lea    0xea3(%rip),%rdi
lea    0xeaa(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,%r15
lea    0x2a(%rsp),%r12
lea    0x34(%rsp),%r13
lea    0x3e(%rsp),%rbx
mov    0x2e66(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
sub    $0x8,%rsp
mov    %r15,%rdi
lea    0xe72(%rip),%rsi
mov    %rbx,%rdx
lea    0x1c(%rsp),%rcx
lea    0x18(%rsp),%r8
lea    0x14(%rsp),%r9
lea    0x20(%rsp),%rax
push   %rax
lea    0x30(%rsp),%rax
push   %rax
lea    0x18(%rsp),%rax
push   %rax
lea    0x28(%rsp),%rax
push   %rax
push   %r12
push   %r13
lea    0x3c(%rsp),%rax
push   %rax
call   1040 <fscanf@plt>
add    $0x40,%rsp
cmp    (%r14),%rax
je     121f <main+0xef>
mov    0x14(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0xc(%rsp),%r8d
mov    0x4(%rsp),%r9d
mov    0x8(%rsp),%eax
mov    (%rsp),%ebp
lea    0xe40(%rip),%rdi
mov    %rbx,%rsi
push   0x18(%rsp)
push   0x28(%rsp)
push   %rbp
push   %rax
push   %r12
push   %r13
call   1030 <printf@plt>
add    $0x30,%rsp
jmp    1190 <main+0x60>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [14 x i8] c"superliga.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [48 x i8] c" %s %d / %d %d . %d %s - %s %d - %d %lld . %lld\00"
@EOF = global i64 0
@.str.3 = [50 x i8] c" %3s %2d %2d %2d %2d %3s %3s %2d %2d %3lld.%lld \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i8]
%3 = alloca [10 x i8]
%4 = alloca [10 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32*
%14 = alloca [10 x i8]
%15 = alloca [10 x i8]
store i32 0, i32* %1
store i32 0, i32* %8
store i64 0, i64* %10
store i32 0, i32* %12
%16 = call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %16, i32** %13
br label %17
17: ; preds = %25, %0
%18 = load i32*, i32** %13
%19 = bitcast [10 x i8]* %2 to i8**
%20 = bitcast [10 x i8]* %3 to i8**
%21 = bitcast [10 x i8]* %4 to i8**
%22 = call i64 @fscanf(i32* %18, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8** %19, i32* %5, i32* %6, i32* %7, i32* %8, i8** %20, i8** %21, i32* %11, i32* %12, i64* %9, i64* %10)
%23 = load i64, i64* @EOF
%24 = icmp ne i64 %22, %23
br i1 %24, label %25, label %38
25: ; preds = %17
%26 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%27 = load i32, i32* %5
%28 = load i32, i32* %6
%29 = load i32, i32* %7
%30 = load i32, i32* %8
%31 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%32 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%33 = load i32, i32* %11
%34 = load i32, i32* %12
%35 = load i64, i64* %9
%36 = load i64, i64* %10
%37 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i8* %26, i32 %27, i32 %28, i32 %29, i32 %30, i8* %31, i8* %32, i32 %33, i32 %34, i64 %35, i64 %36)
br label %17
38: ; preds = %17
%39 = load i32, i32* %1
ret i32 %39
}

LLVM IR (-O2):
@.str = [14 x i8] c"superliga.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [48 x i8] c" %s %d / %d %d . %d %s - %s %d - %d %lld . %lld\00"
@EOF = global i64 0
@.str.3 = [50 x i8] c" %3s %2d %2d %2d %2d %3s %3s %2d %2d %3lld.%lld \0A\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca [10 x i8]
%3 = alloca [10 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i64
%9 = alloca i64
%10 = alloca i32
%11 = alloca i32
%12 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%14 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%15 = bitcast i32* %4 to i8*
%16 = bitcast i32* %5 to i8*
%17 = bitcast i32* %6 to i8*
%18 = bitcast i32* %7 to i8*
store i32 0, i32* %7
%19 = bitcast i64* %8 to i8*
%20 = bitcast i64* %9 to i8*
store i64 0, i64* %9
%21 = bitcast i32* %10 to i8*
%22 = bitcast i32* %11 to i8*
store i32 0, i32* %11
%23 = tail call i32* @fopen(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%24 = bitcast [10 x i8]* %1 to i8**
%25 = bitcast [10 x i8]* %2 to i8**
%26 = bitcast [10 x i8]* %3 to i8**
br label %27
27: ; preds = %31, %0
%28 = call i64 @fscanf(i32* %23, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.2, i64 0, i64 0), i8** %24, i32* %4, i32* %5, i32* %6, i32* %7, i8** %25, i8** %26, i32* %10, i32* %11, i64* %8, i64* %9)
%29 = load i64, i64* @EOF
%30 = icmp eq i64 %28, %29
br i1 %30, label %41, label %31
31: ; preds = %27
%32 = load i32, i32* %4
%33 = load i32, i32* %5
%34 = load i32, i32* %6
%35 = load i32, i32* %7
%36 = load i32, i32* %10
%37 = load i32, i32* %11
%38 = load i64, i64* %8
%39 = load i64, i64* %9
%40 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i8* %12, i32 %32, i32 %33, i32 %34, i32 %35, i8* %13, i8* %14, i32 %36, i32 %37, i64 %38, i64 %39)
br label %27
41: ; preds = %27
ret i32 0
}