int SearchAutobahnen(struct Knoten *meineKnoten, int AnzahlKnoten) {
  char **Autobahnen = GetAutobahnen(meineKnoten, AnzahlKnoten);
  printMenuHeader("  Alle Autobahnen  ");
  puts("\n");
  for (int x = 1; x <= atoi(Autobahnen[0]); x++) {
    printTabelRow(3, "", Autobahnen[x], "");
  }
  puts("\n");
  printFooter();
  int AnzAutobahnen = atoi(Autobahnen[0]);
  for (int x = 0; x <= AnzAutobahnen; x++)
    free(Autobahnen[x]);
  free(Autobahnen);
}


x86 assembly (clang, -O0):
<SearchAutobahnen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x14(%rbp),%esi
mov    $0x0,%al
call   1060 <GetAutobahnen@plt>
cltq
mov    %rax,-0x20(%rbp)
lea    0xe66(%rip),%rdi
mov    $0x0,%al
call   1070 <printMenuHeader@plt>
lea    0xe6c(%rip),%rdi
mov    $0x0,%al
call   1040 <puts@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    $0x0,%al
call   1090 <atoi@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
cmp    %ecx,%eax
jg     1207 <SearchAutobahnen+0x97>
mov    -0x20(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    $0x3,%edi
lea    0xe26(%rip),%rcx
mov    %rcx,%rsi
mov    $0x0,%al
call   1080 <printTabelRow@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11b6 <SearchAutobahnen+0x46>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1040 <puts@plt>
mov    $0x0,%al
call   1050 <printFooter@plt>
mov    -0x20(%rbp),%rax
mov    (%rax),%rdi
mov    $0x0,%al
call   1090 <atoi@plt>
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     125f <SearchAutobahnen+0xef>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1030 <free@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1234 <SearchAutobahnen+0xc4>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SearchAutobahnen>:
push   %r15
push   %r14
push   %rbx
xor    %eax,%eax
call   1060 <GetAutobahnen@plt>
movslq %eax,%r15
lea    0xe7a(%rip),%rdi
xor    %eax,%eax
call   1070 <printMenuHeader@plt>
lea    0xe80(%rip),%rdi
xor    %eax,%eax
call   1040 <puts@plt>
mov    (%r15),%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
test   %eax,%eax
jle    11ec <SearchAutobahnen+0x7c>
lea    0xe65(%rip),%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x8(%r15,%rbx,8),%rdx
mov    $0x3,%edi
mov    %r14,%rsi
mov    %r14,%rcx
xor    %eax,%eax
call   1080 <printTabelRow@plt>
mov    (%r15),%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
cltq
add    $0x1,%rbx
cmp    %rax,%rbx
jl     11c0 <SearchAutobahnen+0x50>
lea    0xe21(%rip),%rdi
xor    %eax,%eax
call   1040 <puts@plt>
xor    %eax,%eax
call   1050 <printFooter@plt>
mov    (%r15),%rdi
xor    %eax,%eax
call   1090 <atoi@plt>
test   %eax,%eax
js     1232 <SearchAutobahnen+0xc2>
mov    %eax,%r14d
add    $0x1,%r14d
xor    %ebx,%ebx
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbx,8),%rdi
call   1030 <free@plt>
add    $0x1,%rbx
cmp    %rbx,%r14
jne    1220 <SearchAutobahnen+0xb0>
mov    %r15,%rdi
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <free@plt>

