#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*/ print16(unsigned char const *);
int /*<<< orphan*/ printf(char *);
void printkey(const unsigned char *k) {
  printf("[Mod(");
  print16(k + 0);
  printf(",2^127-1),Mod(");
  print16(k + 16);
  printf(",2^127-1),Mod(");
  print16(k + 32);
  printf(",2^127-1)]");
}


x86 assembly (clang, -O0):
<printkey>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xecd(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
call   1030 <print16@plt>
lea    0xebe(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x10,%rdi
call   1030 <print16@plt>
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
mov    -0x8(%rbp),%rdi
add    $0x20,%rdi
call   1030 <print16@plt>
lea    0xe9b(%rip),%rdi
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printkey>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xed2(%rip),%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <print16@plt>
lea    0xec4(%rip),%r14
mov    %r14,%rdi
call   1040 <printf@plt>
lea    0x10(%rbx),%rdi
call   1030 <print16@plt>
mov    %r14,%rdi
call   1040 <printf@plt>
add    $0x20,%rbx
mov    %rbx,%rdi
call   1030 <print16@plt>
lea    0xea7(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"[Mod(\00"
@.str.1 = [15 x i8] c",2^127-1),Mod(\00"
@.str.2 = [11 x i8] c",2^127-1)]\00"
define void @printkey(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = getelementptr inbounds i8, i8* %4, i64 0
%6 = call i32 @print16(i8* %5)
%7 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%8 = load i8*, i8** %2
%9 = getelementptr inbounds i8, i8* %8, i64 16
%10 = call i32 @print16(i8* %9)
%11 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%12 = load i8*, i8** %2
%13 = getelementptr inbounds i8, i8* %12, i64 32
%14 = call i32 @print16(i8* %13)
%15 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"[Mod(\00"
@.str.1 = [15 x i8] c",2^127-1),Mod(\00"
@.str.2 = [11 x i8] c",2^127-1)]\00"
define void @printkey(i8* %0) {
%2 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @print16(i8* %0)
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%5 = getelementptr inbounds i8, i8* %0, i64 16
%6 = tail call i32 @print16(i8* %5)
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%8 = getelementptr inbounds i8, i8* %0, i64 32
%9 = tail call i32 @print16(i8* %8)
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
ret void
}