#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
bool correctCallForm(int argc, char *argv[]) {
  if (argc < 2) {
    fprintf(stderr, "Too few arguments supplied\n");
    return false;
  }
  if (argc > 19) {
    fprintf(stderr,
            "Too many arguments supplied - 16 files can be combined at most\n");
    return false;
  }
  if ((!strcmp(argv[1], "-o")) && (argc < 4)) {
    return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<correctCallForm>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    115a <correctCallForm+0x3a>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0xeb7(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11bf <correctCallForm+0x9f>
cmpl   $0x13,-0x8(%rbp)
jle    1185 <correctCallForm+0x65>
mov    0x2e75(%rip),%rax
mov    (%rax),%edi
lea    0xea8(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11bf <correctCallForm+0x9f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xec8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11b8 <correctCallForm+0x98>
cmpl   $0x4,-0x8(%rbp)
jge    11b8 <correctCallForm+0x98>
movl   $0x0,-0x4(%rbp)
jmp    11bf <correctCallForm+0x9f>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<correctCallForm>:
push   %rbx
cmp    $0x1,%edi
jg     1138 <correctCallForm+0x18>
mov    0x2eb3(%rip),%rax
mov    (%rax),%edi
lea    0xeca(%rip),%rsi
jmp    114f <correctCallForm+0x2f>
mov    %edi,%ebx
cmp    $0x14,%edi
jb     1158 <correctCallForm+0x38>
mov    0x2e9a(%rip),%rax
mov    (%rax),%edi
lea    0xecd(%rip),%rsi
call   1040 <fprintf@plt>
xor    %eax,%eax
pop    %rbx
ret
mov    0x8(%rsi),%rdi
lea    0xef9(%rip),%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
setne  %al
cmp    $0x4,%ebx
setae  %cl
or     %al,%cl
movzbl %cl,%eax
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [28 x i8] c"Too few arguments supplied\0A\00"
@.str.1 = [64 x i8] c"Too many arguments supplied - 16 files can be combined at most\0A\00"
@.str.2 = [3 x i8] c"-o\00"
define i32 @correctCallForm(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp slt i32 %6, 2
br i1 %7, label %8, label %11
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %28
11: ; preds = %2
%12 = load i32, i32* %4
%13 = icmp sgt i32 %12, 19
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %28
17: ; preds = %11
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 1
%20 = load i8*, i8** %19
%21 = call i32 @strcmp(i8* %20, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp ne i32 %21, 0
br i1 %22, label %27, label %23
23: ; preds = %17
%24 = load i32, i32* %4
%25 = icmp slt i32 %24, 4
br i1 %25, label %26, label %27
26: ; preds = %23
store i32 0, i32* %3
br label %28
27: ; preds = %23, %17
store i32 1, i32* %3
br label %28
28: ; preds = %27, %26, %14, %8
%29 = load i32, i32* %3
ret i32 %29
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [28 x i8] c"Too few arguments supplied\0A\00"
@.str.1 = [64 x i8] c"Too many arguments supplied - 16 files can be combined at most\0A\00"
@.str.2 = [3 x i8] c"-o\00"
define i32 @correctCallForm(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
br label %20
7: ; preds = %2
%8 = icmp ugt i32 %0, 19
br i1 %8, label %9, label %12
9: ; preds = %7
%10 = load i32, i32* @stderr
%11 = tail call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.1, i64 0, i64 0))
br label %20
12: ; preds = %7
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %14, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp ne i32 %15, 0
%17 = icmp ugt i32 %0, 3
%18 = or i1 %17, %16
%19 = zext i1 %18 to i32
br label %20
20: ; preds = %12, %9, %4
%21 = phi i32 [ 0, %4 ], [ 0, %9 ], [ %19, %12 ]
ret i32 %21
}