#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 *UI, double *VI, double *PI,
                    double *GX, double *GY, 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 *wl, int *wr, int *wt,
                    int *wb) {
  read_int(szFileName, "*wl", &(*wl));
  read_int(szFileName, "*wr", &(*wr));
  read_int(szFileName, "*wt", &(*wt));
  read_int(szFileName, "*wb", &(*wb));
  read_double(szFileName, "*xlength", &(*xlength));
  read_double(szFileName, "*ylength", &(*ylength));
  read_double(szFileName, "*dt", &(*dt));
  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    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    0x78(%rbp),%rdx
lea    0xe64(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x80(%rbp),%rdx
lea    0xe51(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x88(%rbp),%rdx
lea    0xe3e(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x90(%rbp),%rdx
lea    0xe2b(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x10(%rbp),%rdx
lea    0xe1b(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x18(%rbp),%rdx
lea    0xe10(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x20(%rbp),%rdx
lea    0xe05(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x50(%rbp),%rdx
lea    0xdf5(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x68(%rbp),%rdx
lea    0xde6(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x58(%rbp),%rdx
lea    0xdd7(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x48(%rbp),%rdx
lea    0xdc8(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    0x60(%rbp),%rdx
lea    0xdbb(%rip),%rsi
call   1030 <read_int@plt>
mov    -0x8(%rbp),%rdi
mov    0x70(%rbp),%rdx
lea    0xdb0(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xda6(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xd96(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x28(%rbp),%rdx
lea    0xd86(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xd76(%rip),%rsi
call   1040 <read_double@plt>
mov    -0x8(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xd66(%rip),%rsi
call   1040 <read_double@plt>
mov    0x10(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x38(%rbp),%rax
cvtsi2sdl (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x40(%rbp),%rax
cvtsi2sdl (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x30(%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,0x10(%rsp)
mov    %rcx,0x20(%rsp)
mov    %rdx,0x8(%rsp)
mov    %rsi,(%rsp)
mov    %rdi,%rbx
mov    0x68(%rsp),%r12
mov    0x60(%rsp),%rbp
mov    0xe0(%rsp),%r15
mov    0xd8(%rsp),%r14
mov    0xd0(%rsp),%r13
mov    0xc8(%rsp),%rdx
lea    0xe86(%rip),%rsi
call   1030 <read_int@plt>
lea    0xe7e(%rip),%rsi
mov    %rbx,%rdi
mov    %r13,%rdx
call   1030 <read_int@plt>
lea    0xe70(%rip),%rsi
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <read_int@plt>
lea    0xe62(%rip),%rsi
mov    %rbx,%rdi
mov    %r15,%rdx
call   1030 <read_int@plt>
lea    0xe54(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
call   1040 <read_double@plt>
lea    0xe4b(%rip),%rsi
mov    %rbx,%rdi
mov    %r12,%rdx
call   1040 <read_double@plt>
lea    0xe42(%rip),%rsi
mov    %rbx,%rdi
mov    0x70(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe32(%rip),%rsi
mov    %rbx,%rdi
mov    0xa0(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
mov    0xb8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xe0e(%rip),%rsi
mov    %rbx,%rdi
mov    0xa8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdfc(%rip),%rsi
mov    %rbx,%rdi
mov    0x98(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdec(%rip),%rsi
mov    %rbx,%rdi
mov    0xb0(%rsp),%rdx
call   1030 <read_int@plt>
lea    0xdde(%rip),%rsi
mov    %rbx,%rdi
mov    0xc0(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdd1(%rip),%rsi
mov    %rbx,%rdi
mov    (%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdc2(%rip),%rsi
mov    %rbx,%rdi
mov    0x8(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdi
mov    0x10(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xda2(%rip),%rsi
mov    %rbx,%rdi
mov    0x18(%rsp),%rdx
call   1040 <read_double@plt>
lea    0xd92(%rip),%rsi
mov    %rbx,%rdi
mov    0x20(%rsp),%rdx
call   1040 <read_double@plt>
movsd  0x0(%rbp),%xmm0
mov    0x88(%rsp),%rax
cvtsi2sdl (%rax),%xmm1
divsd  %xmm1,%xmm0
mov    0x78(%rsp),%rax
movsd  %xmm0,(%rax)
mov    0x90(%rsp),%rax
xorps  %xmm0,%xmm0
cvtsi2sdl (%rax),%xmm0
movsd  (%r12),%xmm1
divsd  %xmm0,%xmm1
mov    0x80(%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 = [4 x i8] c"*wl\00"
@.str.1 = [4 x i8] c"*wr\00"
@.str.2 = [4 x i8] c"*wt\00"
@.str.3 = [4 x i8] c"*wb\00"
@.str.4 = [9 x i8] c"*xlength\00"
@.str.5 = [9 x i8] c"*ylength\00"
@.str.6 = [4 x i8] c"*dt\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, i32* %11, i32* %12, double* %13, double* %14, double* %15, i32* %16, double* %17, double* %18, i32* %19, i32* %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 i32*
%36 = alloca i32*
%37 = alloca double*
%38 = alloca double*
%39 = alloca double*
%40 = alloca i32*
%41 = alloca double*
%42 = alloca double*
%43 = alloca i32*
%44 = alloca i32*
%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 i32* %11, i32** %35
store i32* %12, i32** %36
store double* %13, double** %37
store double* %14, double** %38
store double* %15, double** %39
store i32* %16, i32** %40
store double* %17, double** %41
store double* %18, double** %42
store i32* %19, i32** %43
store i32* %20, i32** %44
store i32* %21, i32** %45
store i32* %22, i32** %46
%47 = load i8*, i8** %24
%48 = load i32*, i32** %43
%49 = call i32 @read_int(i8* %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %48)
%50 = load i8*, i8** %24
%51 = load i32*, i32** %44
%52 = call i32 @read_int(i8* %50, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %51)
%53 = load i8*, i8** %24
%54 = load i32*, i32** %45
%55 = call i32 @read_int(i8* %53, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %54)
%56 = load i8*, i8** %24
%57 = load i32*, i32** %46
%58 = call i32 @read_int(i8* %56, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32* %57)
%59 = load i8*, i8** %24
%60 = load double*, double** %30
%61 = call i32 @read_double(i8* %59, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double* %60)
%62 = load i8*, i8** %24
%63 = load double*, double** %31
%64 = call i32 @read_double(i8* %62, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double* %63)
%65 = load i8*, i8** %24
%66 = load double*, double** %32
%67 = call i32 @read_double(i8* %65, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %66)
%68 = load i8*, i8** %24
%69 = load double*, double** %38
%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** %41
%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** %39
%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** %37
%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** %40
%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** %42
%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** %25
%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** %26
%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** %28
%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** %29
%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** %27
%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 double*, double** %30
%102 = load double, double* %101
%103 = load i32*, i32** %35
%104 = load i32, i32* %103
%105 = sitofp i32 %104 to double
%106 = fdiv double %102, %105
%107 = load double*, double** %33
store double %106, double* %107
%108 = load double*, double** %31
%109 = load double, double* %108
%110 = load i32*, i32** %36
%111 = load i32, i32* %110
%112 = sitofp i32 %111 to double
%113 = fdiv double %109, %112
%114 = load double*, double** %34
store double %113, double* %114
ret i32 1
}

LLVM IR (-O2):
@.str = [4 x i8] c"*wl\00"
@.str.1 = [4 x i8] c"*wr\00"
@.str.2 = [4 x i8] c"*wt\00"
@.str.3 = [4 x i8] c"*wb\00"
@.str.4 = [9 x i8] c"*xlength\00"
@.str.5 = [9 x i8] c"*ylength\00"
@.str.6 = [4 x i8] c"*dt\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* nocapture writeonly %9, double* nocapture writeonly %10, i32* nocapture %11, i32* nocapture %12, double* %13, double* %14, double* %15, i32* %16, double* %17, double* %18, i32* %19, i32* %20, i32* %21, i32* %22) {
%24 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i32* %19)
%25 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32* %20)
%26 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32* %21)
%27 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32* %22)
%28 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), double* %6)
%29 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), double* %7)
%30 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), double* %8)
%31 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), double* %14)
%32 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), double* %17)
%33 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), double* %15)
%34 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), double* %13)
%35 = tail call i32 @read_int(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32* %16)
%36 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), double* %18)
%37 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double* %1)
%38 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0), double* %2)
%39 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0), double* %4)
%40 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), double* %5)
%41 = tail call i32 @read_double(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i64 0, i64 0), double* %3)
%42 = load double, double* %6
%43 = load i32, i32* %11
%44 = sitofp i32 %43 to double
%45 = fdiv double %42, %44
store double %45, double* %9
%46 = load double, double* %7
%47 = load i32, i32* %12
%48 = sitofp i32 %47 to double
%49 = fdiv double %46, %48
store double %49, double* %10
ret i32 1
}