void AxisLabel(double pos, char *axis, char *label) {
  double temp;
  int h, m, itemp, i, recog, toHours, isStokes, iStokes;
  float s;
  char rectypes[9][5] = {"RA  ", "GLON", "ELON", "LL  ", "DEC ",
                         "GLAT", "ELAT", "MM  ", "STOK"};
  char stoktypes[4][5] = {"Ipol", "Qpol", "Upol", "Vpol"};
  char minus[2] = "-";
  toHours =
      (!strncmp(axis, rectypes[0], 2)) || (!strncmp(axis, rectypes[3], 2));
  isStokes = !strncmp(axis, rectypes[8], 4);
  for (i = 0; i < 4; i++)
    label[i] = ' ';
  label[4] = 0;
  for (i = 0; i < 4; i++) {
    if (axis[i] == minus[0])
      break;
    label[i] = axis[i];
  }
  recog = 0;
  for (i = 0; i < 8; i++)
    recog = recog || (!strcmp(label, rectypes[i]));
  if (recog) {
    temp = pos;
    if (temp > 360.0)
      temp = temp - 360.0;
    if (toHours) {
      if (temp < 0.0)
        temp = temp + 360.0;
      temp = temp / 15.0;
    }
    itemp = (int)temp;
    h = itemp;
    temp = temp - (double)itemp;
    if (temp < 0.0)
      temp = -temp;
    temp = temp * 60.0;
    itemp = (int)temp;
    m = itemp;
    temp = temp - (double)itemp;
    temp = temp * 60.0;
    s = (float)temp;
  }
  if (recog) {
    if (toHours)
      sprintf(&label[4], "%2.2d %2.2d %7.4f", h, m, s);
    else {
      if (h < 0)
        h = -h;
      sprintf(&label[4], "%3.2d %2.2d %6.3f", h, m, s);
      if (pos < 0.0)
        label[4] = '-';
    }
  } else if (isStokes) {
    iStokes = (int)(pos + 0.5) - 1;
    iStokes = ((((((iStokes) < (3)) ? (iStokes) : (3))) > (0))
                   ? ((((iStokes) < (3)) ? (iStokes) : (3)))
                   : (0));
    sprintf(&label[4], "     %s", stoktypes[iStokes]);
  } else
    sprintf(&label[4], "%13.6lg", pos);
}


