void bar(volatile int *VP, int *P, int A, _Complex double C,
         volatile _Complex double VC) {
  VP < P;
  (void)A;
  (void)foo(1, 2);
  A < foo(1, 2);
  foo(1, 2) + foo(4, 3);
  *P;
  *VP;
  P[4];
  VP[4];
  __real__ C;
  __real__ VC;
  sqrt(A);
}


x86 assembly (clang, -O0):
<bar>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x10(%rbp)
movsd  %xmm1,-0x8(%rbp)
movsd  %xmm2,-0x20(%rbp)
movsd  %xmm3,-0x18(%rbp)
mov    %rdi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
mov    %edx,-0x34(%rbp)
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <foo@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <foo@plt>
mov    $0x1,%edi
mov    $0x2,%esi
mov    $0x0,%al
call   1030 <foo@plt>
mov    $0x4,%edi
mov    $0x3,%esi
mov    $0x0,%al
call   1030 <foo@plt>
mov    -0x28(%rbp),%rax
mov    (%rax),%eax
mov    -0x28(%rbp),%rax
mov    0x10(%rax),%eax
movsd  -0x20(%rbp),%xmm0
cvtsi2sdl -0x34(%rbp),%xmm0
call   1040 <sqrt@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<bar>:
push   %rbp
push   %rbx
push   %rax
mov    %edx,%ebp
mov    %rdi,%rbx
movsd  %xmm2,(%rsp)
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <foo@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <foo@plt>
mov    $0x1,%edi
mov    $0x2,%esi
xor    %eax,%eax
call   1030 <foo@plt>
mov    $0x4,%edi
mov    $0x3,%esi
xor    %eax,%eax
call   1030 <foo@plt>
mov    (%rbx),%eax
mov    0x10(%rbx),%eax
movsd  (%rsp),%xmm0
test   %ebp,%ebp
js     1186 <bar+0x66>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret
xorps  %xmm0,%xmm0
cvtsi2sd %ebp,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jae    117f <bar+0x5f>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <sqrt@plt>

LLVM IR (-O0):
define void @bar(i32* %0, i32* %1, i32 %2, double %3, double %4, double %5, double %6) {
%8 = alloca { double, double }
%9 = alloca { double, double }
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32
%13 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 0
store double %3, double* %13
%14 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 1
store double %4, double* %14
%15 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 0
store double %5, double* %15
%16 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 1
store double %6, double* %16
store i32* %0, i32** %10
store i32* %1, i32** %11
store i32 %2, i32* %12
%17 = load i32*, i32** %10
%18 = load i32*, i32** %11
%19 = icmp ult i32* %17, %18
%20 = zext i1 %19 to i32
%21 = load i32, i32* %12
%22 = call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 1, i32 2)
%23 = load i32, i32* %12
%24 = call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 1, i32 2)
%25 = icmp slt i32 %23, %24
%26 = zext i1 %25 to i32
%27 = call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 1, i32 2)
%28 = call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 4, i32 3)
%29 = add nsw i32 %27, %28
%30 = load i32*, i32** %11
%31 = load i32, i32* %30
%32 = load i32*, i32** %10
%33 = load volatile i32, i32* %32
%34 = load i32*, i32** %11
%35 = getelementptr inbounds i32, i32* %34, i64 4
%36 = load i32, i32* %35
%37 = load i32*, i32** %10
%38 = getelementptr inbounds i32, i32* %37, i64 4
%39 = load volatile i32, i32* %38
%40 = getelementptr inbounds { double, double }, { double, double }* %8, i32 0, i32 0
%41 = load double, double* %40
%42 = getelementptr inbounds { double, double }, { double, double }* %9, i32 0, i32 0
%43 = load volatile double, double* %42
%44 = load i32, i32* %12
%45 = sitofp i32 %44 to double
%46 = call double @sqrt(double %45)
ret void
}

LLVM IR (-O2):
define void @bar(i32* %0, i32* nocapture readnone %1, i32 %2, double %3, double %4, double %5, double %6) {
%8 = alloca double
store double %5, double* %8
%9 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 1, i32 2)
%10 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 1, i32 2)
%11 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 1, i32 2)
%12 = tail call i32 (i32, i32, ...) bitcast (i32 (...)* @foo to i32 (i32, i32, ...)*)(i32 4, i32 3)
%13 = load volatile i32, i32* %0
%14 = getelementptr inbounds i32, i32* %0, i64 4
%15 = load volatile i32, i32* %14
%16 = load volatile double, double* %8
%17 = icmp slt i32 %2, 0
br i1 %17, label %18, label %21
18: ; preds = %7
%19 = sitofp i32 %2 to double
%20 = tail call double @sqrt(double %19)
br label %21
21: ; preds = %7, %18
ret void
}