#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 */
typedef struct TYPE_2__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ answer;
struct TYPE_2__ {
  int /*<<< orphan*/ qdcount;
  int /*<<< orphan*/ ancount;
};
typedef TYPE_1__ HEADER;

/* Variables and functions */
unsigned char C_IN;
unsigned char T_TXT;
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ memcpy(char *, unsigned char *, int);
int ntohs(int /*<<< orphan*/);
int res_querydomain(char const *, char const *, unsigned char, unsigned char,
                    unsigned char *, int);
unsigned char *skipName(unsigned char *);
unsigned char *skipQuestions(unsigned char *, int);
int sscanf(char *, char *, unsigned long *);
int /*<<< orphan*/ stderr;
unsigned long int GetASNFromDNS(const char *name, const char *domain) {
  int length, rrLength, labelLength;
  unsigned long int ASN;
  unsigned char answer[512];
  char value[512 + 1];
  HEADER *h;
  unsigned char *pRR;
  length = res_querydomain(name, domain, C_IN, T_TXT, answer, sizeof(answer));
  h = (HEADER *)answer;
  if (ntohs(h->ancount) == 0) {
    fprintf(stderr, "Received no valid answer from DNS server...\n");
    return -1;
  } else if (ntohs(h->ancount) != 1) {
    fprintf(stderr, "Received more than 1 answer from DNS server!!!\n");
  }
  pRR = answer + sizeof(HEADER);
  pRR = skipQuestions(pRR, ntohs(h->qdcount));
  pRR = skipName(pRR);
  if (pRR[0] * 256 + pRR[1] != T_TXT)
    fprintf(stderr,
            "Oups... cannot decode the DNS answer part, wrong RR type\n");
  pRR += 2;
  if (pRR[0] * 256 + pRR[1] != C_IN)
    fprintf(stderr,
            "Oups... cannot decode the DNS answer part, wrong RR class\n");
  pRR += 6;
  rrLength = pRR[0] * 256 + pRR[1];
  if (rrLength > 512)
    rrLength = 512;
  pRR += 2;
  labelLength = (unsigned char)*pRR;
  memcpy(value, pRR + 1, labelLength);
  value[labelLength] = 0;
  if (sscanf(value, "%ld |", &ASN) != 1) {
    fprintf(stderr, "Cannot extract the ASN from %s\n", value);
    return -1;
  }
  return ASN;
}


