#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_t {
  int dummy;
};

/* Variables and functions */
char *config_get_delimiter(char *);
char *config_get_valid_tags(char *);
char *config_get_valid_values(char *);
int /*<<< orphan*/ config_is_option_key_valid(char *, int);
int /*<<< orphan*/ config_is_option_value_valid(char *, char *);
int /*<<< orphan*/ enough_mem(char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ jlog(int, char *, char const *, ...);
struct option_t *optionlist_init(char *, char *);
struct option_t *optionlist_push(struct option_t *, char *, char *);
char *quotstrtok(char const *, char *, int *);
char *strdup(char const *);
int /*<<< orphan*/ strlen(char *);
char *trim(char *);
int config_parse_option(const char *line, int tag_num,
                        struct option_t **options) {
  int pos = 0;
  struct option_t *o;
  char *key, *value, *tmp;
  key = quotstrtok(line, " \t", &pos);
  tmp = strdup(line + pos);
  enough_mem(tmp);
  tmp = trim(tmp);
  pos = 0;
  value = quotstrtok(tmp, config_get_delimiter(key), &pos);
  value = trim(value);
  free(tmp);
  if (!key || !value) {
    jlog(4, "Could not parse option %s", line);
    free(key);
    free(value);
    return -1;
  }
  if (!strlen(key) || !strlen(value)) {
    jlog(4, "Could not parse option %s", line);
    free(key);
    free(value);
    return -1;
  }
  if (!config_is_option_key_valid(key, tag_num)) {
    char *tags = config_get_valid_tags(key);
    if (tags) {
      jlog(5, "%s only valid in those tags:%s", key, tags);
      free(tags);
    } else {
      jlog(5, "unknown option: %s", key);
    }
    free(key);
    free(value);
    return -1;
  }
  if (!config_is_option_value_valid(key, value)) {
    char *values = config_get_valid_values(key);
    if (values) {
      jlog(5, "%s may only take those values: %s", key, values);
      free(values);
      return -1;
    }
  }
  if (*options) {
    o = optionlist_push(*options, key, value);
  } else {
    o = optionlist_init(key, value);
    *options = o;
  }
  free(key);
  free(value);
  return o != (struct option_t *)0;
}


x86 assembly (clang, -O0):
<config_parse_option>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdfb(%rip),%rsi
lea    -0x24(%rbp),%rdx
call   1050 <quotstrtok@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x24(%rbp),%rax
add    %rax,%rdi
call   1100 <strdup@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rdi
call   1080 <enough_mem@plt>
mov    -0x48(%rbp),%rdi
call   1090 <trim@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x38(%rbp),%rdi
call   10c0 <config_get_delimiter@plt>
mov    -0x60(%rbp),%rdi
mov    %rax,%rsi
lea    -0x24(%rbp),%rdx
call   1050 <quotstrtok@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
call   1090 <trim@plt>
mov    %rax,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x38(%rbp)
je     1294 <config_parse_option+0xb4>
cmpq   $0x0,-0x40(%rbp)
jne    12c9 <config_parse_option+0xe9>
mov    -0x10(%rbp),%rdx
mov    $0x4,%edi
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   10a0 <jlog@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1479 <config_parse_option+0x299>
mov    -0x38(%rbp),%rdi
call   1070 <strlen@plt>
cmp    $0x0,%eax
je     12ed <config_parse_option+0x10d>
mov    -0x40(%rbp),%rdi
call   1070 <strlen@plt>
cmp    $0x0,%eax
jne    1322 <config_parse_option+0x142>
mov    -0x10(%rbp),%rdx
mov    $0x4,%edi
lea    0xd06(%rip),%rsi
mov    $0x0,%al
call   10a0 <jlog@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1479 <config_parse_option+0x299>
mov    -0x38(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   10f0 <config_is_option_key_valid@plt>
cmp    $0x0,%eax
jne    13ad <config_parse_option+0x1cd>
mov    -0x38(%rbp),%rdi
call   10d0 <config_get_valid_tags@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0x0,-0x50(%rbp)
je     1378 <config_parse_option+0x198>
mov    -0x38(%rbp),%rdx
mov    -0x50(%rbp),%rcx
mov    $0x5,%edi
lea    0xcba(%rip),%rsi
mov    $0x0,%al
call   10a0 <jlog@plt>
mov    -0x50(%rbp),%rdi
call   1030 <free@plt>
jmp    138f <config_parse_option+0x1af>
mov    -0x38(%rbp),%rdx
mov    $0x5,%edi
lea    0xcb4(%rip),%rsi
mov    $0x0,%al
call   10a0 <jlog@plt>
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1479 <config_parse_option+0x299>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1040 <config_is_option_value_valid@plt>
cmp    $0x0,%eax
jne    1410 <config_parse_option+0x230>
mov    -0x38(%rbp),%rdi
call   1060 <config_get_valid_values@plt>
mov    %rax,-0x58(%rbp)
cmpq   $0x0,-0x58(%rbp)
je     140b <config_parse_option+0x22b>
mov    -0x38(%rbp),%rdx
mov    -0x58(%rbp),%rcx
mov    $0x5,%edi
lea    0xc60(%rip),%rsi
mov    $0x0,%al
call   10a0 <jlog@plt>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1479 <config_parse_option+0x299>
jmp    1410 <config_parse_option+0x230>
mov    -0x20(%rbp),%rax
cmpq   $0x0,(%rax)
je     143b <config_parse_option+0x25b>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   10e0 <optionlist_push@plt>
mov    %rax,-0x30(%rbp)
jmp    1457 <config_parse_option+0x277>
mov    -0x38(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   10b0 <optionlist_init@plt>
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rcx
mov    -0x20(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x38(%rbp),%rdi
call   1030 <free@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x30(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_parse_option>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rdx,%r15
mov    %esi,%r13d
mov    %rdi,%rbx
movl   $0x0,0x4(%rsp)
lea    0xdfd(%rip),%rsi
lea    0x4(%rsp),%r14
mov    %r14,%rdx
call   1050 <quotstrtok@plt>
mov    %rax,%r12
movslq 0x4(%rsp),%rdi
add    %rbx,%rdi
call   1100 <strdup@plt>
mov    %rax,%rbp
mov    %rax,%rdi
call   1080 <enough_mem@plt>
mov    %rbp,%rdi
call   1090 <trim@plt>
mov    %rax,%rbp
movl   $0x0,0x4(%rsp)
mov    %r12,%rdi
call   10c0 <config_get_delimiter@plt>
mov    %rbp,%rdi
mov    %rax,%rsi
mov    %r14,%rdx
call   1050 <quotstrtok@plt>
mov    %rax,%rdi
call   1090 <trim@plt>
mov    %rax,%r14
mov    %rbp,%rdi
call   1030 <free@plt>
test   %r12,%r12
je     12ca <config_parse_option+0xea>
test   %r14,%r14
je     12ca <config_parse_option+0xea>
mov    %r12,%rdi
call   1070 <strlen@plt>
test   %eax,%eax
je     12ca <config_parse_option+0xea>
mov    %r14,%rdi
call   1070 <strlen@plt>
test   %eax,%eax
je     12ca <config_parse_option+0xea>
mov    %r12,%rdi
mov    %r13d,%esi
call   10f0 <config_is_option_key_valid@plt>
mov    %r12,%rdi
test   %eax,%eax
je     1304 <config_parse_option+0x124>
mov    %r14,%rsi
call   1040 <config_is_option_value_valid@plt>
test   %eax,%eax
je     1338 <config_parse_option+0x158>
mov    (%r15),%rdi
test   %rdi,%rdi
je     136a <config_parse_option+0x18a>
mov    %r12,%rsi
mov    %r14,%rdx
call   10e0 <optionlist_push@plt>
mov    %rax,%rbx
jmp    137b <config_parse_option+0x19b>
lea    0xd32(%rip),%rsi
mov    $0x4,%edi
mov    %rbx,%rdx
xor    %eax,%eax
call   10a0 <jlog@plt>
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    $0xffffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
call   10d0 <config_get_valid_tags@plt>
test   %rax,%rax
je     1398 <config_parse_option+0x1b8>
mov    %rax,%rbx
lea    0xd01(%rip),%rsi
mov    $0x5,%edi
mov    %r12,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10a0 <jlog@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
jmp    12e0 <config_parse_option+0x100>
mov    %r12,%rdi
call   1060 <config_get_valid_values@plt>
test   %rax,%rax
je     12ab <config_parse_option+0xcb>
mov    %rax,%rbx
lea    0xcfc(%rip),%rsi
mov    $0x5,%edi
mov    %r12,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   10a0 <jlog@plt>
mov    %rbx,%rdi
jmp    12eb <config_parse_option+0x10b>
mov    %r12,%rdi
mov    %r14,%rsi
call   10b0 <optionlist_init@plt>
mov    %rax,%rbx
mov    %rax,(%r15)
mov    %r12,%rdi
call   1030 <free@plt>
mov    %r14,%rdi
call   1030 <free@plt>
xor    %eax,%eax
test   %rbx,%rbx
setne  %al
jmp    12f5 <config_parse_option+0x115>
lea    0xc9d(%rip),%rsi
mov    $0x5,%edi
mov    %r12,%rdx
jmp    12d9 <config_parse_option+0xf9>

LLVM IR (-O0):
%struct.option_t = type { i32 }
@.str = [3 x i8] c" \09\00"
@.str.1 = [26 x i8] c"Could not parse option %s\00"
@.str.2 = [31 x i8] c"%s only valid in those tags:%s\00"
@.str.3 = [19 x i8] c"unknown option: %s\00"
@.str.4 = [34 x i8] c"%s may only take those values: %s\00"
define i32 @config_parse_option(i8* %0, i32 %1, %struct.option_t** %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i32
%7 = alloca %struct.option_t**
%8 = alloca i32
%9 = alloca %struct.option_t*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
store i8* %0, i8** %5
store i32 %1, i32* %6
store %struct.option_t** %2, %struct.option_t*** %7
store i32 0, i32* %8
%15 = load i8*, i8** %5
%16 = call i8* @quotstrtok(i8* %15, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
store i8* %16, i8** %10
%17 = load i8*, i8** %5
%18 = load i32, i32* %8
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8, i8* %17, i64 %19
%21 = call i8* @strdup(i8* %20)
store i8* %21, i8** %12
%22 = load i8*, i8** %12
%23 = call i32 @enough_mem(i8* %22)
%24 = load i8*, i8** %12
%25 = call i8* @trim(i8* %24)
store i8* %25, i8** %12
store i32 0, i32* %8
%26 = load i8*, i8** %12
%27 = load i8*, i8** %10
%28 = call i8* @config_get_delimiter(i8* %27)
%29 = call i8* @quotstrtok(i8* %26, i8* %28, i32* %8)
store i8* %29, i8** %11
%30 = load i8*, i8** %11
%31 = call i8* @trim(i8* %30)
store i8* %31, i8** %11
%32 = load i8*, i8** %12
%33 = call i32 @free(i8* %32)
%34 = load i8*, i8** %10
%35 = icmp ne i8* %34, null
br i1 %35, label %36, label %39
36: ; preds = %3
%37 = load i8*, i8** %11
%38 = icmp ne i8* %37, null
br i1 %38, label %46, label %39
39: ; preds = %36, %3
%40 = load i8*, i8** %5
%41 = call i32 (i32, i8*, i8*, ...) @jlog(i32 4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %40)
%42 = load i8*, i8** %10
%43 = call i32 @free(i8* %42)
%44 = load i8*, i8** %11
%45 = call i32 @free(i8* %44)
store i32 -1, i32* %4
br label %126
46: ; preds = %36
%47 = load i8*, i8** %10
%48 = call i32 @strlen(i8* %47)
%49 = icmp ne i32 %48, 0
br i1 %49, label %50, label %54
50: ; preds = %46
%51 = load i8*, i8** %11
%52 = call i32 @strlen(i8* %51)
%53 = icmp ne i32 %52, 0
br i1 %53, label %61, label %54
54: ; preds = %50, %46
%55 = load i8*, i8** %5
%56 = call i32 (i32, i8*, i8*, ...) @jlog(i32 4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %55)
%57 = load i8*, i8** %10
%58 = call i32 @free(i8* %57)
%59 = load i8*, i8** %11
%60 = call i32 @free(i8* %59)
store i32 -1, i32* %4
br label %126
61: ; preds = %50
%62 = load i8*, i8** %10
%63 = load i32, i32* %6
%64 = call i32 @config_is_option_key_valid(i8* %62, i32 %63)
%65 = icmp ne i32 %64, 0
br i1 %65, label %85, label %66
66: ; preds = %61
%67 = load i8*, i8** %10
%68 = call i8* @config_get_valid_tags(i8* %67)
store i8* %68, i8** %13
%69 = load i8*, i8** %13
%70 = icmp ne i8* %69, null
br i1 %70, label %71, label %77
71: ; preds = %66
%72 = load i8*, i8** %10
%73 = load i8*, i8** %13
%74 = call i32 (i32, i8*, i8*, ...) @jlog(i32 5, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i8* %72, i8* %73)
%75 = load i8*, i8** %13
%76 = call i32 @free(i8* %75)
br label %80
77: ; preds = %66
%78 = load i8*, i8** %10
%79 = call i32 (i32, i8*, i8*, ...) @jlog(i32 5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %78)
br label %80
80: ; preds = %77, %71
%81 = load i8*, i8** %10
%82 = call i32 @free(i8* %81)
%83 = load i8*, i8** %11
%84 = call i32 @free(i8* %83)
store i32 -1, i32* %4
br label %126
85: ; preds = %61
%86 = load i8*, i8** %10
%87 = load i8*, i8** %11
%88 = call i32 @config_is_option_value_valid(i8* %86, i8* %87)
%89 = icmp ne i32 %88, 0
br i1 %89, label %102, label %90
90: ; preds = %85
%91 = load i8*, i8** %10
%92 = call i8* @config_get_valid_values(i8* %91)
store i8* %92, i8** %14
%93 = load i8*, i8** %14
%94 = icmp ne i8* %93, null
br i1 %94, label %95, label %101
95: ; preds = %90
%96 = load i8*, i8** %10
%97 = load i8*, i8** %14
%98 = call i32 (i32, i8*, i8*, ...) @jlog(i32 5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %96, i8* %97)
%99 = load i8*, i8** %14
%100 = call i32 @free(i8* %99)
store i32 -1, i32* %4
br label %126
101: ; preds = %90
br label %102
102: ; preds = %101, %85
%103 = load %struct.option_t**, %struct.option_t*** %7
%104 = load %struct.option_t*, %struct.option_t** %103
%105 = icmp ne %struct.option_t* %104, null
br i1 %105, label %106, label %112
106: ; preds = %102
%107 = load %struct.option_t**, %struct.option_t*** %7
%108 = load %struct.option_t*, %struct.option_t** %107
%109 = load i8*, i8** %10
%110 = load i8*, i8** %11
%111 = call %struct.option_t* @optionlist_push(%struct.option_t* %108, i8* %109, i8* %110)
store %struct.option_t* %111, %struct.option_t** %9
br label %118
112: ; preds = %102
%113 = load i8*, i8** %10
%114 = load i8*, i8** %11
%115 = call %struct.option_t* @optionlist_init(i8* %113, i8* %114)
store %struct.option_t* %115, %struct.option_t** %9
%116 = load %struct.option_t*, %struct.option_t** %9
%117 = load %struct.option_t**, %struct.option_t*** %7
store %struct.option_t* %116, %struct.option_t** %117
br label %118
118: ; preds = %112, %106
%119 = load i8*, i8** %10
%120 = call i32 @free(i8* %119)
%121 = load i8*, i8** %11
%122 = call i32 @free(i8* %121)
%123 = load %struct.option_t*, %struct.option_t** %9
%124 = icmp ne %struct.option_t* %123, null
%125 = zext i1 %124 to i32
store i32 %125, i32* %4
br label %126
126: ; preds = %118, %95, %80, %54, %39
%127 = load i32, i32* %4
ret i32 %127
}

LLVM IR (-O2):
%struct.option_t = type { i32 }
@.str = [3 x i8] c" \09\00"
@.str.1 = [26 x i8] c"Could not parse option %s\00"
@.str.2 = [31 x i8] c"%s only valid in those tags:%s\00"
@.str.3 = [19 x i8] c"unknown option: %s\00"
@.str.4 = [34 x i8] c"%s may only take those values: %s\00"
define i32 @config_parse_option(i8* %0, i32 %1, %struct.option_t** nocapture %2) {
%4 = alloca i32
%5 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%6 = call i8* @quotstrtok(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%7 = load i32, i32* %4
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = call i8* @strdup(i8* %9)
%11 = call i32 @enough_mem(i8* %10)
%12 = call i8* @trim(i8* %10)
store i32 0, i32* %4
%13 = call i8* @config_get_delimiter(i8* %6)
%14 = call i8* @quotstrtok(i8* %12, i8* %13, i32* %4)
%15 = call i8* @trim(i8* %14)
%16 = call i32 @free(i8* %12)
%17 = icmp ne i8* %6, null
%18 = icmp ne i8* %15, null
%19 = select i1 %17, i1 %18, i1 false
br i1 %19, label %24, label %20
20: ; preds = %3
%21 = call i32 (i32, i8*, i8*, ...) @jlog(i32 4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%22 = call i32 @free(i8* %6)
%23 = call i32 @free(i8* %15)
br label %70
24: ; preds = %3
%25 = call i32 @strlen(i8* %6)
%26 = icmp eq i32 %25, 0
br i1 %26, label %30, label %27
27: ; preds = %24
%28 = call i32 @strlen(i8* %15)
%29 = icmp eq i32 %28, 0
br i1 %29, label %30, label %34
30: ; preds = %27, %24
%31 = call i32 (i32, i8*, i8*, ...) @jlog(i32 4, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%32 = call i32 @free(i8* %6)
%33 = call i32 @free(i8* %15)
br label %70
34: ; preds = %27
%35 = call i32 @config_is_option_key_valid(i8* %6, i32 %1)
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %48
37: ; preds = %34
%38 = call i8* @config_get_valid_tags(i8* %6)
%39 = icmp eq i8* %38, null
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = call i32 (i32, i8*, i8*, ...) @jlog(i32 5, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0), i8* %6, i8* %38)
%42 = call i32 @free(i8* %38)
br label %45
43: ; preds = %37
%44 = call i32 (i32, i8*, i8*, ...) @jlog(i32 5, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i8* %6)
br label %45
45: ; preds = %43, %40
%46 = call i32 @free(i8* %6)
%47 = call i32 @free(i8* %15)
br label %70
48: ; preds = %34
%49 = call i32 @config_is_option_value_valid(i8* %6, i8* %15)
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %57
51: ; preds = %48
%52 = call i8* @config_get_valid_values(i8* %6)
%53 = icmp eq i8* %52, null
br i1 %53, label %57, label %54
54: ; preds = %51
%55 = call i32 (i32, i8*, i8*, ...) @jlog(i32 5, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %6, i8* %52)
%56 = call i32 @free(i8* %52)
br label %70
57: ; preds = %51, %48
%58 = load %struct.option_t*, %struct.option_t** %2
%59 = icmp eq %struct.option_t* %58, null
br i1 %59, label %62, label %60
60: ; preds = %57
%61 = call %struct.option_t* @optionlist_push(%struct.option_t* %58, i8* %6, i8* %15)
br label %64
62: ; preds = %57
%63 = call %struct.option_t* @optionlist_init(i8* %6, i8* %15)
store %struct.option_t* %63, %struct.option_t** %2
br label %64
64: ; preds = %62, %60
%65 = phi %struct.option_t* [ %61, %60 ], [ %63, %62 ]
%66 = call i32 @free(i8* %6)
%67 = call i32 @free(i8* %15)
%68 = icmp ne %struct.option_t* %65, null
%69 = zext i1 %68 to i32
br label %70
70: ; preds = %54, %64, %45, %30, %20
%71 = phi i32 [ %69, %64 ], [ -1, %54 ], [ -1, %45 ], [ -1, %30 ], [ -1, %20 ]
ret i32 %71
}