#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 *, ...);
int main() {
#pragma omp target
  {
    int num;
    printf("Signed: %i\n", 392);
    printf("Unsigned: %d\n", 7235);
    printf("Unsigned: %o\n", 0610);
    printf("Unsigned: %x\n", 0x7fa);
    printf("Unsigned: %X\n", 0x7fa);
    printf("floating point: %f\n", 392.65);
    printf("floating point: %F\n", 392.65);
    printf("S notation point: %e\n", 3.9265e+2);
    printf("S notation point: %E\n", 3.9265e+2);
    printf("floating point: %g\n", 392.65);
    printf("floating point: %G\n", 392.65);
    printf("Hexadecimal: %a\n", 3.9265e+2);
    printf("Hexadecimal: %A\n", 3.9265e+2);
    printf("Characters: %c\n", 65);
    printf("Pointer: %p\n", &num);
    printf("Signed: %d\n", 392);
    printf("Only percent sign %%\n");
    printf("No specifier!\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xee2(%rip),%rdi
mov    $0x188,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xedb(%rip),%rdi
mov    $0x1c43,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed6(%rip),%rdi
mov    $0x188,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xed1(%rip),%rdi
mov    $0x7fa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x7fa,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec7(%rip),%rdi
movsd  0xe73(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
movsd  0xe5d(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
movsd  0xe47(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
movsd  0xe31(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xec3(%rip),%rdi
movsd  0xe1b(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xec1(%rip),%rdi
movsd  0xe05(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
movsd  0xdef(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeba(%rip),%rdi
movsd  0xdd9(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
lea    0xeb5(%rip),%rdi
mov    $0x41,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb2(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xead(%rip),%rdi
mov    $0x188,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeae(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee0(%rip),%rdi
mov    $0x188,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed9(%rip),%rdi
mov    $0x1c43,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xed4(%rip),%rdi
mov    $0x188,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xecf(%rip),%rdi
mov    $0x7fa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeca(%rip),%rdi
mov    $0x7fa,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xec5(%rip),%rdi
movsd  0xe71(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec3(%rip),%rdi
movsd  0xe5b(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
movsd  0xe45(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
movsd  0xe2f(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xec1(%rip),%rdi
movsd  0xe19(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xebf(%rip),%rdi
movsd  0xe03(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xebd(%rip),%rdi
movsd  0xded(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb8(%rip),%rdi
movsd  0xdd7(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xeb3(%rip),%rdi
mov    $0x41,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    0x4(%rsp),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeaa(%rip),%rdi
mov    $0x188,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea3(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeab(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"Signed: %i\0A\00"
@.str.1 = [14 x i8] c"Unsigned: %d\0A\00"
@.str.2 = [14 x i8] c"Unsigned: %o\0A\00"
@.str.3 = [14 x i8] c"Unsigned: %x\0A\00"
@.str.4 = [14 x i8] c"Unsigned: %X\0A\00"
@.str.5 = [20 x i8] c"floating point: %f\0A\00"
@.str.6 = [20 x i8] c"floating point: %F\0A\00"
@.str.7 = [22 x i8] c"S notation point: %e\0A\00"
@.str.8 = [22 x i8] c"S notation point: %E\0A\00"
@.str.9 = [20 x i8] c"floating point: %g\0A\00"
@.str.10 = [20 x i8] c"floating point: %G\0A\00"
@.str.11 = [17 x i8] c"Hexadecimal: %a\0A\00"
@.str.12 = [17 x i8] c"Hexadecimal: %A\0A\00"
@.str.13 = [16 x i8] c"Characters: %c\0A\00"
@.str.14 = [13 x i8] c"Pointer: %p\0A\00"
@.str.15 = [12 x i8] c"Signed: %d\0A\00"
@.str.16 = [22 x i8] c"Only percent sign %%\0A\00"
@.str.17 = [15 x i8] c"No specifier!\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %1
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 392)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 7235)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 392)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 2042)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 2042)
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double 3.926500e+02)
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), double 3.926500e+02)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), double 3.926500e+02)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), double 3.926500e+02)
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), double 3.926500e+02)
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), double 3.926500e+02)
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), double 3.926500e+02)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), double 3.926500e+02)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i32 65)
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32* %2)
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 392)
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.17, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"Signed: %i\0A\00"
@.str.1 = [14 x i8] c"Unsigned: %d\0A\00"
@.str.2 = [14 x i8] c"Unsigned: %o\0A\00"
@.str.3 = [14 x i8] c"Unsigned: %x\0A\00"
@.str.4 = [14 x i8] c"Unsigned: %X\0A\00"
@.str.5 = [20 x i8] c"floating point: %f\0A\00"
@.str.6 = [20 x i8] c"floating point: %F\0A\00"
@.str.7 = [22 x i8] c"S notation point: %e\0A\00"
@.str.8 = [22 x i8] c"S notation point: %E\0A\00"
@.str.9 = [20 x i8] c"floating point: %g\0A\00"
@.str.10 = [20 x i8] c"floating point: %G\0A\00"
@.str.11 = [17 x i8] c"Hexadecimal: %a\0A\00"
@.str.12 = [17 x i8] c"Hexadecimal: %A\0A\00"
@.str.13 = [16 x i8] c"Characters: %c\0A\00"
@.str.14 = [13 x i8] c"Pointer: %p\0A\00"
@.str.15 = [12 x i8] c"Signed: %d\0A\00"
@.str.16 = [22 x i8] c"Only percent sign %%\0A\00"
@str = [14 x i8] c"No specifier!\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 392)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 7235)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i32 392)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), i32 2042)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0), i32 2042)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0), double 3.926500e+02)
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), double 3.926500e+02)
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0), double 3.926500e+02)
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0), double 3.926500e+02)
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), double 3.926500e+02)
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), double 3.926500e+02)
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), double 3.926500e+02)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.12, i64 0, i64 0), double 3.926500e+02)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i32 65)
%17 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.14, i64 0, i64 0), i32* %1)
%18 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), i32 392)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.16, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
ret i32 0
}