#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 */
scalar_t__ run_srp(char *, char *, char *);
int /*<<< orphan*/ test_false(char *, int, char *, int);
int /*<<< orphan*/ test_info(char *, int, char *);
int /*<<< orphan*/ test_true(char *, int, char *, int);
int run_srp_tests(void) {
  test_info("/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/srptest.c",
            253, "run_srp: expecting a mismatch");
  if (!test_false(
          "/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/srptest.c",
          254, "run_srp(\"alice\", \"password1\", \"password2\")",
          (run_srp("alice", "password1", "password2")) != 0))
    return 0;
  test_info("/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/srptest.c",
            258, "run_srp: expecting a match");
  if (!test_true(
          "/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/srptest.c",
          259, "run_srp(\"alice\", \"password\", \"password\")",
          (run_srp("alice", "password", "password")) != 0))
    return 0;
  return 1;
}


x86 assembly (clang, -O0):
<run_srp_tests>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xeb1(%rip),%rdi
mov    $0xfd,%esi
lea    0xf50(%rip),%rdx
call   1060 <test_info@plt>
lea    0xf8d(%rip),%rdi
lea    0xf8c(%rip),%rsi
lea    0xf8f(%rip),%rdx
call   1040 <run_srp@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe73(%rip),%rdi
mov    $0xfe,%esi
lea    0xf30(%rip),%rdx
call   1030 <test_false@plt>
cmp    $0x0,%eax
jne    11b3 <run_srp_tests+0x73>
movl   $0x0,-0x4(%rbp)
jmp    1221 <run_srp_tests+0xe1>
lea    0xe46(%rip),%rdi
mov    $0x102,%esi
lea    0xf48(%rip),%rdx
call   1060 <test_info@plt>
lea    0xf22(%rip),%rdi
lea    0xf79(%rip),%rdx
mov    %rdx,%rsi
call   1040 <run_srp@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%ecx
lea    0xe0c(%rip),%rdi
mov    $0x103,%esi
lea    0xf29(%rip),%rdx
call   1050 <test_true@plt>
cmp    $0x0,%eax
jne    121a <run_srp_tests+0xda>
movl   $0x0,-0x4(%rbp)
jmp    1221 <run_srp_tests+0xe1>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_srp_tests>:
push   %rbx
lea    0xeb8(%rip),%rbx
lea    0xf5c(%rip),%rdx
mov    %rbx,%rdi
mov    $0xfd,%esi
call   1060 <test_info@plt>
lea    0xf91(%rip),%rdi
lea    0xf90(%rip),%rsi
lea    0xf93(%rip),%rdx
call   1040 <run_srp@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    0xf44(%rip),%rdx
mov    %rbx,%rdi
mov    $0xfe,%esi
call   1030 <test_false@plt>
test   %eax,%eax
je     11ee <run_srp_tests+0xae>
lea    0xe63(%rip),%rbx
lea    0xf6a(%rip),%rdx
mov    %rbx,%rdi
mov    $0x102,%esi
call   1060 <test_info@plt>
lea    0xf3c(%rip),%rdi
lea    0xf93(%rip),%rdx
mov    %rdx,%rsi
call   1040 <run_srp@plt>
xor    %ecx,%ecx
test   %rax,%rax
setne  %cl
lea    0xf53(%rip),%rdx
mov    %rbx,%rdi
mov    $0x103,%esi
call   1050 <test_true@plt>
mov    %eax,%ecx
xor    %eax,%eax
test   %ecx,%ecx
setne  %al
pop    %rbx
ret
xor    %eax,%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/srptest.c\00"
@.str.1 = [30 x i8] c"run_srp: expecting a mismatch\00"
@.str.2 = [43 x i8] c"run_srp(\22alice\22, \22password1\22, \22password2\22)\00"
@.str.3 = [6 x i8] c"alice\00"
@.str.4 = [10 x i8] c"password1\00"
@.str.5 = [10 x i8] c"password2\00"
@.str.6 = [27 x i8] c"run_srp: expecting a match\00"
@.str.7 = [41 x i8] c"run_srp(\22alice\22, \22password\22, \22password\22)\00"
@.str.8 = [9 x i8] c"password\00"
define i32 @run_srp_tests() {
%1 = alloca i32
%2 = call i32 @test_info(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 253, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%3 = call i64 @run_srp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%4 = icmp ne i64 %3, 0
%5 = zext i1 %4 to i32
%6 = call i32 @test_false(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 254, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = icmp ne i32 %6, 0
br i1 %7, label %9, label %8
8: ; preds = %0
store i32 0, i32* %1
br label %18
9: ; preds = %0
%10 = call i32 @test_info(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 258, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%11 = call i64 @run_srp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i32
%14 = call i32 @test_true(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 259, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), i32 %13)
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %9
store i32 0, i32* %1
br label %18
17: ; preds = %9
store i32 1, i32* %1
br label %18
18: ; preds = %17, %16, %8
%19 = load i32, i32* %1
ret i32 %19
}

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/srptest.c\00"
@.str.1 = [30 x i8] c"run_srp: expecting a mismatch\00"
@.str.2 = [43 x i8] c"run_srp(\22alice\22, \22password1\22, \22password2\22)\00"
@.str.3 = [6 x i8] c"alice\00"
@.str.4 = [10 x i8] c"password1\00"
@.str.5 = [10 x i8] c"password2\00"
@.str.6 = [27 x i8] c"run_srp: expecting a match\00"
@.str.7 = [41 x i8] c"run_srp(\22alice\22, \22password\22, \22password\22)\00"
@.str.8 = [9 x i8] c"password\00"
define i32 @run_srp_tests() {
%1 = tail call i32 @test_info(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 253, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i64 @run_srp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%3 = icmp ne i64 %2, 0
%4 = zext i1 %3 to i32
%5 = tail call i32 @test_false(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 254, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i32 %4)
%6 = icmp eq i32 %5, 0
br i1 %6, label %15, label %7
7: ; preds = %0
%8 = tail call i32 @test_info(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 258, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i64 @run_srp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%10 = icmp ne i64 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @test_true(i8* getelementptr inbounds ([171 x i8], [171 x i8]* @.str, i64 0, i64 0), i32 259, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), i32 %11)
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i32
br label %15
15: ; preds = %7, %0
%16 = phi i32 [ 0, %0 ], [ %14, %7 ]
ret i32 %16
}