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

/* Variables and functions */
int /*<<< orphan*/ LOG_DEBUG;
int /*<<< orphan*/ _debug(char *, int, int /*<<< orphan*/, char *, char *,
                          char *, char *, ...);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ iptables_do_command(char *);
int /*<<< orphan*/ pclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *popen(char *, char *);
int /*<<< orphan*/ safe_asprintf(char **, char *, char *, char *, ...);
int sscanf(char *, char *, char *);
scalar_t__ strstr(char *, char *);
int iptables_fw_destroy_mention(char *table, char *chain, char *mention) {
  FILE *p = NULL;
  char *command = NULL;
  char *command2 = NULL;
  char line[4096];
  char rulenum[10];
  int deleted = 0;
  _debug("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/heads/master/src/"
         "fw_iptables.c",
         468, LOG_DEBUG, "Attempting to destroy all mention of %s from %s.%s",
         mention, table, chain);
  safe_asprintf(&command, "iptables -t %s -L %s -n --line-numbers -v", table,
                chain);
  if ((p = popen(command, "r"))) {
    while (!feof(p) && fgetc(p) != '\n')
      ;
    while (!feof(p) && fgetc(p) != '\n')
      ;
    while (fgets(line, sizeof(line), p)) {
      if (strstr(line, mention)) {
        if (sscanf(line, "%9[0-9]", rulenum) == 1) {
          _debug("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                 "outputs/2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/"
                 "heads/master/src/fw_iptables.c",
                 483, LOG_DEBUG,
                 "Deleting rule %s from %s.%s because it mentions %s", rulenum,
                 table, chain, mention);
          safe_asprintf(&command2, "-t %s -D %s %s", table, chain, rulenum);
          iptables_do_command(command2);
          free(command2);
          deleted = 1;
          break;
        }
      }
    }
    pclose(p);
  }
  free(command);
  if (deleted) {
    iptables_fw_destroy_mention(table, chain, mention);
  }
  return (deleted);
}


