#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*/ endpar();
int /*<<< orphan*/ gcproj(float *, float *, float *, float *, float *, double *,
                          double *, double *, double *, int);
int /*<<< orphan*/ gen_matrices(double *, double *, float *, float *, float *);
int /*<<< orphan*/ getpar(char *, char *, ...);
int /*<<< orphan*/ mstpar(char *, char *, float *);
int /*<<< orphan*/ printf(char *, float, float);
int scanf(char *, float *, float *);
int /*<<< orphan*/ setpar(int, char **);
main(int ac, char **av) {
  FILE *fpw, *fpr, *fopfile();
  float xlen, ylen, alpha, ref_lon, ref_lat, rlon, rlat;
  float dx, dy, xf, yf;
  double g0, b0;
  double amat[9], ainv[9];
  float ref_rad = 6378.139;
  int input_xy = 1;
  setpar(ac, av);
  mstpar("ref_lon", "f", &ref_lon);
  mstpar("ref_lat", "f", &ref_lat);
  mstpar("alpha", "f", &alpha);
  mstpar("xlen", "f", &xlen);
  mstpar("ylen", "f", &ylen);
  getpar("ref_rad", "f", &ref_rad);
  getpar("input_xy", "d", &input_xy);
  endpar();
  gen_matrices(amat, ainv, &alpha, &ref_lon, &ref_lat);
  g0 = (double)(0.5 * ylen) / (double)(ref_rad);
  b0 = (double)(0.5 * xlen) / (double)(ref_rad);
  if (input_xy) {
    while (scanf("%f %f", &xf, &yf) == 2) {
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 0);
      printf("%.5f %.5f\n", rlon, rlat);
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 1);
      printf("%.5f %.5f\n", xf, yf);
    }
  } else {
    while (scanf("%f %f", &rlon, &rlat) == 2) {
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 1);
      printf("%.5f %.5f\n", xf, yf);
      gcproj(&xf, &yf, &rlon, &rlat, &ref_rad, &g0, &b0, amat, ainv, 0);
      printf("%.5f %.5f\n", rlon, rlat);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x128,%rsp
movl   $0x0,-0xc(%rbp)
mov    %edi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movss  0xe66(%rip),%xmm0
movss  %xmm0,-0x104(%rbp)
ff
movl   $0x1,-0x108(%rbp)
mov    -0x10(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1040 <setpar@plt>
lea    0xe45(%rip),%rdi
lea    0xe73(%rip),%rsi
lea    -0x38(%rbp),%rdx
call   1050 <mstpar@plt>
lea    0xe36(%rip),%rdi
lea    0xe5c(%rip),%rsi
lea    -0x3c(%rbp),%rdx
call   1050 <mstpar@plt>
lea    0xe27(%rip),%rdi
lea    0xe45(%rip),%rsi
lea    -0x34(%rbp),%rdx
call   1050 <mstpar@plt>
lea    0xe16(%rip),%rdi
lea    0xe2e(%rip),%rsi
lea    -0x2c(%rbp),%rdx
call   1050 <mstpar@plt>
lea    0xe04(%rip),%rdi
lea    0xe17(%rip),%rsi
lea    -0x30(%rbp),%rdx
call   1050 <mstpar@plt>
lea    0xdf2(%rip),%rdi
lea    0xe00(%rip),%rsi
lea    -0x104(%rbp),%rdx
mov    $0x0,%al
call   1080 <getpar@plt>
lea    0xdde(%rip),%rdi
lea    0xdd5(%rip),%rsi
lea    -0x108(%rbp),%rdx
mov    $0x0,%al
call   1080 <getpar@plt>
mov    $0x0,%al
call   10a0 <endpar@plt>
lea    -0xb0(%rbp),%rdi
lea    -0x100(%rbp),%rsi
lea    -0x34(%rbp),%rdx
lea    -0x38(%rbp),%rcx
lea    -0x3c(%rbp),%r8
call   1030 <gen_matrices@plt>
movss  -0x30(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x104(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movss  -0x2c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xd34(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0x104(%rbp),%xmm1
ff
cvtss2sd %xmm1,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
cmpl   $0x0,-0x108(%rbp)
je     13dc <main+0x25c>
jmp    12f7 <main+0x177>
lea    0xd3f(%rip),%rdi
lea    -0x50(%rbp),%rsi
lea    -0x54(%rbp),%rdx
call   1090 <scanf@plt>
cmp    $0x2,%eax
jne    13d7 <main+0x257>
lea    -0xb0(%rbp),%r10
lea    -0x100(%rbp),%rax
lea    -0x50(%rbp),%rdi
lea    -0x54(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x44(%rbp),%rcx
lea    -0x104(%rbp),%r8
lea    -0x60(%rbp),%r9
lea    -0x68(%rbp),%r11
xor    %ebx,%ebx
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1070 <gcproj@plt>
movss  -0x40(%rbp),%xmm0
movss  -0x44(%rbp),%xmm1
lea    0xcd4(%rip),%rdi
call   1060 <printf@plt>
lea    -0xb0(%rbp),%r10
lea    -0x100(%rbp),%rax
lea    -0x50(%rbp),%rdi
lea    -0x54(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x44(%rbp),%rcx
lea    -0x104(%rbp),%r8
lea    -0x60(%rbp),%r9
lea    -0x68(%rbp),%r11
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1070 <gcproj@plt>
movss  -0x50(%rbp),%xmm0
movss  -0x54(%rbp),%xmm1
lea    0xc76(%rip),%rdi
call   1060 <printf@plt>
jmp    12f7 <main+0x177>
jmp    14c6 <main+0x346>
jmp    13e1 <main+0x261>
lea    0xc55(%rip),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x44(%rbp),%rdx
call   1090 <scanf@plt>
cmp    $0x2,%eax
jne    14c1 <main+0x341>
lea    -0xb0(%rbp),%r10
lea    -0x100(%rbp),%rax
lea    -0x50(%rbp),%rdi
lea    -0x54(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x44(%rbp),%rcx
lea    -0x104(%rbp),%r8
lea    -0x60(%rbp),%r9
lea    -0x68(%rbp),%r11
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x1,0x18(%rsp)
call   1070 <gcproj@plt>
movss  -0x50(%rbp),%xmm0
movss  -0x54(%rbp),%xmm1
lea    0xbec(%rip),%rdi
call   1060 <printf@plt>
lea    -0xb0(%rbp),%r10
lea    -0x100(%rbp),%rax
lea    -0x50(%rbp),%rdi
lea    -0x54(%rbp),%rsi
lea    -0x40(%rbp),%rdx
lea    -0x44(%rbp),%rcx
lea    -0x104(%rbp),%r8
lea    -0x60(%rbp),%r9
lea    -0x68(%rbp),%r11
xor    %ebx,%ebx
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movl   $0x0,0x18(%rsp)
call   1070 <gcproj@plt>
movss  -0x40(%rbp),%xmm0
movss  -0x44(%rbp),%xmm1
lea    0xb8c(%rip),%rdi
call   1060 <printf@plt>
jmp    13e1 <main+0x261>
jmp    14c6 <main+0x346>
mov    -0xc(%rbp),%eax
add    $0x128,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movl   $0x45c7511d,0x4(%rsp)
45
movl   $0x1,0x14(%rsp)
call   1040 <setpar@plt>
lea    0xe5b(%rip),%rdi
lea    0xe89(%rip),%rbp
lea    0x38(%rsp),%r14
mov    %rbp,%rsi
mov    %r14,%rdx
call   1050 <mstpar@plt>
lea    0xe45(%rip),%rdi
lea    0x34(%rsp),%r15
mov    %rbp,%rsi
mov    %r15,%rdx
call   1050 <mstpar@plt>
lea    0xe36(%rip),%rdi
lea    0x3c(%rsp),%rbx
mov    %rbp,%rsi
mov    %rbx,%rdx
call   1050 <mstpar@plt>
lea    0xe25(%rip),%rdi
lea    0x30(%rsp),%rdx
mov    %rbp,%rsi
call   1050 <mstpar@plt>
lea    0xe16(%rip),%rdi
lea    0x2c(%rsp),%rdx
mov    %rbp,%rsi
call   1050 <mstpar@plt>
lea    0xe07(%rip),%rdi
lea    0x4(%rsp),%rdx
mov    %rbp,%rsi
xor    %eax,%eax
call   1080 <getpar@plt>
lea    0xdf9(%rip),%rdi
lea    0xdf0(%rip),%rsi
lea    0x14(%rsp),%rdx
xor    %eax,%eax
call   1080 <getpar@plt>
xor    %eax,%eax
call   10a0 <endpar@plt>
lea    0x90(%rsp),%r13
lea    0x40(%rsp),%rbp
mov    %r13,%rdi
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
mov    %r15,%r8
call   1030 <gen_matrices@plt>
movss  0x2c(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xd7c(%rip),%xmm1
mulsd  %xmm1,%xmm0
movss  0x4(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
divsd  %xmm2,%xmm0
movsd  %xmm0,0x18(%rsp)
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mulsd  %xmm1,%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm0,0x20(%rsp)
cmpl   $0x0,0x14(%rsp)
je     13a9 <main+0x229>
lea    0xd73(%rip),%rdi
mov    %rsp,%rsi
lea    0x10(%rsp),%rdx
call   1090 <scanf@plt>
cmp    $0x2,%eax
jne    1483 <main+0x303>
mov    %r13,%rax
mov    %rbp,%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rsp,%rdi
lea    0x10(%rsp),%r15
mov    %r15,%rsi
lea    0xc(%rsp),%r13
mov    %r13,%rdx
lea    0x8(%rsp),%r12
mov    %r12,%rcx
lea    0x4(%rsp),%rbx
mov    %rbx,%r8
lea    0x18(%rsp),%r9
push   $0x0
push   %r14
push   %rax
lea    0x38(%rsp),%rbp
push   %rbp
mov    %rax,%rbp
call   1070 <gcproj@plt>
add    $0x20,%rsp
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
lea    0xcfd(%rip),%rdi
call   1060 <printf@plt>
mov    %rsp,%rdi
mov    %r15,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %rbx,%r8
lea    0x18(%rsp),%r9
push   $0x1
push   %r14
push   %rbp
lea    0x38(%rsp),%rax
push   %rax
call   1070 <gcproj@plt>
add    $0x20,%rsp
movss  (%rsp),%xmm0
movss  0x10(%rsp),%xmm1
lea    0xcbe(%rip),%rdi
call   1060 <printf@plt>
lea    0xcac(%rip),%rdi
mov    %rsp,%rsi
mov    %r15,%rdx
call   1090 <scanf@plt>
cmp    $0x2,%eax
mov    %rbp,%rax
je     12f0 <main+0x170>
jmp    1483 <main+0x303>
lea    0xc89(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1090 <scanf@plt>
cmp    $0x2,%eax
jne    1483 <main+0x303>
mov    %rbp,%r14
nopl   0x0(%rax,%rax,1)
mov    %rsp,%r12
mov    %r12,%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
lea    0x4(%rsp),%r8
lea    0x18(%rsp),%r9
push   $0x1
push   %r14
push   %r13
lea    0x38(%rsp),%r15
push   %r15
call   1070 <gcproj@plt>
add    $0x20,%rsp
movss  (%rsp),%xmm0
movss  0x10(%rsp),%xmm1
lea    0xc25(%rip),%rdi
call   1060 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
lea    0xc(%rsp),%rbx
mov    %rbx,%rdx
lea    0x8(%rsp),%rbp
mov    %rbp,%rcx
lea    0x4(%rsp),%r8
lea    0x18(%rsp),%r9
push   $0x0
push   %r14
push   %r13
push   %r15
call   1070 <gcproj@plt>
add    $0x20,%rsp
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
lea    0xbdc(%rip),%rdi
call   1060 <printf@plt>
lea    0xbca(%rip),%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
call   1090 <scanf@plt>
cmp    $0x2,%eax
je     13d0 <main+0x250>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [8 x i8] c"ref_lon\00"
@.str.1 = [2 x i8] c"f\00"
@.str.2 = [8 x i8] c"ref_lat\00"
@.str.3 = [6 x i8] c"alpha\00"
@.str.4 = [5 x i8] c"xlen\00"
@.str.5 = [5 x i8] c"ylen\00"
@.str.6 = [8 x i8] c"ref_rad\00"
@.str.7 = [9 x i8] c"input_xy\00"
@.str.8 = [2 x i8] c"d\00"
@.str.9 = [6 x i8] c"%f %f\00"
@.str.10 = [11 x i8] c"%.5f %.5f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca double
%20 = alloca double
%21 = alloca [9 x double]
%22 = alloca [9 x double]
%23 = alloca float
%24 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 0x40B8EA23A0000000, float* %23
store i32 1, i32* %24
%25 = load i32, i32* %4
%26 = load i8**, i8*** %5
%27 = call i32 @setpar(i32 %25, i8** %26)
%28 = call i32 @mstpar(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %11)
%29 = call i32 @mstpar(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %12)
%30 = call i32 @mstpar(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %10)
%31 = call i32 @mstpar(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %8)
%32 = call i32 @mstpar(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %9)
%33 = call i32 (i8*, i8*, ...) @getpar(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %23)
%34 = call i32 (i8*, i8*, ...) @getpar(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32* %24)
%35 = call i32 (...) @endpar()
%36 = getelementptr inbounds [9 x double], [9 x double]* %21, i64 0, i64 0
%37 = getelementptr inbounds [9 x double], [9 x double]* %22, i64 0, i64 0
%38 = call i32 @gen_matrices(double* %36, double* %37, float* %10, float* %11, float* %12)
%39 = load float, float* %9
%40 = fpext float %39 to double
%41 = fmul double 5.000000e-01, %40
%42 = load float, float* %23
%43 = fpext float %42 to double
%44 = fdiv double %41, %43
store double %44, double* %19
%45 = load float, float* %8
%46 = fpext float %45 to double
%47 = fmul double 5.000000e-01, %46
%48 = load float, float* %23
%49 = fpext float %48 to double
%50 = fdiv double %47, %49
store double %50, double* %20
%51 = load i32, i32* %24
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %71
53: ; preds = %2
br label %54
54: ; preds = %57, %53
%55 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), float* %17, float* %18)
%56 = icmp eq i32 %55, 2
br i1 %56, label %57, label %70
57: ; preds = %54
%58 = getelementptr inbounds [9 x double], [9 x double]* %21, i64 0, i64 0
%59 = getelementptr inbounds [9 x double], [9 x double]* %22, i64 0, i64 0
%60 = call i32 @gcproj(float* %17, float* %18, float* %13, float* %14, float* %23, double* %19, double* %20, double* %58, double* %59, i32 0)
%61 = load float, float* %13
%62 = load float, float* %14
%63 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %61, float %62)
%64 = getelementptr inbounds [9 x double], [9 x double]* %21, i64 0, i64 0
%65 = getelementptr inbounds [9 x double], [9 x double]* %22, i64 0, i64 0
%66 = call i32 @gcproj(float* %17, float* %18, float* %13, float* %14, float* %23, double* %19, double* %20, double* %64, double* %65, i32 1)
%67 = load float, float* %17
%68 = load float, float* %18
%69 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %67, float %68)
br label %54
70: ; preds = %54
br label %89
71: ; preds = %2
br label %72
72: ; preds = %75, %71
%73 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), float* %13, float* %14)
%74 = icmp eq i32 %73, 2
br i1 %74, label %75, label %88
75: ; preds = %72
%76 = getelementptr inbounds [9 x double], [9 x double]* %21, i64 0, i64 0
%77 = getelementptr inbounds [9 x double], [9 x double]* %22, i64 0, i64 0
%78 = call i32 @gcproj(float* %17, float* %18, float* %13, float* %14, float* %23, double* %19, double* %20, double* %76, double* %77, i32 1)
%79 = load float, float* %17
%80 = load float, float* %18
%81 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %79, float %80)
%82 = getelementptr inbounds [9 x double], [9 x double]* %21, i64 0, i64 0
%83 = getelementptr inbounds [9 x double], [9 x double]* %22, i64 0, i64 0
%84 = call i32 @gcproj(float* %17, float* %18, float* %13, float* %14, float* %23, double* %19, double* %20, double* %82, double* %83, i32 0)
%85 = load float, float* %13
%86 = load float, float* %14
%87 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %85, float %86)
br label %72
88: ; preds = %72
br label %89
89: ; preds = %88, %70
%90 = load i32, i32* %3
ret i32 %90
}

LLVM IR (-O2):
@.str = [8 x i8] c"ref_lon\00"
@.str.1 = [2 x i8] c"f\00"
@.str.2 = [8 x i8] c"ref_lat\00"
@.str.3 = [6 x i8] c"alpha\00"
@.str.4 = [5 x i8] c"xlen\00"
@.str.5 = [5 x i8] c"ylen\00"
@.str.6 = [8 x i8] c"ref_rad\00"
@.str.7 = [9 x i8] c"input_xy\00"
@.str.8 = [2 x i8] c"d\00"
@.str.9 = [6 x i8] c"%f %f\00"
@.str.10 = [11 x i8] c"%.5f %.5f\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca double
%13 = alloca double
%14 = alloca [9 x double]
%15 = alloca [9 x double]
%16 = alloca float
%17 = alloca i32
%18 = bitcast float* %3 to i8*
%19 = bitcast float* %4 to i8*
%20 = bitcast float* %5 to i8*
%21 = bitcast float* %6 to i8*
%22 = bitcast float* %7 to i8*
%23 = bitcast float* %8 to i8*
%24 = bitcast float* %9 to i8*
%25 = bitcast float* %10 to i8*
%26 = bitcast float* %11 to i8*
%27 = bitcast double* %12 to i8*
%28 = bitcast double* %13 to i8*
%29 = bitcast [9 x double]* %14 to i8*
%30 = bitcast [9 x double]* %15 to i8*
%31 = bitcast float* %16 to i8*
store float 0x40B8EA23A0000000, float* %16
%32 = bitcast i32* %17 to i8*
store i32 1, i32* %17
%33 = tail call i32 @setpar(i32 %0, i8** %1)
%34 = call i32 @mstpar(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %6)
%35 = call i32 @mstpar(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %7)
%36 = call i32 @mstpar(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %5)
%37 = call i32 @mstpar(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %3)
%38 = call i32 @mstpar(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %4)
%39 = call i32 (i8*, i8*, ...) @getpar(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), float* %16)
%40 = call i32 (i8*, i8*, ...) @getpar(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32* %17)
%41 = call i32 (...) @endpar()
%42 = getelementptr inbounds [9 x double], [9 x double]* %14, i64 0, i64 0
%43 = getelementptr inbounds [9 x double], [9 x double]* %15, i64 0, i64 0
%44 = call i32 @gen_matrices(double* %42, double* %43, float* %5, float* %6, float* %7)
%45 = load float, float* %4
%46 = fpext float %45 to double
%47 = fmul double %46, 5.000000e-01
%48 = load float, float* %16
%49 = fpext float %48 to double
%50 = fdiv double %47, %49
store double %50, double* %12
%51 = load float, float* %3
%52 = fpext float %51 to double
%53 = fmul double %52, 5.000000e-01
%54 = fdiv double %53, %49
store double %54, double* %13
%55 = load i32, i32* %17
%56 = icmp eq i32 %55, 0
br i1 %56, label %60, label %57
57: ; preds = %2
%58 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), float* %10, float* %11)
%59 = icmp eq i32 %58, 2
br i1 %59, label %63, label %85
60: ; preds = %2
%61 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), float* %8, float* %9)
%62 = icmp eq i32 %61, 2
br i1 %62, label %74, label %85
63: ; preds = %57, %63
%64 = call i32 @gcproj(float* %10, float* %11, float* %8, float* %9, float* %16, double* %12, double* %13, double* %42, double* %43, i32 0)
%65 = load float, float* %8
%66 = load float, float* %9
%67 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %65, float %66)
%68 = call i32 @gcproj(float* %10, float* %11, float* %8, float* %9, float* %16, double* %12, double* %13, double* %42, double* %43, i32 1)
%69 = load float, float* %10
%70 = load float, float* %11
%71 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %69, float %70)
%72 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), float* %10, float* %11)
%73 = icmp eq i32 %72, 2
br i1 %73, label %63, label %85
74: ; preds = %60, %74
%75 = call i32 @gcproj(float* %10, float* %11, float* %8, float* %9, float* %16, double* %12, double* %13, double* %42, double* %43, i32 1)
%76 = load float, float* %10
%77 = load float, float* %11
%78 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %76, float %77)
%79 = call i32 @gcproj(float* %10, float* %11, float* %8, float* %9, float* %16, double* %12, double* %13, double* %42, double* %43, i32 0)
%80 = load float, float* %8
%81 = load float, float* %9
%82 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0), float %80, float %81)
%83 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), float* %8, float* %9)
%84 = icmp eq i32 %83, 2
br i1 %84, label %74, label %85
85: ; preds = %63, %74, %57, %60
ret i32 0
}