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

/* Variables and functions */
scalar_t__ INT_MAX;
scalar_t__ LONG_MAX;
scalar_t__ UINT_MAX;
long asn1_get_length_der(unsigned char *, int, int *);
int /*<<< orphan*/ asn1_length_der(unsigned long, unsigned char *, int *);
int /*<<< orphan*/ printf(char *, long, int);
int /*<<< orphan*/ puts(char *);
int main(void) {
  {
    unsigned char der[] = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF";
    long l;
    int len;
    l = asn1_get_length_der(der, sizeof der, &len);
    if (l == -2L)
      puts("OK: asn1_get_length_der bignum");
    else {
      printf("ERROR: asn1_get_length_der bignum (l %ld len %d)\n", l, len);
      return 1;
    }
  }
  if (LONG_MAX > INT_MAX) {
    unsigned long num = ((long)UINT_MAX) << 2;
    unsigned char der[20];
    int der_len;
    long l;
    int len;
    asn1_length_der(num, der, &der_len);
    l = asn1_get_length_der(der, der_len, &len);
    if (l == -2L)
      puts("OK: asn1_get_length_der intnum");
    else {
      printf("ERROR: asn1_get_length_der intnum (l %ld len %d)\n", l, len);
      return 1;
    }
  }
  {
    unsigned long num = 64;
    unsigned char der[20];
    int der_len;
    long l;
    int len;
    asn1_length_der(num, der, &der_len);
    der_len = sizeof(der);
    l = asn1_get_length_der(der, der_len, &len);
    if (l == -4L)
      puts("OK: asn1_get_length_der overflow-small");
    else {
      printf("ERROR: asn1_get_length_der overflow-small (l %ld len %d)\n", l,
             len);
      return 1;
    }
  }
  {
    unsigned long num = 1073741824;
    unsigned char der[20];
    int der_len;
    long l;
    int len;
    asn1_length_der(num, der, &der_len);
    der_len = sizeof(der);
    l = asn1_get_length_der(der, der_len, &len);
    if (l == -4L)
      puts("OK: asn1_get_length_der overflow-large1");
    else {
      printf("ERROR: asn1_get_length_der overflow-large1 (l %ld len %d)\n", l,
             len);
      return 1;
    }
  }
  {
    unsigned long num = 2147483647;
    unsigned char der[20];
    int der_len;
    long l;
    int len;
    asn1_length_der(num, der, &der_len);
    der_len = sizeof(der);
    l = asn1_get_length_der(der, der_len, &len);
    if (l == -2L)
      puts("OK: asn1_get_length_der overflow-large2");
    else {
      printf("ERROR: asn1_get_length_der overflow-large2 (l %ld len %d)\n", l,
             len);
      return 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xea7(%rip),%rax
mov    %rax,-0xf(%rbp)
mov    0xea4(%rip),%ax
mov    %ax,-0x7(%rbp)
mov    0xe9c(%rip),%al
mov    %al,-0x5(%rbp)
lea    -0xf(%rbp),%rdi
mov    $0xb,%esi
lea    -0x1c(%rbp),%rdx
call   1050 <asn1_get_length_der@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0xfffffffffffffffe,-0x18(%rbp)
jne    11a3 <main+0x63>
lea    0xe72(%rip),%rdi
call   1030 <puts@plt>
jmp    11c2 <main+0x82>
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
lea    0xe79(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1407 <main+0x2c7>
mov    0x2e07(%rip),%rax
mov    (%rax),%rax
mov    0x2e15(%rip),%rcx
cmp    (%rcx),%rax
jle    1253 <main+0x113>
mov    0x2dfd(%rip),%rax
mov    (%rax),%rax
shl    $0x2,%rax
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x40(%rbp),%rsi
lea    -0x44(%rbp),%rdx
call   1060 <asn1_length_der@plt>
lea    -0x40(%rbp),%rdi
mov    -0x44(%rbp),%esi
lea    -0x54(%rbp),%rdx
call   1050 <asn1_get_length_der@plt>
mov    %rax,-0x50(%rbp)
cmpq   $0xfffffffffffffffe,-0x50(%rbp)
jne    122f <main+0xef>
lea    0xe37(%rip),%rdi
call   1030 <puts@plt>
jmp    124e <main+0x10e>
mov    -0x50(%rbp),%rsi
mov    -0x54(%rbp),%edx
lea    0xe3e(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1407 <main+0x2c7>
jmp    1253 <main+0x113>
movq   $0x40,-0x60(%rbp)
mov    -0x60(%rbp),%rdi
lea    -0x80(%rbp),%rsi
lea    -0x84(%rbp),%rdx
call   1060 <asn1_length_der@plt>
movl   $0x14,-0x84(%rbp)
lea    -0x80(%rbp),%rdi
mov    -0x84(%rbp),%esi
lea    -0x94(%rbp),%rdx
call   1050 <asn1_get_length_der@plt>
mov    %rax,-0x90(%rbp)
cmpq   $0xfffffffffffffffc,-0x90(%rbp)
fc
jne    12b5 <main+0x175>
lea    0xe02(%rip),%rdi
call   1030 <puts@plt>
jmp    12da <main+0x19a>
mov    -0x90(%rbp),%rsi
mov    -0x94(%rbp),%edx
lea    0xe0b(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1407 <main+0x2c7>
movq   $0x40000000,-0xa0(%rbp)
mov    -0xa0(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
lea    -0xc4(%rbp),%rdx
call   1060 <asn1_length_der@plt>
movl   $0x14,-0xc4(%rbp)
lea    -0xc0(%rbp),%rdi
mov    -0xc4(%rbp),%esi
lea    -0xd4(%rbp),%rdx
call   1050 <asn1_get_length_der@plt>
mov    %rax,-0xd0(%rbp)
cmpq   $0xfffffffffffffffc,-0xd0(%rbp)
fc
jne    1348 <main+0x208>
lea    0xdd0(%rip),%rdi
call   1030 <puts@plt>
jmp    136d <main+0x22d>
mov    -0xd0(%rbp),%rsi
mov    -0xd4(%rbp),%edx
lea    0xdda(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1407 <main+0x2c7>
movq   $0x7fffffff,-0xe0(%rbp)
ff ff ff 7f
mov    -0xe0(%rbp),%rdi
lea    -0x100(%rbp),%rsi
lea    -0x104(%rbp),%rdx
call   1060 <asn1_length_der@plt>
movl   $0x14,-0x104(%rbp)
lea    -0x100(%rbp),%rdi
mov    -0x104(%rbp),%esi
lea    -0x114(%rbp),%rdx
call   1050 <asn1_get_length_der@plt>
mov    %rax,-0x110(%rbp)
cmpq   $0xfffffffffffffffe,-0x110(%rbp)
fe
jne    13db <main+0x29b>
lea    0xda0(%rip),%rdi
call   1030 <puts@plt>
jmp    1400 <main+0x2c0>
mov    -0x110(%rbp),%rsi
mov    -0x114(%rbp),%edx
lea    0xdaa(%rip),%rdi
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1407 <main+0x2c7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
movl   $0xffffff,0x17(%rsp)
movq   $0xffffffffffffffff,0x10(%rsp)
ff ff
lea    0x10(%rsp),%rdi
lea    0x8(%rsp),%rdx
mov    $0xb,%esi
call   1050 <asn1_get_length_der@plt>
cmp    $0xfffffffffffffffe,%rax
jne    12ae <main+0x16e>
lea    0xe90(%rip),%rdi
call   1030 <puts@plt>
mov    0x2e49(%rip),%rax
mov    (%rax),%rax
mov    0x2e57(%rip),%rcx
cmp    (%rcx),%rax
jle    11dd <main+0x9d>
mov    0x2e43(%rip),%rax
mov    (%rax),%rdi
shl    $0x2,%rdi
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%rdx
mov    %rbx,%rsi
call   1060 <asn1_length_der@plt>
mov    0x8(%rsp),%esi
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
call   1050 <asn1_get_length_der@plt>
cmp    $0xfffffffffffffffe,%rax
jne    12c8 <main+0x188>
lea    0xe84(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%rdx
mov    $0x40,%edi
mov    %rbx,%rsi
call   1060 <asn1_length_der@plt>
movl   $0x14,0x8(%rsp)
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1050 <asn1_get_length_der@plt>
cmp    $0xfffffffffffffffc,%rax
jne    12bb <main+0x17b>
lea    0xe8e(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%rdx
mov    $0x40000000,%edi
mov    %rbx,%rsi
call   1060 <asn1_length_der@plt>
movl   $0x14,0x8(%rsp)
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1050 <asn1_get_length_der@plt>
cmp    $0xfffffffffffffffc,%rax
jne    12d5 <main+0x195>
lea    0xeac(%rip),%rdi
call   1030 <puts@plt>
lea    0x10(%rsp),%rbx
lea    0x8(%rsp),%rdx
mov    $0x7fffffff,%edi
mov    %rbx,%rsi
call   1060 <asn1_length_der@plt>
movl   $0x14,0x8(%rsp)
lea    0xc(%rsp),%rdx
mov    %rbx,%rdi
mov    $0x14,%esi
call   1050 <asn1_get_length_der@plt>
cmp    $0xfffffffffffffffe,%rax
jne    12e2 <main+0x1a2>
lea    0xecc(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
jmp    12fa <main+0x1ba>
mov    0x8(%rsp),%edx
lea    0xd71(%rip),%rdi
jmp    12ed <main+0x1ad>
mov    0xc(%rsp),%edx
lea    0xe0e(%rip),%rdi
jmp    12ed <main+0x1ad>
mov    0xc(%rsp),%edx
lea    0xda8(%rip),%rdi
jmp    12ed <main+0x1ad>
mov    0xc(%rsp),%edx
lea    0xe56(%rip),%rdi
jmp    12ed <main+0x1ad>
mov    0xc(%rsp),%edx
lea    0xeac(%rip),%rdi
mov    %rax,%rsi
call   1040 <printf@plt>
mov    $0x1,%eax
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.der = [11 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\00"
@.str = [31 x i8] c"OK: asn1_get_length_der bignum\00"
@.str.1 = [50 x i8] c"ERROR: asn1_get_length_der bignum (l %ld len %d)\0A\00"
@LONG_MAX = global i64 0
@INT_MAX = global i64 0
@UINT_MAX = global i64 0
@.str.2 = [31 x i8] c"OK: asn1_get_length_der intnum\00"
@.str.3 = [50 x i8] c"ERROR: asn1_get_length_der intnum (l %ld len %d)\0A\00"
@.str.4 = [39 x i8] c"OK: asn1_get_length_der overflow-small\00"
@.str.5 = [58 x i8] c"ERROR: asn1_get_length_der overflow-small (l %ld len %d)\0A\00"
@.str.6 = [40 x i8] c"OK: asn1_get_length_der overflow-large1\00"
@.str.7 = [59 x i8] c"ERROR: asn1_get_length_der overflow-large1 (l %ld len %d)\0A\00"
@.str.8 = [40 x i8] c"OK: asn1_get_length_der overflow-large2\00"
@.str.9 = [59 x i8] c"ERROR: asn1_get_length_der overflow-large2 (l %ld len %d)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [11 x i8]
%3 = alloca i64
%4 = alloca i32
%5 = alloca i64
%6 = alloca [20 x i8]
%7 = alloca i32
%8 = alloca i64
%9 = alloca i32
%10 = alloca i64
%11 = alloca [20 x i8]
%12 = alloca i32
%13 = alloca i64
%14 = alloca i32
%15 = alloca i64
%16 = alloca [20 x i8]
%17 = alloca i32
%18 = alloca i64
%19 = alloca i32
%20 = alloca i64
%21 = alloca [20 x i8]
%22 = alloca i32
%23 = alloca i64
%24 = alloca i32
store i32 0, i32* %1
%25 = bitcast [11 x i8]* %2 to i8*
%26 = getelementptr inbounds [11 x i8], [11 x i8]* %2, i64 0, i64 0
%27 = call i64 @asn1_get_length_der(i8* %26, i32 11, i32* %4)
store i64 %27, i64* %3
%28 = load i64, i64* %3
%29 = icmp eq i64 %28, -2
br i1 %29, label %30, label %32
30: ; preds = %0
%31 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
br label %36
32: ; preds = %0
%33 = load i64, i64* %3
%34 = load i32, i32* %4
%35 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i64 %33, i32 %34)
store i32 1, i32* %1
br label %104
36: ; preds = %30
%37 = load i64, i64* @LONG_MAX
%38 = load i64, i64* @INT_MAX
%39 = icmp sgt i64 %37, %38
br i1 %39, label %40, label %58
40: ; preds = %36
%41 = load i64, i64* @UINT_MAX
%42 = shl i64 %41, 2
store i64 %42, i64* %5
%43 = load i64, i64* %5
%44 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%45 = call i32 @asn1_length_der(i64 %43, i8* %44, i32* %7)
%46 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%47 = load i32, i32* %7
%48 = call i64 @asn1_get_length_der(i8* %46, i32 %47, i32* %9)
store i64 %48, i64* %8
%49 = load i64, i64* %8
%50 = icmp eq i64 %49, -2
br i1 %50, label %51, label %53
51: ; preds = %40
%52 = call i32 @puts(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
br label %57
53: ; preds = %40
%54 = load i64, i64* %8
%55 = load i32, i32* %9
%56 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i64 %54, i32 %55)
store i32 1, i32* %1
br label %104
57: ; preds = %51
br label %58
58: ; preds = %57, %36
store i64 64, i64* %10
%59 = load i64, i64* %10
%60 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%61 = call i32 @asn1_length_der(i64 %59, i8* %60, i32* %12)
store i32 20, i32* %12
%62 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%63 = load i32, i32* %12
%64 = call i64 @asn1_get_length_der(i8* %62, i32 %63, i32* %14)
store i64 %64, i64* %13
%65 = load i64, i64* %13
%66 = icmp eq i64 %65, -4
br i1 %66, label %67, label %69
67: ; preds = %58
%68 = call i32 @puts(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
br label %73
69: ; preds = %58
%70 = load i64, i64* %13
%71 = load i32, i32* %14
%72 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i64 %70, i32 %71)
store i32 1, i32* %1
br label %104
73: ; preds = %67
store i64 1073741824, i64* %15
%74 = load i64, i64* %15
%75 = getelementptr inbounds [20 x i8], [20 x i8]* %16, i64 0, i64 0
%76 = call i32 @asn1_length_der(i64 %74, i8* %75, i32* %17)
store i32 20, i32* %17
%77 = getelementptr inbounds [20 x i8], [20 x i8]* %16, i64 0, i64 0
%78 = load i32, i32* %17
%79 = call i64 @asn1_get_length_der(i8* %77, i32 %78, i32* %19)
store i64 %79, i64* %18
%80 = load i64, i64* %18
%81 = icmp eq i64 %80, -4
br i1 %81, label %82, label %84
82: ; preds = %73
%83 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
br label %88
84: ; preds = %73
%85 = load i64, i64* %18
%86 = load i32, i32* %19
%87 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i64 %85, i32 %86)
store i32 1, i32* %1
br label %104
88: ; preds = %82
store i64 2147483647, i64* %20
%89 = load i64, i64* %20
%90 = getelementptr inbounds [20 x i8], [20 x i8]* %21, i64 0, i64 0
%91 = call i32 @asn1_length_der(i64 %89, i8* %90, i32* %22)
store i32 20, i32* %22
%92 = getelementptr inbounds [20 x i8], [20 x i8]* %21, i64 0, i64 0
%93 = load i32, i32* %22
%94 = call i64 @asn1_get_length_der(i8* %92, i32 %93, i32* %24)
store i64 %94, i64* %23
%95 = load i64, i64* %23
%96 = icmp eq i64 %95, -2
br i1 %96, label %97, label %99
97: ; preds = %88
%98 = call i32 @puts(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
br label %103
99: ; preds = %88
%100 = load i64, i64* %23
%101 = load i32, i32* %24
%102 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), i64 %100, i32 %101)
store i32 1, i32* %1
br label %104
103: ; preds = %97
store i32 0, i32* %1
br label %104
104: ; preds = %103, %99, %84, %69, %53, %32
%105 = load i32, i32* %1
ret i32 %105
}

LLVM IR (-O2):
@__const.main.der = [11 x i8] c"\FF\FF\FF\FF\FF\FF\FF\FF\FF\FF\00"
@.str = [31 x i8] c"OK: asn1_get_length_der bignum\00"
@.str.1 = [50 x i8] c"ERROR: asn1_get_length_der bignum (l %ld len %d)\0A\00"
@LONG_MAX = global i64 0
@INT_MAX = global i64 0
@UINT_MAX = global i64 0
@.str.2 = [31 x i8] c"OK: asn1_get_length_der intnum\00"
@.str.3 = [50 x i8] c"ERROR: asn1_get_length_der intnum (l %ld len %d)\0A\00"
@.str.4 = [39 x i8] c"OK: asn1_get_length_der overflow-small\00"
@.str.5 = [58 x i8] c"ERROR: asn1_get_length_der overflow-small (l %ld len %d)\0A\00"
@.str.6 = [40 x i8] c"OK: asn1_get_length_der overflow-large1\00"
@.str.7 = [59 x i8] c"ERROR: asn1_get_length_der overflow-large1 (l %ld len %d)\0A\00"
@.str.8 = [40 x i8] c"OK: asn1_get_length_der overflow-large2\00"
@.str.9 = [59 x i8] c"ERROR: asn1_get_length_der overflow-large2 (l %ld len %d)\0A\00"
define i32 @main() {
%1 = alloca [11 x i8]
%2 = alloca i32
%3 = alloca [20 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca [20 x i8]
%7 = alloca i32
%8 = alloca i32
%9 = alloca [20 x i8]
%10 = alloca i32
%11 = alloca i32
%12 = alloca [20 x i8]
%13 = alloca i32
%14 = alloca i32
%15 = getelementptr inbounds [11 x i8], [11 x i8]* %1, i64 0, i64 0
%16 = bitcast i32* %2 to i8*
%17 = call i64 @asn1_get_length_der(i8* %15, i32 11, i32* %2)
%18 = icmp eq i64 %17, -2
br i1 %18, label %22, label %19
19: ; preds = %0
%20 = load i32, i32* %2
%21 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0), i64 %17, i32 %20)
br label %78
22: ; preds = %0
%23 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str, i64 0, i64 0))
%24 = load i64, i64* @LONG_MAX
%25 = load i64, i64* @INT_MAX
%26 = icmp sgt i64 %24, %25
br i1 %26, label %27, label %42
27: ; preds = %22
%28 = load i64, i64* @UINT_MAX
%29 = shl i64 %28, 2
%30 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%31 = bitcast i32* %4 to i8*
%32 = bitcast i32* %5 to i8*
%33 = call i32 @asn1_length_der(i64 %29, i8* %30, i32* %4)
%34 = load i32, i32* %4
%35 = call i64 @asn1_get_length_der(i8* %30, i32 %34, i32* %5)
%36 = icmp eq i64 %35, -2
br i1 %36, label %37, label %39
37: ; preds = %27
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.2, i64 0, i64 0))
br label %42
39: ; preds = %27
%40 = load i32, i32* %5
%41 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0), i64 %35, i32 %40)
br label %78
42: ; preds = %37, %22
%43 = getelementptr inbounds [20 x i8], [20 x i8]* %6, i64 0, i64 0
%44 = bitcast i32* %7 to i8*
%45 = bitcast i32* %8 to i8*
%46 = call i32 @asn1_length_der(i64 64, i8* %43, i32* %7)
store i32 20, i32* %7
%47 = call i64 @asn1_get_length_der(i8* %43, i32 20, i32* %8)
%48 = icmp eq i64 %47, -4
br i1 %48, label %52, label %49
49: ; preds = %42
%50 = load i32, i32* %8
%51 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i64 %47, i32 %50)
br label %78
52: ; preds = %42
%53 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%54 = getelementptr inbounds [20 x i8], [20 x i8]* %9, i64 0, i64 0
%55 = bitcast i32* %10 to i8*
%56 = bitcast i32* %11 to i8*
%57 = call i32 @asn1_length_der(i64 1073741824, i8* %54, i32* %10)
store i32 20, i32* %10
%58 = call i64 @asn1_get_length_der(i8* %54, i32 20, i32* %11)
%59 = icmp eq i64 %58, -4
br i1 %59, label %63, label %60
60: ; preds = %52
%61 = load i32, i32* %11
%62 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.7, i64 0, i64 0), i64 %58, i32 %61)
br label %78
63: ; preds = %52
%64 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0))
%65 = getelementptr inbounds [20 x i8], [20 x i8]* %12, i64 0, i64 0
%66 = bitcast i32* %13 to i8*
%67 = bitcast i32* %14 to i8*
%68 = call i32 @asn1_length_der(i64 2147483647, i8* %65, i32* %13)
store i32 20, i32* %13
%69 = call i64 @asn1_get_length_der(i8* %65, i32 20, i32* %14)
%70 = icmp eq i64 %69, -2
br i1 %70, label %71, label %73
71: ; preds = %63
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
br label %76
73: ; preds = %63
%74 = load i32, i32* %14
%75 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.9, i64 0, i64 0), i64 %69, i32 %74)
br label %76
76: ; preds = %71, %73
%77 = phi i32 [ 0, %71 ], [ 1, %73 ]
br label %78
78: ; preds = %60, %49, %39, %19, %76
%79 = phi i32 [ 1, %19 ], [ 1, %39 ], [ 1, %49 ], [ 1, %60 ], [ %77, %76 ]
ret i32 %79
}