#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*/ generate_gchars(int, int);
void generate_graphics(int right) {
  for (int ch = 0x20; ch < 0x40; ch++)
    generate_gchars(right, ch);
  for (int ch = 0x60; ch < 0x80; ch++)
    generate_gchars(right, ch);
}


x86 assembly (clang, -O0):
<generate_graphics>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x20,-0x8(%rbp)
cmpl   $0x40,-0x8(%rbp)
jge    1145 <generate_graphics+0x35>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
call   1030 <generate_gchars@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1122 <generate_graphics+0x12>
movl   $0x60,-0xc(%rbp)
cmpl   $0x80,-0xc(%rbp)
jge    1172 <generate_graphics+0x62>
mov    -0x4(%rbp),%edi
mov    -0xc(%rbp),%esi
call   1030 <generate_gchars@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    114c <generate_graphics+0x3c>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<generate_graphics>:
push   %rbx
mov    %edi,%ebx
mov    $0x20,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x21,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x22,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x23,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x24,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x25,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x26,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x27,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x28,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x29,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x2a,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x2b,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x2c,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x2d,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x2e,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x2f,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x30,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x31,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x32,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x33,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x34,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x35,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x36,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x37,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x38,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x39,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x3a,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x3b,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x3c,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x3d,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x3e,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x3f,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x60,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x61,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x62,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x63,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x64,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x65,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x66,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x67,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x68,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x69,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x6a,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x6b,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x6c,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x6d,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x6e,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x6f,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x70,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x71,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x72,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x73,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x74,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x75,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x76,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x77,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x78,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x79,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x7a,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x7b,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x7c,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x7d,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x7e,%esi
call   1030 <generate_gchars@plt>
mov    %ebx,%edi
mov    $0x7f,%esi
pop    %rbx
jmp    1030 <generate_gchars@plt>

LLVM IR (-O0):
define void @generate_graphics(i32 %0) {
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %2
store i32 32, i32* %3
br label %5
5: ; preds = %12, %1
%6 = load i32, i32* %3
%7 = icmp slt i32 %6, 64
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = load i32, i32* %2
%10 = load i32, i32* %3
%11 = call i32 @generate_gchars(i32 %9, i32 %10)
br label %12
12: ; preds = %8
%13 = load i32, i32* %3
%14 = add nsw i32 %13, 1
store i32 %14, i32* %3
br label %5
15: ; preds = %5
store i32 96, i32* %4
br label %16
16: ; preds = %23, %15
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 128
br i1 %18, label %19, label %26
19: ; preds = %16
%20 = load i32, i32* %2
%21 = load i32, i32* %4
%22 = call i32 @generate_gchars(i32 %20, i32 %21)
br label %23
23: ; preds = %19
%24 = load i32, i32* %4
%25 = add nsw i32 %24, 1
store i32 %25, i32* %4
br label %16
26: ; preds = %16
ret void
}

