#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 __VERIFIER_nondet_int();
int FlCheckFormatParameters(int DisketteExtension, int FormatParameters) {
  int DriveMediaConstants__driveMediaType__MediaType = __VERIFIER_nondet_int();
  int FormatParameters__MediaType = __VERIFIER_nondet_int();
  int FAKE_CONDITION = __VERIFIER_nondet_int();
  {
    if (DriveMediaConstants__driveMediaType__MediaType !=
        FormatParameters__MediaType) {
      return (0);
    } else {
      if (FAKE_CONDITION) {
        return (0);
      } else {
        return (1);
      }
    }
  }
}


x86 assembly (clang, -O0):
<FlCheckFormatParameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-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    -0x10(%rbp),%eax
cmp    -0x14(%rbp),%eax
je     1154 <FlCheckFormatParameters+0x44>
movl   $0x0,-0x4(%rbp)
jmp    1171 <FlCheckFormatParameters+0x61>
cmpl   $0x0,-0x18(%rbp)
je     116a <FlCheckFormatParameters+0x5a>
movl   $0x0,-0x4(%rbp)
jmp    1171 <FlCheckFormatParameters+0x61>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FlCheckFormatParameters>:
push   %rbp
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
mov    %eax,%ebp
xor    %eax,%eax
call   1030 <__VERIFIER_nondet_int@plt>
xor    %ebx,%ebp
xor    %ecx,%ecx
or     %eax,%ebp
sete   %cl
mov    %ecx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define i32 @FlCheckFormatParameters(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%9 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %9, i32* %6
%10 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %10, i32* %7
%11 = call i32 (...) @__VERIFIER_nondet_int()
store i32 %11, i32* %8
%12 = load i32, i32* %6
%13 = load i32, i32* %7
%14 = icmp ne i32 %12, %13
br i1 %14, label %15, label %16
15: ; preds = %2
store i32 0, i32* %3
br label %21
16: ; preds = %2
%17 = load i32, i32* %8
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %20
19: ; preds = %16
store i32 0, i32* %3
br label %21
20: ; preds = %16
store i32 1, i32* %3
br label %21
21: ; preds = %20, %19, %15
%22 = load i32, i32* %3
ret i32 %22
}

LLVM IR (-O2):
define i32 @FlCheckFormatParameters(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 = icmp eq i32 %3, %4
%7 = icmp eq i32 %5, 0
%8 = select i1 %6, i1 %7, i1 false
%9 = zext i1 %8 to i32
ret i32 %9
}