#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*/ do_iptables_cmd(char *);
void fw_iptables_destroy() {
  do_iptables_cmd("-t nat -D PREROUTING -j "
                  "FW_OUTPUT");
  do_iptables_cmd("-t nat -F "
                  "FW_OUTPUT");
  do_iptables_cmd("-t nat -F "
                  "FW_WHITELIST");
  do_iptables_cmd("-t nat -F "
                  "FW_ALLOW_MAC");
  do_iptables_cmd("-t nat -F "
                  "FW_GLOBAL");
  do_iptables_cmd("-t mangle -F "
                  "FW_USER_OUT");
  do_iptables_cmd("-t mangle -F "
                  "FW_USER_IN");
  do_iptables_cmd("-t mangle -D PREROUTING -j "
                  "FW_USER_OUT");
  do_iptables_cmd("-t mangle -D POSTROUTING -j "
                  "FW_USER_IN");
  do_iptables_cmd("-t mangle -D FORWARD -j FW_LIMIT_SPEED");
  do_iptables_cmd("-t mangle -F FW_LIMIT_SPEED");
  do_iptables_cmd("-t mangle -X FW_LIMIT_SPEED");
  do_iptables_cmd("-t mangle -X "
                  "FW_USER_OUT");
  do_iptables_cmd("-t mangle -X "
                  "FW_USER_IN");
  do_iptables_cmd("-t nat -X "
                  "FW_GLOBAL");
  do_iptables_cmd("-t nat -X "
                  "FW_ALLOW_MAC");
  do_iptables_cmd("-t nat -X "
                  "FW_OUTPUT");
}


x86 assembly (clang, -O0):
<fw_iptables_destroy>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xefb(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf03(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf0e(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf19(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf21(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf2e(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf3a(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf55(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf70(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf8b(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf9b(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfab(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfb8(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfc4(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfcc(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfd7(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<fw_iptables_destroy>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xefe(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf06(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf11(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf1c(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf24(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf31(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf3d(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf58(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf73(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf8e(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xf9e(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfae(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfbb(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfc7(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfcf(%rip),%rdi
call   1030 <do_iptables_cmd@plt>
lea    0xfda(%rip),%rdi
pop    %rax
jmp    1030 <do_iptables_cmd@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"-t nat -D PREROUTING -j FW_OUTPUT\00"
@.str.1 = [20 x i8] c"-t nat -F FW_OUTPUT\00"
@.str.2 = [23 x i8] c"-t nat -F FW_WHITELIST\00"
@.str.3 = [23 x i8] c"-t nat -F FW_ALLOW_MAC\00"
@.str.4 = [20 x i8] c"-t nat -F FW_GLOBAL\00"
@.str.5 = [25 x i8] c"-t mangle -F FW_USER_OUT\00"
@.str.6 = [24 x i8] c"-t mangle -F FW_USER_IN\00"
@.str.7 = [39 x i8] c"-t mangle -D PREROUTING -j FW_USER_OUT\00"
@.str.8 = [39 x i8] c"-t mangle -D POSTROUTING -j FW_USER_IN\00"
@.str.9 = [39 x i8] c"-t mangle -D FORWARD -j FW_LIMIT_SPEED\00"
@.str.10 = [28 x i8] c"-t mangle -F FW_LIMIT_SPEED\00"
@.str.11 = [28 x i8] c"-t mangle -X FW_LIMIT_SPEED\00"
@.str.12 = [25 x i8] c"-t mangle -X FW_USER_OUT\00"
@.str.13 = [24 x i8] c"-t mangle -X FW_USER_IN\00"
@.str.14 = [20 x i8] c"-t nat -X FW_GLOBAL\00"
@.str.15 = [23 x i8] c"-t nat -X FW_ALLOW_MAC\00"
@.str.16 = [20 x i8] c"-t nat -X FW_OUTPUT\00"
define void @fw_iptables_destroy() {
%1 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [34 x i8] c"-t nat -D PREROUTING -j FW_OUTPUT\00"
@.str.1 = [20 x i8] c"-t nat -F FW_OUTPUT\00"
@.str.2 = [23 x i8] c"-t nat -F FW_WHITELIST\00"
@.str.3 = [23 x i8] c"-t nat -F FW_ALLOW_MAC\00"
@.str.4 = [20 x i8] c"-t nat -F FW_GLOBAL\00"
@.str.5 = [25 x i8] c"-t mangle -F FW_USER_OUT\00"
@.str.6 = [24 x i8] c"-t mangle -F FW_USER_IN\00"
@.str.7 = [39 x i8] c"-t mangle -D PREROUTING -j FW_USER_OUT\00"
@.str.8 = [39 x i8] c"-t mangle -D POSTROUTING -j FW_USER_IN\00"
@.str.9 = [39 x i8] c"-t mangle -D FORWARD -j FW_LIMIT_SPEED\00"
@.str.10 = [28 x i8] c"-t mangle -F FW_LIMIT_SPEED\00"
@.str.11 = [28 x i8] c"-t mangle -X FW_LIMIT_SPEED\00"
@.str.12 = [25 x i8] c"-t mangle -X FW_USER_OUT\00"
@.str.13 = [24 x i8] c"-t mangle -X FW_USER_IN\00"
@.str.14 = [20 x i8] c"-t nat -X FW_GLOBAL\00"
@.str.15 = [23 x i8] c"-t nat -X FW_ALLOW_MAC\00"
@.str.16 = [20 x i8] c"-t nat -X FW_OUTPUT\00"
define void @fw_iptables_destroy() {
%1 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0))
%11 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.10, i64 0, i64 0))
%12 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.11, i64 0, i64 0))
%13 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%14 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.13, i64 0, i64 0))
%15 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0))
%16 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0))
%17 = tail call i32 @do_iptables_cmd(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.16, i64 0, i64 0))
ret void
}