#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 */

/* Variables and functions */
int /*<<< orphan*/ read_double(char const *, char *, double *);
int /*<<< orphan*/ read_int(char const *, char *, int *);
int read_parameters(const char *szFileName, double *Re, double *UI, double *VI,
                    double *PI, double *GX, double *GY, double *t_end,
                    double *xlength, double *ylength, double *dt, double *dx,
                    double *dy, int *imax, int *jmax, double *alpha,
                    double *omg, double *tau, int *itermax, double *eps,
                    double *dt_value) {
  read_double(szFileName, "*xlength", &(*xlength));
  read_double(szFileName, "*ylength", &(*ylength));
  read_double(szFileName, "*Re", &(*Re));
  read_double(szFileName, "*t_end", &(*t_end));
  read_double(szFileName, "*dt", &(*dt));
  read_int(szFileName, "*imax", &(*imax));
  read_int(szFileName, "*jmax", &(*jmax));
  read_double(szFileName, "*omg", &(*omg));
  read_double(szFileName, "*eps", &(*eps));
  read_double(szFileName, "*tau", &(*tau));
  read_double(szFileName, "*alpha", &(*alpha));
  read_int(szFileName, "*itermax", &(*itermax));
  read_double(szFileName, "*dt_value", &(*dt_value));
  read_double(szFileName, "*UI", &(*UI));
  read_double(szFileName, "*VI", &(*VI));
  read_double(szFileName, "*GX", &(*GX));
  read_double(szFileName, "*GY", &(*GY));
  read_double(szFileName, "*PI", &(*PI));
  *dx = *xlength / (double)(*imax);
  *dy = *ylength / (double)(*jmax);
  return 1;
}


