#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 ERANGE;
long INT_MAX;
long INT_MIN;
int errno;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, long, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strerror(int);
long strtol(char *, char **, int);
int main(int argc, char **argv) {
  int ret = 0;
  if (argc < 2) {
    fprintf(stderr,
            "error: Too few arguments\n"
            "\n"
            "Usage: %s n[-n] ...\n"
            " n: errno number\n",
            argv[0]);
    exit(0x4);
  }
  for (int i = 1; i < argc; i++) {
    char *end_char;
    long value_begin, value_end;
    errno = 0;
    value_begin = strtol(argv[i], &end_char, 10);
    int strtol_errno = errno;
    value_end = value_begin;
    if (*end_char == '-' && *(end_char + 1) != '\0') {
      value_end = strtol(end_char + 1, &end_char, 10);
    }
    if (*end_char) {
      fprintf(stderr, "error: Argument %d: non-digit characters detected\n", i);
      fprintf(stderr, "error:   %s\n", argv[i]);
      fprintf(stderr, "error:   %*c\n", (int)(end_char - argv[i]) + 1, '^');
      ret = 1;
    } else {
      if (strtol_errno == ERANGE || value_begin < INT_MIN ||
          value_begin > INT_MAX || value_end < INT_MIN || value_end > INT_MAX) {
        fprintf(stderr, "error: Argument %d `%s': numeric value out of range\n",
                i, argv[i]);
        ret = 1;
      } else if (value_begin > value_end) {
        fprintf(stderr,
                "error: First number in range is larger than second: '%s'\n",
                argv[i]);
      } else {
        for (long i = value_begin; i <= value_end; i++)
          printf("%3ld --> %s\n", i, strerror((int)i));
      }
    }
  }
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    119f <main+0x4f>
mov    0x2e4a(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe72(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0x4,%edi
call   1060 <exit@plt>
movl   $0x1,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    13ee <main+0x29e>
mov    0x2e07(%rip),%rax
movl   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    -0x20(%rbp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,-0x28(%rbp)
mov    0x2ddc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    122c <main+0xdc>
mov    -0x20(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
je     122c <main+0xdc>
mov    -0x20(%rbp),%rdi
add    $0x1,%rdi
lea    -0x20(%rbp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
cmpb   $0x0,(%rax)
je     12b6 <main+0x166>
mov    0x2d88(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
lea    0xdf4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d6e(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq -0x18(%rbp),%rdx
mov    (%rcx,%rdx,8),%rcx
sub    %rcx,%rax
mov    %eax,%edx
add    $0x1,%edx
lea    0xde2(%rip),%rsi
mov    $0x5e,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x1,-0x14(%rbp)
jmp    13db <main+0x28b>
mov    -0x34(%rbp),%eax
mov    0x2d18(%rip),%rcx
cmp    (%rcx),%eax
je     1318 <main+0x1c8>
mov    -0x28(%rbp),%rax
mov    0x2d0d(%rip),%rcx
cmp    (%rcx),%rax
jl     1318 <main+0x1c8>
mov    -0x28(%rbp),%rax
mov    0x2d01(%rip),%rcx
cmp    (%rcx),%rax
jg     1318 <main+0x1c8>
mov    -0x30(%rbp),%rax
mov    0x2ce5(%rip),%rcx
cmp    (%rcx),%rax
jl     1318 <main+0x1c8>
mov    -0x30(%rbp),%rax
mov    0x2cd9(%rip),%rcx
cmp    (%rcx),%rax
jle    134a <main+0x1fa>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rcx
lea    0xd57(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x1,-0x14(%rbp)
jmp    13d6 <main+0x286>
mov    -0x28(%rbp),%rax
cmp    -0x30(%rbp),%rax
jle    1380 <main+0x230>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xd4f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
jmp    13d1 <main+0x281>
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x30(%rbp),%rax
jg     13cc <main+0x27c>
mov    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x40(%rbp),%rax
mov    %eax,%edi
call   1070 <strerror@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
lea    0xd47(%rip),%rdi
call   1030 <printf@plt>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    1388 <main+0x238>
jmp    13d1 <main+0x281>
jmp    13d6 <main+0x286>
jmp    13db <main+0x28b>
jmp    13e0 <main+0x290>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    11a6 <main+0x56>
mov    -0x14(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r14
cmp    $0x2,%edi
jl     1368 <main+0x218>
mov    %edi,%eax
mov    %rax,0x20(%rsp)
mov    $0x1,%ebx
movl   $0x0,0xc(%rsp)
mov    %r14,0x10(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x2e29(%rip),%rbp
movl   $0x0,0x0(%rbp)
mov    (%r14,%rbx,8),%rdi
lea    0x18(%rsp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,%r13
mov    0x0(%rbp),%r12d
mov    0x18(%rsp),%r15
mov    (%r15),%al
cmp    $0x2d,%al
jne    1280 <main+0x130>
cmpb   $0x0,0x1(%r15)
je     128b <main+0x13b>
add    $0x1,%r15
mov    %r15,%rdi
lea    0x18(%rsp),%rsi
mov    $0xa,%edx
call   1050 <strtol@plt>
mov    %rax,%r14
mov    0x18(%rsp),%r15
mov    (%r15),%al
test   %al,%al
jne    128b <main+0x13b>
mov    0x2dd5(%rip),%rax
cmp    (%rax),%r12d
je     12f0 <main+0x1a0>
mov    0x2dcd(%rip),%rax
mov    (%rax),%rax
cmp    %rax,%r13
jl     12f0 <main+0x1a0>
mov    0x2dc2(%rip),%rcx
mov    (%rcx),%rcx
cmp    %rcx,%r13
jg     12f0 <main+0x1a0>
cmp    %rax,%r14
jl     12f0 <main+0x1a0>
cmp    %rcx,%r14
jg     12f0 <main+0x1a0>
cmp    %r14,%r13
lea    0xeaf(%rip),%rbp
jle    132b <main+0x1db>
mov    0x2d6d(%rip),%rax
mov    (%rax),%edi
mov    0x10(%rsp),%r14
mov    (%r14,%rbx,8),%rdx
lea    0xe56(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    131a <main+0x1ca>
nopl   0x0(%rax)
mov    %r13,%r14
test   %al,%al
je     11fc <main+0xac>
mov    0x2d36(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xda4(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x0(%rbp),%edi
mov    0x10(%rsp),%r14
mov    (%r14,%rbx,8),%rdx
lea    0xdbb(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    0x0(%rbp),%edi
sub    (%r14,%rbx,8),%r15d
add    $0x1,%r15d
lea    0xdaf(%rip),%rsi
mov    %r15d,%edx
mov    $0x5e,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
jmp    1312 <main+0x1c2>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x2cd1(%rip),%rax
mov    (%rax),%edi
mov    0x10(%rsp),%r14
mov    (%r14,%rbx,8),%rcx
lea    0xd85(%rip),%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
movl   $0x1,0xc(%rsp)
add    $0x1,%rbx
cmp    0x20(%rsp),%rbx
jne    1190 <main+0x40>
jmp    1355 <main+0x205>
add    $0x1,%r14
nop
mov    %r13d,%edi
call   1070 <strerror@plt>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %eax,%edx
call   1030 <printf@plt>
add    $0x1,%r13
cmp    %r13,%r14
jne    1330 <main+0x1e0>
mov    0x10(%rsp),%r14
jmp    131a <main+0x1ca>
mov    0xc(%rsp),%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c59(%rip),%rax
mov    (%rax),%edi
mov    (%r14),%rdx
lea    0xc85(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0x4,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [64 x i8] c"error: Too few arguments\0A\0AUsage: %s n[-n] ...\0A n: errno number\0A\00"
@errno = global i32 0
@.str.1 = [51 x i8] c"error: Argument %d: non-digit characters detected\0A\00"
@.str.2 = [13 x i8] c"error: %s\0A\00"
@.str.3 = [14 x i8] c"error: %*c\0A\00"
@ERANGE = global i32 0
@INT_MIN = global i64 0
@INT_MAX = global i64 0
@.str.4 = [53 x i8] c"error: Argument %d `%s': numeric value out of range\0A\00"
@.str.5 = [58 x i8] c"error: First number in range is larger than second: '%s'\0A\00"
@.str.6 = [13 x i8] c"%3ld --> %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i32
%12 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 2
br i1 %14, label %15, label %22
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = load i8**, i8*** %5
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = call i32 @exit(i32 4)
unreachable
22: ; preds = %2
store i32 1, i32* %7
br label %23
23: ; preds = %138, %22
%24 = load i32, i32* %7
%25 = load i32, i32* %4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %141
27: ; preds = %23
store i32 0, i32* @errno
%28 = load i8**, i8*** %5
%29 = load i32, i32* %7
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8*, i8** %28, i64 %30
%32 = load i8*, i8** %31
%33 = call i64 @strtol(i8* %32, i8** %8, i32 10)
store i64 %33, i64* %9
%34 = load i32, i32* @errno
store i32 %34, i32* %11
%35 = load i64, i64* %9
store i64 %35, i64* %10
%36 = load i8*, i8** %8
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp eq i32 %38, 45
br i1 %39, label %40, label %50
40: ; preds = %27
%41 = load i8*, i8** %8
%42 = getelementptr inbounds i8, i8* %41, i64 1
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %50
46: ; preds = %40
%47 = load i8*, i8** %8
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = call i64 @strtol(i8* %48, i8** %8, i32 10)
store i64 %49, i64* %10
br label %50
50: ; preds = %46, %40, %27
%51 = load i8*, i8** %8
%52 = load i8, i8* %51
%53 = icmp ne i8 %52, 0
br i1 %53, label %54, label %78
54: ; preds = %50
%55 = load i32, i32* @stderr
%56 = load i32, i32* %7
%57 = call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %56)
%58 = load i32, i32* @stderr
%59 = load i8**, i8*** %5
%60 = load i32, i32* %7
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8*, i8** %59, i64 %61
%63 = load i8*, i8** %62
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %58, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %63)
%65 = load i32, i32* @stderr
%66 = load i8*, i8** %8
%67 = load i8**, i8*** %5
%68 = load i32, i32* %7
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds i8*, i8** %67, i64 %69
%71 = load i8*, i8** %70
%72 = ptrtoint i8* %66 to i64
%73 = ptrtoint i8* %71 to i64
%74 = sub i64 %72, %73
%75 = trunc i64 %74 to i32
%76 = add nsw i32 %75, 1
%77 = call i32 (i32, i8*, ...) @fprintf(i32 %65, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %76, i32 94)
store i32 1, i32* %6
br label %137
78: ; preds = %50
%79 = load i32, i32* %11
%80 = load i32, i32* @ERANGE
%81 = icmp eq i32 %79, %80
br i1 %81, label %98, label %82
82: ; preds = %78
%83 = load i64, i64* %9
%84 = load i64, i64* @INT_MIN
%85 = icmp slt i64 %83, %84
br i1 %85, label %98, label %86
86: ; preds = %82
%87 = load i64, i64* %9
%88 = load i64, i64* @INT_MAX
%89 = icmp sgt i64 %87, %88
br i1 %89, label %98, label %90
90: ; preds = %86
%91 = load i64, i64* %10
%92 = load i64, i64* @INT_MIN
%93 = icmp slt i64 %91, %92
br i1 %93, label %98, label %94
94: ; preds = %90
%95 = load i64, i64* %10
%96 = load i64, i64* @INT_MAX
%97 = icmp sgt i64 %95, %96
br i1 %97, label %98, label %107
98: ; preds = %94, %90, %86, %82, %78
%99 = load i32, i32* @stderr
%100 = load i32, i32* %7
%101 = load i8**, i8*** %5
%102 = load i32, i32* %7
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds i8*, i8** %101, i64 %103
%105 = load i8*, i8** %104
%106 = call i32 (i32, i8*, ...) @fprintf(i32 %99, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %100, i8* %105)
store i32 1, i32* %6
br label %136
107: ; preds = %94
%108 = load i64, i64* %9
%109 = load i64, i64* %10
%110 = icmp sgt i64 %108, %109
br i1 %110, label %111, label %119
111: ; preds = %107
%112 = load i32, i32* @stderr
%113 = load i8**, i8*** %5
%114 = load i32, i32* %7
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds i8*, i8** %113, i64 %115
%117 = load i8*, i8** %116
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %117)
br label %135
119: ; preds = %107
%120 = load i64, i64* %9
store i64 %120, i64* %12
br label %121
121: ; preds = %131, %119
%122 = load i64, i64* %12
%123 = load i64, i64* %10
%124 = icmp sle i64 %122, %123
br i1 %124, label %125, label %134
125: ; preds = %121
%126 = load i64, i64* %12
%127 = load i64, i64* %12
%128 = trunc i64 %127 to i32
%129 = call i32 @strerror(i32 %128)
%130 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i64 %126, i32 %129)
br label %131
131: ; preds = %125
%132 = load i64, i64* %12
%133 = add nsw i64 %132, 1
store i64 %133, i64* %12
br label %121
134: ; preds = %121
br label %135
135: ; preds = %134, %111
br label %136
136: ; preds = %135, %98
br label %137
137: ; preds = %136, %54
br label %138
138: ; preds = %137
%139 = load i32, i32* %7
%140 = add nsw i32 %139, 1
store i32 %140, i32* %7
br label %23
141: ; preds = %23
%142 = load i32, i32* %6
ret i32 %142
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [64 x i8] c"error: Too few arguments\0A\0AUsage: %s n[-n] ...\0A n: errno number\0A\00"
@errno = global i32 0
@.str.1 = [51 x i8] c"error: Argument %d: non-digit characters detected\0A\00"
@.str.2 = [13 x i8] c"error: %s\0A\00"
@.str.3 = [14 x i8] c"error: %*c\0A\00"
@ERANGE = global i32 0
@INT_MIN = global i64 0
@INT_MAX = global i64 0
@.str.4 = [53 x i8] c"error: Argument %d `%s': numeric value out of range\0A\00"
@.str.5 = [58 x i8] c"error: First number in range is larger than second: '%s'\0A\00"
@.str.6 = [13 x i8] c"%3ld --> %s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i8*
%4 = icmp slt i32 %0, 2
br i1 %4, label %8, label %5
5: ; preds = %2
%6 = bitcast i8** %3 to i8*
%7 = zext i32 %0 to i64
br label %14
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %1
%11 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = tail call i32 @exit(i32 4)
unreachable
13: ; preds = %84
ret i32 %85
14: ; preds = %5, %84
%15 = phi i64 [ 1, %5 ], [ %86, %84 ]
%16 = phi i32 [ 0, %5 ], [ %85, %84 ]
store i32 0, i32* @errno
%17 = getelementptr inbounds i8*, i8** %1, i64 %15
%18 = load i8*, i8** %17
%19 = call i64 @strtol(i8* %18, i8** %3, i32 10)
%20 = load i32, i32* @errno
%21 = load i8*, i8** %3
%22 = load i8, i8* %21
%23 = icmp eq i8 %22, 45
br i1 %23, label %24, label %32
24: ; preds = %14
%25 = getelementptr inbounds i8, i8* %21, i64 1
%26 = load i8, i8* %25
%27 = icmp eq i8 %26, 0
br i1 %27, label %37, label %28
28: ; preds = %24
%29 = call i64 @strtol(i8* %25, i8** %3, i32 10)
%30 = load i8*, i8** %3
%31 = load i8, i8* %30
br label %32
32: ; preds = %28, %14
%33 = phi i8 [ %31, %28 ], [ %22, %14 ]
%34 = phi i8* [ %30, %28 ], [ %21, %14 ]
%35 = phi i64 [ %29, %28 ], [ %19, %14 ]
%36 = icmp eq i8 %33, 0
br i1 %36, label %53, label %37
37: ; preds = %24, %32
%38 = phi i8* [ %34, %32 ], [ %21, %24 ]
%39 = load i32, i32* @stderr
%40 = trunc i64 %15 to i32
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i32 %40)
%42 = load i32, i32* @stderr
%43 = load i8*, i8** %17
%44 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), i8* %43)
%45 = load i32, i32* @stderr
%46 = load i8*, i8** %17
%47 = ptrtoint i8* %38 to i64
%48 = ptrtoint i8* %46 to i64
%49 = sub i64 %47, %48
%50 = trunc i64 %49 to i32
%51 = add nsw i32 %50, 1
%52 = tail call i32 (i32, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %51, i32 94)
br label %84
53: ; preds = %32
%54 = load i32, i32* @ERANGE
%55 = icmp eq i32 %20, %54
br i1 %55, label %66, label %56
56: ; preds = %53
%57 = load i64, i64* @INT_MIN
%58 = icmp slt i64 %19, %57
br i1 %58, label %66, label %59
59: ; preds = %56
%60 = load i64, i64* @INT_MAX
%61 = icmp sgt i64 %19, %60
%62 = icmp slt i64 %35, %57
%63 = select i1 %61, i1 true, i1 %62
%64 = icmp sgt i64 %35, %60
%65 = select i1 %63, i1 true, i1 %64
br i1 %65, label %66, label %71
66: ; preds = %59, %56, %53
%67 = load i32, i32* @stderr
%68 = load i8*, i8** %17
%69 = trunc i64 %15 to i32
%70 = tail call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.4, i64 0, i64 0), i32 %69, i8* %68)
br label %84
71: ; preds = %59
%72 = icmp sgt i64 %19, %35
br i1 %72, label %73, label %77
73: ; preds = %71
%74 = load i32, i32* @stderr
%75 = load i8*, i8** %17
%76 = tail call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0), i8* %75)
br label %84
77: ; preds = %71, %77
%78 = phi i64 [ %82, %77 ], [ %19, %71 ]
%79 = trunc i64 %78 to i32
%80 = tail call i32 @strerror(i32 %79)
%81 = tail call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0), i64 %78, i32 %80)
%82 = add i64 %78, 1
%83 = icmp eq i64 %78, %35
br i1 %83, label %84, label %77
84: ; preds = %77, %66, %73, %37
%85 = phi i32 [ 1, %37 ], [ 1, %66 ], [ %16, %73 ], [ %16, %77 ]
%86 = add nuw nsw i64 %15, 1
%87 = icmp eq i64 %86, %7
br i1 %87, label %13, label %14
}