#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 IofCallDriver(int, int);
int __VERIFIER_nondet_int();
int DiskPerfShutdownFlush(int DeviceObject, int Irp) {
  int DeviceObject__DeviceExtension = __VERIFIER_nondet_int();
  int Irp__CurrentLocation = __VERIFIER_nondet_int();
  int Irp__Tail__Overlay__CurrentStackLocation = __VERIFIER_nondet_int();
  int deviceExtension__TargetDeviceObject = __VERIFIER_nondet_int();
  int deviceExtension;
  int tmp;
  {
    {
      deviceExtension = DeviceObject__DeviceExtension;
      Irp__CurrentLocation++;
      Irp__Tail__Overlay__CurrentStackLocation++;
      tmp = IofCallDriver(deviceExtension__TargetDeviceObject, Irp);
    }
    return (tmp);
  }
}


x86 assembly (clang, -O0):
<DiskPerfShutdownFlush>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0xc(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x10(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x14(%rbp)
mov    $0x0,%al
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,-0x18(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
mov    -0x18(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1040 <IofCallDriver@plt>
mov    %eax,-0x20(%rbp)
mov    -0x20(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DiskPerfShutdownFlush>:
push   %rbx
mov    %esi,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%edi
mov    %ebx,%esi
pop    %rbx
jmp    1040 <IofCallDriver@plt>

LLVM IR (-O0):
define i32 @DiskPerfShutdownFlush(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%11 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %11, i32* %5
%12 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %12, i32* %6
%13 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %13, i32* %7
%14 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %14, i32* %8
%15 = load i32, i32* %5
store i32 %15, i32* %9
%16 = load i32, i32* %6
%17 = add nsw i32 %16, 1
store i32 %17, i32* %6
%18 = load i32, i32* %7
%19 = add nsw i32 %18, 1
store i32 %19, i32* %7
%20 = load i32, i32* %8
%21 = load i32, i32* %4
%22 = call i32 @IofCallDriver(i32 %20, i32 %21)
store i32 %22, i32* %10
%23 = load i32, i32* %10
ret i32 %23
}

LLVM IR (-O2):
define i32 @DiskPerfShutdownFlush(i32 %0, i32 %1) {
%3 = tail call i32 (...) @__VERIFIER_nondet_int()
%4 = tail call i32 (...) @__VERIFIER_nondet_int()
%5 = tail call i32 (...) @__VERIFIER_nondet_int()
%6 = tail call i32 (...) @__VERIFIER_nondet_int()
%7 = tail call i32 @IofCallDriver(i32 %6, i32 %1)
ret i32 %7
}