#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*/ DES_crypt(char *, char *);
int /*<<< orphan*/ test_ptr_null(char *, int, char *, int /*<<< orphan*/);
int /*<<< orphan*/ test_str_eq(char *, int, char *, char *, char *,
                               int /*<<< orphan*/);
int test_des_crypt(void) {
  if (!test_str_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
          "master/Src/OSF/OpenSSL-111/test/destest.c",
          465, "\"efGnQx2725bI2\"", "DES_crypt(\"testing\", \"ef\")",
          "efGnQx2725bI2", DES_crypt("testing", "ef")))
    return 0;
  if (!test_str_eq(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
          "master/Src/OSF/OpenSSL-111/test/destest.c",
          467, "\"yA1Rp/1hZXIJk\"", "DES_crypt(\"bca76;23\", \"yA\")",
          "yA1Rp/1hZXIJk", DES_crypt("bca76;23", "yA")))
    return 0;
  if (!test_ptr_null(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
          "master/Src/OSF/OpenSSL-111/test/destest.c",
          470, "DES_crypt(\"testing\", \"y\\202\")",
          DES_crypt("testing", "y\202")))
    return 0;
  if (!test_ptr_null(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
          "master/Src/OSF/OpenSSL-111/test/destest.c",
          472, "DES_crypt(\"testing\", \"\\0A\")", DES_crypt("testing", "\0A")))
    return 0;
  if (!test_ptr_null(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/"
          "master/Src/OSF/OpenSSL-111/test/destest.c",
          474, "DES_crypt(\"testing\", \"A\")", DES_crypt("testing", "A")))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<test_des_crypt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xfa5(%rip),%rdi
