#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*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *);
scalar_t__ strcmp(char *, char *);
void readEngine(double dataEngine[]) {
  double maxPower;
  double exponent;
  double minRpm;
  double maxRpm;
  double reduction;
  double efficiency;
  double specificConsumption;
  char c;
  char tokenPtr[200] = {0};
  int count = 0;
  int i;
  FILE *fPtr;
  if ((fPtr = fopen("engine.txt", "r")) == NULL) {
    printf("File could not be opened\n");
  } else {
    fscanf(fPtr, "%c", &c);
    while (!feof(fPtr)) {
      if ((c != ' ') && (c != '\t') && (c != '\n')) {
        tokenPtr[count] = c;
        count++;
      } else if (count != 0) {
        tokenPtr[count] = '\0';
        count = 0;
        if (strcmp(tokenPtr, "UNITA'") == 0) {
          fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &maxPower);
          for (i = 0; i < 9; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &exponent);
          for (i = 0; i < 8; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &minRpm);
          for (i = 0; i < 7; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &maxRpm);
          for (i = 0; i < 7; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &reduction);
          for (i = 0; i < 6; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &efficiency);
          for (i = 0; i < 4; i++)
            fscanf(fPtr, "%s", tokenPtr);
          fscanf(fPtr, "%lg", &specificConsumption);
        }
      }
      fscanf(fPtr, "%c", &c);
    }
    fclose(fPtr);
    dataEngine[0] = maxPower;
    dataEngine[1] = exponent;
    dataEngine[2] = minRpm;
    dataEngine[3] = maxRpm;
    dataEngine[4] = reduction;
    dataEngine[5] = efficiency;
    dataEngine[6] = specificConsumption;
  }
}


