#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*/ printf(char *, ...);
void print_parameters() {
  printf("*************************************\n\n");
  printf("              Testbench\n\n");
  printf("              KINDI (KEM)\n\n");
  printf("              ref           \n");
  printf("*************************************\n");
  printf("\n--> Parameters:\n");
  printf("\tLAMBDA\t\t= %d\n"
         "\tN\t\t= %d\n"
         "\tQ\t\t= %d ("
         "2**%d)\n"
         "\tL1\t\t= %d\n"
         "\tR_SEC\t\t= %d\n"
         "\tMESSAGE_SIZE\t= %d bits\n"
         "\t\t\t= %d bytes\n\n",
         128, 256, (1 << 14), 14, 3, (1 << 2),
         ((3 + 1) * 256 * (2 + 1) / 8) * 8, ((3 + 1) * 256 * (2 + 1) / 8));
  printf("--------------------------------\n");
}


x86 assembly (clang, -O0):
<print_parameters>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf15(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf25(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf42(%rip),%rdi
mov    $0x80,%esi
mov    $0x100,%edx
mov    $0x4000,%ecx
mov    $0xe,%r8d
mov    $0x3,%r9d
movl   $0x4,(%rsp)
movl   $0xc00,0x8(%rsp)
movl   $0x180,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_parameters>:
push   %rax
lea    0xf3f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf67(%rip),%rdi
call   1030 <puts@plt>
lea    0xf76(%rip),%rdi
call   1030 <puts@plt>
lea    0xf87(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa1(%rip),%rdi
call   1030 <puts@plt>
sub    $0x8,%rsp
lea    0xe8c(%rip),%rdi
mov    $0x80,%esi
mov    $0x100,%edx
mov    $0x4000,%ecx
mov    $0xe,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
push   $0x180
push   $0xc00
push   $0x4
call   1040 <printf@plt>
add    $0x20,%rsp
lea    0xf69(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"*************************************\0A\0A\00"
@.str.1 = [26 x i8] c" Testbench\0A\0A\00"
@.str.2 = [28 x i8] c" KINDI (KEM)\0A\0A\00"
@.str.3 = [30 x i8] c" ref \0A\00"
@.str.4 = [39 x i8] c"*************************************\0A\00"
@.str.5 = [18 x i8] c"\0A--> Parameters:\0A\00"
@.str.6 = [103 x i8] c"\09LAMBDA\09\09= %d\0A\09N\09\09= %d\0A\09Q\09\09= %d (2**%d)\0A\09L1\09\09= %d\0A\09R_SEC\09\09= %d\0A\09MESSAGE_SIZE\09= %d bits\0A\09\09\09= %d bytes\0A\0A\00"
@.str.7 = [34 x i8] c"--------------------------------\0A\00"
define void @print_parameters() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([103 x i8], [103 x i8]* @.str.6, i64 0, i64 0), i32 128, i32 256, i32 16384, i32 14, i32 3, i32 4, i32 3072, i32 384)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.6 = [103 x i8] c"\09LAMBDA\09\09= %d\0A\09N\09\09= %d\0A\09Q\09\09= %d (2**%d)\0A\09L1\09\09= %d\0A\09R_SEC\09\09= %d\0A\09MESSAGE_SIZE\09= %d bits\0A\09\09\09= %d bytes\0A\0A\00"
@str = [39 x i8] c"*************************************\0A\00"
@str.8 = [25 x i8] c" Testbench\0A\00"
@str.9 = [27 x i8] c" KINDI (KEM)\0A\00"
@str.10 = [29 x i8] c" ref \00"
@str.11 = [38 x i8] c"*************************************\00"
@str.12 = [17 x i8] c"\0A--> Parameters:\00"
@str.13 = [33 x i8] c"--------------------------------\00"
define void @print_parameters() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.8, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([103 x i8], [103 x i8]* @.str.6, i64 0, i64 0), i32 128, i32 256, i32 16384, i32 14, i32 3, i32 4, i32 3072, i32 384)
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.13, i64 0, i64 0))
ret void
}