lea    0xfa6(%rip),%rsi
call   1030 <DES_crypt@plt>
mov    %eax,%r9d
lea    0xeab(%rip),%rdi
mov    $0x1d1,%esi
lea    0xf4a(%rip),%rdx
lea    0xf53(%rip),%rcx
lea    0xf67(%rip),%r8
call   1040 <test_str_eq@plt>
cmp    $0x0,%eax
jne    1189 <test_des_crypt+0x59>
movl   $0x0,-0x4(%rbp)
jmp    12a7 <test_des_crypt+0x177>
lea    0xf99(%rip),%rdi
lea    0xf9b(%rip),%rsi
call   1030 <DES_crypt@plt>
mov    %eax,%r9d
lea    0xe5a(%rip),%rdi
mov    $0x1d3,%esi
lea    0xf3d(%rip),%rdx
lea    0xf46(%rip),%rcx
lea    0xf5b(%rip),%r8
call   1040 <test_str_eq@plt>
cmp    $0x0,%eax
jne    11da <test_des_crypt+0xaa>
movl   $0x0,-0x4(%rbp)
jmp    12a7 <test_des_crypt+0x177>
lea    0xf03(%rip),%rdi
lea    0xf6b(%rip),%rsi
call   1030 <DES_crypt@plt>
mov    %eax,%ecx
lea    0xe0a(%rip),%rdi
mov    $0x1d6,%esi
lea    0xf33(%rip),%rdx
call   1050 <test_ptr_null@plt>
cmp    $0x0,%eax
jne    121c <test_des_crypt+0xec>
movl   $0x0,-0x4(%rbp)
jmp    12a7 <test_des_crypt+0x177>
lea    0xec1(%rip),%rdi
lea    0xf62(%rip),%rsi
call   1030 <DES_crypt@plt>
mov    %eax,%ecx
lea    0xdc8(%rip),%rdi
mov    $0x1d8,%esi
lea    0xf12(%rip),%rdx
call   1050 <test_ptr_null@plt>
cmp    $0x0,%eax
jne    125e <test_des_crypt+0x12e>
movl   $0x0,-0x4(%rbp)
jmp    12a7 <test_des_crypt+0x177>
lea    0xe7f(%rip),%rdi
lea    0xec7(%rip),%rsi
call   1030 <DES_crypt@plt>
mov    %eax,%ecx
lea    0xd86(%rip),%rdi
mov    $0x1da,%esi
lea    0xeec(%rip),%rdx
call   1050 <test_ptr_null@plt>
cmp    $0x0,%eax
jne    12a0 <test_des_crypt+0x170>
movl   $0x0,-0x4(%rbp)
jmp    12a7 <test_des_crypt+0x177>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_des_crypt>:
push   %rbx
lea    0xfac(%rip),%rdi
lea    0xfad(%rip),%rsi
call   1030 <DES_crypt@plt>
lea    0xeb5(%rip),%rdi
lea    0xf59(%rip),%rdx
lea    0xf62(%rip),%rcx
lea    0xf76(%rip),%r8
mov    $0x1d1,%esi
mov    %eax,%r9d
call   1040 <test_str_eq@plt>
xor    %ebx,%ebx
test   %eax,%eax
je     1251 <test_des_crypt+0x121>
lea    0xfab(%rip),%rdi
lea    0xfad(%rip),%rsi
call   1030 <DES_crypt@plt>
lea    0xe6f(%rip),%rdi
lea    0xf57(%rip),%rdx
lea    0xf60(%rip),%rcx
lea    0xf75(%rip),%r8
mov    $0x1d3,%esi
mov    %eax,%r9d
call   1040 <test_str_eq@plt>
test   %eax,%eax
je     1251 <test_des_crypt+0x121>
lea    0xf22(%rip),%rdi
lea    0xf8a(%rip),%rsi
call   1030 <DES_crypt@plt>
lea    0xe2b(%rip),%rdi
lea    0xf59(%rip),%rdx
mov    $0x1d6,%esi
mov    %eax,%ecx
call   1050 <test_ptr_null@plt>
test   %eax,%eax
je     1251 <test_des_crypt+0x121>
lea    0xef1(%rip),%rdi
lea    0xf92(%rip),%rsi
call   1030 <DES_crypt@plt>
lea    0xdfa(%rip),%rdi
lea    0xf49(%rip),%rdx
mov    $0x1d8,%esi
mov    %eax,%ecx
call   1050 <test_ptr_null@plt>
test   %eax,%eax
je     1251 <test_des_crypt+0x121>
lea    0xec0(%rip),%rdi
lea    0xf08(%rip),%rsi
call   1030 <DES_crypt@plt>
lea    0xdc9(%rip),%rdi
lea    0xf34(%rip),%rdx
mov    $0x1da,%esi
mov    %eax,%ecx
call   1050 <test_ptr_null@plt>
xor    %ebx,%ebx
test   %eax,%eax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/destest.c\00"
@.str.1 = [16 x i8] c"\22efGnQx2725bI2\22\00"
@.str.2 = [27 x i8] c"DES_crypt(\22testing\22, \22ef\22)\00"
@.str.3 = [14 x i8] c"efGnQx2725bI2\00"
@.str.4 = [8 x i8] c"testing\00"
@.str.5 = [3 x i8] c"ef\00"
@.str.6 = [16 x i8] c"\22yA1Rp/1hZXIJk\22\00"
@.str.7 = [28 x i8] c"DES_crypt(\22bca76;23\22, \22yA\22)\00"
@.str.8 = [14 x i8] c"yA1Rp/1hZXIJk\00"
@.str.9 = [9 x i8] c"bca76;23\00"
@.str.10 = [3 x i8] c"yA\00"
@.str.11 = [30 x i8] c"DES_crypt(\22testing\22, \22y\\202\22)\00"
@.str.12 = [3 x i8] c"y\82\00"
@.str.13 = [28 x i8] c"DES_crypt(\22testing\22, \22\\0A\22)\00"
@.str.14 = [3 x i8] c"\00A\00"
@.str.15 = [26 x i8] c"DES_crypt(\22testing\22, \22A\22)\00"
@.str.16 = [2 x i8] c"A\00"
define i32 @test_des_crypt() {
%1 = alloca i32
%2 = call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%3 = call i32 @test_str_eq(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 465, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %2)
%4 = icmp ne i32 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %0
store i32 0, i32* %1
br label %27
6: ; preds = %0
%7 = call i32 @DES_crypt(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%8 = call i32 @test_str_eq(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 467, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %7)
%9 = icmp ne i32 %8, 0
br i1 %9, label %11, label %10
10: ; preds = %6
store i32 0, i32* %1
br label %27
11: ; preds = %6
%12 = call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%13 = call i32 @test_ptr_null(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 470, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i32 %12)
%14 = icmp ne i32 %13, 0
br i1 %14, label %16, label %15
15: ; preds = %11
store i32 0, i32* %1
br label %27
16: ; preds = %11
%17 = call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%18 = call i32 @test_ptr_null(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 472, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i32 %17)
%19 = icmp ne i32 %18, 0
br i1 %19, label %21, label %20
20: ; preds = %16
store i32 0, i32* %1
br label %27
21: ; preds = %16
%22 = call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%23 = call i32 @test_ptr_null(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 474, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i32 %22)
%24 = icmp ne i32 %23, 0
br i1 %24, label %26, label %25
25: ; preds = %21
store i32 0, i32* %1
br label %27
26: ; preds = %21
store i32 1, i32* %1
br label %27
27: ; preds = %26, %25, %20, %15, %10, %5
%28 = load i32, i32* %1
ret i32 %28
}

LLVM IR (-O2):
@.str = [171 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/papyrussolution/OpenPapyrus/refs/heads/master/Src/OSF/OpenSSL-111/test/destest.c\00"
@.str.1 = [16 x i8] c"\22efGnQx2725bI2\22\00"
@.str.2 = [27 x i8] c"DES_crypt(\22testing\22, \22ef\22)\00"
@.str.3 = [14 x i8] c"efGnQx2725bI2\00"
@.str.4 = [8 x i8] c"testing\00"
@.str.5 = [3 x i8] c"ef\00"
@.str.6 = [16 x i8] c"\22yA1Rp/1hZXIJk\22\00"
@.str.7 = [28 x i8] c"DES_crypt(\22bca76;23\22, \22yA\22)\00"
@.str.8 = [14 x i8] c"yA1Rp/1hZXIJk\00"
@.str.9 = [9 x i8] c"bca76;23\00"
@.str.10 = [3 x i8] c"yA\00"
@.str.11 = [30 x i8] c"DES_crypt(\22testing\22, \22y\\202\22)\00"
@.str.12 = [3 x i8] c"y\82\00"
@.str.13 = [28 x i8] c"DES_crypt(\22testing\22, \22\\0A\22)\00"
@.str.14 = [3 x i8] c"\00A\00"
@.str.15 = [26 x i8] c"DES_crypt(\22testing\22, \22A\22)\00"
@.str.16 = [2 x i8] c"A\00"
define i32 @test_des_crypt() {
%1 = tail call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%2 = tail call i32 @test_str_eq(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 465, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 %1)
%3 = icmp eq i32 %2, 0
br i1 %3, label %21, label %4
4: ; preds = %0
%5 = tail call i32 @DES_crypt(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%6 = tail call i32 @test_str_eq(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 467, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i32 %5)
%7 = icmp eq i32 %6, 0
br i1 %7, label %21, label %8
8: ; preds = %4
%9 = tail call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%10 = tail call i32 @test_ptr_null(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 470, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0), i32 %9)
%11 = icmp eq i32 %10, 0
br i1 %11, label %21, label %12
12: ; preds = %8
%13 = tail call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%14 = tail call i32 @test_ptr_null(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 472, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.13, i64 0, i64 0), i32 %13)
%15 = icmp eq i32 %14, 0
br i1 %15, label %21, label %16
16: ; preds = %12
%17 = tail call i32 @DES_crypt(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%18 = tail call i32 @test_ptr_null(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 474, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.15, i64 0, i64 0), i32 %17)
%19 = icmp ne i32 %18, 0
%20 = zext i1 %19 to i32
br label %21
21: ; preds = %16, %12, %8, %4, %0
%22 = phi i32 [ 0, %0 ], [ 0, %4 ], [ 0, %8 ], [ 0, %12 ], [ %20, %16 ]
ret i32 %22
}