#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*/ KeySym;
typedef int /*<<< orphan*/ Bool;

/* Variables and functions */
int /*<<< orphan*/ badheader();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ malloc(int);
int /*<<< orphan*/ parse_keysym(char *, int, char **, int /*<<< orphan*/ *);
int /*<<< orphan*/ putc(char, int /*<<< orphan*/);
scalar_t__ realloc(int /*<<< orphan*/ *, int);
int skip_chars(char *, int);
int skip_space(char *, int);
int /*<<< orphan*/ stderr;
int get_keysym_list(char *line, int len, int *np, KeySym **kslistp) {
  int havesofar, maxcanhave;
  KeySym *keysymlist;
  *np = 0;
  *kslistp = NULL;
  if (len == 0)
    return (0);
  havesofar = 0;
  maxcanhave = 4;
  keysymlist = (KeySym *)malloc(maxcanhave * sizeof(KeySym));
  if (!keysymlist) {
    {
      badheader();
      fprintf(stderr, "attempt to allocate %ld byte initial keysymlist",
              (long)(maxcanhave * sizeof(KeySym)));
      putc('\n', stderr);
    };
    return (-1);
  }
  while (len > 0) {
    KeySym keysym;
    int n;
    char *tmpname;
    Bool ok;
    n = skip_space(line, len);
    line += n, len -= n;
    n = skip_chars(line, len);
    if (n < 0) {
      {
        badheader();
        fprintf(stderr, "keysym name list");
        putc('\n', stderr);
      };
      return (-1);
    }
    ok = parse_keysym(line, n, &tmpname, &keysym);
    line += n, len -= n;
    if (!ok) {
      {
        badheader();
        fprintf(stderr, "keysym name '%s' in keysym list", tmpname);
        putc('\n', stderr);
      };
      continue;
    }
    if (havesofar >= maxcanhave) {
      maxcanhave *= 2;
      keysymlist = (KeySym *)realloc(keysymlist, maxcanhave * sizeof(KeySym));
      if (!keysymlist) {
        {
          badheader();
          fprintf(stderr, "attempt to grow keysym list to %ld bytes",
                  (long)(maxcanhave * sizeof(KeySym)));
          putc('\n', stderr);
        };
        return (-1);
      }
    }
    keysymlist[havesofar++] = keysym;
  }
  *kslistp = keysymlist;
  *np = havesofar;
  return (0);
}


