#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ pos2dmm(long, long, short *, double *, short *, double *);
int /*<<< orphan*/ stderr;
int test_pos2dmm(void) {
  long latitude;
  long longitude;
  short lat_dd;
  double lat_min;
  short long_ddd;
  double long_min;
  latitude = 38049766;
  longitude = 6247336;
  pos2dmm(latitude, longitude, &lat_dd, &lat_min, &long_ddd, &long_min);
  if ((lat_dd != 63) || (lat_min != 24.976600000000001) || (long_ddd != 10) ||
      (long_min != 24.733599999999999)) {
    fprintf(stderr, "test_pos2dmm() 1: failed\n");
    return 0;
  }
  latitude = 25482612;
  longitude = -42812108;
  pos2dmm(latitude, longitude, &lat_dd, &lat_min, &long_ddd, &long_min);
  if ((lat_dd != 42) || (lat_min != 28.261199999999999) || (long_ddd != -71) ||
      (long_min != 21.210799999999999)) {
    fprintf(stderr, "test_pos2dmm() 2: failed\n");
    return 0;
  }
  latitude = -25200570;
  longitude = 87956591;
  pos2dmm(latitude, longitude, &lat_dd, &lat_min, &long_ddd, &long_min);
  if ((lat_dd != -42) || (lat_min != 0.057000000000000002) ||
      (long_ddd != 146) || (long_min != 35.659100000000002)) {
    fprintf(stderr, "test_pos2dmm() 3: failed\n");
    return 0;
  }
  latitude = -10600977;
  longitude = -37666599;
  pos2dmm(latitude, longitude, &lat_dd, &lat_min, &long_ddd, &long_min);
  if ((lat_dd != -17) || (lat_min != 40.097700000000003) || (long_ddd != -62) ||
      (long_min != 46.6599)) {
    fprintf(stderr, "test_pos2dmm() 4: failed\n");
    return 0;
  }
  latitude = 0;
  longitude = 0;
  pos2dmm(latitude, longitude, &lat_dd, &lat_min, &long_ddd, &long_min);
  if ((lat_dd != 0) || (lat_min != 0) || (long_ddd != 0) || (long_min != 0)) {
    fprintf(stderr, "test_pos2ddd() 5: failed\n");
    return 0;
  }
  fprintf(stderr, "test_pos2ddd() Passed\n");
  return 1;
}


