#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 abs(int);
int fabs(double);
double floor(double);
int /*<<< orphan*/ xasprintf(char **, char *, char, int, char *, ...);
char *pretty_deg_format(double lat, double lon, char fmt, const char *sep,
                        int html) {
  double latmin, lonmin, latsec, lonsec;
  int latint, lonint;
  char latsig, lonsig;
  char *result;
  latsig = lat < 0 ? 'S' : 'N';
  lonsig = lon < 0 ? 'W' : 'E';
  latint = abs((int)lat);
  lonint = abs((int)lon);
  latmin = 60.0 * (fabs(lat) - latint);
  lonmin = 60.0 * (fabs(lon) - lonint);
  latsec = 60.0 * (latmin - floor(latmin));
  lonsec = 60.0 * (lonmin - floor(lonmin));
  if (sep == NULL)
    sep = " ";
  if (fmt == 'd') {
    xasprintf(&result, "%c%6.5f%s%s%c%6.5f%s", latsig, fabs(lat),
              html ? "&deg;" : "", sep, lonsig, fabs(lon), html ? "&deg;" : "");
  } else if (fmt == 's') {
    xasprintf(&result, "%c%d%s%02d'%04.1f\"%s%c%d%s%02d'%04.1f\"", latsig,
              latint, html ? "&deg;" : " ", (int)latmin, latsec, sep, lonsig,
              lonint, html ? "&deg;" : " ", (int)lonmin, lonsec);
  } else {
    xasprintf(&result, "%c%d%s%06.3f%s%c%d%s%06.3f", latsig, latint,
              html ? "&deg;" : " ", latmin, sep, lonsig, lonint,
              html ? "&deg;" : " ", lonmin);
  }
  return result;
}