x86 assembly (clang, -O0):
<AxisLabel>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
lea    -0x80(%rbp),%rdi
lea    0xebd(%rip),%rsi
mov    $0x2d,%edx
call   1050 <memcpy@plt>
mov    0xedc(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0xed6(%rip),%rax
mov    %rax,-0x98(%rbp)
mov    0xed1(%rip),%eax
mov    %eax,-0x90(%rbp)
mov    0xec8(%rip),%ax
mov    %ax,-0xa2(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xa3(%rbp)
je     11ec <AxisLabel+0xac>
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
add    $0xf,%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0xa3(%rbp)
mov    -0xa3(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x80(%rbp),%rsi
add    $0x28,%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x3c(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x4,-0x30(%rbp)
jge    124b <AxisLabel+0x10b>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1227 <AxisLabel+0xe7>
mov    -0x18(%rbp),%rax
movb   $0x0,0x4(%rax)
movl   $0x0,-0x30(%rbp)
cmpl   $0x4,-0x30(%rbp)
jge    12a8 <AxisLabel+0x168>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
movsbl -0xa2(%rbp),%ecx
cmp    %ecx,%eax
jne    1284 <AxisLabel+0x144>
jmp    12a8 <AxisLabel+0x168>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,1),%dl
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    125a <AxisLabel+0x11a>
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x8,-0x30(%rbp)
jge    1314 <AxisLabel+0x1d4>
mov    $0x1,%al
cmpl   $0x0,-0x34(%rbp)
mov    %al,-0xa4(%rbp)
jne    12f8 <AxisLabel+0x1b8>
mov    -0x18(%rbp),%rdi
movslq -0x30(%rbp),%rax
lea    -0x80(%rbp),%rsi
imul   $0x5,%rax,%rax
add    %rax,%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0xa4(%rbp)
mov    -0xa4(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x34(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    12b6 <AxisLabel+0x176>
cmpl   $0x0,-0x34(%rbp)
je     1438 <AxisLabel+0x2f8>
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xccb(%rip),%xmm1
ucomisd %xmm1,%xmm0
jbe    1355 <AxisLabel+0x215>
movsd  -0x20(%rbp),%xmm0
movsd  0xcb4(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cmpl   $0x0,-0x38(%rbp)
je     1395 <AxisLabel+0x255>
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    137f <AxisLabel+0x23f>
movsd  0xc8b(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xc7c(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvttsd2si -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x24(%rbp)
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x2c(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x20(%rbp),%xmm0
jbe    13e5 <AxisLabel+0x2a5>
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xc23(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
cvttsd2si -0x20(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x2c(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xbf0(%rip),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x44(%rbp)
cmpl   $0x0,-0x34(%rbp)
je     14cd <AxisLabel+0x38d>
cmpl   $0x0,-0x38(%rbp)
je     1476 <AxisLabel+0x336>
mov    -0x18(%rbp),%rdi
add    $0x4,%rdi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbfc(%rip),%rsi
mov    $0x1,%al
call   1060 <sprintf@plt>
jmp    14c8 <AxisLabel+0x388>
cmpl   $0x0,-0x24(%rbp)
jge    1488 <AxisLabel+0x348>
xor    %eax,%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x4,%rdi
mov    -0x24(%rbp),%edx
mov    -0x28(%rbp),%ecx
movss  -0x44(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbd2(%rip),%rsi
mov    $0x1,%al
call   1060 <sprintf@plt>
xorps  %xmm0,%xmm0
ucomisd -0x8(%rbp),%xmm0
jbe    14c3 <AxisLabel+0x383>
mov    -0x18(%rbp),%rax
movb   $0x2d,0x4(%rax)
jmp    14c8 <AxisLabel+0x388>
jmp    15c1 <AxisLabel+0x481>
cmpl   $0x0,-0x3c(%rbp)
je     15a1 <AxisLabel+0x461>
movsd  0xb39(%rip),%xmm0
addsd  -0x8(%rbp),%xmm0
cvttsd2si %xmm0,%eax
sub    $0x1,%eax
mov    %eax,-0x40(%rbp)
cmpl   $0x3,-0x40(%rbp)
jge    1506 <AxisLabel+0x3c6>
mov    -0x40(%rbp),%eax
mov    %eax,-0xa8(%rbp)
jmp    1516 <AxisLabel+0x3d6>
mov    $0x3,%eax
mov    %eax,-0xa8(%rbp)
jmp    1516 <AxisLabel+0x3d6>
mov    -0xa8(%rbp),%eax
cmp    $0x0,%eax
jle    155e <AxisLabel+0x41e>
cmpl   $0x3,-0x40(%rbp)
jge    153d <AxisLabel+0x3fd>
mov    -0x40(%rbp),%eax
mov    %eax,-0xac(%rbp)
jmp    154d <AxisLabel+0x40d>
mov    $0x3,%eax
mov    %eax,-0xac(%rbp)
jmp    154d <AxisLabel+0x40d>
mov    -0xac(%rbp),%eax
mov    %eax,-0xb0(%rbp)
jmp    156b <AxisLabel+0x42b>
xor    %eax,%eax
mov    %eax,-0xb0(%rbp)
jmp    156b <AxisLabel+0x42b>
mov    -0xb0(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x18(%rbp),%rdi
add    $0x4,%rdi
movslq -0x40(%rbp),%rax
lea    -0xa0(%rbp),%rdx
imul   $0x5,%rax,%rax
add    %rax,%rdx
lea    0xaf5(%rip),%rsi
mov    $0x0,%al
call   1060 <sprintf@plt>
jmp    15bc <AxisLabel+0x47c>
mov    -0x18(%rbp),%rdi
add    $0x4,%rdi
movsd  -0x8(%rbp),%xmm0
lea    0xadd(%rip),%rsi
mov    $0x1,%al
call   1060 <sprintf@plt>
jmp    15c1 <AxisLabel+0x481>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<AxisLabel>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x30,%rsp
mov    %rsi,%rbx
mov    %rdi,%rbp
movaps %xmm0,(%rsp)
mov    0xf34(%rip),%eax
mov    %eax,0x20(%rsp)
movaps 0xf19(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
lea    0xedd(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     118d <AxisLabel+0x5d>
lea    0xed7(%rip),%rsi
mov    $0x2,%edx
mov    %rbp,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
sete   %r12b
jmp    1190 <AxisLabel+0x60>
mov    $0x1,%r12b
lea    0xed1(%rip),%rsi
mov    $0x4,%edx
mov    %rbp,%rdi
call   1030 <strncmp@plt>
mov    %eax,%r15d
movl   $0x20202020,(%rbx)
movb   $0x0,0x4(%rbx)
mov    0x0(%rbp),%al
cmp    $0x2d,%al
je     11d8 <AxisLabel+0xa8>
mov    %al,(%rbx)
mov    0x1(%rbp),%al
cmp    $0x2d,%al
je     11d8 <AxisLabel+0xa8>
mov    %al,0x1(%rbx)
mov    0x2(%rbp),%al
cmp    $0x2d,%al
je     11d8 <AxisLabel+0xa8>
mov    %al,0x2(%rbx)
mov    0x3(%rbp),%al
cmp    $0x2d,%al
je     11d8 <AxisLabel+0xa8>
mov    %al,0x3(%rbx)
lea    0x4(%rbx),%r14
lea    0xe5d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xe4b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xe39(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xe27(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xe19(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xe0b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xdfd(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
lea    0xdef(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     12aa <AxisLabel+0x17a>
test   %r15d,%r15d
je     13c1 <AxisLabel+0x291>
lea    0xe20(%rip),%rsi
mov    %r14,%rdi
movaps (%rsp),%xmm0
mov    $0x1,%al
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <sprintf@plt>
movsd  0xd56(%rip),%xmm1
movapd (%rsp),%xmm2
addsd  %xmm2,%xmm1
movsd  0xd4d(%rip),%xmm0
cmpltsd %xmm2,%xmm0
andpd  %xmm0,%xmm1
andnpd %xmm2,%xmm0
orpd   %xmm1,%xmm0
test   %r12b,%r12b
je     130a <AxisLabel+0x1da>
movsd  0xd2f(%rip),%xmm1
addsd  %xmm0,%xmm1
xorpd  %xmm2,%xmm2
movapd %xmm0,%xmm3
cmpltsd %xmm2,%xmm3
andpd  %xmm3,%xmm1
andnpd %xmm0,%xmm3
orpd   %xmm1,%xmm3
divsd  0xd12(%rip),%xmm3
movapd %xmm3,%xmm0
cvttsd2si %xmm0,%edx
cvttpd2dq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm1
subsd  %xmm1,%xmm0
movapd 0xd0e(%rip),%xmm1
xorpd  %xmm0,%xmm1
xorpd  %xmm3,%xmm3
movapd %xmm0,%xmm2
cmpltsd %xmm3,%xmm2
andpd  %xmm2,%xmm1
andnpd %xmm0,%xmm2
orpd   %xmm1,%xmm2
movsd  0xcd9(%rip),%xmm0
mulsd  %xmm0,%xmm2
cvttsd2si %xmm2,%ecx
cvttpd2dq %xmm2,%xmm1
cvtdq2pd %xmm1,%xmm1
subsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtsd2ss %xmm2,%xmm0
cvtss2sd %xmm0,%xmm0
test   %r12b,%r12b
je     138c <AxisLabel+0x25c>
lea    0xd0e(%rip),%rsi
mov    %r14,%rdi
mov    $0x1,%al
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <sprintf@plt>
mov    %edx,%eax
neg    %eax
cmovs  %edx,%eax
lea    0xcfc(%rip),%rsi
mov    %r14,%rdi
mov    %eax,%edx
mov    $0x1,%al
call   1050 <sprintf@plt>
xorps  %xmm0,%xmm0
ucomisd (%rsp),%xmm0
jbe    13b4 <AxisLabel+0x284>
movb   $0x2d,(%r14)
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
movapd (%rsp),%xmm0
addsd  0xc32(%rip),%xmm0
cvttsd2si %xmm0,%eax
cmp    $0x4,%eax
mov    $0x4,%ecx
cmovl  %eax,%ecx
test   %ecx,%ecx
mov    $0x1,%eax
cmovg  %ecx,%eax
add    $0xffffffff,%eax
lea    (%rax,%rax,4),%rax
lea    (%rsp,%rax,1),%rdx
add    $0x10,%rdx
lea    0xcab(%rip),%rsi
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <sprintf@plt>
jmp    13b4 <AxisLabel+0x284>

LLVM IR (-O0):
@__const.AxisLabel.rectypes = [9 x [5 x i8]] [[5 x i8] c"RA \00", [5 x i8] c"GLON\00", [5 x i8] c"ELON\00", [5 x i8] c"LL \00", [5 x i8] c"DEC \00", [5 x i8] c"GLAT\00", [5 x i8] c"ELAT\00", [5 x i8] c"MM \00", [5 x i8] c"STOK\00"]
@__const.AxisLabel.stoktypes = [4 x [5 x i8]] [[5 x i8] c"Ipol\00", [5 x i8] c"Qpol\00", [5 x i8] c"Upol\00", [5 x i8] c"Vpol\00"]
@__const.AxisLabel.minus = [2 x i8] c"-\00"
@.str = [18 x i8] c"%2.2d %2.2d %7.4f\00"
@.str.1 = [18 x i8] c"%3.2d %2.2d %6.3f\00"
@.str.2 = [8 x i8] c" %s\00"
@.str.3 = [8 x i8] c"%13.6lg\00"
define void @AxisLabel(double %0, i8* %1, i8* %2) {
%4 = alloca double
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca double
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca float
%17 = alloca [9 x [5 x i8]]
%18 = alloca [4 x [5 x i8]]
%19 = alloca [2 x i8]
store double %0, double* %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%20 = bitcast [9 x [5 x i8]]* %17 to i8*
%21 = bitcast [4 x [5 x i8]]* %18 to i8*
%22 = bitcast [2 x i8]* %19 to i8*
%23 = load i8*, i8** %5
%24 = getelementptr inbounds [9 x [5 x i8]], [9 x [5 x i8]]* %17, i64 0, i64 0
%25 = getelementptr inbounds [5 x i8], [5 x i8]* %24, i64 0, i64 0
%26 = call i32 @strncmp(i8* %23, i8* %25, i64 2)
%27 = icmp ne i32 %26, 0
br i1 %27, label %28, label %35
28: ; preds = %3
%29 = load i8*, i8** %5
%30 = getelementptr inbounds [9 x [5 x i8]], [9 x [5 x i8]]* %17, i64 0, i64 3
%31 = getelementptr inbounds [5 x i8], [5 x i8]* %30, i64 0, i64 0
%32 = call i32 @strncmp(i8* %29, i8* %31, i64 2)
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br label %35
35: ; preds = %28, %3
%36 = phi i1 [ true, %3 ], [ %34, %28 ]
%37 = zext i1 %36 to i32
store i32 %37, i32* %13
%38 = load i8*, i8** %5
%39 = getelementptr inbounds [9 x [5 x i8]], [9 x [5 x i8]]* %17, i64 0, i64 8
%40 = getelementptr inbounds [5 x i8], [5 x i8]* %39, i64 0, i64 0
%41 = call i32 @strncmp(i8* %38, i8* %40, i64 4)
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
%44 = zext i1 %43 to i32
store i32 %44, i32* %14
store i32 0, i32* %11
br label %45
45: ; preds = %53, %35
%46 = load i32, i32* %11
%47 = icmp slt i32 %46, 4
br i1 %47, label %48, label %56
48: ; preds = %45
%49 = load i8*, i8** %6
%50 = load i32, i32* %11
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %49, i64 %51
store i8 32, i8* %52
br label %53
53: ; preds = %48
%54 = load i32, i32* %11
%55 = add nsw i32 %54, 1
store i32 %55, i32* %11
br label %45
56: ; preds = %45
%57 = load i8*, i8** %6
%58 = getelementptr inbounds i8, i8* %57, i64 4
store i8 0, i8* %58
store i32 0, i32* %11
br label %59
59: ; preds = %84, %56
%60 = load i32, i32* %11
%61 = icmp slt i32 %60, 4
br i1 %61, label %62, label %87
62: ; preds = %59
%63 = load i8*, i8** %5
%64 = load i32, i32* %11
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds i8, i8* %63, i64 %65
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = getelementptr inbounds [2 x i8], [2 x i8]* %19, i64 0, i64 0
%70 = load i8, i8* %69
%71 = sext i8 %70 to i32
%72 = icmp eq i32 %68, %71
br i1 %72, label %73, label %74
73: ; preds = %62
br label %87
74: ; preds = %62
%75 = load i8*, i8** %5
%76 = load i32, i32* %11
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %75, i64 %77
%79 = load i8, i8* %78
%80 = load i8*, i8** %6
%81 = load i32, i32* %11
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds i8, i8* %80, i64 %82
store i8 %79, i8* %83
br label %84
84: ; preds = %74
%85 = load i32, i32* %11
%86 = add nsw i32 %85, 1
store i32 %86, i32* %11
br label %59
87: ; preds = %73, %59
store i32 0, i32* %12
store i32 0, i32* %11
br label %88
88: ; preds = %106, %87
%89 = load i32, i32* %11
%90 = icmp slt i32 %89, 8
br i1 %90, label %91, label %109
91: ; preds = %88
%92 = load i32, i32* %12
%93 = icmp ne i32 %92, 0
br i1 %93, label %103, label %94
94: ; preds = %91
%95 = load i8*, i8** %6
%96 = load i32, i32* %11
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds [9 x [5 x i8]], [9 x [5 x i8]]* %17, i64 0, i64 %97
%99 = getelementptr inbounds [5 x i8], [5 x i8]* %98, i64 0, i64 0
%100 = call i32 @strcmp(i8* %95, i8* %99)
%101 = icmp ne i32 %100, 0
%102 = xor i1 %101, true
br label %103
103: ; preds = %94, %91
%104 = phi i1 [ true, %91 ], [ %102, %94 ]
%105 = zext i1 %104 to i32
store i32 %105, i32* %12
br label %106
106: ; preds = %103
%107 = load i32, i32* %11
%108 = add nsw i32 %107, 1
store i32 %108, i32* %11
br label %88
109: ; preds = %88
%110 = load i32, i32* %12
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %158
112: ; preds = %109
%113 = load double, double* %4
store double %113, double* %7
%114 = load double, double* %7
%115 = fcmp ogt double %114, 3.600000e+02
br i1 %115, label %116, label %119
116: ; preds = %112
%117 = load double, double* %7
%118 = fsub double %117, 3.600000e+02
store double %118, double* %7
br label %119
119: ; preds = %116, %112
%120 = load i32, i32* %13
%121 = icmp ne i32 %120, 0
br i1 %121, label %122, label %131
122: ; preds = %119
%123 = load double, double* %7
%124 = fcmp olt double %123, 0.000000e+00
br i1 %124, label %125, label %128
125: ; preds = %122
%126 = load double, double* %7
%127 = fadd double %126, 3.600000e+02
store double %127, double* %7
br label %128
128: ; preds = %125, %122
%129 = load double, double* %7
%130 = fdiv double %129, 1.500000e+01
store double %130, double* %7
br label %131
131: ; preds = %128, %119
%132 = load double, double* %7
%133 = fptosi double %132 to i32
store i32 %133, i32* %10
%134 = load i32, i32* %10
store i32 %134, i32* %8
%135 = load double, double* %7
%136 = load i32, i32* %10
%137 = sitofp i32 %136 to double
%138 = fsub double %135, %137
store double %138, double* %7
%139 = load double, double* %7
%140 = fcmp olt double %139, 0.000000e+00
br i1 %140, label %141, label %144
141: ; preds = %131
%142 = load double, double* %7
%143 = fneg double %142
store double %143, double* %7
br label %144
144: ; preds = %141, %131
%145 = load double, double* %7
%146 = fmul double %145, 6.000000e+01
store double %146, double* %7
%147 = load double, double* %7
%148 = fptosi double %147 to i32
store i32 %148, i32* %10
%149 = load i32, i32* %10
store i32 %149, i32* %9
%150 = load double, double* %7
%151 = load i32, i32* %10
%152 = sitofp i32 %151 to double
%153 = fsub double %150, %152
store double %153, double* %7
%154 = load double, double* %7
%155 = fmul double %154, 6.000000e+01
store double %155, double* %7
%156 = load double, double* %7
%157 = fptrunc double %156 to float
store float %157, float* %16
br label %158
158: ; preds = %144, %109
%159 = load i32, i32* %12
%160 = icmp ne i32 %159, 0
br i1 %160, label %161, label %193
161: ; preds = %158
%162 = load i32, i32* %13
%163 = icmp ne i32 %162, 0
br i1 %163, label %164, label %172
164: ; preds = %161
%165 = load i8*, i8** %6
%166 = getelementptr inbounds i8, i8* %165, i64 4
%167 = load i32, i32* %8
%168 = load i32, i32* %9
%169 = load float, float* %16
%170 = fpext float %169 to double
%171 = call i32 (i8*, i8*, ...) @sprintf(i8* %166, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %167, i32 %168, double %170)
br label %192
172: ; preds = %161
%173 = load i32, i32* %8
%174 = icmp slt i32 %173, 0
br i1 %174, label %175, label %178
175: ; preds = %172
%176 = load i32, i32* %8
%177 = sub nsw i32 0, %176
store i32 %177, i32* %8
br label %178
178: ; preds = %175, %172
%179 = load i8*, i8** %6
%180 = getelementptr inbounds i8, i8* %179, i64 4
%181 = load i32, i32* %8
%182 = load i32, i32* %9
%183 = load float, float* %16
%184 = fpext float %183 to double
%185 = call i32 (i8*, i8*, ...) @sprintf(i8* %180, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %181, i32 %182, double %184)
%186 = load double, double* %4
%187 = fcmp olt double %186, 0.000000e+00
br i1 %187, label %188, label %191
188: ; preds = %178
%189 = load i8*, i8** %6
%190 = getelementptr inbounds i8, i8* %189, i64 4
store i8 45, i8* %190
br label %191
191: ; preds = %188, %178
br label %192
192: ; preds = %191, %164
br label %233
193: ; preds = %158
%194 = load i32, i32* %14
%195 = icmp ne i32 %194, 0
br i1 %195, label %196, label %227
196: ; preds = %193
%197 = load double, double* %4
%198 = fadd double %197, 5.000000e-01
%199 = fptosi double %198 to i32
%200 = sub nsw i32 %199, 1
store i32 %200, i32* %15
%201 = load i32, i32* %15
%202 = icmp slt i32 %201, 3
br i1 %202, label %203, label %205
203: ; preds = %196
%204 = load i32, i32* %15
br label %206
205: ; preds = %196
br label %206
206: ; preds = %205, %203
%207 = phi i32 [ %204, %203 ], [ 3, %205 ]
%208 = icmp sgt i32 %207, 0
br i1 %208, label %209, label %217
209: ; preds = %206
%210 = load i32, i32* %15
%211 = icmp slt i32 %210, 3
br i1 %211, label %212, label %214
212: ; preds = %209
%213 = load i32, i32* %15
br label %215
214: ; preds = %209
br label %215
215: ; preds = %214, %212
%216 = phi i32 [ %213, %212 ], [ 3, %214 ]
br label %218
217: ; preds = %206
br label %218
218: ; preds = %217, %215
%219 = phi i32 [ %216, %215 ], [ 0, %217 ]
store i32 %219, i32* %15
%220 = load i8*, i8** %6
%221 = getelementptr inbounds i8, i8* %220, i64 4
%222 = load i32, i32* %15
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds [4 x [5 x i8]], [4 x [5 x i8]]* %18, i64 0, i64 %223
%225 = getelementptr inbounds [5 x i8], [5 x i8]* %224, i64 0, i64 0
%226 = call i32 (i8*, i8*, ...) @sprintf(i8* %221, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %225)
br label %232
227: ; preds = %193
%228 = load i8*, i8** %6
%229 = getelementptr inbounds i8, i8* %228, i64 4
%230 = load double, double* %4
%231 = call i32 (i8*, i8*, ...) @sprintf(i8* %229, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double %230)
br label %232
232: ; preds = %227, %218
br label %233
233: ; preds = %232, %192
ret void
}

LLVM IR (-O2):
@__const.AxisLabel.rectypes = [9 x [5 x i8]] [[5 x i8] c"RA \00", [5 x i8] c"GLON\00", [5 x i8] c"ELON\00", [5 x i8] c"LL \00", [5 x i8] c"DEC \00", [5 x i8] c"GLAT\00", [5 x i8] c"ELAT\00", [5 x i8] c"MM \00", [5 x i8] c"STOK\00"]
@__const.AxisLabel.stoktypes = [4 x [5 x i8]] [[5 x i8] c"Ipol\00", [5 x i8] c"Qpol\00", [5 x i8] c"Upol\00", [5 x i8] c"Vpol\00"]
@.str = [18 x i8] c"%2.2d %2.2d %7.4f\00"
@.str.1 = [18 x i8] c"%3.2d %2.2d %6.3f\00"
@.str.2 = [8 x i8] c" %s\00"
@.str.3 = [8 x i8] c"%13.6lg\00"
define void @AxisLabel(double %0, i8* nocapture %1, i8* nocapture %2) {
%4 = alloca [4 x [5 x i8]]
%5 = getelementptr inbounds [4 x [5 x i8]], [4 x [5 x i8]]* %4, i64 0, i64 0, i64 0
%6 = tail call i32 @strncmp(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 0, i64 0), i64 2)
%7 = icmp eq i32 %6, 0
br i1 %7, label %11, label %8
8: ; preds = %3
%9 = tail call i32 @strncmp(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 3, i64 0), i64 2)
%10 = icmp eq i32 %9, 0
br label %11
11: ; preds = %8, %3
%12 = phi i1 [ true, %3 ], [ %10, %8 ]
%13 = tail call i32 @strncmp(i8* dereferenceable(1) %1, i8* dereferenceable(1) getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 8, i64 0), i64 4)
%14 = bitcast i8* %2 to i32*
store i32 538976288, i32* %14
%15 = icmp eq i32 %13, 0
%16 = getelementptr inbounds i8, i8* %2, i64 4
store i8 0, i8* %16
%17 = load i8, i8* %1
%18 = icmp eq i8 %17, 45
br i1 %18, label %35, label %19
19: ; preds = %11
store i8 %17, i8* %2
%20 = getelementptr inbounds i8, i8* %1, i64 1
%21 = load i8, i8* %20
%22 = icmp eq i8 %21, 45
br i1 %22, label %35, label %23
23: ; preds = %19
%24 = getelementptr inbounds i8, i8* %2, i64 1
store i8 %21, i8* %24
%25 = getelementptr inbounds i8, i8* %1, i64 2
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 45
br i1 %27, label %35, label %28
28: ; preds = %23
%29 = getelementptr inbounds i8, i8* %2, i64 2
store i8 %26, i8* %29
%30 = getelementptr inbounds i8, i8* %1, i64 3
%31 = load i8, i8* %30
%32 = icmp eq i8 %31, 45
br i1 %32, label %35, label %33
33: ; preds = %28
%34 = getelementptr inbounds i8, i8* %2, i64 3
store i8 %31, i8* %34
br label %35
35: ; preds = %33, %28, %23, %19, %11
%36 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 0, i64 0))
%37 = icmp eq i32 %36, 0
br i1 %37, label %59, label %38
38: ; preds = %35
%39 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 1, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %59, label %41
41: ; preds = %38
%42 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 2, i64 0))
%43 = icmp eq i32 %42, 0
br i1 %43, label %59, label %44
44: ; preds = %41
%45 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 3, i64 0))
%46 = icmp eq i32 %45, 0
br i1 %46, label %59, label %47
47: ; preds = %44
%48 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 4, i64 0))
%49 = icmp eq i32 %48, 0
br i1 %49, label %59, label %50
50: ; preds = %47
%51 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 5, i64 0))
%52 = icmp eq i32 %51, 0
br i1 %52, label %59, label %53
53: ; preds = %50
%54 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 6, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %59, label %56
56: ; preds = %53
%57 = tail call i32 @strcmp(i8* dereferenceable(1) %2, i8* getelementptr inbounds ([9 x [5 x i8]], [9 x [5 x i8]]* @__const.AxisLabel.rectypes, i64 0, i64 7, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %90
59: ; preds = %35, %38, %41, %44, %47, %50, %53, %56
%60 = fcmp ogt double %0, 3.600000e+02
%61 = fadd double %0, -3.600000e+02
%62 = select i1 %60, double %61, double %0
br i1 %12, label %63, label %68
63: ; preds = %59
%64 = fcmp olt double %62, 0.000000e+00
%65 = fadd double %62, 3.600000e+02
%66 = select i1 %64, double %65, double %62
%67 = fdiv double %66, 1.500000e+01
br label %68
68: ; preds = %63, %59
%69 = phi double [ %67, %63 ], [ %62, %59 ]
%70 = fptosi double %69 to i32
%71 = sitofp i32 %70 to double
%72 = fsub double %69, %71
%73 = fcmp olt double %72, 0.000000e+00
%74 = fneg double %72
%75 = select i1 %73, double %74, double %72
%76 = fmul double %75, 6.000000e+01
%77 = fptosi double %76 to i32
%78 = sitofp i32 %77 to double
%79 = fsub double %76, %78
%80 = fmul double %79, 6.000000e+01
%81 = fptrunc double %80 to float
%82 = fpext float %81 to double
br i1 %12, label %83, label %85
83: ; preds = %68
%84 = tail call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %70, i32 %77, double %82)
br label %104
85: ; preds = %68
%86 = tail call i32 @llvm.abs.i32(i32 %70, i1 true)
%87 = tail call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 %86, i32 %77, double %82)
%88 = fcmp olt double %0, 0.000000e+00
br i1 %88, label %89, label %104
89: ; preds = %85
store i8 45, i8* %16
br label %104
90: ; preds = %56
br i1 %15, label %91, label %102
91: ; preds = %90
%92 = fadd double %0, 5.000000e-01
%93 = fptosi double %92 to i32
%94 = icmp slt i32 %93, 4
%95 = select i1 %94, i32 %93, i32 4
%96 = icmp sgt i32 %95, 1
%97 = select i1 %96, i32 %95, i32 1
%98 = add nsw i32 %97, -1
%99 = zext i32 %98 to i64
%100 = getelementptr inbounds [4 x [5 x i8]], [4 x [5 x i8]]* %4, i64 0, i64 %99, i64 0
%101 = call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0), i8* %100)
br label %104
102: ; preds = %90
%103 = tail call i32 (i8*, i8*, ...) @sprintf(i8* %16, i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double %0)
br label %104
104: ; preds = %91, %102, %83, %89, %85
ret void
}