#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*/ atof(char *);
scalar_t__ ck_e(int /*<<< orphan*/);
scalar_t__ ck_f(char *);
scalar_t__ ck_n(int, int);
int ck_micfs(int argc, char *argv[]) {
  if (ck_n(argc, 5) && ck_f(argv[2]) && ck_e(atof(argv[3]))) {
    return 1;
  } else {
    return 0;
  }
}


x86 assembly (clang, -O0):
<ck_micfs>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x8(%rbp),%edi
mov    $0x5,%esi
call   1040 <ck_n@plt>
cmp    $0x0,%rax
je     11a7 <ck_micfs+0x67>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1050 <ck_f@plt>
cmp    $0x0,%rax
je     11a7 <ck_micfs+0x67>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1030 <atof@plt>
mov    %eax,%edi
call   1060 <ck_e@plt>
cmp    $0x0,%rax
je     11a7 <ck_micfs+0x67>
movl   $0x1,-0x4(%rbp)
jmp    11ae <ck_micfs+0x6e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ck_micfs>:
push   %rbx
mov    %rsi,%rbx
mov    $0x5,%esi
call   1040 <ck_n@plt>
test   %rax,%rax
je     1180 <ck_micfs+0x40>
mov    0x10(%rbx),%rdi
call   1050 <ck_f@plt>
test   %rax,%rax
je     1180 <ck_micfs+0x40>
mov    0x18(%rbx),%rdi
call   1030 <atof@plt>
mov    %eax,%edi
call   1060 <ck_e@plt>
mov    %rax,%rcx
mov    $0x1,%eax
test   %rcx,%rcx
je     1180 <ck_micfs+0x40>
pop    %rbx
ret
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
define i32 @ck_micfs(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 = call i64 @ck_n(i32 %6, i32 5)
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %23
9: ; preds = %2
%10 = load i8**, i8*** %5
%11 = getelementptr inbounds i8*, i8** %10, i64 2
%12 = load i8*, i8** %11
%13 = call i64 @ck_f(i8* %12)
%14 = icmp ne i64 %13, 0
br i1 %14, label %15, label %23
15: ; preds = %9
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 3
%18 = load i8*, i8** %17
%19 = call i32 @atof(i8* %18)
%20 = call i64 @ck_e(i32 %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %15
store i32 1, i32* %3
br label %24
23: ; preds = %15, %9, %2
store i32 0, i32* %3
br label %24
24: ; preds = %23, %22
%25 = load i32, i32* %3
ret i32 %25
}

LLVM IR (-O2):
define i32 @ck_micfs(i32 %0, i8** nocapture %1) {
%3 = tail call i64 @ck_n(i32 %0, i32 5)
%4 = icmp eq i64 %3, 0
br i1 %4, label %16, label %5
5: ; preds = %2
%6 = getelementptr inbounds i8*, i8** %1, i64 2
%7 = load i8*, i8** %6
%8 = tail call i64 @ck_f(i8* %7)
%9 = icmp eq i64 %8, 0
br i1 %9, label %16, label %10
10: ; preds = %5
%11 = getelementptr inbounds i8*, i8** %1, i64 3
%12 = load i8*, i8** %11
%13 = tail call i32 @atof(i8* %12)
%14 = tail call i64 @ck_e(i32 %13)
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %10, %5, %2
br label %17
17: ; preds = %10, %16
%18 = phi i32 [ 0, %16 ], [ 1, %10 ]
ret i32 %18
}