#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*/ is_asymmetric(unsigned long long *, int);
int /*<<< orphan*/ is_transitive(unsigned long long *, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ show_bit(unsigned long long *, int);
int main(int argc, char const *argv[]) {
  for (int i = 0; i < argc; ++i)
    printf("%s\n", argv[i]);
  unsigned long cnt = 0;
  for (unsigned long long a = 0; a < (1LL << (5 * 5)); ++a) {
    if (!is_asymmetric(&a, 5))
      continue;
    if (!is_transitive(&a, 5))
      continue;
    show_bit(&a, 5);
    ++cnt;
  }
  printf("%ld\n", cnt);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1191 <main+0x51>
mov    -0x10(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115d <main+0x1d>
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x2000000,-0x28(%rbp)
02
jae    1212 <main+0xd2>
lea    -0x28(%rbp),%rdi
mov    $0x5,%esi
call   1040 <is_asymmetric@plt>
cmp    $0x0,%eax
jne    11cb <main+0x8b>
jmp    1201 <main+0xc1>
lea    -0x28(%rbp),%rdi
mov    $0x5,%esi
call   1050 <is_transitive@plt>
cmp    $0x0,%eax
jne    11e7 <main+0xa7>
jmp    1201 <main+0xc1>
lea    -0x28(%rbp),%rdi
mov    $0x5,%esi
call   1060 <show_bit@plt>
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    11a1 <main+0x61>
mov    -0x20(%rbp),%rsi
lea    0xde7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
test   %edi,%edi
jle    1182 <main+0x32>
mov    %rsi,%r14
mov    %edi,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r14,%rbx,8),%rdi
call   1030 <puts@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    1170 <main+0x20>
movq   $0x0,0x8(%rsp)
xor    %r14d,%r14d
lea    0x8(%rsp),%rbx
jmp    11b6 <main+0x66>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x8(%rsp),%rax
add    $0x1,%rax
mov    %rax,0x8(%rsp)
cmp    $0x2000000,%rax
jae    11eb <main+0x9b>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1050 <is_asymmetric@plt>
test   %eax,%eax
je     11a0 <main+0x50>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1060 <is_transitive@plt>
test   %eax,%eax
je     11a0 <main+0x50>
mov    %rbx,%rdi
mov    $0x5,%esi
call   1070 <show_bit@plt>
add    $0x1,%r14
jmp    11a0 <main+0x50>
lea    0xe0e(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [5 x i8] c"%ld\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i64
%8 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %9
9: ; preds = %20, %2
%10 = load i32, i32* %6
%11 = load i32, i32* %4
%12 = icmp slt i32 %10, %11
br i1 %12, label %13, label %23
13: ; preds = %9
%14 = load i8**, i8*** %5
%15 = load i32, i32* %6
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8*, i8** %14, i64 %16
%18 = load i8*, i8** %17
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %18)
br label %20
20: ; preds = %13
%21 = load i32, i32* %6
%22 = add nsw i32 %21, 1
store i32 %22, i32* %6
br label %9
23: ; preds = %9
store i64 0, i64* %7
store i64 0, i64* %8
br label %24
24: ; preds = %39, %23
%25 = load i64, i64* %8
%26 = icmp ult i64 %25, 33554432
br i1 %26, label %27, label %42
27: ; preds = %24
%28 = call i32 @is_asymmetric(i64* %8, i32 5)
%29 = icmp ne i32 %28, 0
br i1 %29, label %31, label %30
30: ; preds = %27
br label %39
31: ; preds = %27
%32 = call i32 @is_transitive(i64* %8, i32 5)
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %31
br label %39
35: ; preds = %31
%36 = call i32 @show_bit(i64* %8, i32 5)
%37 = load i64, i64* %7
%38 = add i64 %37, 1
store i64 %38, i64* %7
br label %39
39: ; preds = %35, %34, %30
%40 = load i64, i64* %8
%41 = add i64 %40, 1
store i64 %41, i64* %8
br label %24
42: ; preds = %24
%43 = load i64, i64* %7
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %43)
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [5 x i8] c"%ld\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i64
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %7
5: ; preds = %2
%6 = zext i32 %0 to i64
br label %9
7: ; preds = %9, %2
%8 = bitcast i64* %3 to i8*
store i64 0, i64* %3
br label %18
9: ; preds = %5, %9
%10 = phi i64 [ 0, %5 ], [ %14, %9 ]
%11 = getelementptr inbounds i8*, i8** %1, i64 %10
%12 = load i8*, i8** %11
%13 = tail call i32 @puts(i8* dereferenceable(1) %12)
%14 = add nuw nsw i64 %10, 1
%15 = icmp eq i64 %14, %6
br i1 %15, label %7, label %9
16: ; preds = %28
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 %29)
ret i32 0
18: ; preds = %7, %28
%19 = phi i64 [ 0, %7 ], [ %29, %28 ]
%20 = call i32 @is_asymmetric(i64* %3, i32 5)
%21 = icmp eq i32 %20, 0
br i1 %21, label %28, label %22
22: ; preds = %18
%23 = call i32 @is_transitive(i64* %3, i32 5)
%24 = icmp eq i32 %23, 0
br i1 %24, label %28, label %25
25: ; preds = %22
%26 = call i32 @show_bit(i64* %3, i32 5)
%27 = add i64 %19, 1
br label %28
28: ; preds = %22, %18, %25
%29 = phi i64 [ %27, %25 ], [ %19, %22 ], [ %19, %18 ]
%30 = load i64, i64* %3
%31 = add i64 %30, 1
store i64 %31, i64* %3
%32 = icmp ult i64 %31, 33554432
br i1 %32, label %18, label %16
}