#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 ip_user_dict {
  int dummy;
};
typedef int /*<<< orphan*/ line;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ _IOLBF;
scalar_t__ dict_lookup(struct ip_user_dict *, char *, char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int getopt(int, char **, char *);
struct ip_user_dict *load_dict(int /*<<< orphan*/ *);
char *optarg;
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ rfc1738_unescape(char *);
int /*<<< orphan*/ setvbuf(int /*<<< orphan*/, int /*<<< orphan*/ *,
                           int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
char *strchr(char *, char);
char *strtok(char *, char *);
int /*<<< orphan*/ usage(char *);
int main(int argc, char *argv[]) {
  FILE *FH;
  char *filename = NULL;
  char *program_name = argv[0];
  char *cp;
  char *username, *address;
  char line[1024];
  struct ip_user_dict *current_entry;
  int ch;
  setvbuf(stdout, NULL, _IOLBF, 0);
  while ((ch = getopt(argc, argv, "f:")) != -1) {
    switch (ch) {
    case 'f':
      filename = optarg;
      break;
    default:
      usage(program_name);
      exit(1);
    }
  }
  if (filename == NULL) {
    usage(program_name);
    exit(1);
  }
  FH = fopen(filename, "r");
  current_entry = load_dict(FH);
  while (fgets(line, sizeof(line), stdin)) {
    if ((cp = strchr(line, '\n')) == NULL) {
      fprintf(stderr, "%s: ERROR: Too large: %s\n", argv[0], line);
      while (fgets(line, sizeof(line), stdin)) {
        fprintf(stderr, "%s: ERROR: Too large..: %s\n", argv[0], line);
        if (strchr(line, '\n') != NULL)
          break;
      }
      goto error;
    }
    *cp = '\0';
    address = strtok(line, " \t");
    username = strtok(NULL, " \t");
    if (!address || !username) {
      fprintf(stderr, "%s: unable to read tokens\n", argv[0]);
      goto error;
    }
    rfc1738_unescape(address);
    rfc1738_unescape(username);
    if ((dict_lookup(current_entry, username, address)) != 0) {
      printf("OK\n");
    } else {
    error:
      printf("ERR\n");
    }
  }
  fclose(FH);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x450,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
mov    0x2dac(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
xor    %ecx,%ecx
call   10b0 <setvbuf@plt>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xdc9(%rip),%rdx
call   10e0 <getopt@plt>
mov    %eax,-0x44c(%rbp)
cmp    $0xffffffff,%eax
je     128a <main+0xaa>
mov    -0x44c(%rbp),%eax
sub    $0x66,%eax
jne    1272 <main+0x92>
jmp    125f <main+0x7f>
mov    0x2d92(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x20(%rbp)
jmp    1285 <main+0xa5>
mov    -0x28(%rbp),%rdi
call   10a0 <usage@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
jmp    1229 <main+0x49>
cmpq   $0x0,-0x20(%rbp)
jne    12a8 <main+0xc8>
mov    -0x28(%rbp),%rdi
call   10a0 <usage@plt>
mov    $0x1,%edi
call   1100 <exit@plt>
mov    -0x20(%rbp),%rdi
lea    0xd50(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <load_dict@plt>
mov    %rax,-0x448(%rbp)
lea    -0x440(%rbp),%rdi
mov    0x2d06(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     1469 <main+0x289>
lea    -0x440(%rbp),%rdi
mov    $0xa,%esi
call   1060 <strchr@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    13a7 <main+0x1c7>
mov    0x2cba(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    -0x440(%rbp),%rcx
lea    0xcd8(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
lea    -0x440(%rbp),%rdi
mov    0x2c9e(%rip),%rax
mov    (%rax),%edx
mov    $0x400,%esi
call   1080 <fgets@plt>
cmp    $0x0,%rax
je     13a2 <main+0x1c2>
mov    0x2c71(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    -0x440(%rbp),%rcx
lea    0xca9(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
lea    -0x440(%rbp),%rdi
mov    $0xa,%esi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     139d <main+0x1bd>
jmp    13a2 <main+0x1c2>
jmp    1334 <main+0x154>
jmp    1458 <main+0x278>
mov    -0x30(%rbp),%rax
movb   $0x0,(%rax)
lea    -0x440(%rbp),%rdi
lea    0xc7f(%rip),%rsi
call   10d0 <strtok@plt>
mov    %rax,-0x40(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xc6b(%rip),%rsi
call   10d0 <strtok@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     13ef <main+0x20f>
cmpq   $0x0,-0x38(%rbp)
jne    1412 <main+0x232>
mov    0x2bda(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc38(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
jmp    1458 <main+0x278>
mov    -0x40(%rbp),%rdi
call   1030 <rfc1738_unescape@plt>
mov    -0x38(%rbp),%rdi
call   1030 <rfc1738_unescape@plt>
mov    -0x448(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   10f0 <dict_lookup@plt>
cmp    $0x0,%rax
je     1453 <main+0x273>
lea    0xc10(%rip),%rdi
call   1070 <printf@plt>
jmp    1464 <main+0x284>
jmp    1458 <main+0x278>
lea    0xbfe(%rip),%rdi
call   1070 <printf@plt>
jmp    12cc <main+0xec>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x450,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x418,%rsp
mov    %rsi,%r12
mov    %edi,%ebx
mov    (%rsi),%r14
mov    0x2dc0(%rip),%rax
mov    (%rax),%edi
mov    0x2dbf(%rip),%rax
mov    (%rax),%edx
xor    %ebp,%ebp
xor    %esi,%esi
xor    %ecx,%ecx
call   10b0 <setvbuf@plt>
lea    0xde3(%rip),%r15
mov    0x2dd4(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %ebx,%edi
mov    %r12,%rsi
mov    %r15,%rdx
call   10e0 <getopt@plt>
cmp    $0x66,%eax
jne    1248 <main+0x68>
mov    0x0(%r13),%rbp
jmp    1230 <main+0x50>
cmp    $0xffffffff,%eax
jne    1400 <main+0x220>
test   %rbp,%rbp
je     1400 <main+0x220>
lea    0xda2(%rip),%rsi
mov    %rbp,%rdi
call   10c0 <fopen@plt>
mov    %rax,(%rsp)
mov    %rax,%rdi
call   1060 <load_dict@plt>
mov    %rax,0x8(%rsp)
mov    0x2d5f(%rip),%rbx
mov    (%rbx),%edx
lea    0x10(%rsp),%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     13e3 <main+0x203>
lea    0x10(%rsp),%r14
mov    0x2d29(%rip),%r15
lea    0xd71(%rip),%rbp
jmp    12f0 <main+0x110>
mov    0x2d19(%rip),%r15
mov    (%r15),%edi
mov    (%r12),%rdx
lea    0xd79(%rip),%rsi
xor    %eax,%eax
call   1090 <fprintf@plt>
lea    0xd86(%rip),%rdi
call   1030 <puts@plt>
mov    (%rbx),%edx
mov    %r14,%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     13e3 <main+0x203>
mov    %r14,%rdi
mov    $0xa,%esi
call   1070 <strchr@plt>
test   %rax,%rax
je     1380 <main+0x1a0>
movb   $0x0,(%rax)
mov    %r14,%rdi
lea    0xd2c(%rip),%r15
mov    %r15,%rsi
call   10d0 <strtok@plt>
mov    %rax,%r13
xor    %edi,%edi
mov    %r15,%rsi
call   10d0 <strtok@plt>
test   %r13,%r13
je     12b0 <main+0xd0>
mov    %rax,%r15
test   %rax,%rax
je     12b0 <main+0xd0>
mov    %r13,%rdi
call   1040 <rfc1738_unescape@plt>
mov    %r15,%rdi
call   1040 <rfc1738_unescape@plt>
mov    0x8(%rsp),%rdi
mov    %r15,%rsi
mov    %r13,%rdx
call   10f0 <dict_lookup@plt>
lea    0xd01(%rip),%rdi
test   %rax,%rax
mov    0x2c6a(%rip),%r15
jne    12d3 <main+0xf3>
jmp    12cc <main+0xec>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%r15),%edi
mov    (%r12),%rdx
lea    0xc77(%rip),%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1090 <fprintf@plt>
nopl   0x0(%rax,%rax,1)
mov    (%rbx),%edx
mov    %r14,%rdi
mov    $0x400,%esi
call   1080 <fgets@plt>
test   %rax,%rax
je     12cc <main+0xec>
mov    (%r15),%edi
mov    (%r12),%rdx
mov    %rbp,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1090 <fprintf@plt>
mov    %r14,%rdi
mov    $0xa,%esi
call   1070 <strchr@plt>
test   %rax,%rax
je     13a0 <main+0x1c0>
jmp    12cc <main+0xec>
mov    (%rsp),%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x418,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r14,%rdi
call   10a0 <usage@plt>
mov    $0x1,%edi
call   1100 <exit@plt>

LLVM IR (-O0):
%struct.ip_user_dict = type { i32 }
@stdout = global i32 0
@_IOLBF = global i32 0
@.str = [3 x i8] c"f:\00"
@optarg = global i8* null
@.str.1 = [2 x i8] c"r\00"
@stdin = global i32 0
@stderr = global i32 0
@.str.2 = [26 x i8] c"%s: ERROR: Too large: %s\0A\00"
@.str.3 = [28 x i8] c"%s: ERROR: Too large..: %s\0A\00"
@.str.4 = [3 x i8] c" \09\00"
@.str.5 = [27 x i8] c"%s: unable to read tokens\0A\00"
@.str.6 = [4 x i8] c"OK\0A\00"
@.str.7 = [5 x i8] c"ERR\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca [1024 x i8]
%13 = alloca %struct.ip_user_dict*
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %7
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
store i8* %17, i8** %8
%18 = load i32, i32* @stdout
%19 = load i32, i32* @_IOLBF
%20 = call i32 @setvbuf(i32 %18, i32* null, i32 %19, i32 0)
br label %21
21: ; preds = %34, %2
%22 = load i32, i32* %4
%23 = load i8**, i8*** %5
%24 = call i32 @getopt(i32 %22, i8** %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
store i32 %24, i32* %14
%25 = icmp ne i32 %24, -1
br i1 %25, label %26, label %35
26: ; preds = %21
%27 = load i32, i32* %14
switch i32 %27, label %30 [
i32 102, label %28
]
28: ; preds = %26
%29 = load i8*, i8** @optarg
store i8* %29, i8** %7
br label %34
30: ; preds = %26
%31 = load i8*, i8** %8
%32 = call i32 @usage(i8* %31)
%33 = call i32 @exit(i32 1)
unreachable
34: ; preds = %28
br label %21
35: ; preds = %21
%36 = load i8*, i8** %7
%37 = icmp eq i8* %36, null
br i1 %37, label %38, label %42
38: ; preds = %35
%39 = load i8*, i8** %8
%40 = call i32 @usage(i8* %39)
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %35
%43 = load i8*, i8** %7
%44 = call i32* @fopen(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %44, i32** %6
%45 = load i32*, i32** %6
%46 = call %struct.ip_user_dict* @load_dict(i32* %45)
store %struct.ip_user_dict* %46, %struct.ip_user_dict** %13
br label %47
47: ; preds = %112, %42
%48 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%49 = load i32, i32* @stdin
%50 = call i64 @fgets(i8* %48, i32 1024, i32 %49)
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %113
52: ; preds = %47
%53 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%54 = call i8* @strchr(i8* %53, i8 signext 10)
store i8* %54, i8** %9
%55 = icmp eq i8* %54, null
br i1 %55, label %56, label %81
56: ; preds = %52
%57 = load i32, i32* @stderr
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds i8*, i8** %58, i64 0
%60 = load i8*, i8** %59
%61 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%62 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %57, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %60, i8* %61)
br label %63
63: ; preds = %79, %56
%64 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%65 = load i32, i32* @stdin
%66 = call i64 @fgets(i8* %64, i32 1024, i32 %65)
%67 = icmp ne i64 %66, 0
br i1 %67, label %68, label %80
68: ; preds = %63
%69 = load i32, i32* @stderr
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 0
%72 = load i8*, i8** %71
%73 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%74 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* %72, i8* %73)
%75 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%76 = call i8* @strchr(i8* %75, i8 signext 10)
%77 = icmp ne i8* %76, null
br i1 %77, label %78, label %79
78: ; preds = %68
br label %80
79: ; preds = %68
br label %63
80: ; preds = %78, %63
br label %110
81: ; preds = %52
%82 = load i8*, i8** %9
store i8 0, i8* %82
%83 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i64 0, i64 0
%84 = call i8* @strtok(i8* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i8* %84, i8** %11
%85 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i8* %85, i8** %10
%86 = load i8*, i8** %11
%87 = icmp ne i8* %86, null
br i1 %87, label %88, label %91
88: ; preds = %81
%89 = load i8*, i8** %10
%90 = icmp ne i8* %89, null
br i1 %90, label %97, label %91
91: ; preds = %88, %81
%92 = load i32, i32* @stderr
%93 = load i8**, i8*** %5
%94 = getelementptr inbounds i8*, i8** %93, i64 0
%95 = load i8*, i8** %94
%96 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %92, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %95)
br label %110
97: ; preds = %88
%98 = load i8*, i8** %11
%99 = call i32 @rfc1738_unescape(i8* %98)
%100 = load i8*, i8** %10
%101 = call i32 @rfc1738_unescape(i8* %100)
%102 = load %struct.ip_user_dict*, %struct.ip_user_dict** %13
%103 = load i8*, i8** %10
%104 = load i8*, i8** %11
%105 = call i64 @dict_lookup(%struct.ip_user_dict* %102, i8* %103, i8* %104)
%106 = icmp ne i64 %105, 0
br i1 %106, label %107, label %109
107: ; preds = %97
%108 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
br label %112
109: ; preds = %97
br label %110
110: ; preds = %109, %91, %80
%111 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
br label %112
112: ; preds = %110, %107
br label %47
113: ; preds = %47
%114 = load i32*, i32** %6
%115 = call i32 @fclose(i32* %114)
ret i32 0
}

LLVM IR (-O2):
%struct.ip_user_dict = type { i32 }
@stdout = global i32 0
@_IOLBF = global i32 0
@.str = [3 x i8] c"f:\00"
@optarg = global i8* null
@.str.1 = [2 x i8] c"r\00"
@stdin = global i32 0
@stderr = global i32 0
@.str.2 = [26 x i8] c"%s: ERROR: Too large: %s\0A\00"
@.str.3 = [28 x i8] c"%s: ERROR: Too large..: %s\0A\00"
@.str.4 = [3 x i8] c" \09\00"
@.str.5 = [27 x i8] c"%s: unable to read tokens\0A\00"
@str = [4 x i8] c"ERR\00"
@str.8 = [3 x i8] c"OK\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [1024 x i8]
%4 = load i8*, i8** %1
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%6 = load i32, i32* @stdout
%7 = load i32, i32* @_IOLBF
%8 = tail call i32 @setvbuf(i32 %6, i32* null, i32 %7, i32 0)
br label %9
9: ; preds = %12, %2
%10 = phi i8* [ null, %2 ], [ %13, %12 ]
%11 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
switch i32 %11, label %14 [
i32 -1, label %17
i32 102, label %12
]
12: ; preds = %9
%13 = load i8*, i8** @optarg
br label %9
14: ; preds = %9
%15 = tail call i32 @usage(i8* %4)
%16 = tail call i32 @exit(i32 1)
unreachable
17: ; preds = %9
%18 = icmp eq i8* %10, null
br i1 %18, label %19, label %22
19: ; preds = %17
%20 = tail call i32 @usage(i8* %4)
%21 = tail call i32 @exit(i32 1)
unreachable
22: ; preds = %17
%23 = tail call i32* @fopen(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%24 = tail call %struct.ip_user_dict* @load_dict(i32* %23)
%25 = load i32, i32* @stdin
%26 = call i64 @fgets(i8* %5, i32 1024, i32 %25)
%27 = icmp eq i64 %26, 0
br i1 %27, label %67, label %28
28: ; preds = %22, %61
%29 = call i8* @strchr(i8* %5, i8 signext 10)
%30 = icmp eq i8* %29, null
br i1 %30, label %31, label %45
31: ; preds = %28
%32 = load i32, i32* @stderr
%33 = load i8*, i8** %1
%34 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %33, i8* %5)
br label %35
35: ; preds = %39, %31
%36 = load i32, i32* @stdin
%37 = call i64 @fgets(i8* %5, i32 1024, i32 %36)
%38 = icmp eq i64 %37, 0
br i1 %38, label %60, label %39
39: ; preds = %35
%40 = load i32, i32* @stderr
%41 = load i8*, i8** %1
%42 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %40, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i8* %41, i8* %5)
%43 = call i8* @strchr(i8* %5, i8 signext 10)
%44 = icmp eq i8* %43, null
br i1 %44, label %35, label %60
45: ; preds = %28
store i8 0, i8* %29
%46 = call i8* @strtok(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%47 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%48 = icmp ne i8* %46, null
%49 = icmp ne i8* %47, null
%50 = select i1 %48, i1 %49, i1 false
br i1 %50, label %55, label %51
51: ; preds = %45
%52 = load i32, i32* @stderr
%53 = load i8*, i8** %1
%54 = call i32 (i32, i8*, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %53)
br label %60
55: ; preds = %45
%56 = call i32 @rfc1738_unescape(i8* %46)
%57 = call i32 @rfc1738_unescape(i8* %47)
%58 = call i64 @dict_lookup(%struct.ip_user_dict* %24, i8* %47, i8* %46)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %61
60: ; preds = %35, %39, %55, %51
br label %61
61: ; preds = %55, %60
%62 = phi i8* [ getelementptr inbounds ([4 x i8], [4 x i8]* @str, i64 0, i64 0), %60 ], [ getelementptr inbounds ([3 x i8], [3 x i8]* @str.8, i64 0, i64 0), %55 ]
%63 = call i32 @puts(i8* dereferenceable(1) %62)
%64 = load i32, i32* @stdin
%65 = call i64 @fgets(i8* %5, i32 1024, i32 %64)
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %28
67: ; preds = %61, %22
%68 = call i32 @fclose(i32* %23)
ret i32 0
}