LLVM IR (-O0):
%struct.Knoten = type opaque
@.str = [20 x i8] c" Alle Autobahnen \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [1 x i8] zeroinitializer
define i32 @SearchAutobahnen(%struct.Knoten* %0, i32 %1) {
%3 = alloca i32
%4 = alloca %struct.Knoten*
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store %struct.Knoten* %0, %struct.Knoten** %4
store i32 %1, i32* %5
%10 = load %struct.Knoten*, %struct.Knoten** %4
%11 = load i32, i32* %5
%12 = call i32 (%struct.Knoten*, i32, ...) bitcast (i32 (...)* @GetAutobahnen to i32 (%struct.Knoten*, i32, ...)*)(%struct.Knoten* %10, i32 %11)
%13 = sext i32 %12 to i64
%14 = inttoptr i64 %13 to i8**
store i8** %14, i8*** %6
%15 = call i32 (i8*, ...) bitcast (i32 (...)* @printMenuHeader to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %7
br label %17
17: ; preds = %31, %2
%18 = load i32, i32* %7
%19 = load i8**, i8*** %6
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %21)
%23 = icmp sle i32 %18, %22
br i1 %23, label %24, label %34
24: ; preds = %17
%25 = load i8**, i8*** %6
%26 = load i32, i32* %7
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds i8*, i8** %25, i64 %27
%29 = load i8*, i8** %28
%30 = call i32 (i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @printTabelRow to i32 (i32, i8*, i8*, i8*, ...)*)(i32 3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* %29, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
br label %31
31: ; preds = %24
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %17
34: ; preds = %17
%35 = call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%36 = call i32 (...) @printFooter()
%37 = load i8**, i8*** %6
%38 = getelementptr inbounds i8*, i8** %37, i64 0
%39 = load i8*, i8** %38
%40 = call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %39)
store i32 %40, i32* %8
store i32 0, i32* %9
br label %41
41: ; preds = %51, %34
%42 = load i32, i32* %9
%43 = load i32, i32* %8
%44 = icmp sle i32 %42, %43
br i1 %44, label %45, label %54
45: ; preds = %41
%46 = load i8**, i8*** %6
%47 = load i32, i32* %9
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds i8*, i8** %46, i64 %48
%50 = load i8*, i8** %49
br label %51
51: ; preds = %45
%52 = load i32, i32* %9
%53 = add nsw i32 %52, 1
store i32 %53, i32* %9
br label %41
54: ; preds = %41
%55 = load i8**, i8*** %6
%56 = bitcast i8** %55 to i8*
%57 = load i32, i32* %3
ret i32 %57
}

LLVM IR (-O2):
%struct.Knoten = type opaque
@.str = [20 x i8] c" Alle Autobahnen \00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [1 x i8] zeroinitializer
define i32 @SearchAutobahnen(%struct.Knoten* %0, i32 %1) {
%3 = tail call i32 (%struct.Knoten*, i32, ...) bitcast (i32 (...)* @GetAutobahnen to i32 (%struct.Knoten*, i32, ...)*)(%struct.Knoten* %0, i32 %1)
%4 = sext i32 %3 to i64
%5 = inttoptr i64 %4 to i8**
%6 = tail call i32 (i8*, ...) bitcast (i32 (...)* @printMenuHeader to i32 (i8*, ...)*)(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%8 = load i8*, i8** %5
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %8)
%10 = icmp slt i32 %9, 1
br i1 %10, label %11, label %20
11: ; preds = %20, %2
%12 = tail call i32 (i8*, ...) bitcast (i32 (...)* @puts to i32 (i8*, ...)*)(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32 (...) @printFooter()
%14 = load i8*, i8** %5
%15 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %14)
%16 = icmp slt i32 %15, 0
br i1 %16, label %30, label %17
17: ; preds = %11
%18 = add nuw i32 %15, 1
%19 = zext i32 %18 to i64
br label %32
20: ; preds = %2, %20
%21 = phi i64 [ %25, %20 ], [ 1, %2 ]
%22 = getelementptr inbounds i8*, i8** %5, i64 %21
%23 = load i8*, i8** %22
%24 = tail call i32 (i32, i8*, i8*, i8*, ...) bitcast (i32 (...)* @printTabelRow to i32 (i32, i8*, i8*, i8*, ...)*)(i32 3, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0), i8* %23, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%25 = add nuw nsw i64 %21, 1
%26 = load i8*, i8** %5
%27 = tail call i32 (i8*, ...) bitcast (i32 (...)* @atoi to i32 (i8*, ...)*)(i8* %26)
%28 = sext i32 %27 to i64
%29 = icmp slt i64 %21, %28
br i1 %29, label %20, label %11
30: ; preds = %32, %11
%31 = inttoptr i64 %4 to i8*
tail call void @free(i8* %31)
ret i32 undef
32: ; preds = %17, %32
%33 = phi i64 [ 0, %17 ], [ %36, %32 ]
%34 = getelementptr inbounds i8*, i8** %5, i64 %33
%35 = load i8*, i8** %34
tail call void @free(i8* %35)
%36 = add nuw nsw i64 %33, 1
%37 = icmp eq i64 %36, %19
br i1 %37, label %30, label %32
}