#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 mixed_add(int, double);
int mixed_div(int, double, int);
int mixed_mul(int, long long);
int /*<<< orphan*/ mixed_str(char *, int /*<<< orphan*/);
int mixed_sub(void *, int);
int main(int argc, char *argv[]) {
  int a, b, c, d;
  a = mixed_add(-1, 0.2);
  b = mixed_sub((void *)0x400000, 2048);
  c = mixed_mul(-3, 80000000000LL);
  d = mixed_div(4, -0.000002, 3);
  mixed_str("argument", 0);
  return (a + b + c + d) ? 0 : 1;
}


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)
mov    $0xffffffff,%edi
movsd  0xe95(%rip),%xmm0
call   1060 <mixed_add@plt>
mov    %eax,-0x14(%rbp)
mov    $0x400000,%edi
mov    $0x800,%esi
call   1030 <mixed_sub@plt>
mov    %eax,-0x18(%rbp)
mov    $0xfffffffd,%edi
movabs $0x12a05f2000,%rsi
call   1040 <mixed_mul@plt>
mov    %eax,-0x1c(%rbp)
mov    $0x4,%edi
movsd  0xe4f(%rip),%xmm0
mov    $0x3,%esi
call   1050 <mixed_div@plt>
mov    %eax,-0x20(%rbp)
lea    0xe4b(%rip),%rdi
xor    %esi,%esi
call   1070 <mixed_str@plt>
mov    -0x14(%rbp),%edx
add    -0x18(%rbp),%edx
add    -0x1c(%rbp),%edx
add    -0x20(%rbp),%edx
mov    $0x1,%eax
xor    %ecx,%ecx
cmp    $0x0,%edx
cmovne %ecx,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
movsd  0xea1(%rip),%xmm0
mov    $0xffffffff,%edi
call   1060 <mixed_add@plt>
mov    %eax,%r14d
mov    $0x400000,%edi
mov    $0x800,%esi
call   1030 <mixed_sub@plt>
mov    %eax,%ebp
movabs $0x12a05f2000,%rsi
mov    $0xfffffffd,%edi
call   1040 <mixed_mul@plt>
mov    %eax,%r15d
movsd  0xe6c(%rip),%xmm0
mov    $0x4,%edi
mov    $0x3,%esi
call   1050 <mixed_div@plt>
mov    %eax,%ebx
lea    0xe5c(%rip),%rdi
xor    %esi,%esi
call   1070 <mixed_str@plt>
add    %r14d,%ebp
add    %r15d,%ebp
xor    %eax,%eax
add    %ebx,%ebp
sete   %al
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"argument\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
%10 = call i32 @mixed_add(i32 -1, double 2.000000e-01)
store i32 %10, i32* %6
%11 = call i32 @mixed_sub(i8* inttoptr (i64 4194304 to i8*), i32 2048)
store i32 %11, i32* %7
%12 = call i32 @mixed_mul(i32 -3, i64 80000000000)
store i32 %12, i32* %8
%13 = call i32 @mixed_div(i32 4, double -2.000000e-06, i32 3)
store i32 %13, i32* %9
%14 = call i32 @mixed_str(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%15 = load i32, i32* %6
%16 = load i32, i32* %7
%17 = add nsw i32 %15, %16
%18 = load i32, i32* %8
%19 = add nsw i32 %17, %18
%20 = load i32, i32* %9
%21 = add nsw i32 %19, %20
%22 = icmp ne i32 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i32 0, i32 1
ret i32 %24
}

LLVM IR (-O2):
@.str = [9 x i8] c"argument\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @mixed_add(i32 -1, double 2.000000e-01)
%4 = tail call i32 @mixed_sub(i8* inttoptr (i64 4194304 to i8*), i32 2048)
%5 = tail call i32 @mixed_mul(i32 -3, i64 80000000000)
%6 = tail call i32 @mixed_div(i32 4, double -2.000000e-06, i32 3)
%7 = tail call i32 @mixed_str(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0)
%8 = add nsw i32 %4, %3
%9 = add nsw i32 %8, %5
%10 = sub i32 0, %6
%11 = icmp eq i32 %9, %10
%12 = zext i1 %11 to i32
ret i32 %12
}