x86 assembly (clang, -O0):
<iptables_fw_destroy_mention>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1060,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
movq   $0x0,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
movl   $0x0,-0x1040(%rbp)
mov    0x2de0(%rip),%rax
mov    (%rax),%edx
mov    -0x18(%rbp),%r8
mov    -0x8(%rbp),%r9
mov    -0x10(%rbp),%rax
lea    0xdeb(%rip),%rdi
mov    $0x1d4,%esi
lea    0xe70(%rip),%rcx
mov    %rax,(%rsp)
mov    $0x0,%al
call   1090 <_debug@plt>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x28(%rbp),%rdi
lea    0xe85(%rip),%rsi
mov    $0x0,%al
call   10d0 <safe_asprintf@plt>
mov    -0x28(%rbp),%rdi
lea    0xe9d(%rip),%rsi
call   10c0 <popen@plt>
mov    %rax,-0x20(%rbp)
cmp    $0x0,%rax
je     13fb <iptables_fw_destroy_mention+0x23b>
jmp    1269 <iptables_fw_destroy_mention+0xa9>
mov    -0x20(%rbp),%rdi
call   1080 <feof@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1041(%rbp)
jne    129d <iptables_fw_destroy_mention+0xdd>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
movsbl %al,%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x1041(%rbp)
mov    -0x1041(%rbp),%al
test   $0x1,%al
jne    12b0 <iptables_fw_destroy_mention+0xf0>
jmp    12b5 <iptables_fw_destroy_mention+0xf5>
jmp    1269 <iptables_fw_destroy_mention+0xa9>
jmp    12ba <iptables_fw_destroy_mention+0xfa>
mov    -0x20(%rbp),%rdi
call   1080 <feof@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x1042(%rbp)
jne    12ee <iptables_fw_destroy_mention+0x12e>
mov    -0x20(%rbp),%rdi
call   1060 <fgetc@plt>
movsbl %al,%eax
cmp    $0xa,%eax
setne  %al
mov    %al,-0x1042(%rbp)
mov    -0x1042(%rbp),%al
test   $0x1,%al
jne    1301 <iptables_fw_destroy_mention+0x141>
jmp    1306 <iptables_fw_destroy_mention+0x146>
jmp    12ba <iptables_fw_destroy_mention+0xfa>
jmp    130b <iptables_fw_destroy_mention+0x14b>
lea    -0x1030(%rbp),%rdi
mov    -0x20(%rbp),%rdx
mov    $0x1000,%esi
call   1070 <fgets@plt>
cmp    $0x0,%rax
je     13f2 <iptables_fw_destroy_mention+0x232>
lea    -0x1030(%rbp),%rdi
mov    -0x18(%rbp),%rsi
call   10e0 <strstr@plt>
cmp    $0x0,%rax
je     13ed <iptables_fw_destroy_mention+0x22d>
lea    -0x1030(%rbp),%rdi
lea    -0x103a(%rbp),%rdx
lea    0xd97(%rip),%rsi
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jne    13e8 <iptables_fw_destroy_mention+0x228>
mov    0x2c72(%rip),%rax
mov    (%rax),%edx
lea    -0x103a(%rbp),%r8
mov    -0x8(%rbp),%r9
mov    -0x10(%rbp),%r10
mov    -0x18(%rbp),%rax
lea    0xc76(%rip),%rdi
mov    $0x1e3,%esi
lea    0xd62(%rip),%rcx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
mov    $0x0,%al
call   1090 <_debug@plt>
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
lea    -0x103a(%rbp),%r8
lea    -0x30(%rbp),%rdi
lea    0xd6b(%rip),%rsi
mov    $0x0,%al
call   10d0 <safe_asprintf@plt>
mov    -0x30(%rbp),%rdi
call   10b0 <iptables_do_command@plt>
mov    -0x30(%rbp),%rdi
call   1030 <free@plt>
movl   $0x1,-0x1040(%rbp)
jmp    13f2 <iptables_fw_destroy_mention+0x232>
jmp    13ed <iptables_fw_destroy_mention+0x22d>
jmp    130b <iptables_fw_destroy_mention+0x14b>
mov    -0x20(%rbp),%rdi
call   1050 <pclose@plt>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x1040(%rbp)
je     1422 <iptables_fw_destroy_mention+0x262>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1040 <iptables_fw_destroy_mention@plt>
mov    -0x1040(%rbp),%eax
add    $0x1060,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<iptables_fw_destroy_mention>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1038,%rsp
mov    %rdx,%r12
mov    %rsi,%rbp
mov    %rdi,%r15
movq   $0x0,0x8(%rsp)
movq   $0x0,0x10(%rsp)
mov    0x2ded(%rip),%rax
mov    (%rax),%edx
sub    $0x8,%rsp
lea    0xe00(%rip),%rdi
lea    0xe8a(%rip),%rcx
xor    %r14d,%r14d
mov    $0x1d4,%esi
mov    %r12,%r8
mov    %r15,%r9
xor    %eax,%eax
push   %rbp
call   1090 <_debug@plt>
add    $0x10,%rsp
lea    0xe9c(%rip),%rsi
lea    0x8(%rsp),%rdi
mov    %r15,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   10d0 <safe_asprintf@plt>
mov    0x8(%rsp),%rdi
lea    0xea8(%rip),%rsi
call   10c0 <popen@plt>
test   %rax,%rax
je     13b5 <iptables_fw_destroy_mention+0x1f5>
mov    %rax,%rbx
nopw   0x0(%rax,%rax,1)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %eax,%eax
jne    1278 <iptables_fw_destroy_mention+0xb8>
mov    %rbx,%rdi
call   1060 <fgetc@plt>
cmp    $0xa,%al
jne    1260 <iptables_fw_destroy_mention+0xa0>
mov    %rbp,0x18(%rsp)
nopl   (%rax)
mov    %rbx,%rdi
call   1080 <feof@plt>
test   %eax,%eax
jne    1298 <iptables_fw_destroy_mention+0xd8>
mov    %rbx,%rdi
call   1060 <fgetc@plt>
cmp    $0xa,%al
jne    1280 <iptables_fw_destroy_mention+0xc0>
lea    0x30(%rsp),%rdi
mov    $0x1000,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     139e <iptables_fw_destroy_mention+0x1de>
lea    0x30(%rsp),%rbp
lea    0xe31(%rip),%r13
lea    0x26(%rsp),%r14
jmp    12e9 <iptables_fw_destroy_mention+0x129>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x1000,%esi
mov    %rbx,%rdx
call   1070 <fgets@plt>
test   %rax,%rax
je     139e <iptables_fw_destroy_mention+0x1de>
mov    %rbp,%rdi
mov    %r12,%rsi
call   10e0 <strstr@plt>
test   %rax,%rax
je     12d0 <iptables_fw_destroy_mention+0x110>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
call   10a0 <sscanf@plt>
cmp    $0x1,%eax
jne    12d0 <iptables_fw_destroy_mention+0x110>
mov    0x2ccd(%rip),%rax
mov    (%rax),%edx
lea    0xce4(%rip),%rdi
lea    0xdd5(%rip),%rcx
lea    0x26(%rsp),%r14
mov    $0x1e3,%esi
mov    %r14,%r8
mov    %r15,%r9
xor    %eax,%eax
push   %r12
mov    0x20(%rsp),%rbp
push   %rbp
call   1090 <_debug@plt>
add    $0x10,%rsp
lea    0xdde(%rip),%rsi
lea    0x10(%rsp),%rdi
mov    %r15,%rdx
mov    %rbp,%rcx
mov    %r14,%r8
xor    %eax,%eax
call   10d0 <safe_asprintf@plt>
mov    0x10(%rsp),%rdi
call   10b0 <iptables_do_command@plt>
mov    0x10(%rsp),%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1050 <pclose@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
mov    %r12,%rdx
call   1040 <iptables_fw_destroy_mention@plt>
mov    $0x1,%r14d
jmp    13bf <iptables_fw_destroy_mention+0x1ff>
mov    %rbx,%rdi
call   1050 <pclose@plt>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
xor    %r14d,%r14d
jmp    13bf <iptables_fw_destroy_mention+0x1ff>
mov    0x8(%rsp),%rdi
call   1030 <free@plt>
mov    %r14d,%eax
add    $0x1038,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/heads/master/src/fw_iptables.c\00"
@LOG_DEBUG = global i32 0
@.str.1 = [51 x i8] c"Attempting to destroy all mention of %s from %s.%s\00"
@.str.2 = [42 x i8] c"iptables -t %s -L %s -n --line-numbers -v\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [8 x i8] c"%9[0-9]\00"
@.str.5 = [51 x i8] c"Deleting rule %s from %s.%s because it mentions %s\00"
@.str.6 = [15 x i8] c"-t %s -D %s %s\00"
define i32 @iptables_fw_destroy_mention(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca [4096 x i8]
%11 = alloca [10 x i8]
%12 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
store i32* null, i32** %7
store i8* null, i8** %8
store i8* null, i8** %9
store i32 0, i32* %12
%13 = load i32, i32* @LOG_DEBUG
%14 = load i8*, i8** %6
%15 = load i8*, i8** %4
%16 = load i8*, i8** %5
%17 = call i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...) @_debug(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str, i64 0, i64 0), i32 468, i32 %13, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i8* %14, i8* %15, i8* %16)
%18 = load i8*, i8** %4
%19 = load i8*, i8** %5
%20 = call i32 (i8**, i8*, i8*, i8*, ...) @safe_asprintf(i8** %8, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* %18, i8* %19)
%21 = load i8*, i8** %8
%22 = call i32* @popen(i8* %21, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %22, i32** %7
%23 = icmp ne i32* %22, null
br i1 %23, label %24, label %86
24: ; preds = %3
br label %25
25: ; preds = %36, %24
%26 = load i32*, i32** %7
%27 = call i32 @feof(i32* %26)
%28 = icmp ne i32 %27, 0
br i1 %28, label %34, label %29
29: ; preds = %25
%30 = load i32*, i32** %7
%31 = call signext i8 @fgetc(i32* %30)
%32 = sext i8 %31 to i32
%33 = icmp ne i32 %32, 10
br label %34
34: ; preds = %29, %25
%35 = phi i1 [ false, %25 ], [ %33, %29 ]
br i1 %35, label %36, label %37
36: ; preds = %34
br label %25
37: ; preds = %34
br label %38
38: ; preds = %49, %37
%39 = load i32*, i32** %7
%40 = call i32 @feof(i32* %39)
%41 = icmp ne i32 %40, 0
br i1 %41, label %47, label %42
42: ; preds = %38
%43 = load i32*, i32** %7
%44 = call signext i8 @fgetc(i32* %43)
%45 = sext i8 %44 to i32
%46 = icmp ne i32 %45, 10
br label %47
47: ; preds = %42, %38
%48 = phi i1 [ false, %38 ], [ %46, %42 ]
br i1 %48, label %49, label %50
49: ; preds = %47
br label %38
50: ; preds = %47
br label %51
51: ; preds = %82, %50
%52 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%53 = load i32*, i32** %7
%54 = call i64 @fgets(i8* %52, i32 4096, i32* %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %83
56: ; preds = %51
%57 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%58 = load i8*, i8** %6
%59 = call i64 @strstr(i8* %57, i8* %58)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %82
61: ; preds = %56
%62 = getelementptr inbounds [4096 x i8], [4096 x i8]* %10, i64 0, i64 0
%63 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%64 = call i32 @sscanf(i8* %62, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %63)
%65 = icmp eq i32 %64, 1
br i1 %65, label %66, label %81
66: ; preds = %61
%67 = load i32, i32* @LOG_DEBUG
%68 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%69 = load i8*, i8** %4
%70 = load i8*, i8** %5
%71 = load i8*, i8** %6
%72 = call i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...) @_debug(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str, i64 0, i64 0), i32 483, i32 %67, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i8* %68, i8* %69, i8* %70, i8* %71)
%73 = load i8*, i8** %4
%74 = load i8*, i8** %5
%75 = getelementptr inbounds [10 x i8], [10 x i8]* %11, i64 0, i64 0
%76 = call i32 (i8**, i8*, i8*, i8*, ...) @safe_asprintf(i8** %9, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %73, i8* %74, i8* %75)
%77 = load i8*, i8** %9
%78 = call i32 @iptables_do_command(i8* %77)
%79 = load i8*, i8** %9
%80 = call i32 @free(i8* %79)
store i32 1, i32* %12
br label %83
81: ; preds = %61
br label %82
82: ; preds = %81, %56
br label %51
83: ; preds = %66, %51
%84 = load i32*, i32** %7
%85 = call i32 @pclose(i32* %84)
br label %86
86: ; preds = %83, %3
%87 = load i8*, i8** %8
%88 = call i32 @free(i8* %87)
%89 = load i32, i32* %12
%90 = icmp ne i32 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %86
%92 = load i8*, i8** %4
%93 = load i8*, i8** %5
%94 = load i8*, i8** %6
%95 = call i32 @iptables_fw_destroy_mention(i8* %92, i8* %93, i8* %94)
br label %96
96: ; preds = %91, %86
%97 = load i32, i32* %12
ret i32 %97
}

