#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*/ fprintf(int /*<<< orphan*/, char *, char const *, ...);
int /*<<< orphan*/ stderr;
int strtol(char const *, char **, int /*<<< orphan*/);
int __attribute__((__unused__)) init_int(int *num, const char *argv[]) {
  char *end;
  *num = strtol(argv[0], &end, 0);
  if (*end != '\0')
    do {
      fprintf(stderr, "FATAL[%s:%d]: ",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/madprogrammer/linux-aurora/refs/heads/"
              "allwinner-3.0.8/modules/wifi/nano-c047.12/userspace/libnrx/"
              "autotest/testprogram.in.c",
              85);
      fprintf(stderr, "Not a numeric value (%s)\n", argv[0]);
      return -1;
    } while (0);
  return 1;
}


x86 assembly (clang, -O0):
<init_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    -0x20(%rbp),%rsi
xor    %edx,%edx
call   1040 <strtol@plt>
mov    %eax,%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     11ac <init_int+0x8c>
jmp    115f <init_int+0x3f>
mov    0x2e7a(%rip),%rax
mov    (%rax),%edi
lea    0xe91(%rip),%rsi
lea    0xe99(%rip),%rdx
mov    $0x55,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e57(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rax
mov    (%rax),%rdx
lea    0xf4b(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    11b3 <init_int+0x93>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<init_int>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rsi),%rdi
mov    %rsp,%rsi
xor    %edx,%edx
call   1040 <strtol@plt>
mov    %eax,(%rbx)
mov    (%rsp),%rax
cmpb   $0x0,(%rax)
je     117f <init_int+0x5f>
mov    0x2e97(%rip),%rbx
mov    (%rbx),%edi
lea    0xeae(%rip),%rsi
lea    0xeb6(%rip),%rdx
mov    $0x55,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
mov    (%r14),%rdx
lea    0xf73(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0xffffffff,%eax
jmp    1184 <init_int+0x64>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"FATAL[%s:%d]: \00"
@.str.1 = [213 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/madprogrammer/linux-aurora/refs/heads/allwinner-3.0.8/modules/wifi/nano-c047.12/userspace/libnrx/autotest/testprogram.in.c\00"
@.str.2 = [26 x i8] c"Not a numeric value (%s)\0A\00"
define i32 @init_int(i32* %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32*
%5 = alloca i8**
%6 = alloca i8*
store i32* %0, i32** %4
store i8** %1, i8*** %5
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = call i32 @strtol(i8* %9, i8** %6, i32 0)
%11 = load i32*, i32** %4
store i32 %10, i32* %11
%12 = load i8*, i8** %6
%13 = load i8, i8* %12
%14 = sext i8 %13 to i32
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %2
br label %17
17: ; preds = %16
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([213 x i8], [213 x i8]* @.str.1, i64 0, i64 0), i32 85)
%20 = load i32, i32* @stderr
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 0
%23 = load i8*, i8** %22
%24 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %23)
store i32 -1, i32* %3
br label %27
25: ; No predecessors!
br label %26
26: ; preds = %25, %2
store i32 1, i32* %3
br label %27
27: ; preds = %26, %17
%28 = load i32, i32* %3
ret i32 %28
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"FATAL[%s:%d]: \00"
@.str.1 = [213 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/madprogrammer/linux-aurora/refs/heads/allwinner-3.0.8/modules/wifi/nano-c047.12/userspace/libnrx/autotest/testprogram.in.c\00"
@.str.2 = [26 x i8] c"Not a numeric value (%s)\0A\00"
define i32 @init_int(i32* nocapture writeonly %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = bitcast i8** %3 to i8*
%5 = load i8*, i8** %1
%6 = call i32 @strtol(i8* %5, i8** %3, i32 0)
store i32 %6, i32* %0
%7 = load i8*, i8** %3
%8 = load i8, i8* %7
%9 = icmp eq i8 %8, 0
br i1 %9, label %16, label %10
10: ; preds = %2
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([213 x i8], [213 x i8]* @.str.1, i64 0, i64 0), i32 85)
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %1
%15 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %14)
br label %16
16: ; preds = %2, %10
%17 = phi i32 [ -1, %10 ], [ 1, %2 ]
ret i32 %17
}