#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 validate_filters(char *, char *, char *, char *, char *, char *, char *,
                     char *, char *, char *);
int validate_delete_task(char *id, char *name, char *state, char *desc,
                         char *notes, char *est_start, char *est_end,
                         char *start, char *end, char *prior, char *type,
                         char *est_time, char *time, char *add, char *rm) {
  if (add != NULL || rm != NULL)
    return 2;
  if (desc != NULL || notes != NULL)
    return 2;
  return validate_filters(id, state, type, prior, est_time, time, est_start,
                          est_end, start, end);
}


x86 assembly (clang, -O0):
<validate_delete_task>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x58,%rsp
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x18(%rbp)
mov    %rsi,-0x20(%rbp)
mov    %rdx,-0x28(%rbp)
mov    %rcx,-0x30(%rbp)
mov    %r8,-0x38(%rbp)
mov    %r9,-0x40(%rbp)
cmpq   $0x0,0x48(%rbp)
jne    116b <validate_delete_task+0x5b>
cmpq   $0x0,0x50(%rbp)
je     1177 <validate_delete_task+0x67>
movl   $0x2,-0xc(%rbp)
jmp    11dc <validate_delete_task+0xcc>
cmpq   $0x0,-0x30(%rbp)
jne    118d <validate_delete_task+0x7d>
cmpq   $0x0,-0x38(%rbp)
je     1199 <validate_delete_task+0x89>
movl   $0x2,-0xc(%rbp)
jmp    11dc <validate_delete_task+0xcc>
mov    -0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    0x30(%rbp),%rdx
mov    0x28(%rbp),%rcx
mov    0x38(%rbp),%r8
mov    0x40(%rbp),%r9
mov    -0x40(%rbp),%rbx
mov    0x10(%rbp),%r11
mov    0x18(%rbp),%r10
mov    0x20(%rbp),%rax
mov    %rbx,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1030 <validate_filters@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x58,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<validate_delete_task>:
push   %rax
mov    0x48(%rsp),%rsi
or     0x50(%rsp),%rsi
jne    1122 <validate_delete_task+0x12>
or     %r8,%rcx
je     1129 <validate_delete_task+0x19>
mov    $0x2,%eax
pop    %rcx
ret
mov    %r9,%rax
mov    0x40(%rsp),%r9
mov    0x38(%rsp),%r8
mov    0x30(%rsp),%r10
mov    0x28(%rsp),%rcx
mov    %rdx,%rsi
mov    %r10,%rdx
push   0x20(%rsp)
push   0x20(%rsp)
push   0x20(%rsp)
push   %rax
call   1030 <validate_filters@plt>
add    $0x20,%rsp
pop    %rcx
ret

LLVM IR (-O0):
define i32 @validate_delete_task(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14) {
%16 = alloca i32
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i8*
%31 = alloca i8*
store i8* %0, i8** %17
store i8* %1, i8** %18
store i8* %2, i8** %19
store i8* %3, i8** %20
store i8* %4, i8** %21
store i8* %5, i8** %22
store i8* %6, i8** %23
store i8* %7, i8** %24
store i8* %8, i8** %25
store i8* %9, i8** %26
store i8* %10, i8** %27
store i8* %11, i8** %28
store i8* %12, i8** %29
store i8* %13, i8** %30
store i8* %14, i8** %31
%32 = load i8*, i8** %30
%33 = icmp ne i8* %32, null
br i1 %33, label %37, label %34
34: ; preds = %15
%35 = load i8*, i8** %31
%36 = icmp ne i8* %35, null
br i1 %36, label %37, label %38
37: ; preds = %34, %15
store i32 2, i32* %16
br label %57
38: ; preds = %34
%39 = load i8*, i8** %20
%40 = icmp ne i8* %39, null
br i1 %40, label %44, label %41
41: ; preds = %38
%42 = load i8*, i8** %21
%43 = icmp ne i8* %42, null
br i1 %43, label %44, label %45
44: ; preds = %41, %38
store i32 2, i32* %16
br label %57
45: ; preds = %41
%46 = load i8*, i8** %17
%47 = load i8*, i8** %19
%48 = load i8*, i8** %27
%49 = load i8*, i8** %26
%50 = load i8*, i8** %28
%51 = load i8*, i8** %29
%52 = load i8*, i8** %22
%53 = load i8*, i8** %23
%54 = load i8*, i8** %24
%55 = load i8*, i8** %25
%56 = call i32 @validate_filters(i8* %46, i8* %47, i8* %48, i8* %49, i8* %50, i8* %51, i8* %52, i8* %53, i8* %54, i8* %55)
store i32 %56, i32* %16
br label %57
57: ; preds = %45, %44, %37
%58 = load i32, i32* %16
ret i32 %58
}

LLVM IR (-O2):
define i32 @validate_delete_task(i8* %0, i8* nocapture readnone %1, i8* %2, i8* readnone %3, i8* readnone %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11, i8* %12, i8* readnone %13, i8* readnone %14) {
%16 = icmp ne i8* %13, null
%17 = icmp ne i8* %14, null
%18 = or i1 %16, %17
br i1 %18, label %25, label %19
19: ; preds = %15
%20 = icmp ne i8* %3, null
%21 = icmp ne i8* %4, null
%22 = or i1 %20, %21
br i1 %22, label %25, label %23
23: ; preds = %19
%24 = tail call i32 @validate_filters(i8* %0, i8* %2, i8* %10, i8* %9, i8* %11, i8* %12, i8* %5, i8* %6, i8* %7, i8* %8)
br label %25
25: ; preds = %19, %15, %23
%26 = phi i32 [ %24, %23 ], [ 2, %15 ], [ 2, %19 ]
ret i32 %26
}