#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*/ AssertFailure(char *, int);
void SysCtlLDOSet(unsigned long ulVoltage) {
  {
    if (!((ulVoltage == 0x00000005) || (ulVoltage == 0x00000004) ||
          (ulVoltage == 0x00000003) || (ulVoltage == 0x00000002) ||
          (ulVoltage == 0x00000001) || (ulVoltage == 0x00000000) ||
          (ulVoltage == 0x0000001f) || (ulVoltage == 0x0000001e) ||
          (ulVoltage == 0x0000001d) || (ulVoltage == 0x0000001c) ||
          (ulVoltage == 0x0000001b))) {
      AssertFailure(
          "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
          "2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/"
          "Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/lib/driverlib/sysctl.c",
          1581);
    }
  };
  (*((volatile unsigned long *)(0x400FE034))) = ulVoltage;
}


x86 assembly (clang, -O0):
<SysCtlLDOSet>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x5,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x4,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x3,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x2,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x1,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x0,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x1f,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x1e,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x1d,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x1c,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
cmpq   $0x1b,-0x8(%rbp)
je     11a6 <SysCtlLDOSet+0x96>
lea    0xe64(%rip),%rdi
mov    $0x62d,%esi
call   1030 <AssertFailure@plt>
mov    -0x8(%rbp),%rcx
mov    $0x400fe034,%eax
mov    %rcx,(%rax)
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SysCtlLDOSet>:
push   %rbx
mov    %rdi,%rbx
cmp    $0x1f,%rdi
ja     112f <SysCtlLDOSet+0x1f>
mov    $0xf800003f,%eax
bt     %rbx,%rax
jae    112f <SysCtlLDOSet+0x1f>
mov    %rbx,0x400fe034
40
pop    %rbx
ret
lea    0xeca(%rip),%rdi
mov    $0x62d,%esi
call   1030 <AssertFailure@plt>
jmp    1125 <SysCtlLDOSet+0x15>

LLVM IR (-O0):
@.str = [200 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/lib/driverlib/sysctl.c\00"
define void @SysCtlLDOSet(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = icmp eq i64 %3, 5
br i1 %4, label %37, label %5
5: ; preds = %1
%6 = load i64, i64* %2
%7 = icmp eq i64 %6, 4
br i1 %7, label %37, label %8
8: ; preds = %5
%9 = load i64, i64* %2
%10 = icmp eq i64 %9, 3
br i1 %10, label %37, label %11
11: ; preds = %8
%12 = load i64, i64* %2
%13 = icmp eq i64 %12, 2
br i1 %13, label %37, label %14
14: ; preds = %11
%15 = load i64, i64* %2
%16 = icmp eq i64 %15, 1
br i1 %16, label %37, label %17
17: ; preds = %14
%18 = load i64, i64* %2
%19 = icmp eq i64 %18, 0
br i1 %19, label %37, label %20
20: ; preds = %17
%21 = load i64, i64* %2
%22 = icmp eq i64 %21, 31
br i1 %22, label %37, label %23
23: ; preds = %20
%24 = load i64, i64* %2
%25 = icmp eq i64 %24, 30
br i1 %25, label %37, label %26
26: ; preds = %23
%27 = load i64, i64* %2
%28 = icmp eq i64 %27, 29
br i1 %28, label %37, label %29
29: ; preds = %26
%30 = load i64, i64* %2
%31 = icmp eq i64 %30, 28
br i1 %31, label %37, label %32
32: ; preds = %29
%33 = load i64, i64* %2
%34 = icmp eq i64 %33, 27
br i1 %34, label %37, label %35
35: ; preds = %32
%36 = call i32 @AssertFailure(i8* getelementptr inbounds ([200 x i8], [200 x i8]* @.str, i64 0, i64 0), i32 1581)
br label %37
37: ; preds = %35, %32, %29, %26, %23, %20, %17, %14, %11, %8, %5, %1
%38 = load i64, i64* %2
store volatile i64 %38, i64* inttoptr (i64 1074782260 to i64*)
ret void
}

LLVM IR (-O2):
@.str = [200 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AmesianX/OpenBLT/refs/heads/master/Target/Demo/ARMCM3_LM3S_EK_LM3S6965_Crossworks/Boot/lib/driverlib/sysctl.c\00"
define void @SysCtlLDOSet(i64 %0) {
switch i64 %0, label %2 [
i64 31, label %4
i64 30, label %4
i64 29, label %4
i64 28, label %4
i64 27, label %4
i64 5, label %4
i64 4, label %4
i64 3, label %4
i64 2, label %4
i64 1, label %4
i64 0, label %4
]
2: ; preds = %1
%3 = tail call i32 @AssertFailure(i8* getelementptr inbounds ([200 x i8], [200 x i8]* @.str, i64 0, i64 0), i32 1581)
br label %4
4: ; preds = %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %1, %2
store volatile i64 %0, i64* inttoptr (i64 1074782260 to i64*)
ret void
}