#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 /*<<< orphan*/ printf(char *, ...);
int test_length_of_sealed();
int test_unseal_fails_on_invalid_hmac();
int test_unseal_fails_on_invalid_prefix();
int test_unseal_fails_on_wrong_password();
int test_unseal_iron_token_ok();
int test_unseal_ok();
int test_unseal_ok2();
int main(int argc, char **argv) {
  do {
    printf("  %s:", (argv[0]));
    int r = test_length_of_sealed();
    if (r != 0) {
      printf("test_length_of_sealed"
             " failed\n");
      return r;
    } else {
      printf("test_length_of_sealed"
             " ok\n");
    }
  } while (0);
  do {
    printf("  %s:", (argv[0]));
    int r = test_unseal_ok();
    if (r != 0) {
      printf("test_unseal_ok"
             " failed\n");
      return r;
    } else {
      printf("test_unseal_ok"
             " ok\n");
    }
  } while (0);
  do {
    printf("  %s:", (argv[0]));
    int r = test_unseal_ok2();
    if (r != 0) {
      printf("test_unseal_ok2"
             " failed\n");
      return r;
    } else {
      printf("test_unseal_ok2"
             " ok\n");
    }
  } while (0);
  do {
    printf("  %s:", (argv[0]));
    int r = test_unseal_fails_on_invalid_prefix();
    if (r != 0) {
      printf("test_unseal_fails_on_invalid_prefix"
             " failed\n");
      return r;
    } else {
      printf("test_unseal_fails_on_invalid_prefix"
             " ok\n");
    }
  } while (0);
  do {
    printf("  %s:", (argv[0]));
    int r = test_unseal_fails_on_invalid_hmac();
    if (r != 0) {
      printf("test_unseal_fails_on_invalid_hmac"
             " failed\n");
      return r;
    } else {
      printf("test_unseal_fails_on_invalid_hmac"
             " ok\n");
    }
  } while (0);
  do {
    printf("  %s:", (argv[0]));
    int r = test_unseal_fails_on_wrong_password();
    if (r != 0) {
      printf("test_unseal_fails_on_wrong_password"
             " failed\n");
      return r;
    } else {
      printf("test_unseal_fails_on_wrong_password"
             " ok\n");
    }
  } while (0);
  do {
    printf("  %s:", (argv[0]));
    int r = test_unseal_iron_token_ok();
    if (r != 0) {
      printf("test_unseal_iron_token_ok"
             " failed\n");
      return r;
    } else {
      printf("test_unseal_iron_token_ok"
             " ok\n");
    }
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <test_length_of_sealed@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
je     11d8 <main+0x58>
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xe45(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11eb <main+0x6b>
jmp    11f0 <main+0x70>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xe02(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <test_unseal_ok@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     1232 <main+0xb2>
lea    0xe1e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1245 <main+0xc5>
jmp    124a <main+0xca>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xda8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <test_unseal_ok2@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     128c <main+0x10c>
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    129f <main+0x11f>
jmp    12a4 <main+0x124>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <test_unseal_fails_on_invalid_prefix@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     12e6 <main+0x166>
lea    0xdc0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x20(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xdd3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12f9 <main+0x179>
jmp    12fe <main+0x17e>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xcf4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <test_unseal_fails_on_invalid_hmac@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     1340 <main+0x1c0>
lea    0xdba(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x24(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xdcb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1353 <main+0x1d3>
jmp    1358 <main+0x1d8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xc9a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <test_unseal_fails_on_wrong_password@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
je     139a <main+0x21a>
lea    0xdb0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x28(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xdc3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13ad <main+0x22d>
jmp    13b2 <main+0x232>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xc40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <test_unseal_iron_token_ok@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
je     13f4 <main+0x274>
lea    0xdaa(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    140e <main+0x28e>
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1407 <main+0x287>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    (%rsi),%rsi
lea    0xe60(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <test_length_of_sealed@plt>
test   %eax,%eax
je     11c0 <main+0x30>
mov    %eax,%ebp
lea    0xfe6(%rip),%rdi
jmp    1302 <main+0x172>
lea    0xe3f(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
lea    0xe2a(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1030 <test_unseal_ok@plt>
test   %eax,%eax
je     11f6 <main+0x66>
mov    %eax,%ebp
lea    0xf9a(%rip),%rdi
jmp    1302 <main+0x172>
lea    0xe22(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
lea    0xdf4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   10b0 <test_unseal_ok2@plt>
test   %eax,%eax
je     122c <main+0x9c>
mov    %eax,%ebp
lea    0xf4d(%rip),%rdi
jmp    1302 <main+0x172>
lea    0xdfe(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
lea    0xdbe(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <test_unseal_fails_on_invalid_prefix@plt>
test   %eax,%eax
je     1262 <main+0xd2>
mov    %eax,%ebp
lea    0xeec(%rip),%rdi
jmp    1302 <main+0x172>
lea    0xddb(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
lea    0xd88(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <test_unseal_fails_on_invalid_hmac@plt>
test   %eax,%eax
je     1295 <main+0x105>
mov    %eax,%ebp
lea    0xe8d(%rip),%rdi
jmp    1302 <main+0x172>
lea    0xdcf(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
lea    0xd55(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <test_unseal_fails_on_wrong_password@plt>
test   %eax,%eax
je     12c8 <main+0x138>
mov    %eax,%ebp
lea    0xe2f(%rip),%rdi
jmp    1302 <main+0x172>
lea    0xdc1(%rip),%rdi
call   1040 <puts@plt>
mov    (%rbx),%rsi
lea    0xd22(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   10a0 <test_unseal_iron_token_ok@plt>
mov    %eax,%ebp
test   %eax,%eax
lea    0xdc0(%rip),%rax
lea    0xdd6(%rip),%rdi
cmove  %rax,%rdi
call   1040 <puts@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [6 x i8] c" %s:\00"
@.str.1 = [30 x i8] c"test_length_of_sealed failed\0A\00"
@.str.2 = [26 x i8] c"test_length_of_sealed ok\0A\00"
@.str.3 = [23 x i8] c"test_unseal_ok failed\0A\00"
@.str.4 = [19 x i8] c"test_unseal_ok ok\0A\00"
@.str.5 = [24 x i8] c"test_unseal_ok2 failed\0A\00"
@.str.6 = [20 x i8] c"test_unseal_ok2 ok\0A\00"
@.str.7 = [44 x i8] c"test_unseal_fails_on_invalid_prefix failed\0A\00"
@.str.8 = [40 x i8] c"test_unseal_fails_on_invalid_prefix ok\0A\00"
@.str.9 = [42 x i8] c"test_unseal_fails_on_invalid_hmac failed\0A\00"
@.str.10 = [38 x i8] c"test_unseal_fails_on_invalid_hmac ok\0A\00"
@.str.11 = [44 x i8] c"test_unseal_fails_on_wrong_password failed\0A\00"
@.str.12 = [40 x i8] c"test_unseal_fails_on_wrong_password ok\0A\00"
@.str.13 = [34 x i8] c"test_unseal_iron_token_ok failed\0A\00"
@.str.14 = [30 x i8] c"test_unseal_iron_token_ok ok\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 i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %13
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 0
%16 = load i8*, i8** %15
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %16)
%18 = call i32 (...) @test_length_of_sealed()
store i32 %18, i32* %6
%19 = load i32, i32* %6
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %13
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%23 = load i32, i32* %6
store i32 %23, i32* %3
br label %118
24: ; preds = %13
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %24
br label %27
27: ; preds = %26
br label %28
28: ; preds = %27
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 0
%31 = load i8*, i8** %30
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %31)
%33 = call i32 (...) @test_unseal_ok()
store i32 %33, i32* %7
%34 = load i32, i32* %7
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %39
36: ; preds = %28
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%38 = load i32, i32* %7
store i32 %38, i32* %3
br label %118
39: ; preds = %28
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
br label %41
41: ; preds = %39
br label %42
42: ; preds = %41
br label %43
43: ; preds = %42
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 0
%46 = load i8*, i8** %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %46)
%48 = call i32 (...) @test_unseal_ok2()
store i32 %48, i32* %8
%49 = load i32, i32* %8
%50 = icmp ne i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %43
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%53 = load i32, i32* %8
store i32 %53, i32* %3
br label %118
54: ; preds = %43
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0))
br label %56
56: ; preds = %54
br label %57
57: ; preds = %56
br label %58
58: ; preds = %57
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 0
%61 = load i8*, i8** %60
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %61)
%63 = call i32 (...) @test_unseal_fails_on_invalid_prefix()
store i32 %63, i32* %9
%64 = load i32, i32* %9
%65 = icmp ne i32 %64, 0
br i1 %65, label %66, label %69
66: ; preds = %58
%67 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.7, i64 0, i64 0))
%68 = load i32, i32* %9
store i32 %68, i32* %3
br label %118
69: ; preds = %58
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.8, i64 0, i64 0))
br label %71
71: ; preds = %69
br label %72
72: ; preds = %71
br label %73
73: ; preds = %72
%74 = load i8**, i8*** %5
%75 = getelementptr inbounds i8*, i8** %74, i64 0
%76 = load i8*, i8** %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %76)
%78 = call i32 (...) @test_unseal_fails_on_invalid_hmac()
store i32 %78, i32* %10
%79 = load i32, i32* %10
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %73
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.9, i64 0, i64 0))
%83 = load i32, i32* %10
store i32 %83, i32* %3
br label %118
84: ; preds = %73
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
br label %86
86: ; preds = %84
br label %87
87: ; preds = %86
br label %88
88: ; preds = %87
%89 = load i8**, i8*** %5
%90 = getelementptr inbounds i8*, i8** %89, i64 0
%91 = load i8*, i8** %90
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %91)
%93 = call i32 (...) @test_unseal_fails_on_wrong_password()
store i32 %93, i32* %11
%94 = load i32, i32* %11
%95 = icmp ne i32 %94, 0
br i1 %95, label %96, label %99
96: ; preds = %88
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0))
%98 = load i32, i32* %11
store i32 %98, i32* %3
br label %118
99: ; preds = %88
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.12, i64 0, i64 0))
br label %101
101: ; preds = %99
br label %102
102: ; preds = %101
br label %103
103: ; preds = %102
%104 = load i8**, i8*** %5
%105 = getelementptr inbounds i8*, i8** %104, i64 0
%106 = load i8*, i8** %105
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %106)
%108 = call i32 (...) @test_unseal_iron_token_ok()
store i32 %108, i32* %12
%109 = load i32, i32* %12
%110 = icmp ne i32 %109, 0
br i1 %110, label %111, label %114
111: ; preds = %103
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.13, i64 0, i64 0))
%113 = load i32, i32* %12
store i32 %113, i32* %3
br label %118
114: ; preds = %103
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.14, i64 0, i64 0))
br label %116
116: ; preds = %114
br label %117
117: ; preds = %116
store i32 0, i32* %3
br label %118
118: ; preds = %117, %111, %96, %81, %66, %51, %36, %21
%119 = load i32, i32* %3
ret i32 %119
}

