#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 */
double cos(double);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ printf(char *);
double sin(double);
int sscanf(char *, char *, double *, double *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int find_conv_const(double *a, double *b, double *c, double *d, double *e,
                    double *f) {
  double xshift, yshift;
  double xmag, ymag;
  double xrot, yrot;
  char line[1000];
  xshift = yshift = 0.0;
  xmag = ymag = 1.0;
  xrot = yrot = 0.0;
  printf("\nEnter xshift and yshift, separated by spaces:  ");
  fgets(line, 1000, stdin);
  while (sscanf(line, "%lf %lf", &xshift, &yshift) != 2) {
    fprintf(stderr, "ERROR: bad input.  Enter values again:  ");
    fgets(line, 1000, stdin);
  }
  printf("\nEnter xmag and ymag, separated by spaces:  ");
  fgets(line, 1000, stdin);
  while (sscanf(line, "%lf %lf", &xmag, &ymag) != 2) {
    fprintf(stderr, "ERROR: bad input.  Enter values again:  ");
    fgets(line, 1000, stdin);
  }
  printf("\nEnter xrotation and yrotation, separated by spaces:  ");
  fgets(line, 1000, stdin);
  while (sscanf(line, "%lf %lf", &xrot, &yrot) != 2) {
    fprintf(stderr, "ERROR: bad input.  Enter values again:  ");
    fgets(line, 1000, stdin);
  }
  *a = xshift;
  *b = xmag * cos(xrot * 3.141592653589793 / 180.0);
  *c = ymag * sin(yrot * 3.141592653589793 / 180.0);
  *d = yshift;
  *e = -xmag * sin(xrot * 3.141592653589793 / 180.0);
  *f = ymag * cos(yrot * 3.141592653589793 / 180.0);
  return 0;
}


x86 assembly (clang, -O0):
<find_conv_const>:
push   %rbp
mov    %rsp,%rbp
sub    $0x470,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe65(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe58(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    0x2e11(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
lea    -0x450(%rbp),%rdi
lea    0xe58(%rip),%rsi
lea    -0x38(%rbp),%rdx
lea    -0x40(%rbp),%rcx
call   1070 <sscanf@plt>
cmp    $0x2,%eax
je     123b <find_conv_const+0xdb>
mov    0x2dca(%rip),%rax
mov    (%rax),%edi
lea    0xe3a(%rip),%rsi
call   1050 <fprintf@plt>
lea    -0x450(%rbp),%rdi
mov    0x2dbe(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
jmp    11e3 <find_conv_const+0x83>
lea    0xe38(%rip),%rdi
call   1030 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    0x2d93(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
lea    -0x450(%rbp),%rdi
lea    0xdda(%rip),%rsi
lea    -0x48(%rbp),%rdx
lea    -0x50(%rbp),%rcx
call   1070 <sscanf@plt>
cmp    $0x2,%eax
je     12b9 <find_conv_const+0x159>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xdbc(%rip),%rsi
call   1050 <fprintf@plt>
lea    -0x450(%rbp),%rdi
mov    0x2d40(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
jmp    1261 <find_conv_const+0x101>
lea    0xde7(%rip),%rdi
call   1030 <printf@plt>
lea    -0x450(%rbp),%rdi
mov    0x2d15(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
lea    -0x450(%rbp),%rdi
lea    0xd5c(%rip),%rsi
lea    -0x58(%rbp),%rdx
lea    -0x60(%rbp),%rcx
call   1070 <sscanf@plt>
cmp    $0x2,%eax
je     1337 <find_conv_const+0x1d7>
mov    0x2cce(%rip),%rax
mov    (%rax),%edi
lea    0xd3e(%rip),%rsi
call   1050 <fprintf@plt>
lea    -0x450(%rbp),%rdi
mov    0x2cc2(%rip),%rax
mov    (%rax),%edx
mov    $0x3e8,%esi
call   1040 <fgets@plt>
jmp    12df <find_conv_const+0x17f>
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x470(%rbp)
ff
movsd  0xcb7(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  0xca2(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1080 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x470(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x468(%rbp)
ff
movsd  0xc75(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  0xc60(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1060 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x468(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x48(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x460(%rbp)
ff
movsd  0xc0f(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
movsd  0xbfa(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1060 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x460(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x458(%rbp)
ff
movsd  0xbcd(%rip),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  0xbb8(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1080 <cos@plt>
movaps %xmm0,%xmm1
movsd  -0x458(%rbp),%xmm0
ff
mulsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
add    $0x470,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<find_conv_const>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x458,%rsp
mov    %r9,0x68(%rsp)
mov    %r8,0x38(%rsp)
mov    %rcx,0x50(%rsp)
mov    %rdx,0x60(%rsp)
mov    %rsi,0x30(%rsp)
mov    %rdi,0x28(%rsp)
movq   $0x0,0x40(%rsp)
movq   $0x0,0x48(%rsp)
movabs $0x3ff0000000000000,%rax
mov    %rax,0x18(%rsp)
mov    %rax,0x20(%rsp)
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
lea    0xe52(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e0e(%rip),%rax
mov    (%rax),%edx
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
lea    0xe5c(%rip),%rsi
lea    0x48(%rsp),%rdx
lea    0x40(%rsp),%rcx
mov    %rbx,%rdi
call   1070 <sscanf@plt>
cmp    $0x2,%eax
je     1268 <find_conv_const+0x108>
mov    0x2dc5(%rip),%r12
lea    0xe3f(%rip),%r14
lea    0x70(%rsp),%rbx
lea    0xe2b(%rip),%rbp
lea    0x48(%rsp),%r13
lea    0x40(%rsp),%r15
mov    (%r12),%edi
mov    %r14,%rsi
call   1050 <fprintf@plt>
mov    0x2da5(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r13,%rdx
mov    %r15,%rcx
call   1070 <sscanf@plt>
cmp    $0x2,%eax
jne    1230 <find_conv_const+0xd0>
lea    0xe13(%rip),%rdi
call   1030 <printf@plt>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edx
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
lea    0xdbb(%rip),%rsi
lea    0x20(%rsp),%rdx
lea    0x18(%rsp),%rcx
mov    %rbx,%rdi
call   1070 <sscanf@plt>
cmp    $0x2,%eax
je     1318 <find_conv_const+0x1b8>
mov    0x2d24(%rip),%r12
lea    0xd9e(%rip),%r14
lea    0x70(%rsp),%rbp
lea    0xd8a(%rip),%r13
lea    0x20(%rsp),%r15
lea    0x18(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r12),%edi
mov    %r14,%rsi
call   1050 <fprintf@plt>
mov    0x2cf5(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
call   1070 <sscanf@plt>
cmp    $0x2,%eax
jne    12e0 <find_conv_const+0x180>
lea    0xd90(%rip),%rdi
call   1030 <printf@plt>
mov    0x2cbd(%rip),%rax
mov    (%rax),%edx
lea    0x70(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
lea    0xd0b(%rip),%rsi
lea    0x10(%rsp),%rdx
lea    0x8(%rsp),%rcx
mov    %rbx,%rdi
call   1070 <sscanf@plt>
cmp    $0x2,%eax
je     13c8 <find_conv_const+0x268>
mov    0x2c74(%rip),%r12
lea    0xcee(%rip),%r14
lea    0x70(%rsp),%rbp
lea    0xcda(%rip),%r13
lea    0x10(%rsp),%r15
lea    0x8(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r12),%edi
mov    %r14,%rsi
call   1050 <fprintf@plt>
mov    0x2c45(%rip),%rax
mov    (%rax),%edx
mov    %rbp,%rdi
mov    $0x3e8,%esi
call   1040 <fgets@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
mov    %rbx,%rcx
call   1070 <sscanf@plt>
cmp    $0x2,%eax
jne    1390 <find_conv_const+0x230>
movsd  0x48(%rsp),%xmm0
mov    0x28(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x20(%rsp),%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xc0f(%rip),%xmm0
divsd  0xc0f(%rip),%xmm0
call   1080 <cos@plt>
mulsd  0x28(%rsp),%xmm0
mov    0x30(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0x8(%rsp),%xmm0
mulsd  0xbd9(%rip),%xmm0
divsd  0xbd9(%rip),%xmm0
call   1060 <sin@plt>
mulsd  0x30(%rsp),%xmm0
mov    0x60(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x40(%rsp),%xmm0
mov    0x50(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x20(%rsp),%xmm0
xorps  0xbb1(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xb8e(%rip),%xmm0
divsd  0xb8e(%rip),%xmm0
call   1060 <sin@plt>
mulsd  0x50(%rsp),%xmm0
mov    0x38(%rsp),%rax
movsd  %xmm0,(%rax)
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movsd  0xb5e(%rip),%xmm0
mulsd  0x8(%rsp),%xmm0
divsd  0xb58(%rip),%xmm0
call   1080 <cos@plt>
mulsd  0x38(%rsp),%xmm0
mov    0x68(%rsp),%rax
movsd  %xmm0,(%rax)
xor    %eax,%eax
add    $0x458,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"\0AEnter xshift and yshift, separated by spaces: \00"
@stdin = global i32 0
@.str.1 = [8 x i8] c"%lf %lf\00"
@stderr = global i32 0
@.str.2 = [41 x i8] c"ERROR: bad input. Enter values again: \00"
@.str.3 = [45 x i8] c"\0AEnter xmag and ymag, separated by spaces: \00"
@.str.4 = [55 x i8] c"\0AEnter xrotation and yrotation, separated by spaces: \00"
define i32 @find_conv_const(double* %0, double* %1, double* %2, double* %3, double* %4, double* %5) {
%7 = alloca double*
%8 = alloca double*
%9 = alloca double*
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca double
%17 = alloca double
%18 = alloca double
%19 = alloca [1000 x i8]
store double* %0, double** %7
store double* %1, double** %8
store double* %2, double** %9
store double* %3, double** %10
store double* %4, double** %11
store double* %5, double** %12
store double 0.000000e+00, double* %14
store double 0.000000e+00, double* %13
store double 1.000000e+00, double* %16
store double 1.000000e+00, double* %15
store double 0.000000e+00, double* %18
store double 0.000000e+00, double* %17
%20 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%21 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%22 = load i32, i32* @stdin
%23 = call i32 @fgets(i8* %21, i32 1000, i32 %22)
br label %24
24: ; preds = %28, %6
%25 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%26 = call i32 @sscanf(i8* %25, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %13, double* %14)
%27 = icmp ne i32 %26, 2
br i1 %27, label %28, label %34
28: ; preds = %24
%29 = load i32, i32* @stderr
%30 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%31 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%32 = load i32, i32* @stdin
%33 = call i32 @fgets(i8* %31, i32 1000, i32 %32)
br label %24
34: ; preds = %24
%35 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%36 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%37 = load i32, i32* @stdin
%38 = call i32 @fgets(i8* %36, i32 1000, i32 %37)
br label %39
39: ; preds = %43, %34
%40 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%41 = call i32 @sscanf(i8* %40, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %15, double* %16)
%42 = icmp ne i32 %41, 2
br i1 %42, label %43, label %49
43: ; preds = %39
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%46 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%47 = load i32, i32* @stdin
%48 = call i32 @fgets(i8* %46, i32 1000, i32 %47)
br label %39
49: ; preds = %39
%50 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%51 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%52 = load i32, i32* @stdin
%53 = call i32 @fgets(i8* %51, i32 1000, i32 %52)
br label %54
54: ; preds = %58, %49
%55 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%56 = call i32 @sscanf(i8* %55, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %17, double* %18)
%57 = icmp ne i32 %56, 2
br i1 %57, label %58, label %64
58: ; preds = %54
%59 = load i32, i32* @stderr
%60 = call i32 @fprintf(i32 %59, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%61 = getelementptr inbounds [1000 x i8], [1000 x i8]* %19, i64 0, i64 0
%62 = load i32, i32* @stdin
%63 = call i32 @fgets(i8* %61, i32 1000, i32 %62)
br label %54
64: ; preds = %54
%65 = load double, double* %13
%66 = load double*, double** %7
store double %65, double* %66
%67 = load double, double* %15
%68 = load double, double* %17
%69 = fmul double %68, 0x400921FB54442D18
%70 = fdiv double %69, 1.800000e+02
%71 = call double @cos(double %70)
%72 = fmul double %67, %71
%73 = load double*, double** %8
store double %72, double* %73
%74 = load double, double* %16
%75 = load double, double* %18
%76 = fmul double %75, 0x400921FB54442D18
%77 = fdiv double %76, 1.800000e+02
%78 = call double @sin(double %77)
%79 = fmul double %74, %78
%80 = load double*, double** %9
store double %79, double* %80
%81 = load double, double* %14
%82 = load double*, double** %10
store double %81, double* %82
%83 = load double, double* %15
%84 = fneg double %83
%85 = load double, double* %17
%86 = fmul double %85, 0x400921FB54442D18
%87 = fdiv double %86, 1.800000e+02
%88 = call double @sin(double %87)
%89 = fmul double %84, %88
%90 = load double*, double** %11
store double %89, double* %90
%91 = load double, double* %16
%92 = load double, double* %18
%93 = fmul double %92, 0x400921FB54442D18
%94 = fdiv double %93, 1.800000e+02
%95 = call double @cos(double %94)
%96 = fmul double %91, %95
%97 = load double*, double** %12
store double %96, double* %97
ret i32 0
}

LLVM IR (-O2):
@.str = [49 x i8] c"\0AEnter xshift and yshift, separated by spaces: \00"
@stdin = global i32 0
@.str.1 = [8 x i8] c"%lf %lf\00"
@stderr = global i32 0
@.str.2 = [41 x i8] c"ERROR: bad input. Enter values again: \00"
@.str.3 = [45 x i8] c"\0AEnter xmag and ymag, separated by spaces: \00"
@.str.4 = [55 x i8] c"\0AEnter xrotation and yrotation, separated by spaces: \00"
define i32 @find_conv_const(double* nocapture writeonly %0, double* nocapture writeonly %1, double* nocapture writeonly %2, double* nocapture writeonly %3, double* nocapture writeonly %4, double* nocapture writeonly %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca [1000 x i8]
%14 = bitcast double* %7 to i8*
%15 = bitcast double* %8 to i8*
%16 = bitcast double* %9 to i8*
%17 = bitcast double* %10 to i8*
%18 = bitcast double* %11 to i8*
%19 = bitcast double* %12 to i8*
%20 = getelementptr inbounds [1000 x i8], [1000 x i8]* %13, i64 0, i64 0
store double 0.000000e+00, double* %8
store double 0.000000e+00, double* %7
store double 1.000000e+00, double* %10
store double 1.000000e+00, double* %9
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %11
%21 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%22 = load i32, i32* @stdin
%23 = call i32 @fgets(i8* %20, i32 1000, i32 %22)
%24 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %7, double* %8)
%25 = icmp eq i32 %24, 2
br i1 %25, label %33, label %26
26: ; preds = %6, %26
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%29 = load i32, i32* @stdin
%30 = call i32 @fgets(i8* %20, i32 1000, i32 %29)
%31 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %7, double* %8)
%32 = icmp eq i32 %31, 2
br i1 %32, label %33, label %26
33: ; preds = %26, %6
%34 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0))
%35 = load i32, i32* @stdin
%36 = call i32 @fgets(i8* %20, i32 1000, i32 %35)
%37 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %9, double* %10)
%38 = icmp eq i32 %37, 2
br i1 %38, label %46, label %39
39: ; preds = %33, %39
%40 = load i32, i32* @stderr
%41 = call i32 @fprintf(i32 %40, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%42 = load i32, i32* @stdin
%43 = call i32 @fgets(i8* %20, i32 1000, i32 %42)
%44 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %9, double* %10)
%45 = icmp eq i32 %44, 2
br i1 %45, label %46, label %39
46: ; preds = %39, %33
%47 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%48 = load i32, i32* @stdin
%49 = call i32 @fgets(i8* %20, i32 1000, i32 %48)
%50 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %11, double* %12)
%51 = icmp eq i32 %50, 2
br i1 %51, label %59, label %52
52: ; preds = %46, %52
%53 = load i32, i32* @stderr
%54 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.2, i64 0, i64 0))
%55 = load i32, i32* @stdin
%56 = call i32 @fgets(i8* %20, i32 1000, i32 %55)
%57 = call i32 @sscanf(i8* %20, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), double* %11, double* %12)
%58 = icmp eq i32 %57, 2
br i1 %58, label %59, label %52
59: ; preds = %52, %46
%60 = load double, double* %7
store double %60, double* %0
%61 = load double, double* %9
%62 = load double, double* %11
%63 = fmul double %62, 0x400921FB54442D18
%64 = fdiv double %63, 1.800000e+02
%65 = call double @cos(double %64)
%66 = fmul double %61, %65
store double %66, double* %1
%67 = load double, double* %10
%68 = load double, double* %12
%69 = fmul double %68, 0x400921FB54442D18
%70 = fdiv double %69, 1.800000e+02
%71 = call double @sin(double %70)
%72 = fmul double %67, %71
store double %72, double* %2
%73 = load double, double* %8
store double %73, double* %3
%74 = load double, double* %9
%75 = fneg double %74
%76 = load double, double* %11
%77 = fmul double %76, 0x400921FB54442D18
%78 = fdiv double %77, 1.800000e+02
%79 = call double @sin(double %78)
%80 = fmul double %79, %75
store double %80, double* %4
%81 = load double, double* %10
%82 = load double, double* %12
%83 = fmul double %82, 0x400921FB54442D18
%84 = fdiv double %83, 1.800000e+02
%85 = call double @cos(double %84)
%86 = fmul double %81, %85
store double %86, double* %5
ret i32 0
}