#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*/ WAVELET_FILTER_STRINGS;

/* Variables and functions */
int /*<<< orphan*/ print_enum(char *, char const **, int);
void print_wavelet_filter() {
  static const char *WAVELET_FILTER_STRINGS[] = {
      "Deslauriers-Dubuc (9,7)",
      "LeGall (5,3)",
      "Deslauriers-Dubuc (13,7)",
      "Haar with no shift",
      "Haar with single shift per level",
      "Fidelity filter",
      "Daubechies (9,7) integer approximation",
  };
  print_enum(
      "wavelet_index", WAVELET_FILTER_STRINGS,
      (sizeof(WAVELET_FILTER_STRINGS) / sizeof((WAVELET_FILTER_STRINGS)[0])));
}


x86 assembly (clang, -O0):
<print_wavelet_filter>:
push   %rbp
mov    %rsp,%rbp
lea    0xf8e(%rip),%rdi
lea    0x2f0e(%rip),%rsi
mov    $0x7,%edx
call   1030 <print_enum@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_wavelet_filter>:
lea    0xf92(%rip),%rdi
lea    0x2f12(%rip),%rsi
mov    $0x7,%edx
jmp    1030 <print_enum@plt>

LLVM IR (-O0):
@print_wavelet_filter.WAVELET_FILTER_STRINGS = internal global [7 x i8*] [i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i32 0, i32 0)]
@.str = [24 x i8] c"Deslauriers-Dubuc (9,7)\00"
@.str.1 = [13 x i8] c"LeGall (5,3)\00"
@.str.2 = [25 x i8] c"Deslauriers-Dubuc (13,7)\00"
@.str.3 = [19 x i8] c"Haar with no shift\00"
@.str.4 = [33 x i8] c"Haar with single shift per level\00"
@.str.5 = [16 x i8] c"Fidelity filter\00"
@.str.6 = [39 x i8] c"Daubechies (9,7) integer approximation\00"
@.str.7 = [14 x i8] c"wavelet_index\00"
define void @print_wavelet_filter() {
%1 = call i32 @print_enum(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @print_wavelet_filter.WAVELET_FILTER_STRINGS, i64 0, i64 0), i32 7)
ret void
}

LLVM IR (-O2):
@print_wavelet_filter.WAVELET_FILTER_STRINGS = internal global [7 x i8*] [i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.6, i32 0, i32 0)]
@.str = [24 x i8] c"Deslauriers-Dubuc (9,7)\00"
@.str.1 = [13 x i8] c"LeGall (5,3)\00"
@.str.2 = [25 x i8] c"Deslauriers-Dubuc (13,7)\00"
@.str.3 = [19 x i8] c"Haar with no shift\00"
@.str.4 = [33 x i8] c"Haar with single shift per level\00"
@.str.5 = [16 x i8] c"Fidelity filter\00"
@.str.6 = [39 x i8] c"Daubechies (9,7) integer approximation\00"
@.str.7 = [14 x i8] c"wavelet_index\00"
define void @print_wavelet_filter() {
%1 = tail call i32 @print_enum(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8** getelementptr inbounds ([7 x i8*], [7 x i8*]* @print_wavelet_filter.WAVELET_FILTER_STRINGS, i64 0, i64 0), i32 7)
ret void
}