x86 assembly (clang, -O0):
<GetASNFromDNS>:
push   %rbp
mov    %rsp,%rbp
sub    $0x460,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    0x2e56(%rip),%rax
mov    (%rax),%cl
mov    0x2e35(%rip),%rax
mov    (%rax),%al
lea    -0x230(%rbp),%r8
mov    $0x200,%r9d
movzbl %cl,%edx
movzbl %al,%ecx
call   1040 <res_querydomain@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x230(%rbp),%rax
mov    %rax,-0x448(%rbp)
mov    -0x448(%rbp),%rax
mov    0x4(%rax),%edi
call   1080 <ntohs@plt>
cmp    $0x0,%eax
jne    1202 <GetASNFromDNS+0x92>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13ff <GetASNFromDNS+0x28f>
mov    -0x448(%rbp),%rax
mov    0x4(%rax),%edi
call   1080 <ntohs@plt>
cmp    $0x1,%eax
je     1231 <GetASNFromDNS+0xc1>
mov    0x2db7(%rip),%rax
mov    (%rax),%edi
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1236 <GetASNFromDNS+0xc6>
lea    -0x230(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
mov    %rax,-0x458(%rbp)
mov    -0x448(%rbp),%rax
mov    (%rax),%edi
call   1080 <ntohs@plt>
mov    -0x458(%rbp),%rdi
mov    %eax,%esi
call   1090 <skipQuestions@plt>
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rdi
call   1030 <skipName@plt>
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movzbl (%rax),%eax
shl    $0x8,%eax
mov    -0x450(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
add    %ecx,%eax
mov    0x2d23(%rip),%rcx
movzbl (%rcx),%ecx
cmp    %ecx,%eax
je     12cf <GetASNFromDNS+0x15f>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
lea    0xd95(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x450(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movzbl (%rax),%eax
shl    $0x8,%eax
mov    -0x450(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
add    %ecx,%eax
mov    0x2ce6(%rip),%rcx
movzbl (%rcx),%ecx
cmp    %ecx,%eax
je     1324 <GetASNFromDNS+0x1b4>
mov    0x2cc4(%rip),%rax
mov    (%rax),%edi
lea    0xd7a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x450(%rbp),%rax
add    $0x6,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movzbl (%rax),%eax
shl    $0x8,%eax
mov    -0x450(%rbp),%rcx
movzbl 0x1(%rcx),%ecx
add    %ecx,%eax
mov    %eax,-0x20(%rbp)
cmpl   $0x200,-0x20(%rbp)
jle    1367 <GetASNFromDNS+0x1f7>
movl   $0x200,-0x20(%rbp)
mov    -0x450(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x450(%rbp)
mov    -0x450(%rbp),%rax
movzbl (%rax),%eax
mov    %eax,-0x24(%rbp)
lea    -0x440(%rbp),%rdi
mov    -0x450(%rbp),%rsi
add    $0x1,%rsi
mov    -0x24(%rbp),%edx
call   1060 <memcpy@plt>
movslq -0x24(%rbp),%rax
movb   $0x0,-0x440(%rbp,%rax,1)
lea    -0x440(%rbp),%rdi
lea    0xd18(%rip),%rsi
lea    -0x30(%rbp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
je     13f7 <GetASNFromDNS+0x287>
mov    0x2c05(%rip),%rax
mov    (%rax),%edi
lea    -0x440(%rbp),%rdx
lea    0xcf5(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movq   $0xffffffffffffffff,-0x8(%rbp)
ff
jmp    13ff <GetASNFromDNS+0x28f>
mov    -0x30(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x460,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<GetASNFromDNS>:
push   %r15
push   %r14
push   %rbx
sub    $0x420,%rsp
mov    0x2e65(%rip),%r14
movzbl (%r14),%edx
mov    0x2e42(%rip),%r15
movzbl (%r15),%ecx
lea    0x10(%rsp),%r8
mov    $0x200,%r9d
call   1040 <res_querydomain@plt>
mov    0x14(%rsp),%edi
call   1080 <ntohs@plt>
test   %eax,%eax
je     1292 <GetASNFromDNS+0x122>
mov    0x14(%rsp),%edi
call   1080 <ntohs@plt>
cmp    $0x1,%eax
je     11d8 <GetASNFromDNS+0x68>
mov    0x2e10(%rip),%rax
mov    (%rax),%edi
lea    0xe5c(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
lea    0x18(%rsp),%rbx
mov    0x10(%rsp),%edi
call   1080 <ntohs@plt>
mov    %rbx,%rdi
mov    %eax,%esi
call   1090 <skipQuestions@plt>
mov    %rax,%rdi
call   1030 <skipName@plt>
mov    %rax,%rbx
movzwl (%rax),%eax
shl    $0x10,%eax
bswap  %eax
movzbl (%r15),%ecx
cmp    %ecx,%eax
je     1222 <GetASNFromDNS+0xb2>
mov    0x2dc6(%rip),%rax
mov    (%rax),%edi
lea    0xe42(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movzwl 0x2(%rbx),%eax
shl    $0x10,%eax
bswap  %eax
movzbl (%r14),%ecx
cmp    %ecx,%eax
je     124a <GetASNFromDNS+0xda>
mov    0x2d9e(%rip),%rax
mov    (%rax),%edi
lea    0xe54(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
movzbl 0xa(%rbx),%r14d
add    $0xb,%rbx
lea    0x210(%rsp),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1060 <memcpy@plt>
movb   $0x0,0x210(%rsp,%r14,1)
lea    0xe59(%rip),%rsi
lea    0x8(%rsp),%rdx
mov    %r15,%rdi
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    12ab <GetASNFromDNS+0x13b>
mov    0x8(%rsp),%rax
jmp    12d1 <GetASNFromDNS+0x161>
mov    0x2d3f(%rip),%rax
mov    (%rax),%edi
lea    0xd5e(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    12ca <GetASNFromDNS+0x15a>
mov    0x2d26(%rip),%rax
mov    (%rax),%edi
lea    0xe1d(%rip),%rsi
lea    0x210(%rsp),%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xffffffffffffffff,%rax
add    $0x420,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.TYPE_2__ = type { i32, i32 }
@C_IN = global i8 0
@T_TXT = global i8 0
@stderr = global i32 0
@.str = [45 x i8] c"Received no valid answer from DNS server...\0A\00"
@.str.1 = [48 x i8] c"Received more than 1 answer from DNS server!!!\0A\00"
@.str.2 = [58 x i8] c"Oups... cannot decode the DNS answer part, wrong RR type\0A\00"
@.str.3 = [59 x i8] c"Oups... cannot decode the DNS answer part, wrong RR class\0A\00"
@.str.4 = [6 x i8] c"%ld |\00"
@.str.5 = [32 x i8] c"Cannot extract the ASN from %s\0A\00"
define i64 @GetASNFromDNS(i8* %0, i8* %1) {
%3 = alloca i64
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i64
%10 = alloca [512 x i8]
%11 = alloca [513 x i8]
%12 = alloca %struct.TYPE_2__*
%13 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
%14 = load i8*, i8** %4
%15 = load i8*, i8** %5
%16 = load i8, i8* @C_IN
%17 = load i8, i8* @T_TXT
%18 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%19 = call i32 @res_querydomain(i8* %14, i8* %15, i8 zeroext %16, i8 zeroext %17, i8* %18, i32 512)
store i32 %19, i32* %6
%20 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%21 = bitcast i8* %20 to %struct.TYPE_2__*
store %struct.TYPE_2__* %21, %struct.TYPE_2__** %12
%22 = load %struct.TYPE_2__*, %struct.TYPE_2__** %12
%23 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %22, i32 0, i32 1
%24 = load i32, i32* %23
%25 = call i32 @ntohs(i32 %24)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %2
%28 = load i32, i32* @stderr
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
store i64 -1, i64* %3
br label %125
30: ; preds = %2
%31 = load %struct.TYPE_2__*, %struct.TYPE_2__** %12
%32 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %31, i32 0, i32 1
%33 = load i32, i32* %32
%34 = call i32 @ntohs(i32 %33)
%35 = icmp ne i32 %34, 1
br i1 %35, label %36, label %39
36: ; preds = %30
%37 = load i32, i32* @stderr
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
br label %39
39: ; preds = %36, %30
br label %40
40: ; preds = %39
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%42 = getelementptr inbounds i8, i8* %41, i64 8
store i8* %42, i8** %13
%43 = load i8*, i8** %13
%44 = load %struct.TYPE_2__*, %struct.TYPE_2__** %12
%45 = getelementptr inbounds %struct.TYPE_2__, %struct.TYPE_2__* %44, i32 0, i32 0
%46 = load i32, i32* %45
%47 = call i32 @ntohs(i32 %46)
%48 = call i8* @skipQuestions(i8* %43, i32 %47)
store i8* %48, i8** %13
%49 = load i8*, i8** %13
%50 = call i8* @skipName(i8* %49)
store i8* %50, i8** %13
%51 = load i8*, i8** %13
%52 = getelementptr inbounds i8, i8* %51, i64 0
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = mul nsw i32 %54, 256
%56 = load i8*, i8** %13
%57 = getelementptr inbounds i8, i8* %56, i64 1
%58 = load i8, i8* %57
%59 = zext i8 %58 to i32
%60 = add nsw i32 %55, %59
%61 = load i8, i8* @T_TXT
%62 = zext i8 %61 to i32
%63 = icmp ne i32 %60, %62
br i1 %63, label %64, label %67
64: ; preds = %40
%65 = load i32, i32* @stderr
%66 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
br label %67
67: ; preds = %64, %40
%68 = load i8*, i8** %13
%69 = getelementptr inbounds i8, i8* %68, i64 2
store i8* %69, i8** %13
%70 = load i8*, i8** %13
%71 = getelementptr inbounds i8, i8* %70, i64 0
%72 = load i8, i8* %71
%73 = zext i8 %72 to i32
%74 = mul nsw i32 %73, 256
%75 = load i8*, i8** %13
%76 = getelementptr inbounds i8, i8* %75, i64 1
%77 = load i8, i8* %76
%78 = zext i8 %77 to i32
%79 = add nsw i32 %74, %78
%80 = load i8, i8* @C_IN
%81 = zext i8 %80 to i32
%82 = icmp ne i32 %79, %81
br i1 %82, label %83, label %86
83: ; preds = %67
%84 = load i32, i32* @stderr
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %84, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
br label %86
86: ; preds = %83, %67
%87 = load i8*, i8** %13
%88 = getelementptr inbounds i8, i8* %87, i64 6
store i8* %88, i8** %13
%89 = load i8*, i8** %13
%90 = getelementptr inbounds i8, i8* %89, i64 0
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = mul nsw i32 %92, 256
%94 = load i8*, i8** %13
%95 = getelementptr inbounds i8, i8* %94, i64 1
%96 = load i8, i8* %95
%97 = zext i8 %96 to i32
%98 = add nsw i32 %93, %97
store i32 %98, i32* %7
%99 = load i32, i32* %7
%100 = icmp sgt i32 %99, 512
br i1 %100, label %101, label %102
101: ; preds = %86
store i32 512, i32* %7
br label %102
102: ; preds = %101, %86
%103 = load i8*, i8** %13
%104 = getelementptr inbounds i8, i8* %103, i64 2
store i8* %104, i8** %13
%105 = load i8*, i8** %13
%106 = load i8, i8* %105
%107 = zext i8 %106 to i32
store i32 %107, i32* %8
%108 = getelementptr inbounds [513 x i8], [513 x i8]* %11, i64 0, i64 0
%109 = load i8*, i8** %13
%110 = getelementptr inbounds i8, i8* %109, i64 1
%111 = load i32, i32* %8
%112 = call i32 @memcpy(i8* %108, i8* %110, i32 %111)
%113 = load i32, i32* %8
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds [513 x i8], [513 x i8]* %11, i64 0, i64 %114
store i8 0, i8* %115
%116 = getelementptr inbounds [513 x i8], [513 x i8]* %11, i64 0, i64 0
%117 = call i32 @sscanf(i8* %116, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64* %9)
%118 = icmp ne i32 %117, 1
br i1 %118, label %119, label %123
119: ; preds = %102
%120 = load i32, i32* @stderr
%121 = getelementptr inbounds [513 x i8], [513 x i8]* %11, i64 0, i64 0
%122 = call i32 (i32, i8*, ...) @fprintf(i32 %120, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* %121)
store i64 -1, i64* %3
br label %125
123: ; preds = %102
%124 = load i64, i64* %9
store i64 %124, i64* %3
br label %125
125: ; preds = %123, %119, %27
%126 = load i64, i64* %3
ret i64 %126
}

LLVM IR (-O2):
@C_IN = global i8 0
@T_TXT = global i8 0
@stderr = global i32 0
@.str = [45 x i8] c"Received no valid answer from DNS server...\0A\00"
@.str.1 = [48 x i8] c"Received more than 1 answer from DNS server!!!\0A\00"
@.str.2 = [58 x i8] c"Oups... cannot decode the DNS answer part, wrong RR type\0A\00"
@.str.3 = [59 x i8] c"Oups... cannot decode the DNS answer part, wrong RR class\0A\00"
@.str.4 = [6 x i8] c"%ld |\00"
@.str.5 = [32 x i8] c"Cannot extract the ASN from %s\0A\00"
define i64 @GetASNFromDNS(i8* %0, i8* %1) {
%3 = alloca i64
%4 = alloca [512 x i8]
%5 = alloca [513 x i8]
%6 = bitcast i64* %3 to i8*
%7 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%8 = getelementptr inbounds [513 x i8], [513 x i8]* %5, i64 0, i64 0
%9 = load i8, i8* @C_IN
%10 = load i8, i8* @T_TXT
%11 = call i32 @res_querydomain(i8* %0, i8* %1, i8 zeroext %9, i8 zeroext %10, i8* %7, i32 512)
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 4
%13 = bitcast i8* %12 to i32*
%14 = load i32, i32* %13
%15 = call i32 @ntohs(i32 %14)
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %20
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
br label %77
20: ; preds = %2
%21 = load i32, i32* %13
%22 = call i32 @ntohs(i32 %21)
%23 = icmp eq i32 %22, 1
br i1 %23, label %27, label %24
24: ; preds = %20
%25 = load i32, i32* @stderr
%26 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
br label %27
27: ; preds = %20, %24
%28 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 8
%29 = bitcast [512 x i8]* %4 to i32*
%30 = load i32, i32* %29
%31 = call i32 @ntohs(i32 %30)
%32 = call i8* @skipQuestions(i8* %28, i32 %31)
%33 = call i8* @skipName(i8* %32)
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = shl nuw nsw i32 %35, 8
%37 = getelementptr inbounds i8, i8* %33, i64 1
%38 = load i8, i8* %37
%39 = zext i8 %38 to i32
%40 = or i32 %36, %39
%41 = load i8, i8* @T_TXT
%42 = zext i8 %41 to i32
%43 = icmp eq i32 %40, %42
br i1 %43, label %47, label %44
44: ; preds = %27
%45 = load i32, i32* @stderr
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.2, i64 0, i64 0))
br label %47
47: ; preds = %44, %27
%48 = getelementptr inbounds i8, i8* %33, i64 2
%49 = load i8, i8* %48
%50 = zext i8 %49 to i32
%51 = shl nuw nsw i32 %50, 8
%52 = getelementptr inbounds i8, i8* %33, i64 3
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = or i32 %51, %54
%56 = load i8, i8* @C_IN
%57 = zext i8 %56 to i32
%58 = icmp eq i32 %55, %57
br i1 %58, label %62, label %59
59: ; preds = %47
%60 = load i32, i32* @stderr
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
br label %62
62: ; preds = %59, %47
%63 = getelementptr inbounds i8, i8* %33, i64 10
%64 = load i8, i8* %63
%65 = zext i8 %64 to i32
%66 = getelementptr inbounds i8, i8* %33, i64 11
%67 = call i32 @memcpy(i8* %8, i8* %66, i32 %65)
%68 = zext i8 %64 to i64
%69 = getelementptr inbounds [513 x i8], [513 x i8]* %5, i64 0, i64 %68
store i8 0, i8* %69
%70 = call i32 @sscanf(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64* %3)
%71 = icmp eq i32 %70, 1
br i1 %71, label %75, label %72
72: ; preds = %62
%73 = load i32, i32* @stderr
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0), i8* %8)
br label %77
75: ; preds = %62
%76 = load i64, i64* %3
br label %77
77: ; preds = %75, %72, %17
%78 = phi i64 [ -1, %17 ], [ -1, %72 ], [ %76, %75 ]
ret i64 %78
}