#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 */
typedef int /*<<< orphan*/ url;
typedef int /*<<< orphan*/ A;

/* Variables and functions */
int /*<<< orphan*/ gyldig_url(char *);
int /*<<< orphan*/ printf(char *, char *, char *, ...);
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ strscpy(char *, char *);
int /*<<< orphan*/ url_normalization(char *, int);
int main(int argc, char *argv[]) {
  char *A[][2] = {
      {"http://www.boitho.com/File.html", "http://www.boitho.com/File.html"},
      {"http://sub.boitho.com/File.html", "http://sub.boitho.com/File.html"},
      {"http://www.boitho.com", "http://www.boitho.com/"},
      {"http://boitho.com/", "http://www.boitho.com/"},
      {"http://boitho.com", "http://www.boitho.com/"},
      {"http://boitho.com/File.html", "http://www.boitho.com/File.html"},
      {"http://www.boitho.com:80/", "http://www.boitho.com/"},
      {"http://www.boitho.com:80/File.html", "http://www.boitho.com/File.html"},
      {"http://www.boitho.com?a=b", "http://www.boitho.com/?a=b"},
      {"HTTP://www.Boitho.coM/File.html", "http://www.boitho.com/File.html"},
      {"http://www.boitho.com/side.html#august",
       "http://www.boitho.com/side.html"},
      {"http://www.boitho.comindex.html?a=b",
       "http://www.boitho.com/index.html?a=b"},
      {"http://www.boitho.com/div/javascript:openchild('/"
       "product-popup.pl?pcode=10136136');",
       ""},
      {"http://www.boitho.com/div/JavaScript:openchild('/"
       "product-popup.pl?pcode=10136136');",
       ""},
      {"http://www.swindon.gov.uk/atozlistingsbyletterdisplay/socialcare/"
       "signpost/socialcare/signpost/community/roadstransport/"
       "feedbackcomments.htm",
       ""}};
  int Asize = sizeof(A) / (sizeof(char *) * 2);
  int i;
  char url[202];
  for (i = 0; i < Asize; i++) {
    strscpy(url, A[i][0]);
    if (!url_normalization(url, sizeof(url))) {
      printf("Error: bad status from url_normalization: %s -> %s\n", A[i][0],
             A[i][1]);
    } else if (!gyldig_url(url)) {
      printf("Warn: ikke gyldig: %s -> %s (did become \"%s\")\n", A[i][0],
             A[i][1], url);
    } else if (strcmp(url, A[i][1]) == 0) {
      printf("OK: %s -> %s\n", A[i][0], A[i][1]);
    } else {
      printf("Error: %s -> %s : %s\n", A[i][0], A[i][1], url);
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1e0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x100(%rbp),%rdi
lea    0x2ba9(%rip),%rsi
mov    $0xf0,%edx
call   1060 <memcpy@plt>
movl   $0xf,-0x104(%rbp)
movl   $0x0,-0x108(%rbp)
mov    -0x108(%rbp),%eax
cmp    -0x104(%rbp),%eax
jge    1375 <main+0x215>
lea    -0x1e0(%rbp),%rdi
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
call   1080 <strscpy@plt>
lea    -0x1e0(%rbp),%rdi
mov    $0xca,%esi
call   1070 <url_normalization@plt>
cmp    $0x0,%eax
jne    1239 <main+0xd9>
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdx
lea    0x10d7(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    135c <main+0x1fc>
lea    -0x1e0(%rbp),%rdi
call   1030 <gyldig_url@plt>
cmp    $0x0,%eax
jne    1299 <main+0x139>
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdx
lea    -0x1e0(%rbp),%rcx
lea    0x10ab(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1357 <main+0x1f7>
lea    -0x1e0(%rbp),%rdi
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    130c <main+0x1ac>
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdx
lea    0x1067(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1352 <main+0x1f2>
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    (%rax),%rsi
movslq -0x108(%rbp),%rcx
lea    -0x100(%rbp),%rax
shl    $0x4,%rcx
add    %rcx,%rax
mov    0x8(%rax),%rdx
lea    -0x1e0(%rbp),%rcx
lea    0x102a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1357 <main+0x1f7>
jmp    135c <main+0x1fc>
jmp    1361 <main+0x201>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    11a5 <main+0x45>
mov    -0x4(%rbp),%eax
add    $0x1e0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
mov    $0x8,%r15d
lea    0x2bc2(%rip),%r13
mov    %rsp,%rbx
lea    0x118c(%rip),%r14
jmp    11a4 <main+0x54>
nopw   0x0(%rax,%rax,1)
lea    0x11b1(%rip),%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x10,%r15
cmp    $0xf8,%r15
je     1212 <main+0xc2>
mov    -0x8(%r15,%r13,1),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1070 <strscpy@plt>
mov    %rbx,%rdi
mov    $0xca,%esi
call   1060 <url_normalization@plt>
test   %eax,%eax
je     11f0 <main+0xa0>
mov    %rbx,%rdi
call   1030 <gyldig_url@plt>
mov    (%r15,%r13,1),%r12
test   %eax,%eax
je     1180 <main+0x30>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1050 <strcmp@plt>
test   %rax,%rax
je     11fc <main+0xac>
lea    0x1189(%rip),%rdi
jmp    1187 <main+0x37>
xchg   %ax,%ax
mov    (%r15,%r13,1),%rdx
mov    %r14,%rdi
mov    %rbp,%rsi
jmp    1209 <main+0xb9>
lea    0x1164(%rip),%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
xor    %eax,%eax
call   1040 <printf@plt>
jmp    1197 <main+0x47>
xor    %eax,%eax
add    $0xd8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [32 x i8] c"http://www.boitho.com/File.html\00"
@.str.1 = [32 x i8] c"http://sub.boitho.com/File.html\00"
@.str.2 = [22 x i8] c"http://www.boitho.com\00"
@.str.3 = [23 x i8] c"http://www.boitho.com/\00"
@.str.4 = [19 x i8] c"http://boitho.com/\00"
@.str.5 = [18 x i8] c"http://boitho.com\00"
@.str.6 = [28 x i8] c"http://boitho.com/File.html\00"
@.str.7 = [26 x i8] c"http://www.boitho.com:80/\00"
@.str.8 = [35 x i8] c"http://www.boitho.com:80/File.html\00"
@.str.9 = [26 x i8] c"http://www.boitho.com?a=b\00"
@.str.10 = [27 x i8] c"http://www.boitho.com/?a=b\00"
@.str.11 = [32 x i8] c"HTTP://www.Boitho.coM/File.html\00"
@.str.12 = [39 x i8] c"http://www.boitho.com/side.html#august\00"
@.str.13 = [32 x i8] c"http://www.boitho.com/side.html\00"
@.str.14 = [36 x i8] c"http://www.boitho.comindex.html?a=b\00"
@.str.15 = [37 x i8] c"http://www.boitho.com/index.html?a=b\00"
@.str.16 = [84 x i8] c"http://www.boitho.com/div/javascript:openchild('/product-popup.pl?pcode=10136136');\00"
@.str.17 = [1 x i8] zeroinitializer
@.str.18 = [84 x i8] c"http://www.boitho.com/div/JavaScript:openchild('/product-popup.pl?pcode=10136136');\00"
@.str.19 = [140 x i8] c"http://www.swindon.gov.uk/atozlistingsbyletterdisplay/socialcare/signpost/socialcare/signpost/community/roadstransport/feedbackcomments.htm\00"
@__const.main.A = [15 x [2 x i8*]] [[2 x i8*] [i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i32 0, i32 0)]]
@.str.20 = [52 x i8] c"Error: bad status from url_normalization: %s -> %s\0A\00"
@.str.21 = [47 x i8] c"Warn: ikke gyldig: %s -> %s (did become \22%s\22)\0A\00"
@.str.22 = [14 x i8] c"OK: %s -> %s\0A\00"
@.str.23 = [22 x i8] c"Error: %s -> %s : %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [15 x [2 x i8*]]
%7 = alloca i32
%8 = alloca i32
%9 = alloca [202 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [15 x [2 x i8*]]* %6 to i8*
store i32 15, i32* %7
store i32 0, i32* %8
br label %11
11: ; preds = %92, %2
%12 = load i32, i32* %8
%13 = load i32, i32* %7
%14 = icmp slt i32 %12, %13
br i1 %14, label %15, label %95
15: ; preds = %11
%16 = getelementptr inbounds [202 x i8], [202 x i8]* %9, i64 0, i64 0
%17 = load i32, i32* %8
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %18
%20 = getelementptr inbounds [2 x i8*], [2 x i8*]* %19, i64 0, i64 0
%21 = load i8*, i8** %20
%22 = call i32 @strscpy(i8* %16, i8* %21)
%23 = getelementptr inbounds [202 x i8], [202 x i8]* %9, i64 0, i64 0
%24 = call i32 @url_normalization(i8* %23, i32 202)
%25 = icmp ne i32 %24, 0
br i1 %25, label %38, label %26
26: ; preds = %15
%27 = load i32, i32* %8
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %28
%30 = getelementptr inbounds [2 x i8*], [2 x i8*]* %29, i64 0, i64 0
%31 = load i8*, i8** %30
%32 = load i32, i32* %8
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %33
%35 = getelementptr inbounds [2 x i8*], [2 x i8*]* %34, i64 0, i64 1
%36 = load i8*, i8** %35
%37 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.20, i64 0, i64 0), i8* %31, i8* %36)
br label %91
38: ; preds = %15
%39 = getelementptr inbounds [202 x i8], [202 x i8]* %9, i64 0, i64 0
%40 = call i32 @gyldig_url(i8* %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %55, label %42
42: ; preds = %38
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %44
%46 = getelementptr inbounds [2 x i8*], [2 x i8*]* %45, i64 0, i64 0
%47 = load i8*, i8** %46
%48 = load i32, i32* %8
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %49
%51 = getelementptr inbounds [2 x i8*], [2 x i8*]* %50, i64 0, i64 1
%52 = load i8*, i8** %51
%53 = getelementptr inbounds [202 x i8], [202 x i8]* %9, i64 0, i64 0
%54 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.21, i64 0, i64 0), i8* %47, i8* %52, i8* %53)
br label %90
55: ; preds = %38
%56 = getelementptr inbounds [202 x i8], [202 x i8]* %9, i64 0, i64 0
%57 = load i32, i32* %8
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %58
%60 = getelementptr inbounds [2 x i8*], [2 x i8*]* %59, i64 0, i64 1
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %56, i8* %61)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %76
64: ; preds = %55
%65 = load i32, i32* %8
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %66
%68 = getelementptr inbounds [2 x i8*], [2 x i8*]* %67, i64 0, i64 0
%69 = load i8*, i8** %68
%70 = load i32, i32* %8
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %71
%73 = getelementptr inbounds [2 x i8*], [2 x i8*]* %72, i64 0, i64 1
%74 = load i8*, i8** %73
%75 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i8* %69, i8* %74)
br label %89
76: ; preds = %55
%77 = load i32, i32* %8
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %78
%80 = getelementptr inbounds [2 x i8*], [2 x i8*]* %79, i64 0, i64 0
%81 = load i8*, i8** %80
%82 = load i32, i32* %8
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* %6, i64 0, i64 %83
%85 = getelementptr inbounds [2 x i8*], [2 x i8*]* %84, i64 0, i64 1
%86 = load i8*, i8** %85
%87 = getelementptr inbounds [202 x i8], [202 x i8]* %9, i64 0, i64 0
%88 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0), i8* %81, i8* %86, i8* %87)
br label %89
89: ; preds = %76, %64
br label %90
90: ; preds = %89, %42
br label %91
91: ; preds = %90, %26
br label %92
92: ; preds = %91
%93 = load i32, i32* %8
%94 = add nsw i32 %93, 1
store i32 %94, i32* %8
br label %11
95: ; preds = %11
%96 = load i32, i32* %3
ret i32 %96
}

