#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, int *iproc, int *jproc) {
  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));
  read_int(szFileName, "*iproc", &(*iproc));
  read_int(szFileName, "*jproc", &(*jproc));
  *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    0x90(%rbp),%rax
mov    0x88(%rbp),%rax
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    0xe64(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x28(%rbp),%rdx
lea    0xe59(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xe4e(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x18(%rbp),%rdx
lea    0xe3e(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x30(%rbp),%rdx
lea    0xe31(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x48(%rbp),%rdx
lea    0xe21(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x50(%rbp),%rdx
lea    0xe13(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x60(%rbp),%rdx
lea    0xe05(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x78(%rbp),%rdx
lea    0xdf6(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x68(%rbp),%rdx
lea    0xde7(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x58(%rbp),%rdx
lea    0xdd8(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x70(%rbp),%rdx
lea    0xdcb(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x80(%rbp),%rdx
lea    0xdbd(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xdb3(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xda3(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xd93(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rdx
lea    0xd83(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xd73(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x88(%rbp),%rdx
lea    0xd60(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x90(%rbp),%rdx
lea    0xd50(%rip),%rsi
call   1030 <read_int@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,%r14
mov    %rdi,%rbx
mov    0xa0(%rsp),%r12
mov    0x98(%rsp),%rbp
mov    0x68(%rsp),%r15
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    %r14,%rdx
call   1040 <read_double@plt>
lea    0xe78(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%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    %rbp,%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>
lea    0xd91(%rip),%rsi
mov    %rbx,%rdi
mov    0xd8(%rsp),%rdx
call   1030 <read_int@plt>
lea    0xd81(%rip),%rsi
mov    %rbx,%rdi
mov    0xe0(%rsp),%rdx
call   1030 <read_int@plt>
mov    0x70(%rsp),%rax
movsd  (%rax),%xmm0
cvtsi2sdl 0x0(%rbp),%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"
@.str.18 = [7 x i8] c"*iproc\00"
@.str.19 = [7 x i8] c"*jproc\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, i32* %21, i32* %22) {
%24 = alloca i8*
%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 double*
%36 = alloca double*
%37 = alloca i32*
%38 = alloca i32*
%39 = alloca double*
%40 = alloca double*
%41 = alloca double*
%42 = alloca i32*
%43 = alloca double*
%44 = alloca double*
%45 = alloca i32*
%46 = alloca i32*
store i8* %0, i8** %24
store double* %1, double** %25
store double* %2, double** %26
store double* %3, double** %27
store double* %4, double** %28
store double* %5, double** %29
store double* %6, double** %30
store double* %7, double** %31
store double* %8, double** %32
store double* %9, double** %33
store double* %10, double** %34
store double* %11, double** %35
store double* %12, double** %36
store i32* %13, i32** %37
store i32* %14, i32** %38
store double* %15, double** %39
store double* %16, double** %40
store double* %17, double** %41
store i32* %18, i32** %42
store double* %19, double** %43
store double* %20, double** %44
store i32* %21, i32** %45
store i32* %22, i32** %46
%47 = load i8*, i8** %24
%48 = load double*, double** %32
%49 = call i32 @read_double(i8* %47, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double* %48)
%50 = load i8*, i8** %24
%51 = load double*, double** %33
%52 = call i32 @read_double(i8* %50, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double* %51)
%53 = load i8*, i8** %24
%54 = load double*, double** %25
%55 = call i32 @read_double(i8* %53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %54)
%56 = load i8*, i8** %24
%57 = load double*, double** %31
%58 = call i32 @read_double(i8* %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double* %57)
%59 = load i8*, i8** %24
%60 = load double*, double** %34
%61 = call i32 @read_double(i8* %59, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %60)
%62 = load i8*, i8** %24
%63 = load i32*, i32** %37
%64 = call i32 @read_int(i8* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32* %63)
%65 = load i8*, i8** %24
%66 = load i32*, i32** %38
%67 = call i32 @read_int(i8* %65, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %66)
%68 = load i8*, i8** %24
%69 = load double*, double** %40
%70 = call i32 @read_double(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double* %69)
%71 = load i8*, i8** %24
%72 = load double*, double** %43
%73 = call i32 @read_double(i8* %71, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double* %72)
%74 = load i8*, i8** %24
%75 = load double*, double** %41
%76 = call i32 @read_double(i8* %74, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double* %75)
%77 = load i8*, i8** %24
%78 = load double*, double** %39
%79 = call i32 @read_double(i8* %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double* %78)
%80 = load i8*, i8** %24
%81 = load i32*, i32** %42
%82 = call i32 @read_int(i8* %80, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32* %81)
%83 = load i8*, i8** %24
%84 = load double*, double** %44
%85 = call i32 @read_double(i8* %83, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double* %84)
%86 = load i8*, i8** %24
%87 = load double*, double** %26
%88 = call i32 @read_double(i8* %86, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double* %87)
%89 = load i8*, i8** %24
%90 = load double*, double** %27
%91 = call i32 @read_double(i8* %89, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double* %90)
%92 = load i8*, i8** %24
%93 = load double*, double** %29
%94 = call i32 @read_double(i8* %92, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double* %93)
%95 = load i8*, i8** %24
%96 = load double*, double** %30
%97 = call i32 @read_double(i8* %95, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %96)
%98 = load i8*, i8** %24
%99 = load double*, double** %28
%100 = call i32 @read_double(i8* %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), double* %99)
%101 = load i8*, i8** %24
%102 = load i32*, i32** %45
%103 = call i32 @read_int(i8* %101, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i32* %102)
%104 = load i8*, i8** %24
%105 = load i32*, i32** %46
%106 = call i32 @read_int(i8* %104, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i32* %105)
%107 = load double*, double** %32
%108 = load double, double* %107
%109 = load i32*, i32** %37
%110 = load i32, i32* %109
%111 = sitofp i32 %110 to double
%112 = fdiv double %108, %111
%113 = load double*, double** %35
store double %112, double* %113
%114 = load double*, double** %33
%115 = load double, double* %114
%116 = load i32*, i32** %38
%117 = load i32, i32* %116
%118 = sitofp i32 %117 to double
%119 = fdiv double %115, %118
%120 = load double*, double** %36
store double %119, double* %120
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"
@.str.18 = [7 x i8] c"*iproc\00"
@.str.19 = [7 x i8] c"*jproc\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, i32* %21, i32* %22) {
%24 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), double* %8)
%25 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), double* %9)
%26 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double* %1)
%27 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), double* %7)
%28 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), double* %10)
%29 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i32* %13)
%30 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32* %14)
%31 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double* %16)
%32 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double* %19)
%33 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double* %17)
%34 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double* %15)
%35 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32* %18)
%36 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double* %20)
%37 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double* %2)
%38 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double* %3)
%39 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double* %5)
%40 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %6)
%41 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), double* %4)
%42 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0), i32* %21)
%43 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i32* %22)
%44 = load double, double* %8
%45 = load i32, i32* %13
%46 = sitofp i32 %45 to double
%47 = fdiv double %44, %46
store double %47, double* %11
%48 = load double, double* %9
%49 = load i32, i32* %14
%50 = sitofp i32 %49 to double
%51 = fdiv double %48, %50
store double %51, double* %12
ret i32 1
}