x86 assembly (clang, -O0):
<get_keysym_list>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x20(%rbp),%rax
movl   $0x0,(%rax)
mov    -0x28(%rbp),%rax
movq   $0x0,(%rax)
cmpl   $0x0,-0x14(%rbp)
jne    11c2 <get_keysym_list+0x42>
movl   $0x0,-0x4(%rbp)
jmp    13f3 <get_keysym_list+0x273>
movl   $0x0,-0x2c(%rbp)
movl   $0x4,-0x30(%rbp)
movslq -0x30(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1233 <get_keysym_list+0xb3>
mov    $0x0,%al
call   1070 <badheader@plt>
mov    0x2de4(%rip),%rax
mov    (%rax),%edi
movslq -0x30(%rbp),%rdx
shl    $0x2,%rdx
lea    0xdf3(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2dc5(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1050 <putc@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f3 <get_keysym_list+0x273>
jmp    1238 <get_keysym_list+0xb8>
cmpl   $0x0,-0x14(%rbp)
jle    13d8 <get_keysym_list+0x258>
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1030 <skip_space@plt>
mov    %eax,-0x40(%rbp)
mov    -0x40(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x40(%rbp),%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
call   1080 <skip_chars@plt>
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x40(%rbp)
jge    12c3 <get_keysym_list+0x143>
mov    $0x0,%al
call   1070 <badheader@plt>
mov    0x2d4c(%rip),%rax
mov    (%rax),%edi
lea    0xd93(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2d35(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1050 <putc@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f3 <get_keysym_list+0x273>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%esi
lea    -0x48(%rbp),%rdx
lea    -0x3c(%rbp),%rcx
call   1040 <parse_keysym@plt>
mov    %eax,-0x4c(%rbp)
mov    -0x40(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
mov    -0x40(%rbp),%ecx
mov    -0x14(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x4c(%rbp)
jne    133a <get_keysym_list+0x1ba>
mov    $0x0,%al
call   1070 <badheader@plt>
mov    0x2cd2(%rip),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%rdx
lea    0xd26(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2cb7(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1050 <putc@plt>
jmp    1238 <get_keysym_list+0xb8>
mov    -0x2c(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     13bb <get_keysym_list+0x23b>
mov    -0x30(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x30(%rbp)
mov    -0x38(%rbp),%rdi
movslq -0x30(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%esi
call   10a0 <realloc@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    13b6 <get_keysym_list+0x236>
mov    $0x0,%al
call   1070 <badheader@plt>
mov    0x2c61(%rip),%rax
mov    (%rax),%edi
movslq -0x30(%rbp),%rdx
shl    $0x2,%rdx
lea    0xcd1(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2c42(%rip),%rax
mov    (%rax),%esi
mov    $0xa,%edi
call   1050 <putc@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    13f3 <get_keysym_list+0x273>
jmp    13bb <get_keysym_list+0x23b>
mov    -0x3c(%rbp),%edx
mov    -0x38(%rbp),%rax
mov    -0x2c(%rbp),%ecx
mov    %ecx,%esi
add    $0x1,%esi
mov    %esi,-0x2c(%rbp)
movslq %ecx,%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1238 <get_keysym_list+0xb8>
mov    -0x38(%rbp),%rcx
mov    -0x28(%rbp),%rax
mov    %rcx,(%rax)
mov    -0x2c(%rbp),%ecx
mov    -0x20(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_keysym_list>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movl   $0x0,(%rdx)
movq   $0x0,(%rcx)
test   %esi,%esi
je     1306 <get_keysym_list+0x186>
mov    %rcx,%r15
mov    %rdx,%r14
mov    %esi,%ebp
mov    %rdi,%rbx
mov    $0x10,%edi
call   1090 <malloc@plt>
test   %rax,%rax
je     12ce <get_keysym_list+0x14e>
mov    %rax,%r13
test   %ebp,%ebp
mov    %r14,0x18(%rsp)
mov    %r15,0x10(%rsp)
jle    12f3 <get_keysym_list+0x173>
movl   $0x4,0x8(%rsp)
xor    %r14d,%r14d
jmp    1214 <get_keysym_list+0x94>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0xc(%rsp),%eax
mov    %r12d,%r14d
movslq %r12d,%rcx
add    $0x1,%r14d
mov    %eax,0x0(%r13,%rcx,4)
mov    %r15d,%eax
add    %rax,%rbx
sub    %r15d,%ebp
test   %ebp,%ebp
jle    12f6 <get_keysym_list+0x176>
mov    %rbx,%rdi
mov    %ebp,%esi
call   1030 <skip_space@plt>
cltq
add    %rax,%rbx
sub    %eax,%ebp
mov    %rbx,%rdi
mov    %ebp,%esi
call   1080 <skip_chars@plt>
test   %eax,%eax
js     130a <get_keysym_list+0x18a>
mov    %eax,%r15d
mov    %rbx,%rdi
mov    %eax,%esi
lea    0x20(%rsp),%rdx
lea    0xc(%rsp),%rcx
call   1040 <parse_keysym@plt>
test   %eax,%eax
je     1290 <get_keysym_list+0x110>
mov    %r14d,%r12d
mov    0x8(%rsp),%eax
cmp    %eax,%r14d
jl     11f0 <get_keysym_list+0x70>
add    %eax,%eax
mov    %eax,0x8(%rsp)
movslq %eax,%r14
shl    $0x2,%r14
mov    %r13,%rdi
mov    %r14d,%esi
call   10a0 <realloc@plt>
mov    %rax,%r13
test   %rax,%rax
jne    11f0 <get_keysym_list+0x70>
jmp    1348 <get_keysym_list+0x1c8>
nopw   0x0(%rax,%rax,1)
xor    %eax,%eax
call   1070 <badheader@plt>
mov    0x2d42(%rip),%rax
mov    %r14d,%r12d
mov    %rax,%r14
mov    (%rax),%edi
mov    0x20(%rsp),%rdx
lea    0xd8f(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%r14),%esi
mov    %r12d,%r14d
mov    $0xa,%edi
call   1050 <putc@plt>
jmp    1203 <get_keysym_list+0x83>
xor    %eax,%eax
call   1070 <badheader@plt>
mov    0x2d04(%rip),%rbx
mov    (%rbx),%edi
lea    0xd1b(%rip),%rsi
mov    $0x10,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1328 <get_keysym_list+0x1a8>
xor    %r14d,%r14d
mov    0x10(%rsp),%rax
mov    %r13,(%rax)
mov    0x18(%rsp),%rax
mov    %r14d,(%rax)
xor    %eax,%eax
jmp    1339 <get_keysym_list+0x1b9>
xor    %eax,%eax
call   1070 <badheader@plt>
mov    0x2cc8(%rip),%rbx
mov    (%rbx),%edi
lea    0xd0f(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%esi
mov    $0xa,%edi
call   1050 <putc@plt>
mov    $0xffffffff,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1070 <badheader@plt>
mov    0x2c8a(%rip),%rbx
mov    (%rbx),%edi
lea    0xd02(%rip),%rsi
mov    %r14,%rdx
jmp    12ea <get_keysym_list+0x16a>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [48 x i8] c"attempt to allocate %ld byte initial keysymlist\00"
@.str.1 = [17 x i8] c"keysym name list\00"
@.str.2 = [32 x i8] c"keysym name '%s' in keysym list\00"
@.str.3 = [41 x i8] c"attempt to grow keysym list to %ld bytes\00"
define i32 @get_keysym_list(i8* %0, i32 %1, i32* %2, i32** %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32**
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32*
%13 = alloca i32
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
store i8* %0, i8** %6
store i32 %1, i32* %7
store i32* %2, i32** %8
store i32** %3, i32*** %9
%17 = load i32*, i32** %8
store i32 0, i32* %17
%18 = load i32**, i32*** %9
store i32* null, i32** %18
%19 = load i32, i32* %7
%20 = icmp eq i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %4
store i32 0, i32* %5
br label %124
22: ; preds = %4
store i32 0, i32* %10
store i32 4, i32* %11
%23 = load i32, i32* %11
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 4
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 %26)
%28 = inttoptr i64 %27 to i32*
store i32* %28, i32** %12
%29 = load i32*, i32** %12
%30 = icmp ne i32* %29, null
br i1 %30, label %40, label %31
31: ; preds = %22
%32 = call i32 (...) @badheader()
%33 = load i32, i32* @stderr
%34 = load i32, i32* %11
%35 = sext i32 %34 to i64
%36 = mul i64 %35, 4
%37 = call i32 (i32, i8*, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i64 %36)
%38 = load i32, i32* @stderr
%39 = call i32 @putc(i8 signext 10, i32 %38)
store i32 -1, i32* %5
br label %124
40: ; preds = %22
br label %41
41: ; preds = %112, %79, %40
%42 = load i32, i32* %7
%43 = icmp sgt i32 %42, 0
br i1 %43, label %44, label %119
44: ; preds = %41
%45 = load i8*, i8** %6
%46 = load i32, i32* %7
%47 = call i32 @skip_space(i8* %45, i32 %46)
store i32 %47, i32* %14
%48 = load i32, i32* %14
%49 = load i8*, i8** %6
%50 = sext i32 %48 to i64
%51 = getelementptr inbounds i8, i8* %49, i64 %50
store i8* %51, i8** %6
%52 = load i32, i32* %14
%53 = load i32, i32* %7
%54 = sub nsw i32 %53, %52
store i32 %54, i32* %7
%55 = load i8*, i8** %6
%56 = load i32, i32* %7
%57 = call i32 @skip_chars(i8* %55, i32 %56)
store i32 %57, i32* %14
%58 = load i32, i32* %14
%59 = icmp slt i32 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %44
%61 = call i32 (...) @badheader()
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%64 = load i32, i32* @stderr
%65 = call i32 @putc(i8 signext 10, i32 %64)
store i32 -1, i32* %5
br label %124
66: ; preds = %44
%67 = load i8*, i8** %6
%68 = load i32, i32* %14
%69 = call i32 @parse_keysym(i8* %67, i32 %68, i8** %15, i32* %13)
store i32 %69, i32* %16
%70 = load i32, i32* %14
%71 = load i8*, i8** %6
%72 = sext i32 %70 to i64
%73 = getelementptr inbounds i8, i8* %71, i64 %72
store i8* %73, i8** %6
%74 = load i32, i32* %14
%75 = load i32, i32* %7
%76 = sub nsw i32 %75, %74
store i32 %76, i32* %7
%77 = load i32, i32* %16
%78 = icmp ne i32 %77, 0
br i1 %78, label %86, label %79
79: ; preds = %66
%80 = call i32 (...) @badheader()
%81 = load i32, i32* @stderr
%82 = load i8*, i8** %15
%83 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %82)
%84 = load i32, i32* @stderr
%85 = call i32 @putc(i8 signext 10, i32 %84)
br label %41
86: ; preds = %66
%87 = load i32, i32* %10
%88 = load i32, i32* %11
%89 = icmp sge i32 %87, %88
br i1 %89, label %90, label %112
90: ; preds = %86
%91 = load i32, i32* %11
%92 = mul nsw i32 %91, 2
store i32 %92, i32* %11
%93 = load i32*, i32** %12
%94 = load i32, i32* %11
%95 = sext i32 %94 to i64
%96 = mul i64 %95, 4
%97 = trunc i64 %96 to i32
%98 = call i64 @realloc(i32* %93, i32 %97)
%99 = inttoptr i64 %98 to i32*
store i32* %99, i32** %12
%100 = load i32*, i32** %12
%101 = icmp ne i32* %100, null
br i1 %101, label %111, label %102
102: ; preds = %90
%103 = call i32 (...) @badheader()
%104 = load i32, i32* @stderr
%105 = load i32, i32* %11
%106 = sext i32 %105 to i64
%107 = mul i64 %106, 4
%108 = call i32 (i32, i8*, ...) @fprintf(i32 %104, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i64 %107)
%109 = load i32, i32* @stderr
%110 = call i32 @putc(i8 signext 10, i32 %109)
store i32 -1, i32* %5
br label %124
111: ; preds = %90
br label %112
112: ; preds = %111, %86
%113 = load i32, i32* %13
%114 = load i32*, i32** %12
%115 = load i32, i32* %10
%116 = add nsw i32 %115, 1
store i32 %116, i32* %10
%117 = sext i32 %115 to i64
%118 = getelementptr inbounds i32, i32* %114, i64 %117
store i32 %113, i32* %118
br label %41
119: ; preds = %41
%120 = load i32*, i32** %12
%121 = load i32**, i32*** %9
store i32* %120, i32** %121
%122 = load i32, i32* %10
%123 = load i32*, i32** %8
store i32 %122, i32* %123
store i32 0, i32* %5
br label %124
124: ; preds = %119, %102, %60, %31, %21
%125 = load i32, i32* %5
ret i32 %125
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [48 x i8] c"attempt to allocate %ld byte initial keysymlist\00"
@.str.1 = [17 x i8] c"keysym name list\00"
@.str.2 = [32 x i8] c"keysym name '%s' in keysym list\00"
@.str.3 = [41 x i8] c"attempt to grow keysym list to %ld bytes\00"
define i32 @get_keysym_list(i8* %0, i32 %1, i32* nocapture writeonly %2, i32** nocapture writeonly %3) {
%5 = alloca i32
%6 = alloca i8*
store i32 0, i32* %2
store i32* null, i32** %3
%7 = icmp eq i32 %1, 0
br i1 %7, label %84, label %8
8: ; preds = %4
%9 = tail call i64 @malloc(i32 16)
%10 = inttoptr i64 %9 to i32*
%11 = icmp eq i64 %9, 0
br i1 %11, label %17, label %12
12: ; preds = %8
%13 = icmp sgt i32 %1, 0
br i1 %13, label %14, label %81
14: ; preds = %12
%15 = bitcast i32* %5 to i8*
%16 = bitcast i8** %6 to i8*
br label %23
17: ; preds = %8
%18 = tail call i32 (...) @badheader()
%19 = load i32, i32* @stderr
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str, i64 0, i64 0), i64 16)
%21 = load i32, i32* @stderr
%22 = tail call i32 @putc(i8 signext 10, i32 %21)
br label %84
23: ; preds = %14, %76
%24 = phi i32* [ %10, %14 ], [ %79, %76 ]
%25 = phi i32 [ 4, %14 ], [ %78, %76 ]
%26 = phi i32 [ 0, %14 ], [ %77, %76 ]
%27 = phi i8* [ %0, %14 ], [ %42, %76 ]
%28 = phi i32 [ %1, %14 ], [ %43, %76 ]
%29 = call i32 @skip_space(i8* %27, i32 %28)
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8, i8* %27, i64 %30
%32 = sub nsw i32 %28, %29
%33 = call i32 @skip_chars(i8* %31, i32 %32)
%34 = icmp slt i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %23
%36 = call i32 (...) @badheader()
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %73
39: ; preds = %23
%40 = call i32 @parse_keysym(i8* %31, i32 %33, i8** %6, i32* %5)
%41 = zext i32 %33 to i64
%42 = getelementptr inbounds i8, i8* %31, i64 %41
%43 = sub nsw i32 %32, %33
%44 = icmp eq i32 %40, 0
br i1 %44, label %45, label %52
45: ; preds = %39
%46 = call i32 (...) @badheader()
%47 = load i32, i32* @stderr
%48 = load i8*, i8** %6
%49 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8* %48)
%50 = load i32, i32* @stderr
%51 = call i32 @putc(i8 signext 10, i32 %50)
br label %76
52: ; preds = %39
%53 = icmp slt i32 %26, %25
br i1 %53, label %66, label %54
54: ; preds = %52
%55 = shl nsw i32 %25, 1
%56 = sext i32 %55 to i64
%57 = shl nsw i64 %56, 2
%58 = trunc i64 %57 to i32
%59 = call i64 @realloc(i32* %24, i32 %58)
%60 = inttoptr i64 %59 to i32*
%61 = icmp eq i64 %59, 0
br i1 %61, label %62, label %66
62: ; preds = %54
%63 = call i32 (...) @badheader()
%64 = load i32, i32* @stderr
%65 = call i32 (i32, i8*, ...) @fprintf(i32 %64, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i64 %57)
br label %73
66: ; preds = %54, %52
%67 = phi i32 [ %55, %54 ], [ %25, %52 ]
%68 = phi i32* [ %60, %54 ], [ %24, %52 ]
%69 = load i32, i32* %5
%70 = add nsw i32 %26, 1
%71 = sext i32 %26 to i64
%72 = getelementptr inbounds i32, i32* %68, i64 %71
store i32 %69, i32* %72
br label %76
73: ; preds = %35, %62
%74 = load i32, i32* @stderr
%75 = call i32 @putc(i8 signext 10, i32 %74)
br label %84
76: ; preds = %66, %45
%77 = phi i32 [ %70, %66 ], [ %26, %45 ]
%78 = phi i32 [ %67, %66 ], [ %25, %45 ]
%79 = phi i32* [ %68, %66 ], [ %24, %45 ]
%80 = icmp sgt i32 %43, 0
br i1 %80, label %23, label %81
81: ; preds = %76, %12
%82 = phi i32 [ 0, %12 ], [ %77, %76 ]
%83 = phi i32* [ %10, %12 ], [ %79, %76 ]
store i32* %83, i32** %3
store i32 %82, i32* %2
br label %84
84: ; preds = %73, %4, %81, %17
%85 = phi i32 [ 0, %81 ], [ -1, %17 ], [ 0, %4 ], [ -1, %73 ]
ret i32 %85
}