#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 uint32_t;

/* Variables and functions */
int /*<<< orphan*/ vectors_wots(int);
int /*<<< orphan*/ vectors_xmss(int, int);
int main() {
  for (uint32_t oid = 1; oid <= 0x15; oid += 3) {
    vectors_wots(oid);
  }
  for (uint32_t oid = 2; oid <= 56; oid += 8) {
    vectors_xmss(oid, 1);
  }
  for (uint32_t oid = 1; oid <= 0x15; oid += 3) {
    vectors_xmss(oid, 0);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x1,-0x8(%rbp)
cmpl   $0x15,-0x8(%rbp)
jg     1156 <main+0x36>
mov    -0x8(%rbp),%edi
call   1040 <vectors_wots@plt>
mov    -0x8(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x8(%rbp)
jmp    1136 <main+0x16>
movl   $0x2,-0xc(%rbp)
cmpl   $0x38,-0xc(%rbp)
jg     1182 <main+0x62>
mov    -0xc(%rbp),%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    -0xc(%rbp),%eax
add    $0x8,%eax
mov    %eax,-0xc(%rbp)
jmp    115d <main+0x3d>
movl   $0x1,-0x10(%rbp)
cmpl   $0x15,-0x10(%rbp)
jg     11ab <main+0x8b>
mov    -0x10(%rbp),%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    -0x10(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x10(%rbp)
jmp    1189 <main+0x69>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1,%edi
call   1040 <vectors_wots@plt>
mov    $0x4,%edi
call   1040 <vectors_wots@plt>
mov    $0x7,%edi
call   1040 <vectors_wots@plt>
mov    $0xa,%edi
call   1040 <vectors_wots@plt>
mov    $0xd,%edi
call   1040 <vectors_wots@plt>
mov    $0x10,%edi
call   1040 <vectors_wots@plt>
mov    $0x13,%edi
call   1040 <vectors_wots@plt>
mov    $0x2,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0xa,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0x12,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0x1a,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0x22,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0x2a,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0x32,%edi
mov    $0x1,%esi
call   1030 <vectors_xmss@plt>
mov    $0x1,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    $0x4,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    $0x7,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    $0xa,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    $0xd,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    $0x10,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
mov    $0x13,%edi
xor    %esi,%esi
call   1030 <vectors_xmss@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 1, i32* %2
br label %5
5: ; preds = %11, %0
%6 = load i32, i32* %2
%7 = icmp sle i32 %6, 21
br i1 %7, label %8, label %14
8: ; preds = %5
%9 = load i32, i32* %2
%10 = call i32 @vectors_wots(i32 %9)
br label %11
11: ; preds = %8
%12 = load i32, i32* %2
%13 = add nsw i32 %12, 3
store i32 %13, i32* %2
br label %5
14: ; preds = %5
store i32 2, i32* %3
br label %15
15: ; preds = %21, %14
%16 = load i32, i32* %3
%17 = icmp sle i32 %16, 56
br i1 %17, label %18, label %24
18: ; preds = %15
%19 = load i32, i32* %3
%20 = call i32 @vectors_xmss(i32 %19, i32 1)
br label %21
21: ; preds = %18
%22 = load i32, i32* %3
%23 = add nsw i32 %22, 8
store i32 %23, i32* %3
br label %15
24: ; preds = %15
store i32 1, i32* %4
br label %25
25: ; preds = %31, %24
%26 = load i32, i32* %4
%27 = icmp sle i32 %26, 21
br i1 %27, label %28, label %34
28: ; preds = %25
%29 = load i32, i32* %4
%30 = call i32 @vectors_xmss(i32 %29, i32 0)
br label %31
31: ; preds = %28
%32 = load i32, i32* %4
%33 = add nsw i32 %32, 3
store i32 %33, i32* %4
br label %25
34: ; preds = %25
%35 = load i32, i32* %1
ret i32 %35
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @vectors_wots(i32 1)
%2 = tail call i32 @vectors_wots(i32 4)
%3 = tail call i32 @vectors_wots(i32 7)
%4 = tail call i32 @vectors_wots(i32 10)
%5 = tail call i32 @vectors_wots(i32 13)
%6 = tail call i32 @vectors_wots(i32 16)
%7 = tail call i32 @vectors_wots(i32 19)
%8 = tail call i32 @vectors_xmss(i32 2, i32 1)
%9 = tail call i32 @vectors_xmss(i32 10, i32 1)
%10 = tail call i32 @vectors_xmss(i32 18, i32 1)
%11 = tail call i32 @vectors_xmss(i32 26, i32 1)
%12 = tail call i32 @vectors_xmss(i32 34, i32 1)
%13 = tail call i32 @vectors_xmss(i32 42, i32 1)
%14 = tail call i32 @vectors_xmss(i32 50, i32 1)
%15 = tail call i32 @vectors_xmss(i32 1, i32 0)
%16 = tail call i32 @vectors_xmss(i32 4, i32 0)
%17 = tail call i32 @vectors_xmss(i32 7, i32 0)
%18 = tail call i32 @vectors_xmss(i32 10, i32 0)
%19 = tail call i32 @vectors_xmss(i32 13, i32 0)
%20 = tail call i32 @vectors_xmss(i32 16, i32 0)
%21 = tail call i32 @vectors_xmss(i32 19, i32 0)
ret i32 0
}