#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*/ EVP_MD_CTX;

/* Variables and functions */
int EVP_DigestFinal_ex(int /*<<< orphan*/ *, unsigned char *, unsigned int *);
int EVP_DigestInit_ex(int /*<<< orphan*/ *, int /*<<< orphan*/,
                      int /*<<< orphan*/ *);
int EVP_DigestUpdate(int /*<<< orphan*/ *, unsigned char const *, size_t const);
int /*<<< orphan*/ *EVP_MD_CTX_create();
int /*<<< orphan*/ EVP_MD_CTX_destroy(int /*<<< orphan*/ *);
int /*<<< orphan*/ EVP_sha256();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int);
int /*<<< orphan*/ stderr;
int perm_F(const unsigned char i, const unsigned char *x, const size_t x_len,
           unsigned char *out) {
  int ret, ok;
  EVP_MD_CTX *mdctx = NULL;
  for (unsigned char j = 0; j < x_len / 32; j++) {
    if ((mdctx = EVP_MD_CTX_create()) == NULL) {
      fprintf(stderr, "@@@ %s:%d @@@\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/"
              "daps_id2_gq.c",
              90);
      fflush(stderr);
      ;
      goto err;
    };
    ok = (EVP_DigestInit_ex(mdctx, EVP_sha256(), NULL));
    if (ok != 1) {
      fprintf(stderr, "@@@ %s:%d @@@\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/"
              "daps_id2_gq.c",
              91);
      fflush(stderr);
      ;
      goto err;
    };
    ok = (EVP_DigestUpdate(mdctx, &i, 1));
    if (ok != 1) {
      fprintf(stderr, "@@@ %s:%d @@@\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/"
              "daps_id2_gq.c",
              92);
      fflush(stderr);
      ;
      goto err;
    };
    ok = (EVP_DigestUpdate(mdctx, &j, 1));
    if (ok != 1) {
      fprintf(stderr, "@@@ %s:%d @@@\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/"
              "daps_id2_gq.c",
              93);
      fflush(stderr);
      ;
      goto err;
    };
    ok = (EVP_DigestUpdate(mdctx, x, x_len));
    if (ok != 1) {
      fprintf(stderr, "@@@ %s:%d @@@\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/"
              "daps_id2_gq.c",
              94);
      fflush(stderr);
      ;
      goto err;
    };
    unsigned int digest_len;
    ok = (EVP_DigestFinal_ex(mdctx, out + (j * 32), &digest_len));
    if (ok != 1) {
      fprintf(stderr, "@@@ %s:%d @@@\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/"
              "daps_id2_gq.c",
              96);
      fflush(stderr);
      ;
      goto err;
    };
    if (digest_len != 32) {
      goto err;
    }
    EVP_MD_CTX_destroy(mdctx);
    mdctx = NULL;
  }
  ret = 1;
  goto cleanup;
err:
  ret = 0;
cleanup:
  if (mdctx != NULL) {
    EVP_MD_CTX_destroy(mdctx);
    mdctx = NULL;
  }
  return ret;
}


