#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*/ draw(int, char);
int /*<<< orphan*/ printf(char *);
void rules() {
  printf("\n\n");
  draw(80, '-');
  printf("\n");
  printf("\t\tRules of the game\n");
  draw(80, '-');
  printf("\t1. Choose any number between 1 to 29 \n");
  printf("\t2. If you win you will get 5 times of money you bet\n");
  printf("\t3. If you vet on wrong number you will loose your betting amount "
         "\n\n");
  draw(80, '-');
}


x86 assembly (clang, -O0):
<rules>:
push   %rbp
mov    %rsp,%rbp
lea    0xf8a(%rip),%rdi
call   1040 <printf@plt>
mov    $0x50,%edi
mov    $0x2d,%esi
call   1030 <draw@plt>
lea    0xf70(%rip),%rdi
call   1040 <printf@plt>
lea    0xeae(%rip),%rdi
call   1040 <printf@plt>
mov    $0x50,%edi
mov    $0x2d,%esi
call   1030 <draw@plt>
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
lea    0xec4(%rip),%rdi
call   1040 <printf@plt>
lea    0xeee(%rip),%rdi
call   1040 <printf@plt>
mov    $0x50,%edi
mov    $0x2d,%esi
call   1030 <draw@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rules>:
push   %rax
lea    0xf7a(%rip),%rdi
call   1040 <puts@plt>
mov    $0x50,%edi
mov    $0x2d,%esi
call   1050 <draw@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xea3(%rip),%rdi
call   1040 <puts@plt>
mov    $0x50,%edi
mov    $0x2d,%esi
call   1050 <draw@plt>
lea    0xe9c(%rip),%rdi
call   1040 <puts@plt>
lea    0xeb7(%rip),%rdi
call   1040 <puts@plt>
lea    0xee0(%rip),%rdi
call   1040 <puts@plt>
mov    $0x50,%edi
mov    $0x2d,%esi
pop    %rax
jmp    1050 <draw@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"\0A\0A\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [21 x i8] c"\09\09Rules of the game\0A\00"
@.str.3 = [40 x i8] c"\091. Choose any number between 1 to 29 \0A\00"
@.str.4 = [54 x i8] c"\092. If you win you will get 5 times of money you bet\0A\00"
@.str.5 = [69 x i8] c"\093. If you vet on wrong number you will loose your betting amount \0A\0A\00"
define void @rules() {
%1 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @draw(i32 80, i8 signext 45)
%3 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @draw(i32 80, i8 signext 45)
%6 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.3, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
%9 = call i32 @draw(i32 80, i8 signext 45)
ret void
}

LLVM IR (-O2):
@str = [2 x i8] c"\0A\00"
@str.6 = [20 x i8] c"\09\09Rules of the game\00"
@str.7 = [39 x i8] c"\091. Choose any number between 1 to 29 \00"
@str.8 = [53 x i8] c"\092. If you win you will get 5 times of money you bet\00"
@str.9 = [68 x i8] c"\093. If you vet on wrong number you will loose your betting amount \0A\00"
define void @rules() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @draw(i32 80, i8 signext 45)
%3 = tail call i32 @putchar(i32 10)
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @draw(i32 80, i8 signext 45)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.7, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.8, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.9, i64 0, i64 0))
%9 = tail call i32 @draw(i32 80, i8 signext 45)
ret void
}