x86 assembly (clang, -O0):
<test_pos2dmm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movq   $0x24497e6,-0x10(%rbp)
02
movq   $0x5f53a8,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1a(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x2a(%rbp),%r8
lea    -0x38(%rbp),%r9
call   1040 <pos2dmm@plt>
movswl -0x1a(%rbp),%eax
cmp    $0x3f,%eax
jne    11ae <test_pos2dmm+0x8e>
movsd  -0x28(%rbp),%xmm0
movsd  0xe91(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11ae <test_pos2dmm+0x8e>
jp     11ae <test_pos2dmm+0x8e>
movswl -0x2a(%rbp),%eax
cmp    $0xa,%eax
jne    11ae <test_pos2dmm+0x8e>
movsd  -0x38(%rbp),%xmm0
movsd  0xe6f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11ae <test_pos2dmm+0x8e>
jp     11ae <test_pos2dmm+0x8e>
jmp    11cf <test_pos2dmm+0xaf>
mov    0x2e2b(%rip),%rax
mov    (%rax),%edi
lea    0xe82(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    147f <test_pos2dmm+0x35f>
movq   $0x184d574,-0x10(%rbp)
01
movq   $0xfffffffffd72bd34,-0x18(%rbp)
fd
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1a(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x2a(%rbp),%r8
lea    -0x38(%rbp),%r9
call   1040 <pos2dmm@plt>
movswl -0x1a(%rbp),%eax
cmp    $0x2a,%eax
jne    1255 <test_pos2dmm+0x135>
movsd  -0x28(%rbp),%xmm0
movsd  0xdfa(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1255 <test_pos2dmm+0x135>
jp     1255 <test_pos2dmm+0x135>
movswl -0x2a(%rbp),%eax
cmp    $0xffffffb9,%eax
jne    1255 <test_pos2dmm+0x135>
movsd  -0x38(%rbp),%xmm0
movsd  0xdd8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    1255 <test_pos2dmm+0x135>
jp     1255 <test_pos2dmm+0x135>
jmp    1276 <test_pos2dmm+0x156>
mov    0x2d84(%rip),%rax
mov    (%rax),%edi
lea    0xdf5(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    147f <test_pos2dmm+0x35f>
movq   $0xfffffffffe7f7846,-0x10(%rbp)
fe
movq   $0x53e1c6f,-0x18(%rbp)
05
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1a(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x2a(%rbp),%r8
lea    -0x38(%rbp),%r9
call   1040 <pos2dmm@plt>
movswl -0x1a(%rbp),%eax
cmp    $0xffffffd6,%eax
jne    12fe <test_pos2dmm+0x1de>
movsd  -0x28(%rbp),%xmm0
movsd  0xd63(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    12fe <test_pos2dmm+0x1de>
jp     12fe <test_pos2dmm+0x1de>
movswl -0x2a(%rbp),%eax
cmp    $0x92,%eax
jne    12fe <test_pos2dmm+0x1de>
movsd  -0x38(%rbp),%xmm0
movsd  0xd3f(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    12fe <test_pos2dmm+0x1de>
jp     12fe <test_pos2dmm+0x1de>
jmp    131f <test_pos2dmm+0x1ff>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
lea    0xd66(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    147f <test_pos2dmm+0x35f>
movq   $0xffffffffff5e3def,-0x10(%rbp)
ff
movq   $0xfffffffffdc140d9,-0x18(%rbp)
fd
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1a(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x2a(%rbp),%r8
lea    -0x38(%rbp),%r9
call   1040 <pos2dmm@plt>
movswl -0x1a(%rbp),%eax
cmp    $0xffffffef,%eax
jne    13a5 <test_pos2dmm+0x285>
movsd  -0x28(%rbp),%xmm0
movsd  0xcca(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    13a5 <test_pos2dmm+0x285>
jp     13a5 <test_pos2dmm+0x285>
movswl -0x2a(%rbp),%eax
cmp    $0xffffffc2,%eax
jne    13a5 <test_pos2dmm+0x285>
movsd  -0x38(%rbp),%xmm0
movsd  0xca8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    13a5 <test_pos2dmm+0x285>
jp     13a5 <test_pos2dmm+0x285>
jmp    13c6 <test_pos2dmm+0x2a6>
mov    0x2c34(%rip),%rax
mov    (%rax),%edi
lea    0xcd9(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    147f <test_pos2dmm+0x35f>
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
lea    -0x1a(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x2a(%rbp),%r8
lea    -0x38(%rbp),%r9
call   1040 <pos2dmm@plt>
movswl -0x1a(%rbp),%eax
cmp    $0x0,%eax
jne    1442 <test_pos2dmm+0x322>
movsd  -0x28(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1442 <test_pos2dmm+0x322>
jp     1442 <test_pos2dmm+0x322>
movswl -0x2a(%rbp),%eax
cmp    $0x0,%eax
jne    1442 <test_pos2dmm+0x322>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1442 <test_pos2dmm+0x322>
jp     1442 <test_pos2dmm+0x322>
jmp    1463 <test_pos2dmm+0x343>
mov    0x2b97(%rip),%rax
mov    (%rax),%edi
lea    0xc56(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    147f <test_pos2dmm+0x35f>
mov    0x2b76(%rip),%rax
mov    (%rax),%edi
lea    0xc4f(%rip),%rsi
call   1030 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_pos2dmm>:
push   %rbx
sub    $0x20,%rsp
lea    0xe(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
mov    $0x24497e6,%edi
mov    $0x5f53a8,%esi
call   1040 <pos2dmm@plt>
cmpw   $0x3f,0xe(%rsp)
jne    1368 <test_pos2dmm+0x248>
movsd  0x18(%rsp),%xmm0
ucomisd 0xe9e(%rip),%xmm0
jne    1368 <test_pos2dmm+0x248>
jp     1368 <test_pos2dmm+0x248>
cmpw   $0xa,0xc(%rsp)
jne    1368 <test_pos2dmm+0x248>
movsd  0x10(%rsp),%xmm0
ucomisd 0xe80(%rip),%xmm0
jne    1368 <test_pos2dmm+0x248>
jp     1368 <test_pos2dmm+0x248>
lea    0xe(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
mov    $0x184d574,%edi
mov    $0xfffffffffd72bd34,%rsi
call   1040 <pos2dmm@plt>
cmpw   $0x2a,0xe(%rsp)
jne    137a <test_pos2dmm+0x25a>
movsd  0x18(%rsp),%xmm0
ucomisd 0xe3d(%rip),%xmm0
jne    137a <test_pos2dmm+0x25a>
jp     137a <test_pos2dmm+0x25a>
cmpw   $0xffb9,0xc(%rsp)
jne    137a <test_pos2dmm+0x25a>
movsd  0x10(%rsp),%xmm0
ucomisd 0xe1f(%rip),%xmm0
jne    137a <test_pos2dmm+0x25a>
jp     137a <test_pos2dmm+0x25a>
lea    0xe(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
mov    $0x53e1c6f,%esi
mov    $0xfffffffffe7f7846,%rdi
call   1040 <pos2dmm@plt>
cmpw   $0xffd6,0xe(%rsp)
jne    138c <test_pos2dmm+0x26c>
movsd  0x18(%rsp),%xmm0
ucomisd 0xddc(%rip),%xmm0
jne    138c <test_pos2dmm+0x26c>
jp     138c <test_pos2dmm+0x26c>
movzwl 0xc(%rsp),%eax
cmp    $0x92,%eax
jne    138c <test_pos2dmm+0x26c>
movsd  0x10(%rsp),%xmm0
ucomisd 0xdba(%rip),%xmm0
jne    138c <test_pos2dmm+0x26c>
jp     138c <test_pos2dmm+0x26c>
lea    0xe(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
mov    $0xffffffffff5e3def,%rdi
mov    $0xfffffffffdc140d9,%rsi
call   1040 <pos2dmm@plt>
cmpw   $0xffef,0xe(%rsp)
jne    139e <test_pos2dmm+0x27e>
movsd  0x18(%rsp),%xmm0
ucomisd 0xd75(%rip),%xmm0
jne    139e <test_pos2dmm+0x27e>
jp     139e <test_pos2dmm+0x27e>
cmpw   $0xffc2,0xc(%rsp)
jne    139e <test_pos2dmm+0x27e>
movsd  0x10(%rsp),%xmm0
ucomisd 0xd57(%rip),%xmm0
jne    139e <test_pos2dmm+0x27e>
jp     139e <test_pos2dmm+0x27e>
xor    %ebx,%ebx
lea    0xe(%rsp),%rdx
lea    0x18(%rsp),%rcx
lea    0xc(%rsp),%r8
lea    0x10(%rsp),%r9
xor    %edi,%edi
xor    %esi,%esi
call   1040 <pos2dmm@plt>
cmpw   $0x0,0xe(%rsp)
mov    0x2cc7(%rip),%rax
mov    (%rax),%edi
jne    13bd <test_pos2dmm+0x29d>
movsd  0x18(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13bd <test_pos2dmm+0x29d>
jp     13bd <test_pos2dmm+0x29d>
cmpw   $0x0,0xc(%rsp)
jne    13bd <test_pos2dmm+0x29d>
movsd  0x10(%rsp),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    13bd <test_pos2dmm+0x29d>
jp     13bd <test_pos2dmm+0x29d>
lea    0xd66(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%ebx
jmp    13b5 <test_pos2dmm+0x295>
mov    0x2c71(%rip),%rax
mov    (%rax),%edi
lea    0xcc8(%rip),%rsi
jmp    13ae <test_pos2dmm+0x28e>
mov    0x2c5f(%rip),%rax
mov    (%rax),%edi
lea    0xcd0(%rip),%rsi
jmp    13ae <test_pos2dmm+0x28e>
mov    0x2c4d(%rip),%rax
mov    (%rax),%edi
lea    0xcd8(%rip),%rsi
jmp    13ae <test_pos2dmm+0x28e>
mov    0x2c3b(%rip),%rax
mov    (%rax),%edi
lea    0xce0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %ebx,%ebx
mov    %ebx,%eax
add    $0x20,%rsp
pop    %rbx
ret
lea    0xce4(%rip),%rsi
call   1030 <fprintf@plt>
jmp    13b5 <test_pos2dmm+0x295>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [26 x i8] c"test_pos2dmm() 1: failed\0A\00"
@.str.1 = [26 x i8] c"test_pos2dmm() 2: failed\0A\00"
@.str.2 = [26 x i8] c"test_pos2dmm() 3: failed\0A\00"
@.str.3 = [26 x i8] c"test_pos2dmm() 4: failed\0A\00"
@.str.4 = [26 x i8] c"test_pos2ddd() 5: failed\0A\00"
@.str.5 = [23 x i8] c"test_pos2ddd() Passed\0A\00"
define i32 @test_pos2dmm() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i64
%4 = alloca i16
%5 = alloca double
%6 = alloca i16
%7 = alloca double
store i64 38049766, i64* %2
store i64 6247336, i64* %3
%8 = load i64, i64* %2
%9 = load i64, i64* %3
%10 = call i32 @pos2dmm(i64 %8, i64 %9, i16* %4, double* %5, i16* %6, double* %7)
%11 = load i16, i16* %4
%12 = sext i16 %11 to i32
%13 = icmp ne i32 %12, 63
br i1 %13, label %24, label %14
14: ; preds = %0
%15 = load double, double* %5
%16 = fcmp une double %15, 2.497660e+01
br i1 %16, label %24, label %17
17: ; preds = %14
%18 = load i16, i16* %6
%19 = sext i16 %18 to i32
%20 = icmp ne i32 %19, 10
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = load double, double* %7
%23 = fcmp une double %22, 2.473360e+01
br i1 %23, label %24, label %27
24: ; preds = %21, %17, %14, %0
%25 = load i32, i32* @stderr
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %110
27: ; preds = %21
store i64 25482612, i64* %2
store i64 -42812108, i64* %3
%28 = load i64, i64* %2
%29 = load i64, i64* %3
%30 = call i32 @pos2dmm(i64 %28, i64 %29, i16* %4, double* %5, i16* %6, double* %7)
%31 = load i16, i16* %4
%32 = sext i16 %31 to i32
%33 = icmp ne i32 %32, 42
br i1 %33, label %44, label %34
34: ; preds = %27
%35 = load double, double* %5
%36 = fcmp une double %35, 2.826120e+01
br i1 %36, label %44, label %37
37: ; preds = %34
%38 = load i16, i16* %6
%39 = sext i16 %38 to i32
%40 = icmp ne i32 %39, -71
br i1 %40, label %44, label %41
41: ; preds = %37
%42 = load double, double* %7
%43 = fcmp une double %42, 2.121080e+01
br i1 %43, label %44, label %47
44: ; preds = %41, %37, %34, %27
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %110
47: ; preds = %41
store i64 -25200570, i64* %2
store i64 87956591, i64* %3
%48 = load i64, i64* %2
%49 = load i64, i64* %3
%50 = call i32 @pos2dmm(i64 %48, i64 %49, i16* %4, double* %5, i16* %6, double* %7)
%51 = load i16, i16* %4
%52 = sext i16 %51 to i32
%53 = icmp ne i32 %52, -42
br i1 %53, label %64, label %54
54: ; preds = %47
%55 = load double, double* %5
%56 = fcmp une double %55, 5.700000e-02
br i1 %56, label %64, label %57
57: ; preds = %54
%58 = load i16, i16* %6
%59 = sext i16 %58 to i32
%60 = icmp ne i32 %59, 146
br i1 %60, label %64, label %61
61: ; preds = %57
%62 = load double, double* %7
%63 = fcmp une double %62, 3.565910e+01
br i1 %63, label %64, label %67
64: ; preds = %61, %57, %54, %47
%65 = load i32, i32* @stderr
%66 = call i32 @fprintf(i32 %65, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %1
br label %110
67: ; preds = %61
store i64 -10600977, i64* %2
store i64 -37666599, i64* %3
%68 = load i64, i64* %2
%69 = load i64, i64* %3
%70 = call i32 @pos2dmm(i64 %68, i64 %69, i16* %4, double* %5, i16* %6, double* %7)
%71 = load i16, i16* %4
%72 = sext i16 %71 to i32
%73 = icmp ne i32 %72, -17
br i1 %73, label %84, label %74
74: ; preds = %67
%75 = load double, double* %5
%76 = fcmp une double %75, 4.009770e+01
br i1 %76, label %84, label %77
77: ; preds = %74
%78 = load i16, i16* %6
%79 = sext i16 %78 to i32
%80 = icmp ne i32 %79, -62
br i1 %80, label %84, label %81
81: ; preds = %77
%82 = load double, double* %7
%83 = fcmp une double %82, 4.665990e+01
br i1 %83, label %84, label %87
84: ; preds = %81, %77, %74, %67
%85 = load i32, i32* @stderr
%86 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %1
br label %110
87: ; preds = %81
store i64 0, i64* %2
store i64 0, i64* %3
%88 = load i64, i64* %2
%89 = load i64, i64* %3
%90 = call i32 @pos2dmm(i64 %88, i64 %89, i16* %4, double* %5, i16* %6, double* %7)
%91 = load i16, i16* %4
%92 = sext i16 %91 to i32
%93 = icmp ne i32 %92, 0
br i1 %93, label %104, label %94
94: ; preds = %87
%95 = load double, double* %5
%96 = fcmp une double %95, 0.000000e+00
br i1 %96, label %104, label %97
97: ; preds = %94
%98 = load i16, i16* %6
%99 = sext i16 %98 to i32
%100 = icmp ne i32 %99, 0
br i1 %100, label %104, label %101
101: ; preds = %97
%102 = load double, double* %7
%103 = fcmp une double %102, 0.000000e+00
br i1 %103, label %104, label %107
104: ; preds = %101, %97, %94, %87
%105 = load i32, i32* @stderr
%106 = call i32 @fprintf(i32 %105, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %1
br label %110
107: ; preds = %101
%108 = load i32, i32* @stderr
%109 = call i32 @fprintf(i32 %108, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %1
br label %110
110: ; preds = %107, %104, %84, %64, %44, %24
%111 = load i32, i32* %1
ret i32 %111
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [26 x i8] c"test_pos2dmm() 1: failed\0A\00"
@.str.1 = [26 x i8] c"test_pos2dmm() 2: failed\0A\00"
@.str.2 = [26 x i8] c"test_pos2dmm() 3: failed\0A\00"
@.str.3 = [26 x i8] c"test_pos2dmm() 4: failed\0A\00"
@.str.4 = [26 x i8] c"test_pos2ddd() 5: failed\0A\00"
@.str.5 = [23 x i8] c"test_pos2ddd() Passed\0A\00"
define i32 @test_pos2dmm() {
%1 = alloca i16
%2 = alloca double
%3 = alloca i16
%4 = alloca double
%5 = bitcast i16* %1 to i8*
%6 = bitcast double* %2 to i8*
%7 = bitcast i16* %3 to i8*
%8 = bitcast double* %4 to i8*
%9 = call i32 @pos2dmm(i64 38049766, i64 6247336, i16* %1, double* %2, i16* %3, double* %4)
%10 = load i16, i16* %1
%11 = icmp ne i16 %10, 63
%12 = load double, double* %2
%13 = fcmp une double %12, 2.497660e+01
%14 = select i1 %11, i1 true, i1 %13
%15 = load i16, i16* %3
%16 = icmp ne i16 %15, 10
%17 = select i1 %14, i1 true, i1 %16
%18 = load double, double* %4
%19 = fcmp une double %18, 2.473360e+01
%20 = select i1 %17, i1 true, i1 %19
br i1 %20, label %21, label %24
21: ; preds = %0
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0))
br label %90
24: ; preds = %0
%25 = call i32 @pos2dmm(i64 25482612, i64 -42812108, i16* %1, double* %2, i16* %3, double* %4)
%26 = load i16, i16* %1
%27 = icmp ne i16 %26, 42
%28 = load double, double* %2
%29 = fcmp une double %28, 2.826120e+01
%30 = select i1 %27, i1 true, i1 %29
%31 = load i16, i16* %3
%32 = icmp ne i16 %31, -71
%33 = select i1 %30, i1 true, i1 %32
%34 = load double, double* %4
%35 = fcmp une double %34, 2.121080e+01
%36 = select i1 %33, i1 true, i1 %35
br i1 %36, label %37, label %40
37: ; preds = %24
%38 = load i32, i32* @stderr
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
br label %90
40: ; preds = %24
%41 = call i32 @pos2dmm(i64 -25200570, i64 87956591, i16* %1, double* %2, i16* %3, double* %4)
%42 = load i16, i16* %1
%43 = icmp ne i16 %42, -42
%44 = load double, double* %2
%45 = fcmp une double %44, 5.700000e-02
%46 = select i1 %43, i1 true, i1 %45
%47 = load i16, i16* %3
%48 = icmp ne i16 %47, 146
%49 = select i1 %46, i1 true, i1 %48
%50 = load double, double* %4
%51 = fcmp une double %50, 3.565910e+01
%52 = select i1 %49, i1 true, i1 %51
br i1 %52, label %53, label %56
53: ; preds = %40
%54 = load i32, i32* @stderr
%55 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %90
56: ; preds = %40
%57 = call i32 @pos2dmm(i64 -10600977, i64 -37666599, i16* %1, double* %2, i16* %3, double* %4)
%58 = load i16, i16* %1
%59 = icmp ne i16 %58, -17
%60 = load double, double* %2
%61 = fcmp une double %60, 4.009770e+01
%62 = select i1 %59, i1 true, i1 %61
%63 = load i16, i16* %3
%64 = icmp ne i16 %63, -62
%65 = select i1 %62, i1 true, i1 %64
%66 = load double, double* %4
%67 = fcmp une double %66, 4.665990e+01
%68 = select i1 %65, i1 true, i1 %67
br i1 %68, label %69, label %72
69: ; preds = %56
%70 = load i32, i32* @stderr
%71 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %90
72: ; preds = %56
%73 = call i32 @pos2dmm(i64 0, i64 0, i16* %1, double* %2, i16* %3, double* %4)
%74 = load i16, i16* %1
%75 = icmp ne i16 %74, 0
%76 = load double, double* %2
%77 = fcmp une double %76, 0.000000e+00
%78 = select i1 %75, i1 true, i1 %77
%79 = load i16, i16* %3
%80 = icmp ne i16 %79, 0
%81 = select i1 %78, i1 true, i1 %80
%82 = load double, double* %4
%83 = fcmp une double %82, 0.000000e+00
%84 = select i1 %81, i1 true, i1 %83
%85 = load i32, i32* @stderr
br i1 %84, label %86, label %88
86: ; preds = %72
%87 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.4, i64 0, i64 0))
br label %90
88: ; preds = %72
%89 = call i32 @fprintf(i32 %85, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0))
br label %90
90: ; preds = %88, %86, %69, %53, %37, %21
%91 = phi i32 [ 0, %21 ], [ 0, %37 ], [ 0, %53 ], [ 0, %69 ], [ 0, %86 ], [ 1, %88 ]
ret i32 %91
}