x86 assembly (clang, -O0):
<read_parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    0x80(%rbp),%rax
mov    0x78(%rbp),%rax
mov    0x70(%rbp),%rax
mov    0x68(%rbp),%rax
mov    0x60(%rbp),%rax
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x20(%rbp),%rdx
lea    0xe72(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x28(%rbp),%rdx
lea    0xe67(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe5c(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x18(%rbp),%rdx
lea    0xe4c(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x30(%rbp),%rdx
lea    0xe3f(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x48(%rbp),%rdx
lea    0xe2f(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x50(%rbp),%rdx
lea    0xe21(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x60(%rbp),%rdx
lea    0xe13(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x78(%rbp),%rdx
lea    0xe04(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x68(%rbp),%rdx
lea    0xdf5(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x58(%rbp),%rdx
lea    0xde6(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x70(%rbp),%rdx
lea    0xdd9(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x80(%rbp),%rdx
lea    0xdcb(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xdc1(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xdb1(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xda1(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rdx
lea    0xd91(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xd81(%rip),%rsi
call   1040 <read_double@plt>
mov    0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x48(%rbp),%rax
cvtsi2sdl (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x50(%rbp),%rax
cvtsi2sdl (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<read_parameters>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x18(%rsp)
mov    %r8,0x20(%rsp)
mov    %rcx,0x10(%rsp)
mov    %rdx,0x8(%rsp)
mov    %rsi,%r15
mov    %rdi,%rbx
mov    0xa0(%rsp),%r12
mov    0x98(%rsp),%r14
mov    0x68(%rsp),%rbp
mov    0x78(%rsp),%r13
mov    0x70(%rsp),%rdx
lea    0xe92(%rip),%rsi
call   1040 <read_double@plt>
lea    0xe8f(%rip),%rsi
mov    %rbx,%rdi
mov    %r13,%rdx
call   1040 <read_double@plt>
lea    0xe86(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1040 <read_double@plt>
lea    0xe78(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
call   1040 <read_double@plt>
lea    0xe6d(%rip),%rsi
mov    %rbx,%rdi
mov    0x80(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe5a(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <read_int@plt>
lea    0xe4e(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
call   1030 <read_int@plt>
lea    0xe42(%rip),%rsi
mov    %rbx,%rdi
mov    0xb0(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe30(%rip),%rsi
mov    %rbx,%rdi
mov    0xc8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe1e(%rip),%rsi
mov    %rbx,%rdi
mov    0xb8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe0c(%rip),%rsi
mov    %rbx,%rdi
mov    0xa8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdfc(%rip),%rsi
mov    %rbx,%rdi
mov    0xc0(%rsp),%rdx
call   1030 <read_int@plt>
lea    0xdee(%rip),%rsi
mov    %rbx,%rdi
mov    0xd0(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xde1(%rip),%rsi
mov    %rbx,%rdi
mov    0x8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdd1(%rip),%rsi
mov    %rbx,%rdi
mov    0x10(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdc1(%rip),%rsi
mov    %rbx,%rdi
mov    0x18(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdb1(%rip),%rsi
mov    %rbx,%rdi
mov    0x60(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xda1(%rip),%rsi
mov    %rbx,%rdi
mov    0x20(%rsp),%rdx
call   1040 <read_double@plt>
mov    0x70(%rsp),%rax
movsd  (%rax),%xmm0
cvtsi2sdl (%r14),%xmm1
divsd  %xmm1,%xmm0
mov    0x88(%rsp),%rax
movsd  %xmm0,(%rax)
xorps  %xmm0,%xmm0
cvtsi2sdl (%r12),%xmm0
movsd  0x0(%r13),%xmm1
divsd  %xmm0,%xmm1
mov    0x90(%rsp),%rax
movsd  %xmm1,(%rax)
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"*xlength\00"
@.str.1 = [9 x i8] c"*ylength\00"
@.str.2 = [4 x i8] c"*Re\00"
@.str.3 = [7 x i8] c"*t_end\00"
@.str.4 = [4 x i8] c"*dt\00"
@.str.5 = [6 x i8] c"*imax\00"
@.str.6 = [6 x i8] c"*jmax\00"
@.str.7 = [5 x i8] c"*omg\00"
@.str.8 = [5 x i8] c"*eps\00"
@.str.9 = [5 x i8] c"*tau\00"
@.str.10 = [7 x i8] c"*alpha\00"
@.str.11 = [9 x i8] c"*itermax\00"
@.str.12 = [10 x i8] c"*dt_value\00"
@.str.13 = [4 x i8] c"*UI\00"
@.str.14 = [4 x i8] c"*VI\00"
@.str.15 = [4 x i8] c"*GX\00"
@.str.16 = [4 x i8] c"*GY\00"
@.str.17 = [4 x i8] c"*PI\00"
define i32 @read_parameters(i8* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9, double* %10, double* %11, double* %12, i32* %13, i32* %14, double* %15, double* %16, double* %17, i32* %18, double* %19, double* %20) {
%22 = alloca i8*
%23 = alloca double*
%24 = alloca double*
%25 = alloca double*
%26 = alloca double*
%27 = alloca double*
%28 = alloca double*
%29 = alloca double*
%30 = alloca double*
%31 = alloca double*
%32 = alloca double*
%33 = alloca double*
%34 = alloca double*
%35 = alloca i32*
%36 = alloca i32*
%37 = alloca double*
%38 = alloca double*
%39 = alloca double*
%40 = alloca i32*
%41 = alloca double*
%42 = alloca double*
store i8* %0, i8** %22
store double* %1, double** %23
store double* %2, double** %24
store double* %3, double** %25
store double* %4, double** %26
store double* %5, double** %27
store double* %6, double** %28
store double* %7, double** %29
store double* %8, double** %30
store double* %9, double** %31
store double* %10, double** %32
store double* %11, double** %33
store double* %12, double** %34
store i32* %13, i32** %35
store i32* %14, i32** %36
store double* %15, double** %37
store double* %16, double** %38
store double* %17, double** %39
store i32* %18, i32** %40
store double* %19, double** %41
store double* %20, double** %42
%43 = load i8*, i8** %22
%44 = load double*, double** %30
%45 = call i32 @read_double(i8* %43, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double* %44)
%46 = load i8*, i8** %22
%47 = load double*, double** %31
%48 = call i32 @read_double(i8* %46, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double* %47)
%49 = load i8*, i8** %22
%50 = load double*, double** %23
%51 = call i32 @read_double(i8* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %50)
%52 = load i8*, i8** %22
%53 = load double*, double** %29
%54 = call i32 @read_double(i8* %52, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double* %53)
%55 = load i8*, i8** %22
%56 = load double*, double** %32
%57 = call i32 @read_double(i8* %55, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %56)
%58 = load i8*, i8** %22
%59 = load i32*, i32** %35
%60 = call i32 @read_int(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32* %59)
%61 = load i8*, i8** %22
%62 = load i32*, i32** %36
%63 = call i32 @read_int(i8* %61, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %62)
%64 = load i8*, i8** %22
%65 = load double*, double** %38
%66 = call i32 @read_double(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double* %65)
%67 = load i8*, i8** %22
%68 = load double*, double** %41
%69 = call i32 @read_double(i8* %67, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double* %68)
%70 = load i8*, i8** %22
%71 = load double*, double** %39
%72 = call i32 @read_double(i8* %70, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double* %71)
%73 = load i8*, i8** %22
%74 = load double*, double** %37
%75 = call i32 @read_double(i8* %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double* %74)
%76 = load i8*, i8** %22
%77 = load i32*, i32** %40
%78 = call i32 @read_int(i8* %76, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32* %77)
%79 = load i8*, i8** %22
%80 = load double*, double** %42
%81 = call i32 @read_double(i8* %79, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double* %80)
%82 = load i8*, i8** %22
%83 = load double*, double** %24
%84 = call i32 @read_double(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double* %83)
%85 = load i8*, i8** %22
%86 = load double*, double** %25
%87 = call i32 @read_double(i8* %85, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double* %86)
%88 = load i8*, i8** %22
%89 = load double*, double** %27
%90 = call i32 @read_double(i8* %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double* %89)
%91 = load i8*, i8** %22
%92 = load double*, double** %28
%93 = call i32 @read_double(i8* %91, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %92)
%94 = load i8*, i8** %22
%95 = load double*, double** %26
%96 = call i32 @read_double(i8* %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), double* %95)
%97 = load double*, double** %30
%98 = load double, double* %97
%99 = load i32*, i32** %35
%100 = load i32, i32* %99
%101 = sitofp i32 %100 to double
%102 = fdiv double %98, %101
%103 = load double*, double** %33
store double %102, double* %103
%104 = load double*, double** %31
%105 = load double, double* %104
%106 = load i32*, i32** %36
%107 = load i32, i32* %106
%108 = sitofp i32 %107 to double
%109 = fdiv double %105, %108
%110 = load double*, double** %34
store double %109, double* %110
ret i32 1
}

LLVM IR (-O2):
@.str = [9 x i8] c"*xlength\00"
@.str.1 = [9 x i8] c"*ylength\00"
@.str.2 = [4 x i8] c"*Re\00"
@.str.3 = [7 x i8] c"*t_end\00"
@.str.4 = [4 x i8] c"*dt\00"
@.str.5 = [6 x i8] c"*imax\00"
@.str.6 = [6 x i8] c"*jmax\00"
@.str.7 = [5 x i8] c"*omg\00"
@.str.8 = [5 x i8] c"*eps\00"
@.str.9 = [5 x i8] c"*tau\00"
@.str.10 = [7 x i8] c"*alpha\00"
@.str.11 = [9 x i8] c"*itermax\00"
@.str.12 = [10 x i8] c"*dt_value\00"
@.str.13 = [4 x i8] c"*UI\00"
@.str.14 = [4 x i8] c"*VI\00"
@.str.15 = [4 x i8] c"*GX\00"
@.str.16 = [4 x i8] c"*GY\00"
@.str.17 = [4 x i8] c"*PI\00"
define i32 @read_parameters(i8* %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, double* %7, double* %8, double* %9, double* %10, double* nocapture writeonly %11, double* nocapture writeonly %12, i32* %13, i32* %14, double* %15, double* %16, double* %17, i32* %18, double* %19, double* %20) {
%22 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double* %8)
%23 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double* %9)
%24 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %1)
%25 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double* %7)
%26 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %10)
%27 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32* %13)
%28 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %14)
%29 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double* %16)
%30 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double* %19)
%31 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double* %17)
%32 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double* %15)
%33 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32* %18)
%34 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double* %20)
%35 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double* %2)
%36 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double* %3)
%37 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double* %5)
%38 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %6)
%39 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), double* %4)
%40 = load double, double* %8
%41 = load i32, i32* %13
%42 = sitofp i32 %41 to double
%43 = fdiv double %40, %42
store double %43, double* %11
%44 = load double, double* %9
%45 = load i32, i32* %14
%46 = sitofp i32 %45 to double
%47 = fdiv double %44, %46
store double %47, double* %12
ret i32 1
}