#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 */
struct lconv {
  char *decimal_point;
};

/* Variables and functions */
scalar_t__ ERANGE;
scalar_t__ errno;
int /*<<< orphan*/ ffpmsg(char *);
struct lconv *localeconv();
char *strchr(char const *, char);
int /*<<< orphan*/ strcpy(char *, char const *);
int strlen(char const *);
int /*<<< orphan*/ strncat(char *, char const *, int);
scalar_t__ strtod(char const *, char **);
int ffc2rr(const char *cval, float *fval, int *status) {
  char *loc, msg[81], tval[73];
  struct lconv *lcc = 0;
  static char decimalpt = 0;
  short *sptr, iret;
  if (*status > 0)
    return (*status);
  if (!decimalpt) {
    lcc = localeconv();
    decimalpt = *(lcc->decimal_point);
  }
  errno = 0;
  *fval = 0.;
  if (strchr(cval, 'D') || decimalpt == ',') {
    if (strlen(cval) > 72) {
      strcpy(msg, "Error: Invalid string to float in ffc2rr");
      ffpmsg(msg);
      return (*status = 408);
    }
    strcpy(tval, cval);
    if ((loc = strchr(tval, 'D')))
      *loc = 'E';
    if (decimalpt == ',') {
      if ((loc = strchr(tval, '.')))
        *loc = ',';
    }
    *fval = (float)strtod(tval, &loc);
  } else {
    *fval = (float)strtod(cval, &loc);
  }
  if (*loc != '\0' && *loc != ' ') {
    strcpy(msg, "Error in ffc2rr converting string to float: ");
    strncat(msg, cval, 30);
    ffpmsg(msg);
    *status = 408;
  }
  sptr = (short *)fval;
  sptr++;
  iret = ((*sptr & 0x7F80) == 0x7F80 ? 1 : (*sptr & 0x7F80) == 0 ? 2 : 0);
  if (errno == ERANGE || (iret == 1)) {
    strcpy(msg, "Error in ffc2rr converting string to float: ");
    strncat(msg, cval, 30);
    ffpmsg(msg);
    *fval = 0.;
    *status = 412;
    errno = 0;
  }
  return (*status);
}