LLVM IR (-O2):
@.str = [32 x i8] c"http://www.boitho.com/File.html\00"
@.str.1 = [32 x i8] c"http://sub.boitho.com/File.html\00"
@.str.2 = [22 x i8] c"http://www.boitho.com\00"
@.str.3 = [23 x i8] c"http://www.boitho.com/\00"
@.str.4 = [19 x i8] c"http://boitho.com/\00"
@.str.5 = [18 x i8] c"http://boitho.com\00"
@.str.6 = [28 x i8] c"http://boitho.com/File.html\00"
@.str.7 = [26 x i8] c"http://www.boitho.com:80/\00"
@.str.8 = [35 x i8] c"http://www.boitho.com:80/File.html\00"
@.str.9 = [26 x i8] c"http://www.boitho.com?a=b\00"
@.str.10 = [27 x i8] c"http://www.boitho.com/?a=b\00"
@.str.11 = [32 x i8] c"HTTP://www.Boitho.coM/File.html\00"
@.str.12 = [39 x i8] c"http://www.boitho.com/side.html#august\00"
@.str.13 = [32 x i8] c"http://www.boitho.com/side.html\00"
@.str.14 = [36 x i8] c"http://www.boitho.comindex.html?a=b\00"
@.str.15 = [37 x i8] c"http://www.boitho.com/index.html?a=b\00"
@.str.16 = [84 x i8] c"http://www.boitho.com/div/javascript:openchild('/product-popup.pl?pcode=10136136');\00"
@.str.17 = [1 x i8] zeroinitializer
@.str.18 = [84 x i8] c"http://www.boitho.com/div/JavaScript:openchild('/product-popup.pl?pcode=10136136');\00"
@.str.19 = [140 x i8] c"http://www.swindon.gov.uk/atozlistingsbyletterdisplay/socialcare/signpost/socialcare/signpost/community/roadstransport/feedbackcomments.htm\00"
@__const.main.A = [15 x [2 x i8*]] [[2 x i8*] [i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.10, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.13, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.15, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i32 0, i32 0)], [2 x i8*] [i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.17, i32 0, i32 0)]]
@.str.20 = [52 x i8] c"Error: bad status from url_normalization: %s -> %s\0A\00"
@.str.21 = [47 x i8] c"Warn: ikke gyldig: %s -> %s (did become \22%s\22)\0A\00"
@.str.22 = [14 x i8] c"OK: %s -> %s\0A\00"
@.str.23 = [22 x i8] c"Error: %s -> %s : %s\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [202 x i8]
%4 = getelementptr inbounds [202 x i8], [202 x i8]* %3, i64 0, i64 0
br label %5
5: ; preds = %2, %30
%6 = phi i64 [ 0, %2 ], [ %31, %30 ]
%7 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* @__const.main.A, i64 0, i64 %6, i64 0
%8 = load i8*, i8** %7
%9 = call i32 @strscpy(i8* %4, i8* %8)
%10 = call i32 @url_normalization(i8* %4, i32 202)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %16
12: ; preds = %5
%13 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* @__const.main.A, i64 0, i64 %6, i64 1
%14 = load i8*, i8** %13
%15 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.20, i64 0, i64 0), i8* %8, i8* %14)
br label %30
16: ; preds = %5
%17 = call i32 @gyldig_url(i8* %4)
%18 = icmp eq i32 %17, 0
%19 = getelementptr inbounds [15 x [2 x i8*]], [15 x [2 x i8*]]* @__const.main.A, i64 0, i64 %6, i64 1
%20 = load i8*, i8** %19
br i1 %18, label %21, label %23
21: ; preds = %16
%22 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.21, i64 0, i64 0), i8* %8, i8* %20, i8* %4)
br label %30
23: ; preds = %16
%24 = call i64 @strcmp(i8* %4, i8* %20)
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), i8* %8, i8* %20)
br label %30
28: ; preds = %23
%29 = call i32 (i8*, i8*, i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.23, i64 0, i64 0), i8* %8, i8* %20, i8* %4)
br label %30
30: ; preds = %12, %26, %28, %21
%31 = add nuw nsw i64 %6, 1
%32 = icmp eq i64 %31, 15
br i1 %32, label %33, label %5
33: ; preds = %30
ret i32 0
}