LLVM IR (-O2):
@.str = [145 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/sxpert/wifidog-ffw/refs/heads/master/src/fw_iptables.c\00"
@LOG_DEBUG = global i32 0
@.str.1 = [51 x i8] c"Attempting to destroy all mention of %s from %s.%s\00"
@.str.2 = [42 x i8] c"iptables -t %s -L %s -n --line-numbers -v\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [8 x i8] c"%9[0-9]\00"
@.str.5 = [51 x i8] c"Deleting rule %s from %s.%s because it mentions %s\00"
@.str.6 = [15 x i8] c"-t %s -D %s %s\00"
define i32 @iptables_fw_destroy_mention(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca [4096 x i8]
%7 = alloca [10 x i8]
%8 = bitcast i8** %4 to i8*
store i8* null, i8** %4
%9 = bitcast i8** %5 to i8*
store i8* null, i8** %5
%10 = getelementptr inbounds [4096 x i8], [4096 x i8]* %6, i64 0, i64 0
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %7, i64 0, i64 0
%12 = load i32, i32* @LOG_DEBUG
%13 = tail call i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...) @_debug(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str, i64 0, i64 0), i32 468, i32 %12, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.1, i64 0, i64 0), i8* %2, i8* %0, i8* %1)
%14 = call i32 (i8**, i8*, i8*, i8*, ...) @safe_asprintf(i8** %4, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), i8* %0, i8* %1)
%15 = load i8*, i8** %4
%16 = call i32* @popen(i8* %15, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp eq i32* %16, null
br i1 %17, label %18, label %21
18: ; preds = %3
%19 = load i8*, i8** %4
%20 = call i32 @free(i8* %19)
br label %62
21: ; preds = %3, %24
%22 = call i32 @feof(i32* %16)
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %27
24: ; preds = %21
%25 = call signext i8 @fgetc(i32* %16)
%26 = icmp eq i8 %25, 10
br i1 %26, label %27, label %21
27: ; preds = %21, %24
br label %28
28: ; preds = %27, %31
%29 = call i32 @feof(i32* %16)
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %34
31: ; preds = %28
%32 = call signext i8 @fgetc(i32* %16)
%33 = icmp eq i8 %32, 10
br i1 %33, label %34, label %28
34: ; preds = %28, %31
%35 = call i64 @fgets(i8* %10, i32 4096, i32* %16)
%36 = icmp eq i64 %35, 0
br i1 %36, label %58, label %37
37: ; preds = %34, %43
%38 = call i64 @strstr(i8* %10, i8* %2)
%39 = icmp eq i64 %38, 0
br i1 %39, label %43, label %40
40: ; preds = %37
%41 = call i32 @sscanf(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %11)
%42 = icmp eq i32 %41, 1
br i1 %42, label %46, label %43
43: ; preds = %40, %37
%44 = call i64 @fgets(i8* %10, i32 4096, i32* %16)
%45 = icmp eq i64 %44, 0
br i1 %45, label %58, label %37
46: ; preds = %40
%47 = load i32, i32* @LOG_DEBUG
%48 = call i32 (i8*, i32, i32, i8*, i8*, i8*, i8*, ...) @_debug(i8* getelementptr inbounds ([145 x i8], [145 x i8]* @.str, i64 0, i64 0), i32 483, i32 %47, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.5, i64 0, i64 0), i8* %11, i8* %0, i8* %1, i8* %2)
%49 = call i32 (i8**, i8*, i8*, i8*, ...) @safe_asprintf(i8** %5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0), i8* %0, i8* %1, i8* %11)
%50 = load i8*, i8** %5
%51 = call i32 @iptables_do_command(i8* %50)
%52 = load i8*, i8** %5
%53 = call i32 @free(i8* %52)
%54 = call i32 @pclose(i32* %16)
%55 = load i8*, i8** %4
%56 = call i32 @free(i8* %55)
%57 = call i32 @iptables_fw_destroy_mention(i8* %0, i8* %1, i8* %2)
br label %62
58: ; preds = %43, %34
%59 = call i32 @pclose(i32* %16)
%60 = load i8*, i8** %4
%61 = call i32 @free(i8* %60)
br label %62
62: ; preds = %58, %18, %46
%63 = phi i32 [ 0, %18 ], [ 1, %46 ], [ 0, %58 ]
ret i32 %63
}