#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 /*<<< orphan*/ CD_initialize(char *);
int /*<<< orphan*/ PARSE_initialize();
int /*<<< orphan*/ PARSE_set(char *, int);
int /*<<< orphan*/ create_stack();
void initialize(char *progname) {
  create_stack();
  CD_initialize(progname);
  PARSE_initialize();
  PARSE_set(NULL, 1);
  PARSE_set("-", 5);
  PARSE_set("<>", 2);
  PARSE_set("to <>", 3);
  PARSE_set("to <> <>", 4);
  PARSE_set("- <>", 6);
}


x86 assembly (clang, -O0):
<initialize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x0,%al
call   1040 <create_stack@plt>
mov    -0x8(%rbp),%rdi
call   1030 <CD_initialize@plt>
mov    $0x0,%al
call   1050 <PARSE_initialize@plt>
xor    %eax,%eax
mov    %eax,%edi
mov    $0x1,%esi
call   1060 <PARSE_set@plt>
lea    0xe88(%rip),%rdi
mov    $0x5,%esi
call   1060 <PARSE_set@plt>
lea    0xe8a(%rip),%rdi
mov    $0x2,%esi
call   1060 <PARSE_set@plt>
lea    0xe68(%rip),%rdi
mov    $0x3,%esi
call   1060 <PARSE_set@plt>
lea    0xe5d(%rip),%rdi
mov    $0x4,%esi
call   1060 <PARSE_set@plt>
lea    0xe55(%rip),%rdi
mov    $0x6,%esi
call   1060 <PARSE_set@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialize>:
push   %rbx
mov    %rdi,%rbx
xor    %eax,%eax
call   1040 <create_stack@plt>
mov    %rbx,%rdi
call   1030 <CD_initialize@plt>
xor    %eax,%eax
call   1050 <PARSE_initialize@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1060 <PARSE_set@plt>
lea    0xe93(%rip),%rdi
mov    $0x5,%esi
call   1060 <PARSE_set@plt>
lea    0xe95(%rip),%rdi
mov    $0x2,%esi
call   1060 <PARSE_set@plt>
lea    0xe73(%rip),%rdi
mov    $0x3,%esi
call   1060 <PARSE_set@plt>
lea    0xe68(%rip),%rdi
mov    $0x4,%esi
call   1060 <PARSE_set@plt>
lea    0xe60(%rip),%rdi
mov    $0x6,%esi
pop    %rbx
jmp    1060 <PARSE_set@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"-\00"
@.str.1 = [3 x i8] c"<>\00"
@.str.2 = [6 x i8] c"to <>\00"
@.str.3 = [9 x i8] c"to <> <>\00"
@.str.4 = [5 x i8] c"- <>\00"
define void @initialize(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 (...) @create_stack()
%4 = load i8*, i8** %2
%5 = call i32 @CD_initialize(i8* %4)
%6 = call i32 (...) @PARSE_initialize()
%7 = call i32 @PARSE_set(i8* null, i32 1)
%8 = call i32 @PARSE_set(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 5)
%9 = call i32 @PARSE_set(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%10 = call i32 @PARSE_set(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 3)
%11 = call i32 @PARSE_set(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 4)
%12 = call i32 @PARSE_set(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 6)
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"-\00"
@.str.1 = [3 x i8] c"<>\00"
@.str.2 = [6 x i8] c"to <>\00"
@.str.3 = [9 x i8] c"to <> <>\00"
@.str.4 = [5 x i8] c"- <>\00"
define void @initialize(i8* %0) {
%2 = tail call i32 (...) @create_stack()
%3 = tail call i32 @CD_initialize(i8* %0)
%4 = tail call i32 (...) @PARSE_initialize()
%5 = tail call i32 @PARSE_set(i8* null, i32 1)
%6 = tail call i32 @PARSE_set(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i32 5)
%7 = tail call i32 @PARSE_set(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 2)
%8 = tail call i32 @PARSE_set(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), i32 3)
%9 = tail call i32 @PARSE_set(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i32 4)
%10 = tail call i32 @PARSE_set(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 6)
ret void
}