#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*/ abort();
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ f(int **, int *, int *, int **, int **);
int main(void) {
  int i = 42, i1 = 66, i2 = 1, i3 = -1, i4 = 55;
  int *ip = &i;
  int *i3p = &i3;
  int *i4p = &i4;
  f(&ip, &i1, &i2, &i3p, &i4p);
  if (i != 66 || ip != &i2 || i2 != 99 || i3 != -1 || i3p != i4p || i4 != 55)
    abort();
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x2a,-0x8(%rbp)
movl   $0x42,-0xc(%rbp)
movl   $0x1,-0x10(%rbp)
movl   $0xffffffff,-0x14(%rbp)
movl   $0x37,-0x18(%rbp)
lea    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
lea    -0x14(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0x18(%rbp),%rax
mov    %rax,-0x30(%rbp)
lea    -0x20(%rbp),%rdi
lea    -0xc(%rbp),%rsi
lea    -0x10(%rbp),%rdx
lea    -0x28(%rbp),%rcx
lea    -0x30(%rbp),%r8
call   1040 <f@plt>
cmpl   $0x42,-0x8(%rbp)
jne    11d7 <main+0xa7>
lea    -0x10(%rbp),%rax
cmp    %rax,-0x20(%rbp)
jne    11d7 <main+0xa7>
cmpl   $0x63,-0x10(%rbp)
jne    11d7 <main+0xa7>
cmpl   $0xffffffff,-0x14(%rbp)
jne    11d7 <main+0xa7>
mov    -0x28(%rbp),%rax
cmp    -0x30(%rbp),%rax
jne    11d7 <main+0xa7>
cmpl   $0x37,-0x18(%rbp)
je     11de <main+0xae>
mov    $0x0,%al
call   1030 <abort@plt>
xor    %edi,%edi
call   1050 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x30,%rsp
movl   $0x2a,0x10(%rsp)
movl   $0x42,0x14(%rsp)
movl   $0x1,0xc(%rsp)
movl   $0xffffffff,0x8(%rsp)
ff
movl   $0x37,0x4(%rsp)
lea    0x10(%rsp),%rax
mov    %rax,0x28(%rsp)
lea    0x8(%rsp),%rax
mov    %rax,0x20(%rsp)
lea    0x4(%rsp),%rax
mov    %rax,0x18(%rsp)
lea    0x28(%rsp),%rdi
lea    0x14(%rsp),%rsi
lea    0xc(%rsp),%rbx
lea    0x20(%rsp),%rcx
lea    0x18(%rsp),%r8
mov    %rbx,%rdx
call   1040 <f@plt>
cmpl   $0x42,0x10(%rsp)
jne    11d2 <main+0xa2>
cmp    %rbx,0x28(%rsp)
jne    11d2 <main+0xa2>
cmpl   $0x63,0xc(%rsp)
jne    11d2 <main+0xa2>
cmpl   $0xffffffff,0x8(%rsp)
jne    11d2 <main+0xa2>
mov    0x20(%rsp),%rax
cmp    0x18(%rsp),%rax
jne    11d2 <main+0xa2>
cmpl   $0x37,0x4(%rsp)
jne    11d2 <main+0xa2>
xor    %edi,%edi
call   1050 <exit@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
store i32 0, i32* %1
store i32 42, i32* %2
store i32 66, i32* %3
store i32 1, i32* %4
store i32 -1, i32* %5
store i32 55, i32* %6
store i32* %2, i32** %7
store i32* %5, i32** %8
store i32* %6, i32** %9
%10 = call i32 @f(i32** %7, i32* %3, i32* %4, i32** %8, i32** %9)
%11 = load i32, i32* %2
%12 = icmp ne i32 %11, 66
br i1 %12, label %29, label %13
13: ; preds = %0
%14 = load i32*, i32** %7
%15 = icmp ne i32* %14, %4
br i1 %15, label %29, label %16
16: ; preds = %13
%17 = load i32, i32* %4
%18 = icmp ne i32 %17, 99
br i1 %18, label %29, label %19
19: ; preds = %16
%20 = load i32, i32* %5
%21 = icmp ne i32 %20, -1
br i1 %21, label %29, label %22
22: ; preds = %19
%23 = load i32*, i32** %8
%24 = load i32*, i32** %9
%25 = icmp ne i32* %23, %24
br i1 %25, label %29, label %26
26: ; preds = %22
%27 = load i32, i32* %6
%28 = icmp ne i32 %27, 55
br i1 %28, label %29, label %31
29: ; preds = %26, %22, %19, %16, %13, %0
%30 = call i32 (...) @abort()
unreachable
31: ; preds = %26
%32 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = bitcast i32* %1 to i8*
store i32 42, i32* %1
%10 = bitcast i32* %2 to i8*
store i32 66, i32* %2
%11 = bitcast i32* %3 to i8*
store i32 1, i32* %3
%12 = bitcast i32* %4 to i8*
store i32 -1, i32* %4
%13 = bitcast i32* %5 to i8*
store i32 55, i32* %5
%14 = bitcast i32** %6 to i8*
store i32* %1, i32** %6
%15 = bitcast i32** %7 to i8*
store i32* %4, i32** %7
%16 = bitcast i32** %8 to i8*
store i32* %5, i32** %8
%17 = call i32 @f(i32** %6, i32* %2, i32* %3, i32** %7, i32** %8)
%18 = load i32, i32* %1
%19 = icmp ne i32 %18, 66
%20 = load i32*, i32** %6
%21 = icmp ne i32* %20, %3
%22 = select i1 %19, i1 true, i1 %21
%23 = load i32, i32* %3
%24 = icmp ne i32 %23, 99
%25 = select i1 %22, i1 true, i1 %24
%26 = load i32, i32* %4
%27 = icmp ne i32 %26, -1
%28 = select i1 %25, i1 true, i1 %27
br i1 %28, label %36, label %29
29: ; preds = %0
%30 = load i32*, i32** %7
%31 = load i32*, i32** %8
%32 = icmp ne i32* %30, %31
%33 = load i32, i32* %5
%34 = icmp ne i32 %33, 55
%35 = select i1 %32, i1 true, i1 %34
br i1 %35, label %36, label %38
36: ; preds = %29, %0
%37 = call i32 (...) @abort()
unreachable
38: ; preds = %29
%39 = call i32 @exit(i32 0)
unreachable
}