#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*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
scalar_t__ strchr(char *, char);
int strlen(char *);
void verify_upass(char *name, char *pass) {
  if (strlen(name) >= 50 || strlen(pass) >= 50 || strchr(name, '\"') ||
      strchr(pass, '\"')) {
    printf("Sorry that username password combination is invalid\n              "
           "  The maximum name and password length is 50 charecters each\n     "
           "           Also you can't use quotes ( \" ) in your submission\n   "
           "             Please try again.\n");
    exit(0);
  }
}


x86 assembly (clang, -O0):
<verify_upass>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x32,%eax
jge    11a4 <verify_upass+0x64>
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0x32,%eax
jge    11a4 <verify_upass+0x64>
mov    -0x8(%rbp),%rdi
mov    $0x22,%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
jne    11a4 <verify_upass+0x64>
mov    -0x10(%rbp),%rdi
mov    $0x22,%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
je     11b7 <verify_upass+0x77>
lea    0xe55(%rip),%rdi
call   1050 <printf@plt>
xor    %edi,%edi
call   1060 <exit@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<verify_upass>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
call   1040 <strlen@plt>
cmp    $0x31,%eax
jg     118d <verify_upass+0x4d>
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    $0x31,%eax
jg     118d <verify_upass+0x4d>
mov    %rbx,%rdi
mov    $0x22,%esi
call   1050 <strchr@plt>
test   %rax,%rax
jne    118d <verify_upass+0x4d>
mov    %r14,%rdi
mov    $0x22,%esi
call   1050 <strchr@plt>
test   %rax,%rax
jne    118d <verify_upass+0x4d>
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret
lea    0xe6c(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1060 <exit@plt>

LLVM IR (-O0):
@.str = [229 x i8] c"Sorry that username password combination is invalid\0A The maximum name and password length is 50 charecters each\0A Also you can't use quotes ( \22 ) in your submission\0A Please try again.\0A\00"
define void @verify_upass(i8* %0, i8* %1) {
%3 = alloca i8*
%4 = alloca i8*
store i8* %0, i8** %3
store i8* %1, i8** %4
%5 = load i8*, i8** %3
%6 = call i32 @strlen(i8* %5)
%7 = icmp sge i32 %6, 50
br i1 %7, label %20, label %8
8: ; preds = %2
%9 = load i8*, i8** %4
%10 = call i32 @strlen(i8* %9)
%11 = icmp sge i32 %10, 50
br i1 %11, label %20, label %12
12: ; preds = %8
%13 = load i8*, i8** %3
%14 = call i64 @strchr(i8* %13, i8 signext 34)
%15 = icmp ne i64 %14, 0
br i1 %15, label %20, label %16
16: ; preds = %12
%17 = load i8*, i8** %4
%18 = call i64 @strchr(i8* %17, i8 signext 34)
%19 = icmp ne i64 %18, 0
br i1 %19, label %20, label %23
20: ; preds = %16, %12, %8, %2
%21 = call i32 @printf(i8* getelementptr inbounds ([229 x i8], [229 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @exit(i32 0)
unreachable
23: ; preds = %16
ret void
}

LLVM IR (-O2):
@str = [228 x i8] c"Sorry that username password combination is invalid\0A The maximum name and password length is 50 charecters each\0A Also you can't use quotes ( \22 ) in your submission\0A Please try again.\00"
define void @verify_upass(i8* %0, i8* %1) {
%3 = tail call i32 @strlen(i8* %0)
%4 = icmp sgt i32 %3, 49
br i1 %4, label %14, label %5
5: ; preds = %2
%6 = tail call i32 @strlen(i8* %1)
%7 = icmp sgt i32 %6, 49
br i1 %7, label %14, label %8
8: ; preds = %5
%9 = tail call i64 @strchr(i8* %0, i8 signext 34)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = tail call i64 @strchr(i8* %1, i8 signext 34)
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %11, %8, %5, %2
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([228 x i8], [228 x i8]* @str, i64 0, i64 0))
%16 = tail call i32 @exit(i32 0)
unreachable
17: ; preds = %11
ret void
}