#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 */
typedef int /*<<< orphan*/ int64_t;
typedef int /*<<< orphan*/ COMPASS;

/* Variables and functions */
char const *hazer_format_nanodegrees2compass(int /*<<< orphan*/, char const **,
                                             int);
const char *hazer_format_nanodegrees2compass32(int64_t nanodegrees) {
  static const char *COMPASS[] = {
      "N", "NbE", "NNE", "NEbN", "NE", "NEbE", "ENE", "EbN",
      "E", "EbS", "ESE", "SEbE", "SE", "SEbS", "SSE", "SbE",
      "S", "SbW", "SSW", "SWbS", "SW", "SWbW", "WSW", "WbS",
      "W", "WbN", "WNW", "NWbW", "NW", "NWbN", "NNW", "NbW",
  };
  return hazer_format_nanodegrees2compass(
      nanodegrees, COMPASS, (sizeof(COMPASS) / sizeof(COMPASS[0])));
}


x86 assembly (clang, -O0):
<hazer_format_nanodegrees2compass32>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
lea    0x2f0b(%rip),%rsi
mov    $0x20,%edx
call   1030 <hazer_format_nanodegrees2compass@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<hazer_format_nanodegrees2compass32>:
lea    0x2f19(%rip),%rsi
mov    $0x20,%edx
jmp    1030 <hazer_format_nanodegrees2compass@plt>

LLVM IR (-O0):
@hazer_format_nanodegrees2compass32.COMPASS = internal global [32 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i32 0, i32 0)]
@.str = [2 x i8] c"N\00"
@.str.1 = [4 x i8] c"NbE\00"
@.str.2 = [4 x i8] c"NNE\00"
@.str.3 = [5 x i8] c"NEbN\00"
@.str.4 = [3 x i8] c"NE\00"
@.str.5 = [5 x i8] c"NEbE\00"
@.str.6 = [4 x i8] c"ENE\00"
@.str.7 = [4 x i8] c"EbN\00"
@.str.8 = [2 x i8] c"E\00"
@.str.9 = [4 x i8] c"EbS\00"
@.str.10 = [4 x i8] c"ESE\00"
@.str.11 = [5 x i8] c"SEbE\00"
@.str.12 = [3 x i8] c"SE\00"
@.str.13 = [5 x i8] c"SEbS\00"
@.str.14 = [4 x i8] c"SSE\00"
@.str.15 = [4 x i8] c"SbE\00"
@.str.16 = [2 x i8] c"S\00"
@.str.17 = [4 x i8] c"SbW\00"
@.str.18 = [4 x i8] c"SSW\00"
@.str.19 = [5 x i8] c"SWbS\00"
@.str.20 = [3 x i8] c"SW\00"
@.str.21 = [5 x i8] c"SWbW\00"
@.str.22 = [4 x i8] c"WSW\00"
@.str.23 = [4 x i8] c"WbS\00"
@.str.24 = [2 x i8] c"W\00"
@.str.25 = [4 x i8] c"WbN\00"
@.str.26 = [4 x i8] c"WNW\00"
@.str.27 = [5 x i8] c"NWbW\00"
@.str.28 = [3 x i8] c"NW\00"
@.str.29 = [5 x i8] c"NWbN\00"
@.str.30 = [4 x i8] c"NNW\00"
@.str.31 = [4 x i8] c"NbW\00"
define i8* @hazer_format_nanodegrees2compass32(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i8* @hazer_format_nanodegrees2compass(i32 %3, i8** getelementptr inbounds ([32 x i8*], [32 x i8*]* @hazer_format_nanodegrees2compass32.COMPASS, i64 0, i64 0), i32 32)
ret i8* %4
}

LLVM IR (-O2):
@hazer_format_nanodegrees2compass32.COMPASS = internal global [32 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.17, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.31, i32 0, i32 0)]
@.str = [2 x i8] c"N\00"
@.str.1 = [4 x i8] c"NbE\00"
@.str.2 = [4 x i8] c"NNE\00"
@.str.3 = [5 x i8] c"NEbN\00"
@.str.4 = [3 x i8] c"NE\00"
@.str.5 = [5 x i8] c"NEbE\00"
@.str.6 = [4 x i8] c"ENE\00"
@.str.7 = [4 x i8] c"EbN\00"
@.str.8 = [2 x i8] c"E\00"
@.str.9 = [4 x i8] c"EbS\00"
@.str.10 = [4 x i8] c"ESE\00"
@.str.11 = [5 x i8] c"SEbE\00"
@.str.12 = [3 x i8] c"SE\00"
@.str.13 = [5 x i8] c"SEbS\00"
@.str.14 = [4 x i8] c"SSE\00"
@.str.15 = [4 x i8] c"SbE\00"
@.str.16 = [2 x i8] c"S\00"
@.str.17 = [4 x i8] c"SbW\00"
@.str.18 = [4 x i8] c"SSW\00"
@.str.19 = [5 x i8] c"SWbS\00"
@.str.20 = [3 x i8] c"SW\00"
@.str.21 = [5 x i8] c"SWbW\00"
@.str.22 = [4 x i8] c"WSW\00"
@.str.23 = [4 x i8] c"WbS\00"
@.str.24 = [2 x i8] c"W\00"
@.str.25 = [4 x i8] c"WbN\00"
@.str.26 = [4 x i8] c"WNW\00"
@.str.27 = [5 x i8] c"NWbW\00"
@.str.28 = [3 x i8] c"NW\00"
@.str.29 = [5 x i8] c"NWbN\00"
@.str.30 = [4 x i8] c"NNW\00"
@.str.31 = [4 x i8] c"NbW\00"
define i8* @hazer_format_nanodegrees2compass32(i32 %0) {
%2 = tail call i8* @hazer_format_nanodegrees2compass(i32 %0, i8** getelementptr inbounds ([32 x i8*], [32 x i8*]* @hazer_format_nanodegrees2compass32.COMPASS, i64 0, i64 0), i32 32)
ret i8* %2
}