#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 */
struct timeval {
  int tv_sec;
  scalar_t__ tv_usec;
};
struct tab_opt {
  int dummy;
};
typedef int /*<<< orphan*/ fd_set;

/* Variables and functions */
int /*<<< orphan*/ FD_SET(int, int /*<<< orphan*/ *);
int /*<<< orphan*/ FD_ZERO(int /*<<< orphan*/ *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
char *generate_proxy_request(struct tab_opt *);
int /*<<< orphan*/ perror(char *);
scalar_t__ read(int, char *, int);
scalar_t__ select(int, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
                  int /*<<< orphan*/ *, struct timeval *);
int sscanf(char *, char *, int *, int *, int *, char *);
int /*<<< orphan*/ stderr;
size_t strlen(char *);
int /*<<< orphan*/ tab_opt_free(struct tab_opt *);
size_t write(int, char *, size_t);
void proxy_setup(struct tab_opt *opt, int sock_fd) {
  struct timeval tv;
  fd_set rfds, wfds;
  tv.tv_sec = 5;
  tv.tv_usec = 0;
  FD_ZERO(&rfds);
  FD_ZERO(&wfds);
  FD_SET(sock_fd, &wfds);
  if (select(sock_fd + 1, &rfds, &wfds, NULL, &tv) < 0) {
    perror("pulltab");
    goto error;
  }
  char *request = generate_proxy_request(opt);
  size_t len = write(sock_fd, request, strlen(request));
  if (len != strlen(request)) {
    fprintf(stderr, "pulltab: could not negotiate stream with proxy\n");
    free(request);
    goto error;
  }
  free(request);
  ;
  tv.tv_sec = 5;
  tv.tv_usec = 0;
  FD_ZERO(&rfds);
  FD_ZERO(&wfds);
  FD_SET(sock_fd, &rfds);
  if (select(sock_fd + 1, &rfds, &wfds, NULL, &tv) < 0) {
    perror("pulltab");
    goto error;
  }
  char buf[4096] = "";
  if (read(sock_fd, buf, 4096) < 0) {
    perror("pulltab");
    goto error;
  };
  char description[4096] = "";
  int maj = 0, min = 0, code = 0;
  if (sscanf(buf, "HTTP/%d.%d %d %[^\n]", &maj, &min, &code, description) < 4) {
    fprintf(stderr, "pulltab: error parsing proxy reponse\n");
    goto error;
  };
  if (code < 200 || code >= 300) {
    fprintf(stderr, "pulltab: error negotiating with proxy: %s\n", description);
    goto error;
  }
  if (maj < 1) {
    fprintf(stderr,
            "pulltab: invalid HTTP protocol version returned by proxy: %d.%d\n",
            maj, min);
    goto error;
  }
  return;
error:
  tab_opt_free(opt);
  exit(1);
}


x86 assembly (clang, -O0):
<proxy_setup>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2070,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x5,-0x20(%rbp)
movq   $0x0,-0x18(%rbp)
lea    -0x24(%rbp),%rdi
call   10a0 <FD_ZERO@plt>
lea    -0x28(%rbp),%rdi
call   10a0 <FD_ZERO@plt>
mov    -0xc(%rbp),%edi
lea    -0x28(%rbp),%rsi
call   1100 <FD_SET@plt>
mov    -0xc(%rbp),%edi
add    $0x1,%edi
lea    -0x24(%rbp),%rsi
lea    -0x28(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x20(%rbp),%r8
call   10b0 <select@plt>
cmp    $0x0,%rax
jge    1255 <proxy_setup+0x75>
lea    0xdb5(%rip),%rdi
call   10e0 <perror@plt>
jmp    1498 <proxy_setup+0x2b8>
mov    -0x8(%rbp),%rdi
call   1090 <generate_proxy_request@plt>
mov    %rax,-0x30(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x2064(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x2060(%rbp)
mov    -0x30(%rbp),%rdi
call   1050 <strlen@plt>
mov    -0x2064(%rbp),%edi
mov    -0x2060(%rbp),%rsi
mov    %rax,%rdx
call   1040 <write@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x2058(%rbp)
mov    -0x30(%rbp),%rdi
call   1050 <strlen@plt>
mov    %rax,%rcx
mov    -0x2058(%rbp),%rax
cmp    %rcx,%rax
je     12e4 <proxy_setup+0x104>
mov    0x2d1a(%rip),%rax
mov    (%rax),%edi
lea    0xd39(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
jmp    1498 <proxy_setup+0x2b8>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movl   $0x5,-0x20(%rbp)
movq   $0x0,-0x18(%rbp)
lea    -0x24(%rbp),%rdi
call   10a0 <FD_ZERO@plt>
lea    -0x28(%rbp),%rdi
call   10a0 <FD_ZERO@plt>
mov    -0xc(%rbp),%edi
lea    -0x24(%rbp),%rsi
call   1100 <FD_SET@plt>
mov    -0xc(%rbp),%edi
add    $0x1,%edi
lea    -0x24(%rbp),%rsi
lea    -0x28(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
lea    -0x20(%rbp),%r8
call   10b0 <select@plt>
cmp    $0x0,%rax
jge    1350 <proxy_setup+0x170>
lea    0xcba(%rip),%rdi
call   10e0 <perror@plt>
jmp    1498 <proxy_setup+0x2b8>
lea    -0x1040(%rbp),%rdi
xor    %esi,%esi
mov    $0x1000,%edx
call   1060 <memset@plt>
mov    -0xc(%rbp),%edi
lea    -0x1040(%rbp),%rsi
mov    $0x1000,%edx
call   1070 <read@plt>
cmp    $0x0,%rax
jge    1392 <proxy_setup+0x1b2>
lea    0xc78(%rip),%rdi
call   10e0 <perror@plt>
jmp    1498 <proxy_setup+0x2b8>
lea    -0x2040(%rbp),%rdi
xor    %esi,%esi
mov    $0x1000,%edx
call   1060 <memset@plt>
movl   $0x0,-0x2044(%rbp)
movl   $0x0,-0x2048(%rbp)
movl   $0x0,-0x204c(%rbp)
lea    -0x1040(%rbp),%rdi
lea    -0x2040(%rbp),%r9
lea    0xc60(%rip),%rsi
lea    -0x2044(%rbp),%rdx
lea    -0x2048(%rbp),%rcx
lea    -0x204c(%rbp),%r8
call   10c0 <sscanf@plt>
cmp    $0x4,%eax
jge    1417 <proxy_setup+0x237>
mov    0x2bde(%rip),%rax
mov    (%rax),%edi
lea    0xc41(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1498 <proxy_setup+0x2b8>
cmpl   $0xc8,-0x204c(%rbp)
jl     1437 <proxy_setup+0x257>
cmpl   $0x12c,-0x204c(%rbp)
jl     145a <proxy_setup+0x27a>
mov    0x2ba2(%rip),%rax
mov    (%rax),%edi
lea    -0x2040(%rbp),%rdx
lea    0xc24(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1498 <proxy_setup+0x2b8>
cmpl   $0x1,-0x2044(%rbp)
jge    148f <proxy_setup+0x2af>
mov    0x2b72(%rip),%rax
mov    (%rax),%edi
mov    -0x2044(%rbp),%edx
mov    -0x2048(%rbp),%ecx
lea    0xc1a(%rip),%rsi
mov    $0x0,%al
call   1080 <fprintf@plt>
jmp    1498 <proxy_setup+0x2b8>
add    $0x2070,%rsp
pop    %rbp
ret
mov    -0x8(%rbp),%rdi
call   10d0 <tab_opt_free@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>

x86 assembly (clang, -O2):
<proxy_setup>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2038,%rsp
mov    %esi,%r13d
mov    %rdi,%r14
movl   $0x5,0x20(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x1c(%rsp),%r12
mov    %r12,%rdi
call   10a0 <FD_ZERO@plt>
lea    0x18(%rsp),%rbp
mov    %rbp,%rdi
call   10a0 <FD_ZERO@plt>
mov    %r13d,%edi
mov    %rbp,%rsi
call   1100 <FD_SET@plt>
lea    0x1(%r13),%r15d
lea    0x20(%rsp),%r8
mov    %r15d,%edi
mov    %r12,%rsi
mov    %rbp,%rdx
xor    %ecx,%ecx
call   10b0 <select@plt>
test   %rax,%rax
js     1393 <proxy_setup+0x1b3>
mov    %r14,%rdi
call   1090 <generate_proxy_request@plt>
mov    %rax,%rbp
mov    %rax,%rdi
call   1050 <strlen@plt>
mov    %r13d,%edi
mov    %rbp,%rsi
mov    %rax,%rdx
call   1040 <write@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1050 <strlen@plt>
cmp    %rax,%rbx
jne    13b1 <proxy_setup+0x1d1>
mov    %rbp,%rdi
call   1030 <free@plt>
movl   $0x5,0x20(%rsp)
movq   $0x0,0x28(%rsp)
lea    0x1c(%rsp),%rbx
mov    %rbx,%rdi
call   10a0 <FD_ZERO@plt>
lea    0x18(%rsp),%rbp
mov    %rbp,%rdi
call   10a0 <FD_ZERO@plt>
mov    %r13d,%edi
mov    %rbx,%rsi
call   1100 <FD_SET@plt>
lea    0x20(%rsp),%r8
mov    %r15d,%edi
mov    %rbx,%rsi
mov    %rbp,%rdx
xor    %ecx,%ecx
call   10b0 <select@plt>
test   %rax,%rax
js     1393 <proxy_setup+0x1b3>
lea    0x1030(%rsp),%rbx
mov    $0x1000,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
mov    %r13d,%edi
mov    %rbx,%rsi
mov    $0x1000,%edx
call   1070 <read@plt>
test   %rax,%rax
js     1393 <proxy_setup+0x1b3>
lea    0x30(%rsp),%rbx
mov    $0x1000,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1060 <memset@plt>
movl   $0x0,0x14(%rsp)
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
lea    0xcf5(%rip),%rsi
lea    0x1030(%rsp),%rdi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0xc(%rsp),%r8
mov    %rbx,%r9
call   10c0 <sscanf@plt>
cmp    $0x3,%eax
jle    13d2 <proxy_setup+0x1f2>
mov    $0xfffffed4,%eax
add    0xc(%rsp),%eax
cmp    $0xffffff9b,%eax
jbe    13eb <proxy_setup+0x20b>
mov    0x14(%rsp),%edx
test   %edx,%edx
jle    1409 <proxy_setup+0x229>
add    $0x2038,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xc66(%rip),%rdi
call   10e0 <perror@plt>
mov    %r14,%rdi
call   10d0 <tab_opt_free@plt>
mov    $0x1,%edi
call   10f0 <exit@plt>
mov    0x2c28(%rip),%rax
mov    (%rax),%edi
lea    0xc47(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
jmp    139f <proxy_setup+0x1bf>
mov    0x2c07(%rip),%rax
mov    (%rax),%edi
lea    0xc6a(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    139f <proxy_setup+0x1bf>
mov    0x2bee(%rip),%rax
mov    (%rax),%edi
lea    0xc77(%rip),%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    139f <proxy_setup+0x1bf>
mov    0x2bd0(%rip),%rax
mov    (%rax),%edi
mov    0x10(%rsp),%ecx
lea    0xc80(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
jmp    139f <proxy_setup+0x1bf>

LLVM IR (-O0):
%struct.tab_opt = type { i32 }
%struct.timeval = type { i32, i64 }
@.str = [8 x i8] c"pulltab\00"
@stderr = global i32 0
@.str.1 = [48 x i8] c"pulltab: could not negotiate stream with proxy\0A\00"
@.str.2 = [20 x i8] c"HTTP/%d.%d %d %[^\0A]\00"
@.str.3 = [38 x i8] c"pulltab: error parsing proxy reponse\0A\00"
@.str.4 = [43 x i8] c"pulltab: error negotiating with proxy: %s\0A\00"
@.str.5 = [65 x i8] c"pulltab: invalid HTTP protocol version returned by proxy: %d.%d\0A\00"
define void @proxy_setup(%struct.tab_opt* %0, i32 %1) {
%3 = alloca %struct.tab_opt*
%4 = alloca i32
%5 = alloca %struct.timeval
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca [4096 x i8]
%11 = alloca [4096 x i8]
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store %struct.tab_opt* %0, %struct.tab_opt** %3
store i32 %1, i32* %4
%15 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i32 0, i32 0
store i32 5, i32* %15
%16 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i32 0, i32 1
store i64 0, i64* %16
%17 = call i32 @FD_ZERO(i32* %6)
%18 = call i32 @FD_ZERO(i32* %7)
%19 = load i32, i32* %4
%20 = call i32 @FD_SET(i32 %19, i32* %7)
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
%23 = call i64 @select(i32 %22, i32* %6, i32* %7, i32* null, %struct.timeval* %5)
%24 = icmp slt i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %2
%26 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %95
27: ; preds = %2
%28 = load %struct.tab_opt*, %struct.tab_opt** %3
%29 = call i8* @generate_proxy_request(%struct.tab_opt* %28)
store i8* %29, i8** %8
%30 = load i32, i32* %4
%31 = load i8*, i8** %8
%32 = load i8*, i8** %8
%33 = call i64 @strlen(i8* %32)
%34 = call i64 @write(i32 %30, i8* %31, i64 %33)
store i64 %34, i64* %9
%35 = load i64, i64* %9
%36 = load i8*, i8** %8
%37 = call i64 @strlen(i8* %36)
%38 = icmp ne i64 %35, %37
br i1 %38, label %39, label %44
39: ; preds = %27
%40 = load i32, i32* @stderr
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%42 = load i8*, i8** %8
%43 = call i32 @free(i8* %42)
br label %95
44: ; preds = %27
%45 = load i8*, i8** %8
%46 = call i32 @free(i8* %45)
%47 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i32 0, i32 0
store i32 5, i32* %47
%48 = getelementptr inbounds %struct.timeval, %struct.timeval* %5, i32 0, i32 1
store i64 0, i64* %48
%49 = call i32 @FD_ZERO(i32* %6)
%50 = call i32 @FD_ZERO(i32* %7)
%51 = load i32, i32* %4
%52 = call i32 @FD_SET(i32 %51, i32* %6)
%53 = load i32, i32* %4
%54 = add nsw i32 %53, 1
%55 = call i64 @select(i32 %54, i32* %6, i32* %7, i32* null, %struct.timeval* %5)
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %44
%58 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %95
59: ; preds = %44
%60 = bitcast [4096 x i8]* %10 to i8*
%61 = load i32, i32* %4
%62 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%63 = call i64 @read(i32 %61, i8* %62, i32 4096)
%64 = icmp slt i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %59
%66 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %95
67: ; preds = %59
%68 = bitcast [4096 x i8]* %11 to i8*
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
%69 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%70 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%71 = call i32 @sscanf(i8* %69, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32* %12, i32* %13, i32* %14, i8* %70)
%72 = icmp slt i32 %71, 4
br i1 %72, label %73, label %76
73: ; preds = %67
%74 = load i32, i32* @stderr
%75 = call i32 (i32, i8*, ...) @fprintf(i32 %74, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
br label %95
76: ; preds = %67
%77 = load i32, i32* %14
%78 = icmp slt i32 %77, 200
br i1 %78, label %82, label %79
79: ; preds = %76
%80 = load i32, i32* %14
%81 = icmp sge i32 %80, 300
br i1 %81, label %82, label %86
82: ; preds = %79, %76
%83 = load i32, i32* @stderr
%84 = getelementptr inbounds [4096 x i8], [4096 x i8]* %11, i64 0, i64 0
%85 = call i32 (i32, i8*, ...) @fprintf(i32 %83, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8* %84)
br label %95
86: ; preds = %79
%87 = load i32, i32* %12
%88 = icmp slt i32 %87, 1
br i1 %88, label %89, label %94
89: ; preds = %86
%90 = load i32, i32* @stderr
%91 = load i32, i32* %12
%92 = load i32, i32* %13
%93 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), i32 %91, i32 %92)
br label %95
94: ; preds = %86
ret void
95: ; preds = %89, %82, %73, %65, %57, %39, %25
%96 = load %struct.tab_opt*, %struct.tab_opt** %3
%97 = call i32 @tab_opt_free(%struct.tab_opt* %96)
%98 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
%struct.tab_opt = type { i32 }
%struct.timeval = type { i32, i64 }
@.str = [8 x i8] c"pulltab\00"
@stderr = global i32 0
@.str.1 = [48 x i8] c"pulltab: could not negotiate stream with proxy\0A\00"
@.str.2 = [20 x i8] c"HTTP/%d.%d %d %[^\0A]\00"
@.str.3 = [38 x i8] c"pulltab: error parsing proxy reponse\0A\00"
@.str.4 = [43 x i8] c"pulltab: error negotiating with proxy: %s\0A\00"
@.str.5 = [65 x i8] c"pulltab: invalid HTTP protocol version returned by proxy: %d.%d\0A\00"
define void @proxy_setup(%struct.tab_opt* %0, i32 %1) {
%3 = alloca %struct.timeval
%4 = alloca i32
%5 = alloca i32
%6 = alloca [4096 x i8]
%7 = alloca [4096 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = bitcast %struct.timeval* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = bitcast i32* %5 to i8*
%14 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 0
store i32 5, i32* %14
%15 = getelementptr inbounds %struct.timeval, %struct.timeval* %3, i64 0, i32 1
store i64 0, i64* %15
%16 = call i32 @FD_ZERO(i32* %4)
%17 = call i32 @FD_ZERO(i32* %5)
%18 = call i32 @FD_SET(i32 %1, i32* %5)
%19 = add nsw i32 %1, 1
%20 = call i64 @select(i32 %19, i32* %4, i32* %5, i32* null, %struct.timeval* %3)
%21 = icmp slt i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %2
%23 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %71
24: ; preds = %2
%25 = call i8* @generate_proxy_request(%struct.tab_opt* %0)
%26 = call i64 @strlen(i8* dereferenceable(1) %25)
%27 = call i64 @write(i32 %1, i8* %25, i64 %26)
%28 = call i64 @strlen(i8* dereferenceable(1) %25)
%29 = icmp eq i64 %27, %28
br i1 %29, label %34, label %30
30: ; preds = %24
%31 = load i32, i32* @stderr
%32 = call i32 (i32, i8*, ...) @fprintf(i32 %31, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%33 = call i32 @free(i8* %25)
br label %71
34: ; preds = %24
%35 = call i32 @free(i8* %25)
store i32 5, i32* %14
store i64 0, i64* %15
%36 = call i32 @FD_ZERO(i32* %4)
%37 = call i32 @FD_ZERO(i32* %5)
%38 = call i32 @FD_SET(i32 %1, i32* %4)
%39 = call i64 @select(i32 %19, i32* %4, i32* %5, i32* null, %struct.timeval* %3)
%40 = icmp slt i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %34
%42 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %71
43: ; preds = %34
%44 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%45 = call i64 @read(i32 %1, i8* %44, i32 4096)
%46 = icmp slt i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %43
%48 = call i32 @perror(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
br label %71
49: ; preds = %43
%50 = getelementptr inbounds [4096 x i8], [4096 x i8]* %7, i64 0, i64 0
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
%51 = call i32 @sscanf(i8* %44, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32* %8, i32* %9, i32* %10, i8* %50)
%52 = icmp slt i32 %51, 4
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = load i32, i32* @stderr
%55 = call i32 (i32, i8*, ...) @fprintf(i32 %54, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
br label %71
56: ; preds = %49
%57 = load i32, i32* %10
%58 = add i32 %57, -300
%59 = icmp ult i32 %58, -100
br i1 %59, label %60, label %63
60: ; preds = %56
%61 = load i32, i32* @stderr
%62 = call i32 (i32, i8*, ...) @fprintf(i32 %61, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.4, i64 0, i64 0), i8* %50)
br label %71
63: ; preds = %56
%64 = load i32, i32* %8
%65 = icmp slt i32 %64, 1
br i1 %65, label %66, label %70
66: ; preds = %63
%67 = load i32, i32* @stderr
%68 = load i32, i32* %9
%69 = call i32 (i32, i8*, ...) @fprintf(i32 %67, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0), i32 %64, i32 %68)
br label %71
70: ; preds = %63
ret void
71: ; preds = %66, %60, %53, %47, %41, %30, %22
%72 = call i32 @tab_opt_free(%struct.tab_opt* %0)
%73 = call i32 @exit(i32 1)
unreachable
}