x86 assembly (clang, -O0):
<perm_F>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movq   $0x0,-0x30(%rbp)
movb   $0x0,-0x31(%rbp)
movzbl -0x31(%rbp),%eax
mov    -0x18(%rbp),%rcx
shr    $0x5,%rcx
cmp    %rcx,%rax
jae    13e6 <perm_F+0x266>
mov    $0x0,%al
call   10a0 <EVP_MD_CTX_create@plt>
mov    %rax,-0x30(%rbp)
cmp    $0x0,%rax
jne    1204 <perm_F+0x84>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
lea    0xe20(%rip),%rsi
lea    0xe28(%rip),%rdx
mov    $0x5a,%ecx
call   1050 <fprintf@plt>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
jmp    13f2 <perm_F+0x272>
mov    -0x30(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x0,%al
call   1090 <EVP_sha256@plt>
mov    -0x40(%rbp),%rdi
mov    %eax,%esi
xor    %eax,%eax
mov    %eax,%edx
call   1040 <EVP_DigestInit_ex@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
je     1263 <perm_F+0xe3>
mov    0x2daa(%rip),%rax
mov    (%rax),%edi
lea    0xdc1(%rip),%rsi
lea    0xdc9(%rip),%rdx
mov    $0x5b,%ecx
call   1050 <fprintf@plt>
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
jmp    13f2 <perm_F+0x272>
mov    -0x30(%rbp),%rdi
lea    -0x1(%rbp),%rsi
mov    $0x1,%edx
call   1060 <EVP_DigestUpdate@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
je     12b6 <perm_F+0x136>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
lea    0xd6e(%rip),%rsi
lea    0xd76(%rip),%rdx
mov    $0x5c,%ecx
call   1050 <fprintf@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
jmp    13f2 <perm_F+0x272>
mov    -0x30(%rbp),%rdi
lea    -0x31(%rbp),%rsi
mov    $0x1,%edx
call   1060 <EVP_DigestUpdate@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
je     1309 <perm_F+0x189>
mov    0x2d04(%rip),%rax
mov    (%rax),%edi
lea    0xd1b(%rip),%rsi
lea    0xd23(%rip),%rdx
mov    $0x5d,%ecx
call   1050 <fprintf@plt>
mov    0x2ce3(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
jmp    13f2 <perm_F+0x272>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1060 <EVP_DigestUpdate@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
je     135b <perm_F+0x1db>
mov    0x2cb2(%rip),%rax
mov    (%rax),%edi
lea    0xcc9(%rip),%rsi
lea    0xcd1(%rip),%rdx
mov    $0x5e,%ecx
call   1050 <fprintf@plt>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
jmp    13f2 <perm_F+0x272>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rsi
movzbl -0x31(%rbp),%eax
shl    $0x5,%eax
cltq
add    %rax,%rsi
lea    -0x38(%rbp),%rdx
call   1030 <EVP_DigestFinal_ex@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x1,-0x28(%rbp)
je     13b9 <perm_F+0x239>
mov    0x2c54(%rip),%rax
mov    (%rax),%edi
lea    0xc6b(%rip),%rsi
lea    0xc73(%rip),%rdx
mov    $0x60,%ecx
call   1050 <fprintf@plt>
mov    0x2c33(%rip),%rax
mov    (%rax),%edi
call   1070 <fflush@plt>
jmp    13f2 <perm_F+0x272>
cmpl   $0x20,-0x38(%rbp)
je     13c8 <perm_F+0x248>
jmp    13f2 <perm_F+0x272>
mov    -0x30(%rbp),%rdi
call   1080 <EVP_MD_CTX_destroy@plt>
movq   $0x0,-0x30(%rbp)
mov    -0x31(%rbp),%al
add    $0x1,%al
mov    %al,-0x31(%rbp)
jmp    11a6 <perm_F+0x26>
movl   $0x1,-0x24(%rbp)
jmp    13f9 <perm_F+0x279>
movl   $0x0,-0x24(%rbp)
cmpq   $0x0,-0x30(%rbp)
je     1415 <perm_F+0x295>
mov    -0x30(%rbp),%rdi
call   1080 <EVP_MD_CTX_destroy@plt>
movq   $0x0,-0x30(%rbp)
mov    -0x24(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<perm_F>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %dil,0x3(%rsp)
movb   $0x0,0x2(%rsp)
cmp    $0x20,%rdx
jae    11a5 <perm_F+0x25>
mov    $0x1,%eax
jmp    1362 <perm_F+0x1e2>
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdx,%rbp
shr    $0x5,%rbp
lea    0x3(%rsp),%r13
xor    %eax,%eax
call   10a0 <EVP_MD_CTX_create@plt>
test   %rax,%rax
je     1285 <perm_F+0x105>
mov    %rax,%rbx
xor    %eax,%eax
call   1090 <EVP_sha256@plt>
mov    %rbx,%rdi
mov    %eax,%esi
xor    %edx,%edx
call   1040 <EVP_DigestInit_ex@plt>
cmp    $0x1,%eax
jne    12b2 <perm_F+0x132>
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r13,%rsi
call   1060 <EVP_DigestUpdate@plt>
cmp    $0x1,%eax
jne    12d1 <perm_F+0x151>
mov    $0x1,%edx
mov    %rbx,%rdi
lea    0x2(%rsp),%rsi
call   1060 <EVP_DigestUpdate@plt>
cmp    $0x1,%eax
jne    12f0 <perm_F+0x170>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1060 <EVP_DigestUpdate@plt>
cmp    $0x1,%eax
jne    130f <perm_F+0x18f>
movzbl 0x2(%rsp),%esi
shl    $0x5,%rsi
add    %r14,%rsi
mov    %rbx,%rdi
lea    0x4(%rsp),%rdx
call   1030 <EVP_DigestFinal_ex@plt>
cmp    $0x1,%eax
jne    132e <perm_F+0x1ae>
cmpl   $0x20,0x4(%rsp)
jne    1358 <perm_F+0x1d8>
mov    %rbx,%rdi
call   1080 <EVP_MD_CTX_destroy@plt>
movzbl 0x2(%rsp),%eax
add    $0x1,%al
mov    %al,0x2(%rsp)
movzbl %al,%eax
cmp    %rax,%rbp
ja     11ba <perm_F+0x3a>
jmp    119b <perm_F+0x1b>
mov    0x2d54(%rip),%rbx
mov    (%rbx),%edi
lea    0xd6b(%rip),%rsi
lea    0xd73(%rip),%rdx
mov    $0x5a,%ecx
call   1050 <fprintf@plt>
mov    (%rbx),%edi
call   1070 <fflush@plt>
jmp    1360 <perm_F+0x1e0>
mov    0x2d27(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xd3d(%rip),%rsi
lea    0xd45(%rip),%rdx
mov    $0x5b,%ecx
jmp    134b <perm_F+0x1cb>
mov    0x2d08(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xd1e(%rip),%rsi
lea    0xd26(%rip),%rdx
mov    $0x5c,%ecx
jmp    134b <perm_F+0x1cb>
mov    0x2ce9(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xcff(%rip),%rsi
lea    0xd07(%rip),%rdx
mov    $0x5d,%ecx
jmp    134b <perm_F+0x1cb>
mov    0x2cca(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xce0(%rip),%rsi
lea    0xce8(%rip),%rdx
mov    $0x5e,%ecx
jmp    134b <perm_F+0x1cb>
mov    0x2cab(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xcc1(%rip),%rsi
lea    0xcc9(%rip),%rdx
mov    $0x60,%ecx
call   1050 <fprintf@plt>
mov    0x0(%rbp),%edi
call   1070 <fflush@plt>
mov    %rbx,%rdi
call   1080 <EVP_MD_CTX_destroy@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [15 x i8] c"@@@ %s:%d @@@\0A\00"
@.str.1 = [136 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/daps_id2_gq.c\00"
define i32 @perm_F(i8 zeroext %0, i8* %1, i64 %2, i8* %3) {
%5 = alloca i8
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32*
%12 = alloca i8
%13 = alloca i32
store i8 %0, i8* %5
store i8* %1, i8** %6
store i64 %2, i64* %7
store i8* %3, i8** %8
store i32* null, i32** %11
store i8 0, i8* %12
br label %14
14: ; preds = %94, %4
%15 = load i8, i8* %12
%16 = zext i8 %15 to i64
%17 = load i64, i64* %7
%18 = udiv i64 %17, 32
%19 = icmp ult i64 %16, %18
br i1 %19, label %20, label %97
20: ; preds = %14
%21 = call i32* (...) @EVP_MD_CTX_create()
store i32* %21, i32** %11
%22 = icmp eq i32* %21, null
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 90)
%26 = load i32, i32* @stderr
%27 = call i32 @fflush(i32 %26)
br label %98
28: ; preds = %20
%29 = load i32*, i32** %11
%30 = call i32 (...) @EVP_sha256()
%31 = call i32 @EVP_DigestInit_ex(i32* %29, i32 %30, i32* null)
store i32 %31, i32* %10
%32 = load i32, i32* %10
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %39
34: ; preds = %28
%35 = load i32, i32* @stderr
%36 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 91)
%37 = load i32, i32* @stderr
%38 = call i32 @fflush(i32 %37)
br label %98
39: ; preds = %28
%40 = load i32*, i32** %11
%41 = call i32 @EVP_DigestUpdate(i32* %40, i8* %5, i64 1)
store i32 %41, i32* %10
%42 = load i32, i32* %10
%43 = icmp ne i32 %42, 1
br i1 %43, label %44, label %49
44: ; preds = %39
%45 = load i32, i32* @stderr
%46 = call i32 @fprintf(i32 %45, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 92)
%47 = load i32, i32* @stderr
%48 = call i32 @fflush(i32 %47)
br label %98
49: ; preds = %39
%50 = load i32*, i32** %11
%51 = call i32 @EVP_DigestUpdate(i32* %50, i8* %12, i64 1)
store i32 %51, i32* %10
%52 = load i32, i32* %10
%53 = icmp ne i32 %52, 1
br i1 %53, label %54, label %59
54: ; preds = %49
%55 = load i32, i32* @stderr
%56 = call i32 @fprintf(i32 %55, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 93)
%57 = load i32, i32* @stderr
%58 = call i32 @fflush(i32 %57)
br label %98
59: ; preds = %49
%60 = load i32*, i32** %11
%61 = load i8*, i8** %6
%62 = load i64, i64* %7
%63 = call i32 @EVP_DigestUpdate(i32* %60, i8* %61, i64 %62)
store i32 %63, i32* %10
%64 = load i32, i32* %10
%65 = icmp ne i32 %64, 1
br i1 %65, label %66, label %71
66: ; preds = %59
%67 = load i32, i32* @stderr
%68 = call i32 @fprintf(i32 %67, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 94)
%69 = load i32, i32* @stderr
%70 = call i32 @fflush(i32 %69)
br label %98
71: ; preds = %59
%72 = load i32*, i32** %11
%73 = load i8*, i8** %8
%74 = load i8, i8* %12
%75 = zext i8 %74 to i32
%76 = mul nsw i32 %75, 32
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds i8, i8* %73, i64 %77
%79 = call i32 @EVP_DigestFinal_ex(i32* %72, i8* %78, i32* %13)
store i32 %79, i32* %10
%80 = load i32, i32* %10
%81 = icmp ne i32 %80, 1
br i1 %81, label %82, label %87
82: ; preds = %71
%83 = load i32, i32* @stderr
%84 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 96)
%85 = load i32, i32* @stderr
%86 = call i32 @fflush(i32 %85)
br label %98
87: ; preds = %71
%88 = load i32, i32* %13
%89 = icmp ne i32 %88, 32
br i1 %89, label %90, label %91
90: ; preds = %87
br label %98
91: ; preds = %87
%92 = load i32*, i32** %11
%93 = call i32 @EVP_MD_CTX_destroy(i32* %92)
store i32* null, i32** %11
br label %94
94: ; preds = %91
%95 = load i8, i8* %12
%96 = add i8 %95, 1
store i8 %96, i8* %12
br label %14
97: ; preds = %14
store i32 1, i32* %9
br label %99
98: ; preds = %90, %82, %66, %54, %44, %34, %23
store i32 0, i32* %9
br label %99
99: ; preds = %98, %97
%100 = load i32*, i32** %11
%101 = icmp ne i32* %100, null
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = load i32*, i32** %11
%104 = call i32 @EVP_MD_CTX_destroy(i32* %103)
store i32* null, i32** %11
br label %105
105: ; preds = %102, %99
%106 = load i32, i32* %9
ret i32 %106
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [15 x i8] c"@@@ %s:%d @@@\0A\00"
@.str.1 = [136 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/dstebila/daps/refs/heads/master/daps_id2_gq.c\00"
define i32 @perm_F(i8 zeroext %0, i8* %1, i64 %2, i8* %3) {
%5 = alloca i8
%6 = alloca i8
%7 = alloca i32
store i8 %0, i8* %5
%8 = lshr i64 %2, 5
store i8 0, i8* %6
%9 = icmp ult i64 %2, 32
br i1 %9, label %70, label %10
10: ; preds = %4
%11 = bitcast i32* %7 to i8*
br label %12
12: ; preds = %10, %64
%13 = call i32* (...) @EVP_MD_CTX_create()
%14 = icmp eq i32* %13, null
br i1 %14, label %71, label %15
15: ; preds = %12
%16 = call i32 (...) @EVP_sha256()
%17 = call i32 @EVP_DigestInit_ex(i32* %13, i32 %16, i32* null)
%18 = icmp eq i32 %17, 1
br i1 %18, label %24, label %19
19: ; preds = %15
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 91)
%22 = load i32, i32* @stderr
%23 = call i32 @fflush(i32 %22)
br label %76
24: ; preds = %15
%25 = call i32 @EVP_DigestUpdate(i32* %13, i8* %5, i64 1)
%26 = icmp eq i32 %25, 1
br i1 %26, label %32, label %27
27: ; preds = %24
%28 = load i32, i32* @stderr
%29 = call i32 @fprintf(i32 %28, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 92)
%30 = load i32, i32* @stderr
%31 = call i32 @fflush(i32 %30)
br label %76
32: ; preds = %24
%33 = call i32 @EVP_DigestUpdate(i32* %13, i8* %6, i64 1)
%34 = icmp eq i32 %33, 1
br i1 %34, label %40, label %35
35: ; preds = %32
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 93)
%38 = load i32, i32* @stderr
%39 = call i32 @fflush(i32 %38)
br label %76
40: ; preds = %32
%41 = call i32 @EVP_DigestUpdate(i32* %13, i8* %1, i64 %2)
%42 = icmp eq i32 %41, 1
br i1 %42, label %48, label %43
43: ; preds = %40
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 94)
%46 = load i32, i32* @stderr
%47 = call i32 @fflush(i32 %46)
br label %76
48: ; preds = %40
%49 = load i8, i8* %6
%50 = zext i8 %49 to i64
%51 = shl nuw nsw i64 %50, 5
%52 = getelementptr inbounds i8, i8* %3, i64 %51
%53 = call i32 @EVP_DigestFinal_ex(i32* %13, i8* %52, i32* %7)
%54 = icmp eq i32 %53, 1
br i1 %54, label %60, label %55
55: ; preds = %48
%56 = load i32, i32* @stderr
%57 = call i32 @fprintf(i32 %56, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 96)
%58 = load i32, i32* @stderr
%59 = call i32 @fflush(i32 %58)
br label %63
60: ; preds = %48
%61 = load i32, i32* %7
%62 = icmp eq i32 %61, 32
br i1 %62, label %64, label %63
63: ; preds = %60, %55
br label %76
64: ; preds = %60
%65 = call i32 @EVP_MD_CTX_destroy(i32* %13)
%66 = load i8, i8* %6
%67 = add i8 %66, 1
store i8 %67, i8* %6
%68 = zext i8 %67 to i64
%69 = icmp ugt i64 %8, %68
br i1 %69, label %12, label %70
70: ; preds = %64, %4
br label %78
71: ; preds = %12
%72 = load i32, i32* @stderr
%73 = call i32 @fprintf(i32 %72, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([136 x i8], [136 x i8]* @.str.1, i64 0, i64 0), i32 90)
%74 = load i32, i32* @stderr
%75 = call i32 @fflush(i32 %74)
br label %78
76: ; preds = %63, %43, %35, %27, %19
%77 = call i32 @EVP_MD_CTX_destroy(i32* %13)
br label %78
78: ; preds = %71, %70, %76
%79 = phi i32 [ 1, %70 ], [ 0, %71 ], [ 0, %76 ]
ret i32 %79
}