#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 */
typedef int /*<<< orphan*/ buffer;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
scalar_t__ ZmerTo(int, int, int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
scalar_t__ ioperm(int, int, int);
int /*<<< orphan*/ outb(int, int);
int /*<<< orphan*/ printf(char *);
scalar_t__ setuid(int /*<<< orphan*/);
int sprintf(char *, char *, double, double, double);
int main(void) {
  if (setuid(0) < 0) {
    printf("Program musi byt spusten rootem\n");
    return (0);
  }
  if (ioperm(0x378 + 1, 3, 1)) {
    printf("Program musi byt spusten rootem\n");
    return (0);
  }
  if (ioperm(0x378 + 2, 3, 1)) {
    printf("Neni pristup na port\n");
    return (0);
  }
  if (ioperm(0x378, 3, 1)) {
    printf("Neni pristup na port\n");
    return (0);
  }
  char str[999];
  FILE *file;
  int nezajem;
  file = fopen("state.rele", "r");
  if (file) {
    nezajem = fscanf(file, "%s", str);
    fclose(file);
  }
  int stavRele;
  stavRele = (*str == '1' ? 1 : 0);
  outb(240 + stavRele, 0x378);
  int i;
  double cnt;
  cnt = 1.0;
  double t1;
  t1 = 0;
  for (i = 0; i < cnt; i++) {
    t1 += ZmerTo(0x378 + 1, 3, 0);
  }
  double t2;
  t2 = 0;
  for (i = 0; i < cnt; i++) {
    t2 += ZmerTo(0x378 + 1, 6, 0);
  }
  double t3;
  t3 = 0;
  for (i = 0; i < cnt; i++) {
    t3 += ZmerTo(0x378 + 1, 5, 0);
  }
  outb(stavRele, 0x378);
  char buffer[20];
  nezajem =
      sprintf(buffer, "%+5.1f|%+5.1f|%+5.1f\n\r", t1 / cnt, t2 / cnt, t3 / cnt);
  file = fopen("state.temp", "wb");
  fwrite(buffer, sizeof(char), sizeof(buffer), file);
  fclose(file);
  ioperm(0x378 + 1, 3, 0);
  ioperm(0x378 + 2, 3, 0);
  ioperm(0x378, 3, 0);
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x440,%rsp
movl   $0x0,-0x4(%rbp)
xor    %edi,%edi
call   10c0 <setuid@plt>
cmp    $0x0,%rax
jge    11db <main+0x3b>
lea    0xe3e(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1522 <main+0x382>
mov    $0x379,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <ioperm@plt>
cmp    $0x0,%rax
je     1211 <main+0x71>
lea    0xe08(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1522 <main+0x382>
mov    $0x37a,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <ioperm@plt>
cmp    $0x0,%rax
je     1247 <main+0xa7>
lea    0xdf3(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1522 <main+0x382>
mov    $0x378,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <ioperm@plt>
cmp    $0x0,%rax
je     127d <main+0xdd>
lea    0xdbd(%rip),%rdi
call   1050 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1522 <main+0x382>
lea    0xdbb(%rip),%rdi
lea    0xdbf(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x3f8(%rbp)
cmpq   $0x0,-0x3f8(%rbp)
je     12d1 <main+0x131>
mov    -0x3f8(%rbp),%rdi
lea    -0x3f0(%rbp),%rdx
lea    0xd92(%rip),%rsi
call   1070 <fscanf@plt>
mov    %eax,-0x3fc(%rbp)
mov    -0x3f8(%rbp),%rdi
call   1040 <fclose@plt>
movsbl -0x3f0(%rbp),%edx
xor    %eax,%eax
mov    $0x1,%ecx
cmp    $0x31,%edx
cmove  %ecx,%eax
mov    %eax,-0x400(%rbp)
mov    -0x400(%rbp),%edi
add    $0xf0,%edi
mov    $0x378,%esi
call   1060 <outb@plt>
movsd  0xcf7(%rip),%xmm0
movsd  %xmm0,-0x410(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x418(%rbp)
ff
movl   $0x0,-0x404(%rbp)
cvtsi2sdl -0x404(%rbp),%xmm1
ff
movsd  -0x410(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    137a <main+0x1da>
mov    $0x379,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1030 <ZmerTo@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x418(%rbp),%xmm0
ff
movsd  %xmm0,-0x418(%rbp)
ff
mov    -0x404(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x404(%rbp)
jmp    1326 <main+0x186>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x420(%rbp)
ff
movl   $0x0,-0x404(%rbp)
cvtsi2sdl -0x404(%rbp),%xmm1
ff
movsd  -0x410(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    13e3 <main+0x243>
mov    $0x379,%edi
mov    $0x6,%esi
xor    %edx,%edx
call   1030 <ZmerTo@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x420(%rbp),%xmm0
ff
movsd  %xmm0,-0x420(%rbp)
ff
mov    -0x404(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x404(%rbp)
jmp    138f <main+0x1ef>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x428(%rbp)
ff
movl   $0x0,-0x404(%rbp)
cvtsi2sdl -0x404(%rbp),%xmm1
ff
movsd  -0x410(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    144c <main+0x2ac>
mov    $0x379,%edi
mov    $0x5,%esi
xor    %edx,%edx
call   1030 <ZmerTo@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x428(%rbp),%xmm0
ff
movsd  %xmm0,-0x428(%rbp)
ff
mov    -0x404(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x404(%rbp)
jmp    13f8 <main+0x258>
mov    -0x400(%rbp),%edi
mov    $0x378,%esi
call   1060 <outb@plt>
lea    -0x440(%rbp),%rdi
movsd  -0x418(%rbp),%xmm0
ff
divsd  -0x410(%rbp),%xmm0
ff
movsd  -0x420(%rbp),%xmm1
ff
divsd  -0x410(%rbp),%xmm1
ff
movsd  -0x428(%rbp),%xmm2
ff
divsd  -0x410(%rbp),%xmm2
ff
lea    0xbb5(%rip),%rsi
call   10a0 <sprintf@plt>
mov    %eax,-0x3fc(%rbp)
lea    0xbba(%rip),%rdi
lea    0xbbe(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x3f8(%rbp)
lea    -0x440(%rbp),%rdi
mov    -0x3f8(%rbp),%rcx
mov    $0x1,%esi
mov    $0x14,%edx
call   10b0 <fwrite@plt>
mov    -0x3f8(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x379,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <ioperm@plt>
mov    $0x37a,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <ioperm@plt>
mov    $0x378,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <ioperm@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x440,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x428,%rsp
xor    %edi,%edi
call   10c0 <setuid@plt>
test   %rax,%rax
js     11cf <main+0x2f>
mov    $0x379,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <ioperm@plt>
test   %rax,%rax
je     11d8 <main+0x38>
lea    0xe74(%rip),%rdi
jmp    1211 <main+0x71>
mov    $0x37a,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <ioperm@plt>
test   %rax,%rax
jne    120a <main+0x6a>
mov    $0x378,%edi
mov    $0x3,%esi
mov    $0x1,%edx
call   1080 <ioperm@plt>
test   %rax,%rax
je     1223 <main+0x83>
lea    0xe24(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x428,%rsp
pop    %rbx
pop    %r14
ret
lea    0xdd6(%rip),%rdi
lea    0xdda(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1264 <main+0xc4>
mov    %rax,%rbx
lea    0xdc8(%rip),%rsi
lea    0x40(%rsp),%rdx
mov    %rax,%rdi
call   1070 <fscanf@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
cmpb   $0x31,0x40(%rsp)
sete   %al
jmp    1264 <main+0xc4>
movzbl %al,%ebx
and    $0x1,%ebx
lea    0xf0(%rbx),%edi
mov    $0x378,%esi
call   1060 <outb@plt>
mov    $0x379,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1040 <ZmerTo@plt>
cvtsi2sd %rax,%xmm0
movsd  %xmm0,0x18(%rsp)
mov    $0x379,%edi
mov    $0x6,%esi
xor    %edx,%edx
call   1040 <ZmerTo@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  %xmm0,0x10(%rsp)
mov    $0x379,%edi
mov    $0x5,%esi
xor    %edx,%edx
call   1040 <ZmerTo@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
movsd  %xmm0,0x8(%rsp)
mov    %ebx,%edi
mov    $0x378,%esi
call   1060 <outb@plt>
lea    0xd29(%rip),%rsi
lea    0x20(%rsp),%r14
mov    %r14,%rdi
movsd  0x18(%rsp),%xmm0
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
call   10a0 <sprintf@plt>
lea    0xd1a(%rip),%rdi
lea    0xd1e(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,%rbx
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x14,%edx
mov    %rax,%rcx
call   10b0 <fwrite@plt>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    $0x379,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <ioperm@plt>
mov    $0x37a,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <ioperm@plt>
mov    $0x378,%edi
mov    $0x3,%esi
xor    %edx,%edx
call   1080 <ioperm@plt>
jmp    1216 <main+0x76>

LLVM IR (-O0):
@.str = [33 x i8] c"Program musi byt spusten rootem\0A\00"
@.str.1 = [22 x i8] c"Neni pristup na port\0A\00"
@.str.2 = [11 x i8] c"state.rele\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [23 x i8] c"%+5.1f|%+5.1f|%+5.1f\0A\0D\00"
@.str.6 = [11 x i8] c"state.temp\00"
@.str.7 = [3 x i8] c"wb\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [999 x i8]
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca [20 x i8]
store i32 0, i32* %1
%12 = call i64 @setuid(i32 0)
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %0
%15 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %115
16: ; preds = %0
%17 = call i64 @ioperm(i32 889, i32 3, i32 1)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %1
br label %115
21: ; preds = %16
%22 = call i64 @ioperm(i32 890, i32 3, i32 1)
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %115
26: ; preds = %21
%27 = call i64 @ioperm(i32 888, i32 3, i32 1)
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %115
31: ; preds = %26
%32 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %32, i32** %3
%33 = load i32*, i32** %3
%34 = icmp ne i32* %33, null
br i1 %34, label %35, label %41
35: ; preds = %31
%36 = load i32*, i32** %3
%37 = getelementptr inbounds [999 x i8], [999 x i8]* %2, i64 0, i64 0
%38 = call i32 @fscanf(i32* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %37)
store i32 %38, i32* %4
%39 = load i32*, i32** %3
%40 = call i32 @fclose(i32* %39)
br label %41
41: ; preds = %35, %31
%42 = getelementptr inbounds [999 x i8], [999 x i8]* %2, i64 0, i64 0
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 49
%46 = zext i1 %45 to i64
%47 = select i1 %45, i32 1, i32 0
store i32 %47, i32* %5
%48 = load i32, i32* %5
%49 = add nsw i32 240, %48
%50 = call i32 @outb(i32 %49, i32 888)
store double 1.000000e+00, double* %7
store double 0.000000e+00, double* %8
store i32 0, i32* %6
br label %51
51: ; preds = %61, %41
%52 = load i32, i32* %6
%53 = sitofp i32 %52 to double
%54 = load double, double* %7
%55 = fcmp olt double %53, %54
br i1 %55, label %56, label %64
56: ; preds = %51
%57 = call i64 @ZmerTo(i32 889, i32 3, i32 0)
%58 = sitofp i64 %57 to double
%59 = load double, double* %8
%60 = fadd double %59, %58
store double %60, double* %8
br label %61
61: ; preds = %56
%62 = load i32, i32* %6
%63 = add nsw i32 %62, 1
store i32 %63, i32* %6
br label %51
64: ; preds = %51
store double 0.000000e+00, double* %9
store i32 0, i32* %6
br label %65
65: ; preds = %75, %64
%66 = load i32, i32* %6
%67 = sitofp i32 %66 to double
%68 = load double, double* %7
%69 = fcmp olt double %67, %68
br i1 %69, label %70, label %78
70: ; preds = %65
%71 = call i64 @ZmerTo(i32 889, i32 6, i32 0)
%72 = sitofp i64 %71 to double
%73 = load double, double* %9
%74 = fadd double %73, %72
store double %74, double* %9
br label %75
75: ; preds = %70
%76 = load i32, i32* %6
%77 = add nsw i32 %76, 1
store i32 %77, i32* %6
br label %65
78: ; preds = %65
store double 0.000000e+00, double* %10
store i32 0, i32* %6
br label %79
79: ; preds = %89, %78
%80 = load i32, i32* %6
%81 = sitofp i32 %80 to double
%82 = load double, double* %7
%83 = fcmp olt double %81, %82
br i1 %83, label %84, label %92
84: ; preds = %79
%85 = call i64 @ZmerTo(i32 889, i32 5, i32 0)
%86 = sitofp i64 %85 to double
%87 = load double, double* %10
%88 = fadd double %87, %86
store double %88, double* %10
br label %89
89: ; preds = %84
%90 = load i32, i32* %6
%91 = add nsw i32 %90, 1
store i32 %91, i32* %6
br label %79
92: ; preds = %79
%93 = load i32, i32* %5
%94 = call i32 @outb(i32 %93, i32 888)
%95 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%96 = load double, double* %8
%97 = load double, double* %7
%98 = fdiv double %96, %97
%99 = load double, double* %9
%100 = load double, double* %7
%101 = fdiv double %99, %100
%102 = load double, double* %10
%103 = load double, double* %7
%104 = fdiv double %102, %103
%105 = call i32 @sprintf(i8* %95, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), double %98, double %101, double %104)
store i32 %105, i32* %4
%106 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32* %106, i32** %3
%107 = getelementptr inbounds [20 x i8], [20 x i8]* %11, i64 0, i64 0
%108 = load i32*, i32** %3
%109 = call i32 @fwrite(i8* %107, i32 1, i32 20, i32* %108)
%110 = load i32*, i32** %3
%111 = call i32 @fclose(i32* %110)
%112 = call i64 @ioperm(i32 889, i32 3, i32 0)
%113 = call i64 @ioperm(i32 890, i32 3, i32 0)
%114 = call i64 @ioperm(i32 888, i32 3, i32 0)
store i32 0, i32* %1
br label %115
115: ; preds = %92, %29, %24, %19, %14
%116 = load i32, i32* %1
ret i32 %116
}

LLVM IR (-O2):
@.str.2 = [11 x i8] c"state.rele\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [23 x i8] c"%+5.1f|%+5.1f|%+5.1f\0A\0D\00"
@.str.6 = [11 x i8] c"state.temp\00"
@.str.7 = [3 x i8] c"wb\00"
@str.8 = [21 x i8] c"Neni pristup na port\00"
@str.10 = [32 x i8] c"Program musi byt spusten rootem\00"
define i32 @main() {
%1 = alloca [999 x i8]
%2 = alloca [20 x i8]
%3 = tail call i64 @setuid(i32 0)
%4 = icmp slt i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
br label %51
7: ; preds = %0
%8 = tail call i64 @ioperm(i32 889, i32 3, i32 1)
%9 = icmp eq i64 %8, 0
br i1 %9, label %12, label %10
10: ; preds = %7
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.10, i64 0, i64 0))
br label %51
12: ; preds = %7
%13 = tail call i64 @ioperm(i32 890, i32 3, i32 1)
%14 = icmp eq i64 %13, 0
br i1 %14, label %17, label %15
15: ; preds = %12
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.8, i64 0, i64 0))
br label %51
17: ; preds = %12
%18 = tail call i64 @ioperm(i32 888, i32 3, i32 1)
%19 = icmp eq i64 %18, 0
br i1 %19, label %22, label %20
20: ; preds = %17
%21 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.8, i64 0, i64 0))
br label %51
22: ; preds = %17
%23 = getelementptr inbounds [999 x i8], [999 x i8]* %1, i64 0, i64 0
%24 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i32* %24, null
br i1 %25, label %31, label %26
26: ; preds = %22
%27 = call i32 @fscanf(i32* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %23)
%28 = call i32 @fclose(i32* %24)
%29 = load i8, i8* %23
%30 = icmp eq i8 %29, 49
br label %31
31: ; preds = %26, %22
%32 = phi i1 [ %30, %26 ], [ undef, %22 ]
%33 = zext i1 %32 to i32
%34 = select i1 %32, i32 241, i32 240
%35 = call i32 @outb(i32 %34, i32 888)
%36 = call i64 @ZmerTo(i32 889, i32 3, i32 0)
%37 = sitofp i64 %36 to double
%38 = call i64 @ZmerTo(i32 889, i32 6, i32 0)
%39 = sitofp i64 %38 to double
%40 = call i64 @ZmerTo(i32 889, i32 5, i32 0)
%41 = sitofp i64 %40 to double
%42 = call i32 @outb(i32 %33, i32 888)
%43 = getelementptr inbounds [20 x i8], [20 x i8]* %2, i64 0, i64 0
%44 = call i32 @sprintf(i8* %43, i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), double %37, double %39, double %41)
%45 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%46 = call i32 @fwrite(i8* %43, i32 1, i32 20, i32* %45)
%47 = call i32 @fclose(i32* %45)
%48 = call i64 @ioperm(i32 889, i32 3, i32 0)
%49 = call i64 @ioperm(i32 890, i32 3, i32 0)
%50 = call i64 @ioperm(i32 888, i32 3, i32 0)
br label %51
51: ; preds = %31, %20, %15, %10, %5
ret i32 0
}