x86 assembly (clang, -O0):
<readEngine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x110(%rbp),%rdi
xor    %esi,%esi
mov    $0xc8,%edx
call   1050 <memset@plt>
movl   $0x0,-0x114(%rbp)
lea    0xe5d(%rip),%rdi
lea    0xe61(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x120(%rbp)
cmp    $0x0,%rax
jne    11d1 <readEngine+0x61>
lea    0xe46(%rip),%rdi
call   1040 <printf@plt>
jmp    15a4 <readEngine+0x434>
mov    -0x120(%rbp),%rdi
lea    0xe48(%rip),%rsi
lea    -0x41(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x120(%rbp),%rdi
call   1080 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    120b <readEngine+0x9b>
jmp    1537 <readEngine+0x3c7>
movsbl -0x41(%rbp),%eax
cmp    $0x20,%eax
je     1257 <readEngine+0xe7>
movsbl -0x41(%rbp),%eax
cmp    $0x9,%eax
je     1257 <readEngine+0xe7>
movsbl -0x41(%rbp),%eax
cmp    $0xa,%eax
je     1257 <readEngine+0xe7>
mov    -0x41(%rbp),%cl
movslq -0x114(%rbp),%rax
mov    %cl,-0x110(%rbp,%rax,1)
mov    -0x114(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x114(%rbp)
jmp    1519 <readEngine+0x3a9>
cmpl   $0x0,-0x114(%rbp)
je     1514 <readEngine+0x3a4>
movslq -0x114(%rbp),%rax
movb   $0x0,-0x110(%rbp,%rax,1)
movl   $0x0,-0x114(%rbp)
lea    -0x110(%rbp),%rdi
lea    0xd9f(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    150f <readEngine+0x39f>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xd82(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x120(%rbp),%rdi
lea    0xd70(%rip),%rsi
lea    -0x10(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x9,-0x118(%rbp)
jge    1316 <readEngine+0x1a6>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xd36(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    12d9 <readEngine+0x169>
mov    -0x120(%rbp),%rdi
lea    0xd10(%rip),%rsi
lea    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x8,-0x118(%rbp)
jge    1376 <readEngine+0x206>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xcd6(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1339 <readEngine+0x1c9>
mov    -0x120(%rbp),%rdi
lea    0xcb0(%rip),%rsi
lea    -0x20(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x7,-0x118(%rbp)
jge    13d6 <readEngine+0x266>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xc76(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1399 <readEngine+0x229>
mov    -0x120(%rbp),%rdi
lea    0xc50(%rip),%rsi
lea    -0x28(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x7,-0x118(%rbp)
jge    1436 <readEngine+0x2c6>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xc16(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    13f9 <readEngine+0x289>
mov    -0x120(%rbp),%rdi
lea    0xbf0(%rip),%rsi
lea    -0x30(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x6,-0x118(%rbp)
jge    1496 <readEngine+0x326>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xbb6(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    1459 <readEngine+0x2e9>
mov    -0x120(%rbp),%rdi
lea    0xb90(%rip),%rsi
lea    -0x38(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
movl   $0x0,-0x118(%rbp)
cmpl   $0x4,-0x118(%rbp)
jge    14f6 <readEngine+0x386>
mov    -0x120(%rbp),%rdi
lea    -0x110(%rbp),%rdx
lea    0xb56(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x118(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x118(%rbp)
jmp    14b9 <readEngine+0x349>
mov    -0x120(%rbp),%rdi
lea    0xb30(%rip),%rsi
lea    -0x40(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
jmp    1514 <readEngine+0x3a4>
jmp    1519 <readEngine+0x3a9>
mov    -0x120(%rbp),%rdi
lea    0xb00(%rip),%rsi
lea    -0x41(%rbp),%rdx
mov    $0x0,%al
call   1060 <fscanf@plt>
jmp    11ea <readEngine+0x7a>
mov    -0x120(%rbp),%rdi
call   1030 <fclose@plt>
movsd  -0x10(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x18(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x8(%rax)
movsd  -0x20(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x10(%rax)
movsd  -0x28(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x18(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x20(%rax)
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x28(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,0x30(%rax)
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<readEngine>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x118,%rsp
mov    %rdi,%rbp
xorps  %xmm0,%xmm0
movaps %xmm0,0x100(%rsp)
movaps %xmm0,0xf0(%rsp)
movaps %xmm0,0xe0(%rsp)
movaps %xmm0,0xd0(%rsp)
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movq   $0x0,0x110(%rsp)
lea    0xe1f(%rip),%rdi
lea    0xe23(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     128f <readEngine+0x12f>
mov    %rax,%rbx
mov    %rbp,0x10(%rsp)
lea    0xe08(%rip),%rsi
lea    0xf(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     12ac <readEngine+0x14c>
mov    %rbx,%rdi
call   1040 <fclose@plt>
movsd  0x48(%rsp),%xmm0
mov    0x10(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x8(%rax)
movsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x10(%rax)
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x18(%rax)
movsd  0x28(%rsp),%xmm0
movsd  %xmm0,0x20(%rax)
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x28(%rax)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x30(%rax)
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd88(%rip),%rdi
add    $0x118,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
lea    0xf(%rsp),%r12
lea    0x50(%rsp),%rbp
lea    0xd5a(%rip),%r13
xor    %ecx,%ecx
jmp    1304 <readEngine+0x1a4>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq %ecx,%rdx
mov    %al,0x50(%rsp,%rdx,1)
add    $0x1,%ecx
mov    %ecx,%r15d
mov    %rbx,%rdi
lea    0xd26(%rip),%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
call   1070 <feof@plt>
mov    %r15d,%ecx
test   %eax,%eax
jne    1224 <readEngine+0xc4>
movzbl 0xf(%rsp),%eax
cmp    $0x20,%rax
ja     12d0 <readEngine+0x170>
movabs $0x100000600,%rdx
bt     %rax,%rdx
jae    12d0 <readEngine+0x170>
xor    %r15d,%r15d
test   %ecx,%ecx
je     12dd <readEngine+0x17d>
movslq %ecx,%rax
movb   $0x0,0x50(%rsp,%rax,1)
mov    %rbp,%rdi
lea    0xcd8(%rip),%rsi
call   1060 <strcmp@plt>
test   %rax,%rax
jne    12dd <readEngine+0x17d>
xor    %r15d,%r15d
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
lea    0xcbb(%rip),%r14
mov    %r14,%rsi
lea    0x48(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0x40(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0x38(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0x28(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
lea    0x18(%rsp),%rdx
xor    %eax,%eax
call   1050 <fscanf@plt>
jmp    12dd <readEngine+0x17d>

LLVM IR (-O0):
@.str = [11 x i8] c"engine.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [26 x i8] c"File could not be opened\0A\00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [7 x i8] c"UNITA'\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [4 x i8] c"%lg\00"
define void @readEngine(double* %0) {
%2 = alloca double*
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca i8
%11 = alloca [200 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32*
store double* %0, double** %2
%15 = bitcast [200 x i8]* %11 to i8*
store i32 0, i32* %12
%16 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 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** %14
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %20
18: ; preds = %1
%19 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %170
20: ; preds = %1
%21 = load i32*, i32** %14
%22 = call i32 (i32*, i8*, ...) @fscanf(i32* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %10)
br label %23
23: ; preds = %143, %20
%24 = load i32*, i32** %14
%25 = call i32 @feof(i32* %24)
%26 = icmp ne i32 %25, 0
%27 = xor i1 %26, true
br i1 %27, label %28, label %146
28: ; preds = %23
%29 = load i8, i8* %10
%30 = sext i8 %29 to i32
%31 = icmp ne i32 %30, 32
br i1 %31, label %32, label %47
32: ; preds = %28
%33 = load i8, i8* %10
%34 = sext i8 %33 to i32
%35 = icmp ne i32 %34, 9
br i1 %35, label %36, label %47
36: ; preds = %32
%37 = load i8, i8* %10
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 10
br i1 %39, label %40, label %47
40: ; preds = %36
%41 = load i8, i8* %10
%42 = load i32, i32* %12
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 %43
store i8 %41, i8* %44
%45 = load i32, i32* %12
%46 = add nsw i32 %45, 1
store i32 %46, i32* %12
br label %143
47: ; preds = %36, %32, %28
%48 = load i32, i32* %12
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %142
50: ; preds = %47
%51 = load i32, i32* %12
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 %52
store i8 0, i8* %53
store i32 0, i32* %12
%54 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %141
57: ; preds = %50
%58 = load i32*, i32** %14
%59 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%60 = call i32 (i32*, i8*, ...) @fscanf(i32* %58, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %59)
%61 = load i32*, i32** %14
%62 = call i32 (i32*, i8*, ...) @fscanf(i32* %61, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %3)
store i32 0, i32* %13
br label %63
63: ; preds = %70, %57
%64 = load i32, i32* %13
%65 = icmp slt i32 %64, 9
br i1 %65, label %66, label %73
66: ; preds = %63
%67 = load i32*, i32** %14
%68 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%69 = call i32 (i32*, i8*, ...) @fscanf(i32* %67, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %68)
br label %70
70: ; preds = %66
%71 = load i32, i32* %13
%72 = add nsw i32 %71, 1
store i32 %72, i32* %13
br label %63
73: ; preds = %63
%74 = load i32*, i32** %14
%75 = call i32 (i32*, i8*, ...) @fscanf(i32* %74, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %4)
store i32 0, i32* %13
br label %76
76: ; preds = %83, %73
%77 = load i32, i32* %13
%78 = icmp slt i32 %77, 8
br i1 %78, label %79, label %86
79: ; preds = %76
%80 = load i32*, i32** %14
%81 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%82 = call i32 (i32*, i8*, ...) @fscanf(i32* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %81)
br label %83
83: ; preds = %79
%84 = load i32, i32* %13
%85 = add nsw i32 %84, 1
store i32 %85, i32* %13
br label %76
86: ; preds = %76
%87 = load i32*, i32** %14
%88 = call i32 (i32*, i8*, ...) @fscanf(i32* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %5)
store i32 0, i32* %13
br label %89
89: ; preds = %96, %86
%90 = load i32, i32* %13
%91 = icmp slt i32 %90, 7
br i1 %91, label %92, label %99
92: ; preds = %89
%93 = load i32*, i32** %14
%94 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%95 = call i32 (i32*, i8*, ...) @fscanf(i32* %93, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %94)
br label %96
96: ; preds = %92
%97 = load i32, i32* %13
%98 = add nsw i32 %97, 1
store i32 %98, i32* %13
br label %89
99: ; preds = %89
%100 = load i32*, i32** %14
%101 = call i32 (i32*, i8*, ...) @fscanf(i32* %100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %6)
store i32 0, i32* %13
br label %102
102: ; preds = %109, %99
%103 = load i32, i32* %13
%104 = icmp slt i32 %103, 7
br i1 %104, label %105, label %112
105: ; preds = %102
%106 = load i32*, i32** %14
%107 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%108 = call i32 (i32*, i8*, ...) @fscanf(i32* %106, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %107)
br label %109
109: ; preds = %105
%110 = load i32, i32* %13
%111 = add nsw i32 %110, 1
store i32 %111, i32* %13
br label %102
112: ; preds = %102
%113 = load i32*, i32** %14
%114 = call i32 (i32*, i8*, ...) @fscanf(i32* %113, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %7)
store i32 0, i32* %13
br label %115
115: ; preds = %122, %112
%116 = load i32, i32* %13
%117 = icmp slt i32 %116, 6
br i1 %117, label %118, label %125
118: ; preds = %115
%119 = load i32*, i32** %14
%120 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%121 = call i32 (i32*, i8*, ...) @fscanf(i32* %119, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %120)
br label %122
122: ; preds = %118
%123 = load i32, i32* %13
%124 = add nsw i32 %123, 1
store i32 %124, i32* %13
br label %115
125: ; preds = %115
%126 = load i32*, i32** %14
%127 = call i32 (i32*, i8*, ...) @fscanf(i32* %126, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %8)
store i32 0, i32* %13
br label %128
128: ; preds = %135, %125
%129 = load i32, i32* %13
%130 = icmp slt i32 %129, 4
br i1 %130, label %131, label %138
131: ; preds = %128
%132 = load i32*, i32** %14
%133 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%134 = call i32 (i32*, i8*, ...) @fscanf(i32* %132, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %133)
br label %135
135: ; preds = %131
%136 = load i32, i32* %13
%137 = add nsw i32 %136, 1
store i32 %137, i32* %13
br label %128
138: ; preds = %128
%139 = load i32*, i32** %14
%140 = call i32 (i32*, i8*, ...) @fscanf(i32* %139, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %9)
br label %141
141: ; preds = %138, %50
br label %142
142: ; preds = %141, %47
br label %143
143: ; preds = %142, %40
%144 = load i32*, i32** %14
%145 = call i32 (i32*, i8*, ...) @fscanf(i32* %144, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %10)
br label %23
146: ; preds = %23
%147 = load i32*, i32** %14
%148 = call i32 @fclose(i32* %147)
%149 = load double, double* %3
%150 = load double*, double** %2
%151 = getelementptr inbounds double, double* %150, i64 0
store double %149, double* %151
%152 = load double, double* %4
%153 = load double*, double** %2
%154 = getelementptr inbounds double, double* %153, i64 1
store double %152, double* %154
%155 = load double, double* %5
%156 = load double*, double** %2
%157 = getelementptr inbounds double, double* %156, i64 2
store double %155, double* %157
%158 = load double, double* %6
%159 = load double*, double** %2
%160 = getelementptr inbounds double, double* %159, i64 3
store double %158, double* %160
%161 = load double, double* %7
%162 = load double*, double** %2
%163 = getelementptr inbounds double, double* %162, i64 4
store double %161, double* %163
%164 = load double, double* %8
%165 = load double*, double** %2
%166 = getelementptr inbounds double, double* %165, i64 5
store double %164, double* %166
%167 = load double, double* %9
%168 = load double*, double** %2
%169 = getelementptr inbounds double, double* %168, i64 6
store double %167, double* %169
br label %170
170: ; preds = %146, %18
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"engine.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.3 = [3 x i8] c"%c\00"
@.str.4 = [7 x i8] c"UNITA'\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [4 x i8] c"%lg\00"
@str = [25 x i8] c"File could not be opened\00"
define void @readEngine(double* nocapture writeonly %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca i8
%10 = alloca [200 x i8]
%11 = bitcast double* %2 to i8*
%12 = bitcast double* %3 to i8*
%13 = bitcast double* %4 to i8*
%14 = bitcast double* %5 to i8*
%15 = bitcast double* %6 to i8*
%16 = bitcast double* %7 to i8*
%17 = bitcast double* %8 to i8*
%18 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%19 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i32* %19, null
br i1 %20, label %21, label %23
21: ; preds = %1
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
br label %111
23: ; preds = %1
%24 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%25 = call i32 @feof(i32* %19)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %96
27: ; preds = %23, %91
%28 = phi i32 [ %92, %91 ], [ 0, %23 ]
%29 = load i8, i8* %9
switch i8 %29, label %30 [
i8 32, label %34
i8 10, label %34
i8 9, label %34
]
30: ; preds = %27
%31 = sext i32 %28 to i64
%32 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 %31
store i8 %29, i8* %32
%33 = add nsw i32 %28, 1
br label %91
34: ; preds = %27, %27, %27
%35 = icmp eq i32 %28, 0
br i1 %35, label %91, label %36
36: ; preds = %34
%37 = sext i32 %28 to i64
%38 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 %37
store i8 0, i8* %38
%39 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %91
41: ; preds = %36
%42 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%43 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %2)
%44 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%45 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%46 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%47 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%48 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%49 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%50 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%51 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%52 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%53 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %3)
%54 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%55 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%56 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%57 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%58 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%59 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%60 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%61 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%62 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %4)
%63 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%64 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%65 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%66 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%67 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%68 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%69 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%70 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %5)
%71 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%72 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%73 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%74 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%75 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%76 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%77 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%78 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %6)
%79 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%80 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%81 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%82 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%83 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%84 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%85 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %7)
%86 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%87 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%88 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%89 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %18)
%90 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %8)
br label %91
91: ; preds = %34, %41, %36, %30
%92 = phi i32 [ %33, %30 ], [ 0, %41 ], [ 0, %36 ], [ 0, %34 ]
%93 = call i32 (i32*, i8*, ...) @fscanf(i32* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* %9)
%94 = call i32 @feof(i32* %19)
%95 = icmp eq i32 %94, 0
br i1 %95, label %27, label %96
96: ; preds = %91, %23
%97 = call i32 @fclose(i32* %19)
%98 = load double, double* %2
store double %98, double* %0
%99 = load double, double* %3
%100 = getelementptr inbounds double, double* %0, i64 1
store double %99, double* %100
%101 = load double, double* %4
%102 = getelementptr inbounds double, double* %0, i64 2
store double %101, double* %102
%103 = load double, double* %5
%104 = getelementptr inbounds double, double* %0, i64 3
store double %103, double* %104
%105 = load double, double* %6
%106 = getelementptr inbounds double, double* %0, i64 4
store double %105, double* %106
%107 = load double, double* %7
%108 = getelementptr inbounds double, double* %0, i64 5
store double %107, double* %108
%109 = load double, double* %8
%110 = getelementptr inbounds double, double* %0, i64 6
store double %109, double* %110
br label %111
111: ; preds = %96, %21
ret void
}