#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 do_show(void) {
  register int i;
  printf("Release: %s\n", "1.17");
  i = 100;
  printf("No. of entrys in history memory: %d\n", i);
  i = 4;
  printf("No. of software breakpoints: %d\n", i);
  i = 1;
  printf("Undocumented op-codes %sexecuted\n", i ? "not " : "");
  i = 1;
  printf("Stackpointer turn around %schecked\n", i ? "" : "not ");
  i = 1;
  printf("Programcounter turn around %schecked\n", i ? "" : "not ");
  i = 1;
  printf("T-State counting %spossible\n", i ? "" : "im");
  i = 1;
  printf("CPU simulation %sstopped on cntl-c\n", i ? "" : "not ");
  i = 1;
  printf("CPU simulation %sstopped on cntl-\\\n", i ? "" : "not ");
}


x86 assembly (clang, -O0):
<do_show>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
lea    0xee7(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x64,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xed4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x4,-0x4(%rbp)
mov    -0x4(%rbp),%esi
lea    0xee1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xfc2(%rip),%rsi
lea    0xf05(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xed5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xedf(%rip),%rsi
lea    0xf8e(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xecf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xeb2(%rip),%rsi
lea    0xf61(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xef1(%rip),%rsi
lea    0xf34(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xe58(%rip),%rsi
lea    0xf07(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xeb2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%ecx
lea    0xe2b(%rip),%rsi
lea    0xeda(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<do_show>:
push   %rbx
lea    0xee8(%rip),%rdi
lea    0xeee(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xee5(%rip),%rdi
mov    $0x64,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xef7(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf05(%rip),%rdi
lea    0xf20(%rip),%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf17(%rip),%rdi
lea    0xfbe(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf23(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf44(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"Release: %s\0A\00"
@.str.1 = [5 x i8] c"1.17\00"
@.str.2 = [37 x i8] c"No. of entrys in history memory: %d\0A\00"
@.str.3 = [33 x i8] c"No. of software breakpoints: %d\0A\00"
@.str.4 = [34 x i8] c"Undocumented op-codes %sexecuted\0A\00"
@.str.5 = [5 x i8] c"not \00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [36 x i8] c"Stackpointer turn around %schecked\0A\00"
@.str.8 = [38 x i8] c"Programcounter turn around %schecked\0A\00"
@.str.9 = [29 x i8] c"T-State counting %spossible\0A\00"
@.str.10 = [3 x i8] c"im\00"
@.str.11 = [36 x i8] c"CPU simulation %sstopped on cntl-c\0A\00"
@.str.12 = [36 x i8] c"CPU simulation %sstopped on cntl-\\\0A\00"
define void @do_show() {
%1 = alloca i32
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
store i32 100, i32* %1
%3 = load i32, i32* %1
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 %3)
store i32 4, i32* %1
%5 = load i32, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 %5)
store i32 1, i32* %1
%7 = load i32, i32* %1
%8 = icmp ne i32 %7, 0
%9 = zext i1 %8 to i64
%10 = select i1 %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0)
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* %10)
store i32 1, i32* %1
%12 = load i32, i32* %1
%13 = icmp ne i32 %12, 0
%14 = zext i1 %13 to i64
%15 = select i1 %13, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i8* %15)
store i32 1, i32* %1
%17 = load i32, i32* %1
%18 = icmp ne i32 %17, 0
%19 = zext i1 %18 to i64
%20 = select i1 %18, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i8* %20)
store i32 1, i32* %1
%22 = load i32, i32* %1
%23 = icmp ne i32 %22, 0
%24 = zext i1 %23 to i64
%25 = select i1 %23, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0)
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* %25)
store i32 1, i32* %1
%27 = load i32, i32* %1
%28 = icmp ne i32 %27, 0
%29 = zext i1 %28 to i64
%30 = select i1 %28, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i8* %30)
store i32 1, i32* %1
%32 = load i32, i32* %1
%33 = icmp ne i32 %32, 0
%34 = zext i1 %33 to i64
%35 = select i1 %33, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8* %35)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"Release: %s\0A\00"
@.str.1 = [5 x i8] c"1.17\00"
@.str.2 = [37 x i8] c"No. of entrys in history memory: %d\0A\00"
@.str.3 = [33 x i8] c"No. of software breakpoints: %d\0A\00"
@.str.4 = [34 x i8] c"Undocumented op-codes %sexecuted\0A\00"
@.str.5 = [5 x i8] c"not \00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [36 x i8] c"Stackpointer turn around %schecked\0A\00"
@.str.8 = [38 x i8] c"Programcounter turn around %schecked\0A\00"
@.str.9 = [29 x i8] c"T-State counting %spossible\0A\00"
@.str.11 = [36 x i8] c"CPU simulation %sstopped on cntl-c\0A\00"
@.str.12 = [36 x i8] c"CPU simulation %sstopped on cntl-\\\0A\00"
define void @do_show() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0), i32 100)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0), i32 4)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
ret void
}