#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*/ process_v_cont_request(char *);
scalar_t__ strncmp(char *, char *, int);
void process_v_request(char *remote_buf) {
  if (strncmp(remote_buf, "vCont;", 6) == 0) {
    process_v_cont_request(remote_buf);
    return;
  }
  if (strncmp(remote_buf, "vCont?", 6) == 0) {
    remote_buf[0] = '\0';
    return;
  }
  remote_buf[0] = '\0';
  return;
}


x86 assembly (clang, -O0):
<process_v_request>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1159 <process_v_request+0x39>
mov    -0x8(%rbp),%rdi
call   1040 <process_v_cont_request@plt>
jmp    118b <process_v_request+0x6b>
mov    -0x8(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1184 <process_v_request+0x64>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
jmp    118b <process_v_request+0x6b>
mov    -0x8(%rbp),%rax
movb   $0x0,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<process_v_request>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1153 <process_v_request+0x33>
lea    0xec6(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
movb   $0x0,(%rbx)
pop    %rbx
ret
mov    %rbx,%rdi
pop    %rbx
jmp    1040 <process_v_cont_request@plt>

LLVM IR (-O0):
@.str = [7 x i8] c"vCont;\00"
@.str.1 = [7 x i8] c"vCont?\00"
define void @process_v_request(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strncmp(i8* %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %9
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i32 @process_v_cont_request(i8* %7)
br label %19
9: ; preds = %1
%10 = load i8*, i8** %2
%11 = call i64 @strncmp(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %9
%14 = load i8*, i8** %2
%15 = getelementptr inbounds i8, i8* %14, i64 0
store i8 0, i8* %15
br label %19
16: ; preds = %9
%17 = load i8*, i8** %2
%18 = getelementptr inbounds i8, i8* %17, i64 0
store i8 0, i8* %18
br label %19
19: ; preds = %16, %13, %6
ret void
}

LLVM IR (-O2):
@.str = [7 x i8] c"vCont;\00"
@.str.1 = [7 x i8] c"vCont?\00"
define void @process_v_request(i8* %0) {
%2 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i32 6)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %1
%5 = tail call i32 @process_v_cont_request(i8* %0)
br label %8
6: ; preds = %1
%7 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), i32 6)
store i8 0, i8* %0
br label %8
8: ; preds = %6, %4
ret void
}