#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*/ printf(char *);
int main(int argc, char **argv) {
  int isize = sizeof(long);
  int vsize = sizeof(void *);
  int fsize = sizeof(float);
  int dsize = sizeof(double);
  if (isize == 4) {
    if (vsize == 4 && fsize == 4) {
      printf("ARCH_32\n");
      return 0;
    }
  }
  if (isize == 8) {
    if (vsize == 8 && dsize == 8) {
      printf("ARCH_64\n");
      return 0;
    }
  }
  printf("UNKOWN\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x8,-0x14(%rbp)
movl   $0x8,-0x18(%rbp)
movl   $0x4,-0x1c(%rbp)
movl   $0x8,-0x20(%rbp)
cmpl   $0x4,-0x14(%rbp)
jne    117d <main+0x6d>
cmpl   $0x4,-0x18(%rbp)
jne    1178 <main+0x68>
cmpl   $0x4,-0x1c(%rbp)
jne    1178 <main+0x68>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11cb <main+0xbb>
jmp    117d <main+0x6d>
cmpl   $0x8,-0x14(%rbp)
jne    11b8 <main+0xa8>
cmpl   $0x8,-0x18(%rbp)
jne    11b3 <main+0xa3>
cmpl   $0x8,-0x20(%rbp)
jne    11b3 <main+0xa3>
lea    0xe67(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    11cb <main+0xbb>
jmp    11b8 <main+0xa8>
lea    0xe53(%rip),%rdi
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"ARCH_32\0A\00"
@.str.1 = [9 x i8] c"ARCH_64\0A\00"
@.str.2 = [8 x i8] c"UNKOWN\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 8, i32* %6
store i32 8, i32* %7
store i32 4, i32* %8
store i32 8, i32* %9
%10 = load i32, i32* %6
%11 = icmp eq i32 %10, 4
br i1 %11, label %12, label %21
12: ; preds = %2
%13 = load i32, i32* %7
%14 = icmp eq i32 %13, 4
br i1 %14, label %15, label %20
15: ; preds = %12
%16 = load i32, i32* %8
%17 = icmp eq i32 %16, 4
br i1 %17, label %18, label %20
18: ; preds = %15
%19 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %35
20: ; preds = %15, %12
br label %21
21: ; preds = %20, %2
%22 = load i32, i32* %6
%23 = icmp eq i32 %22, 8
br i1 %23, label %24, label %33
24: ; preds = %21
%25 = load i32, i32* %7
%26 = icmp eq i32 %25, 8
br i1 %26, label %27, label %32
27: ; preds = %24
%28 = load i32, i32* %9
%29 = icmp eq i32 %28, 8
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %3
br label %35
32: ; preds = %27, %24
br label %33
33: ; preds = %32, %21
%34 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
store i32 0, i32* %3
br label %35
35: ; preds = %33, %30, %18
%36 = load i32, i32* %3
ret i32 %36
}

LLVM IR (-O2):
@str = [8 x i8] c"ARCH_64\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str, i64 0, i64 0))
ret i32 0
}