LLVM IR (-O2):
@.str = [6 x i8] c" %s:\00"
@str = [25 x i8] c"test_length_of_sealed ok\00"
@str.15 = [18 x i8] c"test_unseal_ok ok\00"
@str.16 = [19 x i8] c"test_unseal_ok2 ok\00"
@str.17 = [39 x i8] c"test_unseal_fails_on_invalid_prefix ok\00"
@str.18 = [37 x i8] c"test_unseal_fails_on_invalid_hmac ok\00"
@str.19 = [39 x i8] c"test_unseal_fails_on_wrong_password ok\00"
@str.20 = [29 x i8] c"test_unseal_iron_token_ok ok\00"
@str.21 = [33 x i8] c"test_unseal_iron_token_ok failed\00"
@str.22 = [43 x i8] c"test_unseal_fails_on_wrong_password failed\00"
@str.23 = [41 x i8] c"test_unseal_fails_on_invalid_hmac failed\00"
@str.24 = [43 x i8] c"test_unseal_fails_on_invalid_prefix failed\00"
@str.25 = [23 x i8] c"test_unseal_ok2 failed\00"
@str.26 = [22 x i8] c"test_unseal_ok failed\00"
@str.27 = [29 x i8] c"test_length_of_sealed failed\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i8*, i8** %1
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i32 (...) @test_length_of_sealed()
%6 = icmp eq i32 %5, 0
br i1 %6, label %7, label %44
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str, i64 0, i64 0))
%9 = load i8*, i8** %1
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = tail call i32 (...) @test_unseal_ok()
%12 = icmp eq i32 %11, 0
br i1 %12, label %13, label %44
13: ; preds = %7
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str.15, i64 0, i64 0))
%15 = load i8*, i8** %1
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = tail call i32 (...) @test_unseal_ok2()
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %44
19: ; preds = %13
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.16, i64 0, i64 0))
%21 = load i8*, i8** %1
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %21)
%23 = tail call i32 (...) @test_unseal_fails_on_invalid_prefix()
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %44
25: ; preds = %19
%26 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.17, i64 0, i64 0))
%27 = load i8*, i8** %1
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %27)
%29 = tail call i32 (...) @test_unseal_fails_on_invalid_hmac()
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %44
31: ; preds = %25
%32 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.18, i64 0, i64 0))
%33 = load i8*, i8** %1
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %33)
%35 = tail call i32 (...) @test_unseal_fails_on_wrong_password()
%36 = icmp eq i32 %35, 0
br i1 %36, label %37, label %44
37: ; preds = %31
%38 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.19, i64 0, i64 0))
%39 = load i8*, i8** %1
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8* %39)
%41 = tail call i32 (...) @test_unseal_iron_token_ok()
%42 = icmp eq i32 %41, 0
%43 = select i1 %42, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @str.20, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8], [33 x i8]* @str.21, i64 0, i64 0)
br label %44
44: ; preds = %37, %31, %25, %19, %13, %7, %2
%45 = phi i8* [ getelementptr inbounds ([29 x i8], [29 x i8]* @str.27, i64 0, i64 0), %2 ], [ getelementptr inbounds ([22 x i8], [22 x i8]* @str.26, i64 0, i64 0), %7 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @str.25, i64 0, i64 0), %13 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @str.24, i64 0, i64 0), %19 ], [ getelementptr inbounds ([41 x i8], [41 x i8]* @str.23, i64 0, i64 0), %25 ], [ getelementptr inbounds ([43 x i8], [43 x i8]* @str.22, i64 0, i64 0), %31 ], [ %43, %37 ]
%46 = phi i32 [ %5, %2 ], [ %11, %7 ], [ %17, %13 ], [ %23, %19 ], [ %29, %25 ], [ %35, %31 ], [ %41, %37 ]
%47 = tail call i32 @puts(i8* dereferenceable(1) %45)
ret i32 %46
}