#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*/ out_print(int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sqrt_(int, int);
int main(int argc, char *argv[]) {
  int z = 50;
  printf("\n\t\t-*- Sav' Series -*-\n\n");
  out_print(z, sqrt_(z, 2));
  printf("\n\t\t -*- Man' Series -*-\n\n");
  out_print(z, sqrt_(z, 1));
  printf("\n\t\t-*- Wolf' Series -*-\n\n");
  out_print(z, sqrt_(z, 3));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x32,-0x14(%rbp)
lea    0xeac(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x2,%esi
call   1030 <sqrt_@plt>
mov    -0x20(%rbp),%edi
mov    %eax,%esi
call   1050 <out_print@plt>
lea    0xe9c(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x1,%esi
call   1030 <sqrt_@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1050 <out_print@plt>
lea    0xe8d(%rip),%rdi
call   1040 <printf@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x3,%esi
call   1030 <sqrt_@plt>
mov    -0x18(%rbp),%edi
mov    %eax,%esi
call   1050 <out_print@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
mov    $0x32,%edi
mov    $0x2,%esi
call   1030 <sqrt_@plt>
mov    $0x32,%edi
mov    %eax,%esi
call   1050 <out_print@plt>
lea    0xeb9(%rip),%rdi
call   1040 <puts@plt>
mov    $0x32,%edi
mov    $0x1,%esi
call   1030 <sqrt_@plt>
mov    $0x32,%edi
mov    %eax,%esi
call   1050 <out_print@plt>
lea    0xeab(%rip),%rdi
call   1040 <puts@plt>
mov    $0x32,%edi
mov    $0x3,%esi
call   1030 <sqrt_@plt>
mov    $0x32,%edi
mov    %eax,%esi
call   1050 <out_print@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [25 x i8] c"\0A\09\09-*- Sav' Series -*-\0A\0A\00"
@.str.1 = [26 x i8] c"\0A\09\09 -*- Man' Series -*-\0A\0A\00"
@.str.2 = [26 x i8] c"\0A\09\09-*- Wolf' Series -*-\0A\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 50, i32* %6
%7 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %6
%9 = load i32, i32* %6
%10 = call i32 @sqrt_(i32 %9, i32 2)
%11 = call i32 @out_print(i32 %8, i32 %10)
%12 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0))
%13 = load i32, i32* %6
%14 = load i32, i32* %6
%15 = call i32 @sqrt_(i32 %14, i32 1)
%16 = call i32 @out_print(i32 %13, i32 %15)
%17 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0))
%18 = load i32, i32* %6
%19 = load i32, i32* %6
%20 = call i32 @sqrt_(i32 %19, i32 3)
%21 = call i32 @out_print(i32 %18, i32 %20)
ret i32 0
}

LLVM IR (-O2):
@str = [24 x i8] c"\0A\09\09-*- Sav' Series -*-\0A\00"
@str.3 = [25 x i8] c"\0A\09\09 -*- Man' Series -*-\0A\00"
@str.4 = [25 x i8] c"\0A\09\09-*- Wolf' Series -*-\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @sqrt_(i32 50, i32 2)
%5 = tail call i32 @out_print(i32 50, i32 %4)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.3, i64 0, i64 0))
%7 = tail call i32 @sqrt_(i32 50, i32 1)
%8 = tail call i32 @out_print(i32 50, i32 %7)
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.4, i64 0, i64 0))
%10 = tail call i32 @sqrt_(i32 50, i32 3)
%11 = tail call i32 @out_print(i32 50, i32 %10)
ret i32 0
}