#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 Kit_TruthWordNum(int);
int Kit_TruthIsDisjoint3(unsigned *pIn1, unsigned *pIn2, unsigned *pIn3,
                         int nVars) {
  int w;
  for (w = Kit_TruthWordNum(nVars) - 1; w >= 0; w--)
    if (pIn1[w] & pIn2[w] & pIn3[w])
      return 0;
  return 1;
}


x86 assembly (clang, -O0):
<Kit_TruthIsDisjoint3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
mov    -0x24(%rbp),%edi
call   1030 <Kit_TruthWordNum@plt>
sub    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jl     1188 <Kit_TruthIsDisjoint3+0x78>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x18(%rbp),%rcx
movslq -0x28(%rbp),%rdx
and    (%rcx,%rdx,4),%eax
mov    -0x20(%rbp),%rcx
movslq -0x28(%rbp),%rdx
and    (%rcx,%rdx,4),%eax
cmp    $0x0,%eax
je     1175 <Kit_TruthIsDisjoint3+0x65>
movl   $0x0,-0x4(%rbp)
jmp    118f <Kit_TruthIsDisjoint3+0x7f>
jmp    117a <Kit_TruthIsDisjoint3+0x6a>
mov    -0x28(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x28(%rbp)
jmp    1135 <Kit_TruthIsDisjoint3+0x25>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Kit_TruthIsDisjoint3>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
mov    %ecx,%edi
call   1030 <Kit_TruthWordNum@plt>
mov    %eax,%eax
nopw   0x0(%rax,%rax,1)
test   %eax,%eax
jle    114f <Kit_TruthIsDisjoint3+0x3f>
mov    -0x4(%r15,%rax,4),%ecx
and    -0x4(%rbx,%rax,4),%ecx
lea    -0x1(%rax),%rdx
test   %ecx,-0x4(%r14,%rax,4)
mov    %rdx,%rax
je     1130 <Kit_TruthIsDisjoint3+0x20>
xor    %eax,%eax
jmp    1154 <Kit_TruthIsDisjoint3+0x44>
mov    $0x1,%eax
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
define i32 @Kit_TruthIsDisjoint3(i32* %0, i32* %1, i32* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
store i32* %0, i32** %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32 %3, i32* %9
%11 = load i32, i32* %9
%12 = call i32 @Kit_TruthWordNum(i32 %11)
%13 = sub nsw i32 %12, 1
store i32 %13, i32* %10
br label %14
14: ; preds = %38, %4
%15 = load i32, i32* %10
%16 = icmp sge i32 %15, 0
br i1 %16, label %17, label %41
17: ; preds = %14
%18 = load i32*, i32** %6
%19 = load i32, i32* %10
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i32, i32* %18, i64 %20
%22 = load i32, i32* %21
%23 = load i32*, i32** %7
%24 = load i32, i32* %10
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds i32, i32* %23, i64 %25
%27 = load i32, i32* %26
%28 = and i32 %22, %27
%29 = load i32*, i32** %8
%30 = load i32, i32* %10
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i32, i32* %29, i64 %31
%33 = load i32, i32* %32
%34 = and i32 %28, %33
%35 = icmp ne i32 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %17
store i32 0, i32* %5
br label %42
37: ; preds = %17
br label %38
38: ; preds = %37
%39 = load i32, i32* %10
%40 = add nsw i32 %39, -1
store i32 %40, i32* %10
br label %14
41: ; preds = %14
store i32 1, i32* %5
br label %42
42: ; preds = %41, %36
%43 = load i32, i32* %5
ret i32 %43
}

LLVM IR (-O2):
define i32 @Kit_TruthIsDisjoint3(i32* nocapture %0, i32* nocapture %1, i32* nocapture %2, i32 %3) {
%5 = tail call i32 @Kit_TruthWordNum(i32 %3)
%6 = zext i32 %5 to i64
br label %7
7: ; preds = %12, %4
%8 = phi i64 [ %9, %12 ], [ %6, %4 ]
%9 = add nsw i64 %8, -1
%10 = trunc i64 %8 to i32
%11 = icmp sgt i32 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %7
%13 = getelementptr inbounds i32, i32* %0, i64 %9
%14 = load i32, i32* %13
%15 = getelementptr inbounds i32, i32* %1, i64 %9
%16 = load i32, i32* %15
%17 = and i32 %16, %14
%18 = getelementptr inbounds i32, i32* %2, i64 %9
%19 = load i32, i32* %18
%20 = and i32 %17, %19
%21 = icmp eq i32 %20, 0
br i1 %21, label %7, label %22
22: ; preds = %7, %12
%23 = phi i32 [ 0, %12 ], [ 1, %7 ]
ret i32 %23
}