x86 assembly (clang, -O0):
<pretty_deg_format>:
push   %rbp
mov    %rsp,%rbp
push   %r14
push   %rbx
sub    $0xc0,%rsp
mov    %dil,%al
movsd  %xmm0,-0x18(%rbp)
movsd  %xmm1,-0x20(%rbp)
mov    %al,-0x21(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %edx,-0x34(%rbp)
movsd  -0x18(%rbp),%xmm1
xorps  %xmm0,%xmm0
mov    $0x4e,%eax
mov    $0x53,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
mov    %al,-0x61(%rbp)
movsd  -0x20(%rbp),%xmm1
xorps  %xmm0,%xmm0
mov    $0x45,%eax
mov    $0x57,%ecx
ucomisd %xmm1,%xmm0
cmova  %ecx,%eax
mov    %al,-0x62(%rbp)
cvttsd2si -0x18(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0x5c(%rbp)
cvttsd2si -0x20(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,-0x60(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <fabs@plt>
sub    -0x5c(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xe30(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1040 <fabs@plt>
sub    -0x60(%rbp),%eax
cvtsi2sd %eax,%xmm1
movsd  0xe0e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x40(%rbp),%xmm0
call   1060 <floor@plt>
movsd  -0x80(%rbp),%xmm1
subsd  %xmm0,%xmm1
movsd  0xde0(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
call   1060 <floor@plt>
movsd  -0x78(%rbp),%xmm1
subsd  %xmm0,%xmm1
movsd  0xdb2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    126d <pretty_deg_format+0x12d>
lea    0xd9f(%rip),%rax
mov    %rax,-0x30(%rbp)
movsbl -0x21(%rbp),%eax
cmp    $0x64,%eax
jne    1335 <pretty_deg_format+0x1f5>
mov    -0x61(%rbp),%al
mov    %al,-0x9d(%rbp)
movsd  -0x18(%rbp),%xmm0
call   1040 <fabs@plt>
mov    %eax,-0x9c(%rbp)
mov    -0x34(%rbp),%edx
lea    0xd6c(%rip),%rax
lea    0xd7b(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x98(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x90(%rbp)
movsbl -0x62(%rbp),%eax
mov    %eax,-0x84(%rbp)
movsd  -0x20(%rbp),%xmm0
call   1040 <fabs@plt>
mov    -0x9d(%rbp),%dl
mov    -0x9c(%rbp),%ecx
mov    -0x98(%rbp),%r8
mov    -0x90(%rbp),%r9
mov    -0x84(%rbp),%r11d
mov    %eax,%r10d
mov    -0x34(%rbp),%edi
lea    0xd0a(%rip),%rax
lea    0xd19(%rip),%rsi
cmp    $0x0,%edi
cmovne %rsi,%rax
lea    -0x70(%rbp),%rdi
lea    0xcf2(%rip),%rsi
movsbl %dl,%edx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1050 <xasprintf@plt>
jmp    143e <pretty_deg_format+0x2fe>
movsbl -0x21(%rbp),%eax
cmp    $0x73,%eax
jne    13c9 <pretty_deg_format+0x289>
mov    -0x61(%rbp),%dl
mov    -0x5c(%rbp),%ecx
mov    -0x34(%rbp),%esi
lea    0xcb6(%rip),%r8
lea    0xcc6(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r8
cvttsd2si -0x40(%rbp),%r9d
movsd  -0x50(%rbp),%xmm0
mov    -0x30(%rbp),%r14
movsbl -0x62(%rbp),%ebx
mov    -0x60(%rbp),%r11d
mov    -0x34(%rbp),%esi
lea    0xc87(%rip),%r10
lea    0xc97(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r10
cvttsd2si -0x48(%rbp),%eax
movsd  -0x58(%rbp),%xmm1
lea    -0x70(%rbp),%rdi
lea    0xc81(%rip),%rsi
movsbl %dl,%edx
mov    %r14,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x2,%al
call   1050 <xasprintf@plt>
jmp    1439 <pretty_deg_format+0x2f9>
mov    -0x61(%rbp),%dl
mov    -0x5c(%rbp),%ecx
mov    -0x34(%rbp),%esi
lea    0xc2f(%rip),%r8
lea    0xc3f(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%r8
movsd  -0x40(%rbp),%xmm0
mov    -0x30(%rbp),%r9
movsbl -0x62(%rbp),%r11d
mov    -0x60(%rbp),%r10d
mov    -0x34(%rbp),%edi
lea    0xc05(%rip),%rax
lea    0xc15(%rip),%rsi
cmp    $0x0,%edi
cmovne %rsi,%rax
movsd  -0x48(%rbp),%xmm1
lea    -0x70(%rbp),%rdi
lea    0xc2b(%rip),%rsi
movsbl %dl,%edx
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x2,%al
call   1050 <xasprintf@plt>
jmp    143e <pretty_deg_format+0x2fe>
mov    -0x70(%rbp),%rax
add    $0xc0,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

x86 assembly (clang, -O2):
<pretty_deg_format>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
xorpd  %xmm2,%xmm2
xor    %eax,%eax
ucomisd %xmm0,%xmm2
seta   %al
movsd  %xmm1,0x8(%rsp)
ucomisd %xmm1,%xmm2
mov    $0x57,%ecx
mov    $0x45,%r13d
cmova  %ecx,%r13d
mov    %edx,(%rsp)
mov    %rsi,%r15
mov    %edi,%r12d
cvttsd2si %xmm0,%ecx
mov    %ecx,%ebp
neg    %ebp
cmovs  %ecx,%ebp
cvttsd2si %xmm1,%ecx
lea    (%rax,%rax,4),%eax
add    $0x4e,%eax
mov    %eax,0x4(%rsp)
mov    %ecx,%ebx
neg    %ebx
cmovs  %ecx,%ebx
movsd  %xmm0,0x10(%rsp)
call   1030 <fabs@plt>
sub    %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe57(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm0
call   1030 <fabs@plt>
sub    %ebx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xe35(%rip),%xmm1
test   %r15,%r15
lea    0xe33(%rip),%r14
cmove  %r14,%r15
cmp    $0x73,%r12b
je     124c <pretty_deg_format+0x11c>
cmp    $0x64,%r12b
jne    12ea <pretty_deg_format+0x1ba>
movsd  0x10(%rsp),%xmm0
call   1030 <fabs@plt>
mov    %eax,%r12d
cmpl   $0x0,(%rsp)
lea    0xe07(%rip),%rax
lea    0xe16(%rip),%rbp
cmove  %rax,%rbp
movzbl %r13b,%r14d
movsd  0x8(%rsp),%xmm0
call   1030 <fabs@plt>
mov    %eax,%ebx
sub    $0x8,%rsp
movsbl 0xc(%rsp),%edx
lea    0xddc(%rip),%rsi
lea    0x28(%rsp),%rdi
mov    %r12d,%ecx
mov    %rbp,%r8
mov    %r15,%r9
xor    %eax,%eax
push   %rbp
push   %rbx
push   %r14
call   1040 <xasprintf@plt>
jmp    1329 <pretty_deg_format+0x1f9>
movapd %xmm1,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1050 <floor@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  0xd93(%rip),%xmm0
mulsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
call   1050 <floor@plt>
movsd  0x18(%rsp),%xmm1
cvttsd2si %xmm1,%r9d
subsd  %xmm0,%xmm1
cmpl   $0x0,(%rsp)
lea    0xd83(%rip),%r8
cmove  %r14,%r8
mulsd  0xd58(%rip),%xmm1
movapd %xmm1,%xmm0
movzbl %r13b,%r10d
cvttsd2si 0x8(%rsp),%r11d
sub    $0x8,%rsp
movsbl 0xc(%rsp),%edx
lea    0xd5e(%rip),%rsi
lea    0x28(%rsp),%rdi
mov    %ebp,%ecx
movsd  0x18(%rsp),%xmm1
mov    $0x2,%al
push   %r11
push   %r8
push   %rbx
push   %r10
push   %r15
call   1040 <xasprintf@plt>
add    $0x30,%rsp
jmp    132d <pretty_deg_format+0x1fd>
cmpl   $0x0,(%rsp)
lea    0xd2a(%rip),%r8
cmove  %r14,%r8
movzbl %r13b,%r10d
sub    $0x8,%rsp
movsbl 0xc(%rsp),%edx
lea    0xd3f(%rip),%rsi
lea    0x28(%rsp),%rdi
mov    %ebp,%ecx
movsd  0x20(%rsp),%xmm0
mov    %r15,%r9
mov    $0x2,%al
push   %r8
push   %rbx
push   %r10
call   1040 <xasprintf@plt>
add    $0x20,%rsp
mov    0x20(%rsp),%rax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [21 x i8] c"%c%6.5f%s%s%c%6.5f%s\00"
@.str.2 = [6 x i8] c"&deg;\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [39 x i8] c"%c%d%s%02d'%04.1f\22%s%c%d%s%02d'%04.1f\22\00"
@.str.5 = [27 x i8] c"%c%d%s%06.3f%s%c%d%s%06.3f\00"
define i8* @pretty_deg_format(double %0, double %1, i8 signext %2, i8* %3, i32 %4) {
%6 = alloca double
%7 = alloca double
%8 = alloca i8
%9 = alloca i8*
%10 = alloca i32
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca i32
%16 = alloca i32
%17 = alloca i8
%18 = alloca i8
%19 = alloca i8*
store double %0, double* %6
store double %1, double* %7
store i8 %2, i8* %8
store i8* %3, i8** %9
store i32 %4, i32* %10
%20 = load double, double* %6
%21 = fcmp olt double %20, 0.000000e+00
%22 = zext i1 %21 to i64
%23 = select i1 %21, i32 83, i32 78
%24 = trunc i32 %23 to i8
store i8 %24, i8* %17
%25 = load double, double* %7
%26 = fcmp olt double %25, 0.000000e+00
%27 = zext i1 %26 to i64
%28 = select i1 %26, i32 87, i32 69
%29 = trunc i32 %28 to i8
store i8 %29, i8* %18
%30 = load double, double* %6
%31 = fptosi double %30 to i32
%32 = call i32 @abs(i32 %31)
store i32 %32, i32* %15
%33 = load double, double* %7
%34 = fptosi double %33 to i32
%35 = call i32 @abs(i32 %34)
store i32 %35, i32* %16
%36 = load double, double* %6
%37 = call i32 @fabs(double %36)
%38 = load i32, i32* %15
%39 = sub nsw i32 %37, %38
%40 = sitofp i32 %39 to double
%41 = fmul double 6.000000e+01, %40
store double %41, double* %11
%42 = load double, double* %7
%43 = call i32 @fabs(double %42)
%44 = load i32, i32* %16
%45 = sub nsw i32 %43, %44
%46 = sitofp i32 %45 to double
%47 = fmul double 6.000000e+01, %46
store double %47, double* %12
%48 = load double, double* %11
%49 = load double, double* %11
%50 = call double @llvm.floor.f64(double %49)
%51 = fsub double %48, %50
%52 = fmul double 6.000000e+01, %51
store double %52, double* %13
%53 = load double, double* %12
%54 = load double, double* %12
%55 = call double @llvm.floor.f64(double %54)
%56 = fsub double %53, %55
%57 = fmul double 6.000000e+01, %56
store double %57, double* %14
%58 = load i8*, i8** %9
%59 = icmp eq i8* %58, null
br i1 %59, label %60, label %61
60: ; preds = %5
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %9
br label %61
61: ; preds = %60, %5
%62 = load i8, i8* %8
%63 = sext i8 %62 to i32
%64 = icmp eq i32 %63, 100
br i1 %64, label %65, label %83
65: ; preds = %61
%66 = load i8, i8* %17
%67 = load double, double* %6
%68 = call i32 @fabs(double %67)
%69 = load i32, i32* %10
%70 = icmp ne i32 %69, 0
%71 = zext i1 %70 to i64
%72 = select i1 %70, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%73 = load i8*, i8** %9
%74 = load i8, i8* %18
%75 = sext i8 %74 to i32
%76 = load double, double* %7
%77 = call i32 @fabs(double %76)
%78 = load i32, i32* %10
%79 = icmp ne i32 %78, 0
%80 = zext i1 %79 to i64
%81 = select i1 %79, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0)
%82 = call i32 (i8**, i8*, i8, i32, i8*, ...) @xasprintf(i8** %19, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8 signext %66, i32 %68, i8* %72, i8* %73, i32 %75, i32 %77, i8* %81)
br label %128
83: ; preds = %61
%84 = load i8, i8* %8
%85 = sext i8 %84 to i32
%86 = icmp eq i32 %85, 115
br i1 %86, label %87, label %109
87: ; preds = %83
%88 = load i8, i8* %17
%89 = load i32, i32* %15
%90 = load i32, i32* %10
%91 = icmp ne i32 %90, 0
%92 = zext i1 %91 to i64
%93 = select i1 %91, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
%94 = load double, double* %11
%95 = fptosi double %94 to i32
%96 = load double, double* %13
%97 = load i8*, i8** %9
%98 = load i8, i8* %18
%99 = sext i8 %98 to i32
%100 = load i32, i32* %16
%101 = load i32, i32* %10
%102 = icmp ne i32 %101, 0
%103 = zext i1 %102 to i64
%104 = select i1 %102, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
%105 = load double, double* %12
%106 = fptosi double %105 to i32
%107 = load double, double* %14
%108 = call i32 (i8**, i8*, i8, i32, i8*, ...) @xasprintf(i8** %19, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i8 signext %88, i32 %89, i8* %93, i32 %95, double %96, i8* %97, i32 %99, i32 %100, i8* %104, i32 %106, double %107)
br label %127
109: ; preds = %83
%110 = load i8, i8* %17
%111 = load i32, i32* %15
%112 = load i32, i32* %10
%113 = icmp ne i32 %112, 0
%114 = zext i1 %113 to i64
%115 = select i1 %113, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
%116 = load double, double* %11
%117 = load i8*, i8** %9
%118 = load i8, i8* %18
%119 = sext i8 %118 to i32
%120 = load i32, i32* %16
%121 = load i32, i32* %10
%122 = icmp ne i32 %121, 0
%123 = zext i1 %122 to i64
%124 = select i1 %122, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0)
%125 = load double, double* %12
%126 = call i32 (i8**, i8*, i8, i32, i8*, ...) @xasprintf(i8** %19, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8 signext %110, i32 %111, i8* %115, double %116, i8* %117, i32 %119, i32 %120, i8* %124, double %125)
br label %127
127: ; preds = %109, %87
br label %128
128: ; preds = %127, %65
%129 = load i8*, i8** %19
ret i8* %129
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [21 x i8] c"%c%6.5f%s%s%c%6.5f%s\00"
@.str.2 = [6 x i8] c"&deg;\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [39 x i8] c"%c%d%s%02d'%04.1f\22%s%c%d%s%02d'%04.1f\22\00"
@.str.5 = [27 x i8] c"%c%d%s%06.3f%s%c%d%s%06.3f\00"
define i8* @pretty_deg_format(double %0, double %1, i8 signext %2, i8* %3, i32 %4) {
%6 = alloca i8*
%7 = bitcast i8** %6 to i8*
%8 = fcmp olt double %0, 0.000000e+00
%9 = select i1 %8, i8 83, i8 78
%10 = fcmp olt double %1, 0.000000e+00
%11 = select i1 %10, i8 87, i8 69
%12 = fptosi double %0 to i32
%13 = tail call i32 @llvm.abs.i32(i32 %12, i1 true)
%14 = fptosi double %1 to i32
%15 = tail call i32 @llvm.abs.i32(i32 %14, i1 true)
%16 = tail call i32 @fabs(double %0)
%17 = sub nsw i32 %16, %13
%18 = sitofp i32 %17 to double
%19 = fmul double %18, 6.000000e+01
%20 = tail call i32 @fabs(double %1)
%21 = sub nsw i32 %20, %15
%22 = sitofp i32 %21 to double
%23 = fmul double %22, 6.000000e+01
%24 = icmp eq i8* %3, null
%25 = select i1 %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* %3
switch i8 %2, label %46 [
i8 100, label %26
i8 115, label %33
]
26: ; preds = %5
%27 = tail call i32 @fabs(double %0)
%28 = icmp eq i32 %4, 0
%29 = select i1 %28, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%30 = zext i8 %11 to i32
%31 = tail call i32 @fabs(double %1)
%32 = call i32 (i8**, i8*, i8, i32, i8*, ...) @xasprintf(i8** %6, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8 signext %9, i32 %27, i8* %29, i8* %25, i32 %30, i32 %31, i8* %29)
br label %51
33: ; preds = %5
%34 = tail call double @llvm.floor.f64(double %23)
%35 = fsub double %23, %34
%36 = fmul double %35, 6.000000e+01
%37 = tail call double @llvm.floor.f64(double %19)
%38 = fsub double %19, %37
%39 = fmul double %38, 6.000000e+01
%40 = icmp eq i32 %4, 0
%41 = select i1 %40, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%42 = fptosi double %19 to i32
%43 = zext i8 %11 to i32
%44 = fptosi double %23 to i32
%45 = call i32 (i8**, i8*, i8, i32, i8*, ...) @xasprintf(i8** %6, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0), i8 signext %9, i32 %13, i8* %41, i32 %42, double %39, i8* %25, i32 %43, i32 %15, i8* %41, i32 %44, double %36)
br label %51
46: ; preds = %5
%47 = icmp eq i32 %4, 0
%48 = select i1 %47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0)
%49 = zext i8 %11 to i32
%50 = call i32 (i8**, i8*, i8, i32, i8*, ...) @xasprintf(i8** %6, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8 signext %9, i32 %13, i8* %48, double %19, i8* %25, i32 %49, i32 %15, i8* %48, double %23)
br label %51
51: ; preds = %33, %46, %26
%52 = load i8*, i8** %6
ret i8* %52
}