LLVM IR (-O2):
define void @generate_graphics(i32 %0) {
%2 = tail call i32 @generate_gchars(i32 %0, i32 32)
%3 = tail call i32 @generate_gchars(i32 %0, i32 33)
%4 = tail call i32 @generate_gchars(i32 %0, i32 34)
%5 = tail call i32 @generate_gchars(i32 %0, i32 35)
%6 = tail call i32 @generate_gchars(i32 %0, i32 36)
%7 = tail call i32 @generate_gchars(i32 %0, i32 37)
%8 = tail call i32 @generate_gchars(i32 %0, i32 38)
%9 = tail call i32 @generate_gchars(i32 %0, i32 39)
%10 = tail call i32 @generate_gchars(i32 %0, i32 40)
%11 = tail call i32 @generate_gchars(i32 %0, i32 41)
%12 = tail call i32 @generate_gchars(i32 %0, i32 42)
%13 = tail call i32 @generate_gchars(i32 %0, i32 43)
%14 = tail call i32 @generate_gchars(i32 %0, i32 44)
%15 = tail call i32 @generate_gchars(i32 %0, i32 45)
%16 = tail call i32 @generate_gchars(i32 %0, i32 46)
%17 = tail call i32 @generate_gchars(i32 %0, i32 47)
%18 = tail call i32 @generate_gchars(i32 %0, i32 48)
%19 = tail call i32 @generate_gchars(i32 %0, i32 49)
%20 = tail call i32 @generate_gchars(i32 %0, i32 50)
%21 = tail call i32 @generate_gchars(i32 %0, i32 51)
%22 = tail call i32 @generate_gchars(i32 %0, i32 52)
%23 = tail call i32 @generate_gchars(i32 %0, i32 53)
%24 = tail call i32 @generate_gchars(i32 %0, i32 54)
%25 = tail call i32 @generate_gchars(i32 %0, i32 55)
%26 = tail call i32 @generate_gchars(i32 %0, i32 56)
%27 = tail call i32 @generate_gchars(i32 %0, i32 57)
%28 = tail call i32 @generate_gchars(i32 %0, i32 58)
%29 = tail call i32 @generate_gchars(i32 %0, i32 59)
%30 = tail call i32 @generate_gchars(i32 %0, i32 60)
%31 = tail call i32 @generate_gchars(i32 %0, i32 61)
%32 = tail call i32 @generate_gchars(i32 %0, i32 62)
%33 = tail call i32 @generate_gchars(i32 %0, i32 63)
%34 = tail call i32 @generate_gchars(i32 %0, i32 96)
%35 = tail call i32 @generate_gchars(i32 %0, i32 97)
%36 = tail call i32 @generate_gchars(i32 %0, i32 98)
%37 = tail call i32 @generate_gchars(i32 %0, i32 99)
%38 = tail call i32 @generate_gchars(i32 %0, i32 100)
%39 = tail call i32 @generate_gchars(i32 %0, i32 101)
%40 = tail call i32 @generate_gchars(i32 %0, i32 102)
%41 = tail call i32 @generate_gchars(i32 %0, i32 103)
%42 = tail call i32 @generate_gchars(i32 %0, i32 104)
%43 = tail call i32 @generate_gchars(i32 %0, i32 105)
%44 = tail call i32 @generate_gchars(i32 %0, i32 106)
%45 = tail call i32 @generate_gchars(i32 %0, i32 107)
%46 = tail call i32 @generate_gchars(i32 %0, i32 108)
%47 = tail call i32 @generate_gchars(i32 %0, i32 109)
%48 = tail call i32 @generate_gchars(i32 %0, i32 110)
%49 = tail call i32 @generate_gchars(i32 %0, i32 111)
%50 = tail call i32 @generate_gchars(i32 %0, i32 112)
%51 = tail call i32 @generate_gchars(i32 %0, i32 113)
%52 = tail call i32 @generate_gchars(i32 %0, i32 114)
%53 = tail call i32 @generate_gchars(i32 %0, i32 115)
%54 = tail call i32 @generate_gchars(i32 %0, i32 116)
%55 = tail call i32 @generate_gchars(i32 %0, i32 117)
%56 = tail call i32 @generate_gchars(i32 %0, i32 118)
%57 = tail call i32 @generate_gchars(i32 %0, i32 119)
%58 = tail call i32 @generate_gchars(i32 %0, i32 120)
%59 = tail call i32 @generate_gchars(i32 %0, i32 121)
%60 = tail call i32 @generate_gchars(i32 %0, i32 122)
%61 = tail call i32 @generate_gchars(i32 %0, i32 123)
%62 = tail call i32 @generate_gchars(i32 %0, i32 124)
%63 = tail call i32 @generate_gchars(i32 %0, i32 125)
%64 = tail call i32 @generate_gchars(i32 %0, i32 126)
%65 = tail call i32 @generate_gchars(i32 %0, i32 127)
ret void
}