#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ disprip_numb(int /*<<< orphan*/ *, int /*<<< orphan*/, int *,
                                int *, int, long);
int /*<<< orphan*/ end(int);
int /*<<< orphan*/ errPointer(int);
int /*<<< orphan*/ explication();
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ free(int *);
int *init_numb(int *);
int *malloc(int);
int /*<<< orphan*/ *manage_file();
int *manage_size(int *, int *);
int /*<<< orphan*/ stdin;
long totDispRip(int, int);
void wl_numb() {
  FILE *fp = NULL;
  int *v = NULL, *sol = NULL;
  int size = 0;
  long int tot = 0;
  explication();
  fflush(stdin);
  v = malloc(10 * sizeof(int));
  if (v == NULL)
    errPointer(-3);
  v = init_numb(v);
  sol = manage_size(&size, sol);
  sol = malloc(size * sizeof(int));
  if (sol == NULL)
    errPointer(-4);
  fp = manage_file();
  tot = totDispRip(size, 10);
  disprip_numb(fp, 0, v, sol, size, tot);
  end(size);
  fclose(fp);
  free(v);
  free(sol);
}


x86 assembly (clang, -O0):
<wl_numb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movq   $0x0,-0x8(%rbp)
movq   $0x0,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movq   $0x0,-0x28(%rbp)
mov    $0x0,%al
call   1060 <explication@plt>
mov    0x2deb(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    $0x28,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1227 <wl_numb+0x67>
mov    $0xfffffffd,%edi
call   10e0 <errPointer@plt>
mov    -0x10(%rbp),%rdi
call   1050 <init_numb@plt>
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rsi
lea    -0x1c(%rbp),%rdi
call   1080 <manage_size@plt>
mov    %rax,-0x18(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    126d <wl_numb+0xad>
mov    $0xfffffffc,%edi
call   10e0 <errPointer@plt>
mov    $0x0,%al
call   1040 <manage_file@plt>
mov    %rax,-0x8(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0xa,%esi
call   10a0 <totDispRip@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x1c(%rbp),%r8d
mov    -0x28(%rbp),%r9
xor    %esi,%esi
call   1090 <disprip_numb@plt>
mov    -0x1c(%rbp),%edi
call   10b0 <end@plt>
mov    -0x8(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<wl_numb>:
push   %r15
push   %r14
push   %rbx
sub    $0x10,%rsp
movl   $0x0,0xc(%rsp)
xor    %eax,%eax
call   1060 <explication@plt>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    $0x28,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbx
test   %rax,%rax
jne    1202 <wl_numb+0x42>
mov    $0xfffffffd,%edi
call   10e0 <errPointer@plt>
mov    %rbx,%rdi
call   1050 <init_numb@plt>
mov    %rax,%r14
lea    0xc(%rsp),%rdi
xor    %esi,%esi
call   1080 <manage_size@plt>
mov    0xc(%rsp),%edi
shl    $0x2,%edi
call   10c0 <malloc@plt>
mov    %rax,%r15
test   %rax,%rax
jne    1237 <wl_numb+0x77>
mov    $0xfffffffc,%edi
call   10e0 <errPointer@plt>
xor    %eax,%eax
call   1040 <manage_file@plt>
mov    %rax,%rbx
mov    0xc(%rsp),%edi
mov    $0xa,%esi
call   10a0 <totDispRip@plt>
mov    0xc(%rsp),%r8d
mov    %rbx,%rdi
xor    %esi,%esi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %rax,%r9
call   1090 <disprip_numb@plt>
mov    0xc(%rsp),%edi
call   10b0 <end@plt>
mov    %rbx,%rdi
call   1070 <fclose@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %r15,%rdi
call   1030 <free@plt>
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@stdin = global i32 0
define void @wl_numb() {
%1 = alloca i32*
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca i32
%5 = alloca i64
store i32* null, i32** %1
store i32* null, i32** %2
store i32* null, i32** %3
store i32 0, i32* %4
store i64 0, i64* %5
%6 = call i32 (...) @explication()
%7 = load i32, i32* @stdin
%8 = call i32 @fflush(i32 %7)
%9 = call i32* @malloc(i32 40)
store i32* %9, i32** %2
%10 = load i32*, i32** %2
%11 = icmp eq i32* %10, null
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @errPointer(i32 -3)
br label %14
14: ; preds = %12, %0
%15 = load i32*, i32** %2
%16 = call i32* @init_numb(i32* %15)
store i32* %16, i32** %2
%17 = load i32*, i32** %3
%18 = call i32* @manage_size(i32* %4, i32* %17)
store i32* %18, i32** %3
%19 = load i32, i32* %4
%20 = sext i32 %19 to i64
%21 = mul i64 %20, 4
%22 = trunc i64 %21 to i32
%23 = call i32* @malloc(i32 %22)
store i32* %23, i32** %3
%24 = load i32*, i32** %3
%25 = icmp eq i32* %24, null
br i1 %25, label %26, label %28
26: ; preds = %14
%27 = call i32 @errPointer(i32 -4)
br label %28
28: ; preds = %26, %14
%29 = call i32* (...) @manage_file()
store i32* %29, i32** %1
%30 = load i32, i32* %4
%31 = call i64 @totDispRip(i32 %30, i32 10)
store i64 %31, i64* %5
%32 = load i32*, i32** %1
%33 = load i32*, i32** %2
%34 = load i32*, i32** %3
%35 = load i32, i32* %4
%36 = load i64, i64* %5
%37 = call i32 @disprip_numb(i32* %32, i32 0, i32* %33, i32* %34, i32 %35, i64 %36)
%38 = load i32, i32* %4
%39 = call i32 @end(i32 %38)
%40 = load i32*, i32** %1
%41 = call i32 @fclose(i32* %40)
%42 = load i32*, i32** %2
%43 = call i32 @free(i32* %42)
%44 = load i32*, i32** %3
%45 = call i32 @free(i32* %44)
ret void
}

LLVM IR (-O2):
@stdin = global i32 0
define void @wl_numb() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%3 = tail call i32 (...) @explication()
%4 = load i32, i32* @stdin
%5 = tail call i32 @fflush(i32 %4)
%6 = tail call i32* @malloc(i32 40)
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %10
8: ; preds = %0
%9 = tail call i32 @errPointer(i32 -3)
br label %10
10: ; preds = %8, %0
%11 = tail call i32* @init_numb(i32* %6)
%12 = call i32* @manage_size(i32* %1, i32* null)
%13 = load i32, i32* %1
%14 = shl i32 %13, 2
%15 = call i32* @malloc(i32 %14)
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %19
17: ; preds = %10
%18 = call i32 @errPointer(i32 -4)
br label %19
19: ; preds = %17, %10
%20 = call i32* (...) @manage_file()
%21 = load i32, i32* %1
%22 = call i64 @totDispRip(i32 %21, i32 10)
%23 = load i32, i32* %1
%24 = call i32 @disprip_numb(i32* %20, i32 0, i32* %11, i32* %15, i32 %23, i64 %22)
%25 = load i32, i32* %1
%26 = call i32 @end(i32 %25)
%27 = call i32 @fclose(i32* %20)
%28 = call i32 @free(i32* %11)
%29 = call i32 @free(i32* %15)
ret void
}