#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 t_config_section {
  int dummy;
};
struct t_config_option {
  int dummy;
};
struct t_config_file {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ config_file_option_free(struct t_config_option *, int);
int /*<<< orphan*/ gui_buffer_notify_set_all();
int config_weechat_notify_delete_option_cb(const void *pointer, void *data,
                                           struct t_config_file *config_file,
                                           struct t_config_section *section,
                                           struct t_config_option *option) {
  (void)pointer;
  (void)data;
  (void)config_file;
  (void)section;
  config_file_option_free(option, 1);
  gui_buffer_notify_set_all();
  return 2;
}


x86 assembly (clang, -O0):
<config_weechat_notify_delete_option_cb>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
call   1040 <config_file_option_free@plt>
mov    $0x0,%al
call   1030 <gui_buffer_notify_set_all@plt>
mov    $0x2,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<config_weechat_notify_delete_option_cb>:
push   %rax
mov    %r8,%rdi
mov    $0x1,%esi
call   1040 <config_file_option_free@plt>
xor    %eax,%eax
call   1030 <gui_buffer_notify_set_all@plt>
mov    $0x2,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.t_config_file = type { i32 }
%struct.t_config_section = type { i32 }
%struct.t_config_option = type { i32 }
define i32 @config_weechat_notify_delete_option_cb(i8* %0, i8* %1, %struct.t_config_file* %2, %struct.t_config_section* %3, %struct.t_config_option* %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca %struct.t_config_file*
%9 = alloca %struct.t_config_section*
%10 = alloca %struct.t_config_option*
store i8* %0, i8** %6
store i8* %1, i8** %7
store %struct.t_config_file* %2, %struct.t_config_file** %8
store %struct.t_config_section* %3, %struct.t_config_section** %9
store %struct.t_config_option* %4, %struct.t_config_option** %10
%11 = load i8*, i8** %6
%12 = load i8*, i8** %7
%13 = load %struct.t_config_file*, %struct.t_config_file** %8
%14 = load %struct.t_config_section*, %struct.t_config_section** %9
%15 = load %struct.t_config_option*, %struct.t_config_option** %10
%16 = call i32 @config_file_option_free(%struct.t_config_option* %15, i32 1)
%17 = call i32 (...) @gui_buffer_notify_set_all()
ret i32 2
}

LLVM IR (-O2):
%struct.t_config_file = type { i32 }
%struct.t_config_section = type { i32 }
%struct.t_config_option = type { i32 }
define i32 @config_weechat_notify_delete_option_cb(i8* nocapture readnone %0, i8* nocapture readnone %1, %struct.t_config_file* nocapture readnone %2, %struct.t_config_section* nocapture readnone %3, %struct.t_config_option* %4) {
%6 = tail call i32 @config_file_option_free(%struct.t_config_option* %4, i32 1)
%7 = tail call i32 (...) @gui_buffer_notify_set_all()
ret i32 2
}