#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 option {
  char *member_0;
  int member_1;
  char member_3;
  int /*<<< orphan*/ *member_2;
};

/* Variables and functions */
struct option *get_optlist() {
  static struct option opt[] = {
      {"help", 0, NULL, 'h'},   {"version", 0, NULL, 'V'},
      {"info", 0, NULL, 'F'},   {"test", 0, NULL, 't'},
      {"stdin", 1, NULL, 'I'},  {"stdout", 1, NULL, 'O'},
      {"stderr", 1, NULL, 'E'}, {"put", 1, NULL, 'S'},
      {"get", 1, NULL, 'G'},    {"echo", 1, NULL, 'e'},
      {"debug", 1, NULL, 'D'},  {0, 0, 0, 0}};
  return (opt);
}


x86 assembly (clang, -O0):
<get_optlist>:
push   %rbp
mov    %rsp,%rbp
lea    0x2f25(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_optlist>:
lea    0x2f29(%rip),%rax
ret

LLVM IR (-O0):
%struct.option = type { i8*, i32, i8, i32* }
@get_optlist.opt = internal global [12 x %struct.option] [%struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 104 to i32*) }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 86 to i32*) }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 70 to i32*) }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 116 to i32*) }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 73 to i32*) }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 79 to i32*) }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 69 to i32*) }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 83 to i32*) }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 71 to i32*) }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 101 to i32*) }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 68 to i32*) }, %struct.option zeroinitializer]
@.str = [5 x i8] c"help\00"
@.str.1 = [8 x i8] c"version\00"
@.str.2 = [5 x i8] c"info\00"
@.str.3 = [5 x i8] c"test\00"
@.str.4 = [6 x i8] c"stdin\00"
@.str.5 = [7 x i8] c"stdout\00"
@.str.6 = [7 x i8] c"stderr\00"
@.str.7 = [4 x i8] c"put\00"
@.str.8 = [4 x i8] c"get\00"
@.str.9 = [5 x i8] c"echo\00"
@.str.10 = [6 x i8] c"debug\00"
define %struct.option* @get_optlist() {
ret %struct.option* getelementptr inbounds ([12 x %struct.option], [12 x %struct.option]* @get_optlist.opt, i64 0, i64 0)
}

LLVM IR (-O2):
%struct.option = type { i8*, i32, i8, i32* }
@get_optlist.opt = internal global [12 x %struct.option] [%struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 104 to i32*) }, %struct.option { i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 86 to i32*) }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 70 to i32*) }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i32 0, i8 0, i32* inttoptr (i64 116 to i32*) }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 73 to i32*) }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 79 to i32*) }, %struct.option { i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 69 to i32*) }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 83 to i32*) }, %struct.option { i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 71 to i32*) }, %struct.option { i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 101 to i32*) }, %struct.option { i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i32 0, i32 0), i32 1, i8 0, i32* inttoptr (i64 68 to i32*) }, %struct.option zeroinitializer]
@.str = [5 x i8] c"help\00"
@.str.1 = [8 x i8] c"version\00"
@.str.2 = [5 x i8] c"info\00"
@.str.3 = [5 x i8] c"test\00"
@.str.4 = [6 x i8] c"stdin\00"
@.str.5 = [7 x i8] c"stdout\00"
@.str.6 = [7 x i8] c"stderr\00"
@.str.7 = [4 x i8] c"put\00"
@.str.8 = [4 x i8] c"get\00"
@.str.9 = [5 x i8] c"echo\00"
@.str.10 = [6 x i8] c"debug\00"
define %struct.option* @get_optlist() {
ret %struct.option* getelementptr inbounds ([12 x %struct.option], [12 x %struct.option]* @get_optlist.opt, i64 0, i64 0)
}