x86 assembly (clang, -O0):
<ffc2rr>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
movq   $0x0,-0xd8(%rbp)
mov    -0x20(%rbp),%rax
cmpl   $0x0,(%rax)
jle    11ad <ffc2rr+0x3d>
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1456 <ffc2rr+0x2e6>
cmpb   $0x0,0x2eac(%rip)
jne    11da <ffc2rr+0x6a>
mov    $0x0,%al
call   1050 <localeconv@plt>
mov    %rax,-0xd8(%rbp)
mov    -0xd8(%rbp),%rax
mov    (%rax),%rax
mov    (%rax),%al
mov    %al,0x2e86(%rip)
mov    0x2df7(%rip),%rax
movq   $0x0,(%rax)
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
mov    -0x10(%rbp),%rdi
mov    $0x44,%esi
call   1080 <strchr@plt>
cmp    $0x0,%rax
jne    121b <ffc2rr+0xab>
movsbl 0x2e4e(%rip),%eax
cmp    $0x2c,%eax
jne    12ef <ffc2rr+0x17f>
mov    -0x10(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x48,%eax
jle    125c <ffc2rr+0xec>
lea    -0x80(%rbp),%rdi
lea    0xdc8(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x80(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    -0x20(%rbp),%rax
movl   $0x198,(%rax)
movl   $0x198,-0x4(%rbp)
jmp    1456 <ffc2rr+0x2e6>
lea    -0xd0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0xd0(%rbp),%rdi
mov    $0x44,%esi
call   1080 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     1292 <ffc2rr+0x122>
mov    -0x28(%rbp),%rax
movb   $0x45,(%rax)
movsbl 0x2dc7(%rip),%eax
cmp    $0x2c,%eax
jne    12cd <ffc2rr+0x15d>
lea    -0xd0(%rbp),%rdi
mov    $0x2e,%esi
call   1080 <strchr@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
je     12c8 <ffc2rr+0x158>
mov    -0x28(%rbp),%rax
movb   $0x2c,(%rax)
jmp    12cd <ffc2rr+0x15d>
lea    -0xd0(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <strtod@plt>
cvtsi2ss %rax,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
jmp    1309 <ffc2rr+0x199>
mov    -0x10(%rbp),%rdi
lea    -0x28(%rbp),%rsi
call   1040 <strtod@plt>
cvtsi2ss %rax,%xmm0
mov    -0x18(%rbp),%rax
movss  %xmm0,(%rax)
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     135e <ffc2rr+0x1ee>
mov    -0x28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
je     135e <ffc2rr+0x1ee>
lea    -0x80(%rbp),%rdi
lea    0xcf5(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1e,%edx
call   1090 <strncat@plt>
lea    -0x80(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    -0x20(%rbp),%rax
movl   $0x198,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0xe0(%rbp)
mov    -0xe0(%rbp),%rax
movswl (%rax),%eax
and    $0x7f80,%eax
cmp    $0x7f80,%eax
jne    13a5 <ffc2rr+0x235>
mov    $0x1,%eax
mov    %eax,-0xe8(%rbp)
jmp    13c8 <ffc2rr+0x258>
mov    -0xe0(%rbp),%rax
movswl (%rax),%edx
and    $0x7f80,%edx
xor    %eax,%eax
mov    $0x2,%ecx
cmp    $0x0,%edx
cmove  %ecx,%eax
mov    %eax,-0xe8(%rbp)
mov    -0xe8(%rbp),%eax
mov    %ax,-0xe2(%rbp)
mov    0x2bfc(%rip),%rax
mov    (%rax),%rax
mov    0x2c02(%rip),%rcx
cmp    (%rcx),%rax
je     13ff <ffc2rr+0x28f>
movswl -0xe2(%rbp),%eax
cmp    $0x1,%eax
jne    144d <ffc2rr+0x2dd>
lea    -0x80(%rbp),%rdi
lea    0xc1f(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x1e,%edx
call   1090 <strncat@plt>
lea    -0x80(%rbp),%rdi
call   1070 <ffpmsg@plt>
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movss  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0x19c,(%rax)
mov    0x2b92(%rip),%rax
movq   $0x0,(%rax)
mov    -0x20(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffc2rr>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%rsp
mov    (%rdx),%eax
test   %eax,%eax
jle    1199 <ffc2rr+0x29>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rdx,%rbp
mov    %rsi,%r14
mov    %rdi,%r15
mov    0x2eb8(%rip),%bl
test   %bl,%bl
jne    11be <ffc2rr+0x4e>
xor    %eax,%eax
call   1050 <localeconv@plt>
mov    (%rax),%rax
mov    (%rax),%bl
mov    %bl,0x2ea2(%rip)
mov    0x2e13(%rip),%r13
movq   $0x0,0x0(%r13)
movl   $0x0,(%r14)
mov    %r15,%rdi
mov    $0x44,%esi
call   1080 <strchr@plt>
test   %rax,%rax
jne    11f8 <ffc2rr+0x88>
cmp    $0x2c,%bl
je     11f8 <ffc2rr+0x88>
lea    0x8(%rsp),%rsi
mov    %r15,%rdi
jmp    128b <ffc2rr+0x11b>
mov    %r15,%rdi
call   1060 <strlen@plt>
cmp    $0x49,%eax
jl     1232 <ffc2rr+0xc2>
lea    0xdf4(%rip),%rsi
lea    0x60(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    %r14,%rdi
call   1070 <ffpmsg@plt>
movl   $0x198,0x0(%rbp)
mov    $0x198,%eax
jmp    1187 <ffc2rr+0x17>
lea    0x10(%rsp),%r12
mov    %r12,%rdi
mov    %r15,%rsi
call   1030 <strcpy@plt>
mov    %r12,%rdi
mov    $0x44,%esi
call   1080 <strchr@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     125c <ffc2rr+0xec>
movb   $0x45,(%rax)
cmpb   $0x2c,0x2dfd(%rip)
jne    1281 <ffc2rr+0x111>
lea    0x10(%rsp),%rdi
mov    $0x2e,%esi
call   1080 <strchr@plt>
mov    %rax,0x8(%rsp)
test   %rax,%rax
je     1281 <ffc2rr+0x111>
movb   $0x2c,(%rax)
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rsi
call   1040 <strtod@plt>
cvtsi2ss %rax,%xmm0
movss  %xmm0,(%r14)
mov    0x8(%rsp),%rax
testb  $0xdf,(%rax)
jne    12ad <ffc2rr+0x13d>
movd   %xmm0,%eax
shr    $0x10,%eax
jmp    12e5 <ffc2rr+0x175>
lea    0xd75(%rip),%rsi
lea    0x60(%rsp),%r12
mov    %r12,%rdi
call   1030 <strcpy@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0x1e,%edx
call   1090 <strncat@plt>
mov    %r12,%rdi
call   1070 <ffpmsg@plt>
movl   $0x198,0x0(%rbp)
movzwl 0x2(%r14),%eax
mov    0x0(%r13),%rcx
mov    0x2cf8(%rip),%rdx
cmp    (%rdx),%rcx
je     130c <ffc2rr+0x19c>
and    $0x7f80,%eax
movzwl %ax,%eax
cmp    $0x7f80,%eax
je     130c <ffc2rr+0x19c>
mov    0x0(%rbp),%eax
jmp    1187 <ffc2rr+0x17>
lea    0xd16(%rip),%rsi
lea    0x60(%rsp),%r12
mov    %r12,%rdi
call   1030 <strcpy@plt>
mov    %r12,%rdi
mov    %r15,%rsi
mov    $0x1e,%edx
call   1090 <strncat@plt>
mov    %r12,%rdi
call   1070 <ffpmsg@plt>
movl   $0x0,(%r14)
movl   $0x19c,0x0(%rbp)
movq   $0x0,0x0(%r13)
mov    $0x19c,%eax
jmp    1187 <ffc2rr+0x17>

LLVM IR (-O0):
%struct.lconv = type { i8* }
@ffc2rr.decimalpt = internal global i8 0
@errno = global i64 0
@.str = [41 x i8] c"Error: Invalid string to float in ffc2rr\00"
@.str.1 = [45 x i8] c"Error in ffc2rr converting string to float: \00"
@ERANGE = global i64 0
define i32 @ffc2rr(i8* %0, float* %1, i32* %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca float*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca [81 x i8]
%10 = alloca [73 x i8]
%11 = alloca %struct.lconv*
%12 = alloca i16*
%13 = alloca i16
store i8* %0, i8** %5
store float* %1, float** %6
store i32* %2, i32** %7
store %struct.lconv* null, %struct.lconv** %11
%14 = load i32*, i32** %7
%15 = load i32, i32* %14
%16 = icmp sgt i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %3
%18 = load i32*, i32** %7
%19 = load i32, i32* %18
store i32 %19, i32* %4
br label %139
20: ; preds = %3
%21 = load i8, i8* @ffc2rr.decimalpt
%22 = icmp ne i8 %21, 0
br i1 %22, label %29, label %23
23: ; preds = %20
%24 = call %struct.lconv* (...) @localeconv()
store %struct.lconv* %24, %struct.lconv** %11
%25 = load %struct.lconv*, %struct.lconv** %11
%26 = getelementptr inbounds %struct.lconv, %struct.lconv* %25, i32 0, i32 0
%27 = load i8*, i8** %26
%28 = load i8, i8* %27
store i8 %28, i8* @ffc2rr.decimalpt
br label %29
29: ; preds = %23, %20
store i64 0, i64* @errno
%30 = load float*, float** %6
store float 0.000000e+00, float* %30
%31 = load i8*, i8** %5
%32 = call i8* @strchr(i8* %31, i8 signext 68)
%33 = icmp ne i8* %32, null
br i1 %33, label %38, label %34
34: ; preds = %29
%35 = load i8, i8* @ffc2rr.decimalpt
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 44
br i1 %37, label %38, label %73
38: ; preds = %34, %29
%39 = load i8*, i8** %5
%40 = call i32 @strlen(i8* %39)
%41 = icmp sgt i32 %40, 72
br i1 %41, label %42, label %48
42: ; preds = %38
%43 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%44 = call i32 @strcpy(i8* %43, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%45 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%46 = call i32 @ffpmsg(i8* %45)
%47 = load i32*, i32** %7
store i32 408, i32* %47
store i32 408, i32* %4
br label %139
48: ; preds = %38
%49 = getelementptr inbounds [73 x i8], [73 x i8]* %10, i64 0, i64 0
%50 = load i8*, i8** %5
%51 = call i32 @strcpy(i8* %49, i8* %50)
%52 = getelementptr inbounds [73 x i8], [73 x i8]* %10, i64 0, i64 0
%53 = call i8* @strchr(i8* %52, i8 signext 68)
store i8* %53, i8** %8
%54 = icmp ne i8* %53, null
br i1 %54, label %55, label %57
55: ; preds = %48
%56 = load i8*, i8** %8
store i8 69, i8* %56
br label %57
57: ; preds = %55, %48
%58 = load i8, i8* @ffc2rr.decimalpt
%59 = sext i8 %58 to i32
%60 = icmp eq i32 %59, 44
br i1 %60, label %61, label %68
61: ; preds = %57
%62 = getelementptr inbounds [73 x i8], [73 x i8]* %10, i64 0, i64 0
%63 = call i8* @strchr(i8* %62, i8 signext 46)
store i8* %63, i8** %8
%64 = icmp ne i8* %63, null
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = load i8*, i8** %8
store i8 44, i8* %66
br label %67
67: ; preds = %65, %61
br label %68
68: ; preds = %67, %57
%69 = getelementptr inbounds [73 x i8], [73 x i8]* %10, i64 0, i64 0
%70 = call i64 @strtod(i8* %69, i8** %8)
%71 = sitofp i64 %70 to float
%72 = load float*, float** %6
store float %71, float* %72
br label %78
73: ; preds = %34
%74 = load i8*, i8** %5
%75 = call i64 @strtod(i8* %74, i8** %8)
%76 = sitofp i64 %75 to float
%77 = load float*, float** %6
store float %76, float* %77
br label %78
78: ; preds = %73, %68
%79 = load i8*, i8** %8
%80 = load i8, i8* %79
%81 = sext i8 %80 to i32
%82 = icmp ne i32 %81, 0
br i1 %82, label %83, label %97
83: ; preds = %78
%84 = load i8*, i8** %8
%85 = load i8, i8* %84
%86 = sext i8 %85 to i32
%87 = icmp ne i32 %86, 32
br i1 %87, label %88, label %97
88: ; preds = %83
%89 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%90 = call i32 @strcpy(i8* %89, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%91 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%92 = load i8*, i8** %5
%93 = call i32 @strncat(i8* %91, i8* %92, i32 30)
%94 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%95 = call i32 @ffpmsg(i8* %94)
%96 = load i32*, i32** %7
store i32 408, i32* %96
br label %97
97: ; preds = %88, %83, %78
%98 = load float*, float** %6
%99 = bitcast float* %98 to i16*
store i16* %99, i16** %12
%100 = load i16*, i16** %12
%101 = getelementptr inbounds i16, i16* %100, i32 1
store i16* %101, i16** %12
%102 = load i16*, i16** %12
%103 = load i16, i16* %102
%104 = sext i16 %103 to i32
%105 = and i32 %104, 32640
%106 = icmp eq i32 %105, 32640
br i1 %106, label %107, label %108
107: ; preds = %97
br label %116
108: ; preds = %97
%109 = load i16*, i16** %12
%110 = load i16, i16* %109
%111 = sext i16 %110 to i32
%112 = and i32 %111, 32640
%113 = icmp eq i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i32 2, i32 0
br label %116
116: ; preds = %108, %107
%117 = phi i32 [ 1, %107 ], [ %115, %108 ]
%118 = trunc i32 %117 to i16
store i16 %118, i16* %13
%119 = load i64, i64* @errno
%120 = load i64, i64* @ERANGE
%121 = icmp eq i64 %119, %120
br i1 %121, label %126, label %122
122: ; preds = %116
%123 = load i16, i16* %13
%124 = sext i16 %123 to i32
%125 = icmp eq i32 %124, 1
br i1 %125, label %126, label %136
126: ; preds = %122, %116
%127 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%128 = call i32 @strcpy(i8* %127, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%129 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%130 = load i8*, i8** %5
%131 = call i32 @strncat(i8* %129, i8* %130, i32 30)
%132 = getelementptr inbounds [81 x i8], [81 x i8]* %9, i64 0, i64 0
%133 = call i32 @ffpmsg(i8* %132)
%134 = load float*, float** %6
store float 0.000000e+00, float* %134
%135 = load i32*, i32** %7
store i32 412, i32* %135
store i64 0, i64* @errno
br label %136
136: ; preds = %126, %122
%137 = load i32*, i32** %7
%138 = load i32, i32* %137
store i32 %138, i32* %4
br label %139
139: ; preds = %136, %42, %17
%140 = load i32, i32* %4
ret i32 %140
}

LLVM IR (-O2):
%struct.lconv = type { i8* }
@ffc2rr.decimalpt = internal unnamed_addr global i8 0
@errno = global i64 0
@.str = [41 x i8] c"Error: Invalid string to float in ffc2rr\00"
@.str.1 = [45 x i8] c"Error in ffc2rr converting string to float: \00"
@ERANGE = global i64 0
define i32 @ffc2rr(i8* %0, float* nocapture %1, i32* nocapture %2) {
%4 = alloca i8*
%5 = alloca [81 x i8]
%6 = alloca [73 x i8]
%7 = bitcast i8** %4 to i8*
%8 = getelementptr inbounds [81 x i8], [81 x i8]* %5, i64 0, i64 0
%9 = getelementptr inbounds [73 x i8], [73 x i8]* %6, i64 0, i64 0
%10 = load i32, i32* %2
%11 = icmp sgt i32 %10, 0
br i1 %11, label %77, label %12
12: ; preds = %3
%13 = load i8, i8* @ffc2rr.decimalpt
%14 = icmp eq i8 %13, 0
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = tail call %struct.lconv* (...) @localeconv()
%17 = getelementptr inbounds %struct.lconv, %struct.lconv* %16, i64 0, i32 0
%18 = load i8*, i8** %17
%19 = load i8, i8* %18
store i8 %19, i8* @ffc2rr.decimalpt
br label %20
20: ; preds = %15, %12
%21 = phi i8 [ %19, %15 ], [ %13, %12 ]
store i64 0, i64* @errno
store float 0.000000e+00, float* %1
%22 = tail call i8* @strchr(i8* dereferenceable(1) %0, i8 signext 68)
%23 = icmp ne i8* %22, null
%24 = icmp eq i8 %21, 44
%25 = select i1 %23, i1 true, i1 %24
br i1 %25, label %26, label %46
26: ; preds = %20
%27 = tail call i32 @strlen(i8* %0)
%28 = icmp sgt i32 %27, 72
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str, i64 0, i64 0))
%31 = call i32 @ffpmsg(i8* %8)
store i32 408, i32* %2
br label %77
32: ; preds = %26
%33 = call i32 @strcpy(i8* %9, i8* %0)
%34 = call i8* @strchr(i8* %9, i8 signext 68)
store i8* %34, i8** %4
%35 = icmp eq i8* %34, null
br i1 %35, label %37, label %36
36: ; preds = %32
store i8 69, i8* %34
br label %37
37: ; preds = %36, %32
%38 = load i8, i8* @ffc2rr.decimalpt
%39 = icmp eq i8 %38, 44
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = call i8* @strchr(i8* %9, i8 signext 46)
store i8* %41, i8** %4
%42 = icmp eq i8* %41, null
br i1 %42, label %44, label %43
43: ; preds = %40
store i8 44, i8* %41
br label %44
44: ; preds = %40, %43, %37
%45 = call i64 @strtod(i8* %9, i8** %4)
br label %48
46: ; preds = %20
%47 = call i64 @strtod(i8* %0, i8** %4)
br label %48
48: ; preds = %46, %44
%49 = phi i64 [ %47, %46 ], [ %45, %44 ]
%50 = sitofp i64 %49 to float
store float %50, float* %1
%51 = load i8*, i8** %4
%52 = load i8, i8* %51
%53 = bitcast float %50 to i32
%54 = lshr i32 %53, 16
%55 = trunc i32 %54 to i16
switch i8 %52, label %56 [
i8 0, label %63
i8 32, label %63
]
56: ; preds = %48
%57 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%58 = call i32 @strncat(i8* %8, i8* %0, i32 30)
%59 = call i32 @ffpmsg(i8* %8)
store i32 408, i32* %2
%60 = bitcast float* %1 to i16*
%61 = getelementptr inbounds i16, i16* %60, i64 1
%62 = load i16, i16* %61
br label %63
63: ; preds = %48, %48, %56
%64 = phi i16 [ %55, %48 ], [ %55, %48 ], [ %62, %56 ]
%65 = and i16 %64, 32640
%66 = icmp eq i16 %65, 32640
%67 = load i64, i64* @errno
%68 = load i64, i64* @ERANGE
%69 = icmp eq i64 %67, %68
%70 = select i1 %69, i1 true, i1 %66
br i1 %70, label %73, label %71
71: ; preds = %63
%72 = load i32, i32* %2
br label %77
73: ; preds = %63
%74 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.1, i64 0, i64 0))
%75 = call i32 @strncat(i8* %8, i8* %0, i32 30)
%76 = call i32 @ffpmsg(i8* %8)
store float 0.000000e+00, float* %1
store i32 412, i32* %2
store i64 0, i64* @errno
br label %77
77: ; preds = %73, %71, %3, %29
%78 = phi i32 [ 408, %29 ], [ %10, %3 ], [ %72, %71 ], [ 412, %73 ]
ret i32 %78
}