#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 */
struct Info_list {
  int dummy;
};

/* Variables and functions */
long atol(char *);
int /*<<< orphan*/ delete_id_in_list(struct Info_list *, long);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ stdin;
char *trimmed(char *);
int /*<<< orphan*/ write_list_to_file(struct Info_list *);
void delete_information(struct Info_list *list_head) {
  char condition[100];
  char *trimmed_condition = NULL;
  long int id;
  printf("Enter ID which you want delete. \n>>>> ");
  fgets(condition, 100, stdin);
  trimmed_condition = trimmed(condition);
  id = atol(trimmed_condition);
  delete_id_in_list(list_head, id);
  write_list_to_file(list_head);
}


x86 assembly (clang, -O0):
<delete_information>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x8(%rbp)
movq   $0x0,-0x78(%rbp)
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
lea    -0x70(%rbp),%rdi
mov    0x2e5a(%rip),%rax
mov    (%rax),%edx
mov    $0x64,%esi
call   1050 <fgets@plt>
lea    -0x70(%rbp),%rdi
call   1040 <trimmed@plt>
mov    %rax,-0x78(%rbp)
mov    -0x78(%rbp),%rdi
call   1080 <atol@plt>
mov    %rax,-0x80(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x80(%rbp),%rsi
call   1060 <delete_id_in_list@plt>
mov    -0x8(%rbp),%rdi
call   1070 <write_list_to_file@plt>
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<delete_information>:
push   %r14
push   %rbx
sub    $0x68,%rsp
mov    %rdi,%rbx
lea    0xe8f(%rip),%rdi
call   1030 <printf@plt>
mov    0x2e6b(%rip),%rax
mov    (%rax),%edx
mov    %rsp,%r14
mov    %r14,%rdi
mov    $0x64,%esi
call   1050 <fgets@plt>
mov    %r14,%rdi
call   1040 <trimmed@plt>
mov    %rax,%rdi
call   1080 <atol@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
call   1060 <delete_id_in_list@plt>
mov    %rbx,%rdi
call   1070 <write_list_to_file@plt>
add    $0x68,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.Info_list = type { i32 }
@.str = [39 x i8] c"Enter ID which you want delete. \0A>>>> \00"
@stdin = global i32 0
define void @delete_information(%struct.Info_list* %0) {
%2 = alloca %struct.Info_list*
%3 = alloca [100 x i8]
%4 = alloca i8*
%5 = alloca i64
store %struct.Info_list* %0, %struct.Info_list** %2
store i8* null, i8** %4
%6 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%8 = load i32, i32* @stdin
%9 = call i32 @fgets(i8* %7, i32 100, i32 %8)
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%11 = call i8* @trimmed(i8* %10)
store i8* %11, i8** %4
%12 = load i8*, i8** %4
%13 = call i64 @atol(i8* %12)
store i64 %13, i64* %5
%14 = load %struct.Info_list*, %struct.Info_list** %2
%15 = load i64, i64* %5
%16 = call i32 @delete_id_in_list(%struct.Info_list* %14, i64 %15)
%17 = load %struct.Info_list*, %struct.Info_list** %2
%18 = call i32 @write_list_to_file(%struct.Info_list* %17)
ret void
}

LLVM IR (-O2):
%struct.Info_list = type { i32 }
@.str = [39 x i8] c"Enter ID which you want delete. \0A>>>> \00"
@stdin = global i32 0
define void @delete_information(%struct.Info_list* %0) {
%2 = alloca [100 x i8]
%3 = getelementptr inbounds [100 x i8], [100 x i8]* %2, i64 0, i64 0
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0))
%5 = load i32, i32* @stdin
%6 = call i32 @fgets(i8* %3, i32 100, i32 %5)
%7 = call i8* @trimmed(i8* %3)
%8 = call i64 @atol(i8* %7)
%9 = call i32 @delete_id_in_list(%struct.Info_list* %0, i64 %8)
%10 = call i32 @write_list_to_file(%struct.Info_list* %0)
ret void
}