#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*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *, char *,
                           char *);
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ set_param(char *, int, char *);
int /*<<< orphan*/ show_help();
scalar_t__ strncmp(char *, char *, int);
int /*<<< orphan*/ system(char *);
main(int argc, char **argv) {
  FILE *fd;
  int pval;
  if (argc < 2) {
    show_help();
    exit(1);
  }
  if (strncmp(argv[1], "orientation", 11) == 0) {
    if (argc < 3) {
      show_help();
      exit(1);
    }
    pval = -1;
    if (strncmp(argv[2], "0", 1) == 0)
      pval = 0;
    if (strncmp(argv[2], "1", 1) == 0)
      pval = 1;
    if (strncmp(argv[2], "2", 1) == 0)
      pval = 2;
    if (strncmp(argv[2], "3", 1) == 0)
      pval = 3;
    if (pval > -1)
      set_param("/sys/module/"
                "fujitsu_usb_touchscreen"
                "/parameters"
                "/orientation",
                pval, "");
  }
  if (strncmp(argv[1], "calibrate", 9) == 0) {
    if (argc < 3) {
      show_help();
      exit(1);
    }
    pval = -1;
    if (strncmp(argv[2], "0", 1) == 0)
      pval = 0;
    if (strncmp(argv[2], "1", 1) == 0)
      pval = 1;
    if (pval > -1)
      set_param("/sys/module/"
                "fujitsu_usb_touchscreen"
                "/parameters"
                "/calibrate",
                pval, "");
  }
  if (strncmp(argv[1], "resetcalibrate", 14) == 0) {
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/calib_minx",
              0, "");
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/calib_miny",
              0, "");
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/calib_maxx",
              0, "");
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/calib_maxy",
              0, "");
  }
  if (strncmp(argv[1], "writecalibrate", 14) == 0) {
    if (argc < 6) {
      show_help();
      exit(1);
    }
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/touch_minx",
              -2, argv[2]);
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/touch_miny",
              -2, argv[3]);
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/touch_maxx",
              -2, argv[4]);
    set_param("/sys/module/"
              "fujitsu_usb_touchscreen"
              "/parameters"
              "/touch_maxy",
              -2, argv[5]);
    fd = fopen("/etc/hal/fdi/policy/"
               "fujitsu_usb_touchscreen"
               ".fdi",
               "w");
    if (fd) {
      fprintf(fd,
              "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<deviceinfo "
              "version=\"0.3.5\">\n    <device>\n        <match "
              "key=\"info.product\" contains=\"Fujitsu Component USB Touch "
              "Panel\">\n            <merge key=\"input.x11_driver\" "
              "type=\"string\">evdev</merge>\n            <merge "
              "key=\"input.x11_options.ReportingMode\" "
              "type=\"string\">Raw</merge>\n            <merge "
              "key=\"input.x11_options.SendCoreEvents\" "
              "type=\"string\">True</merge>\n\n            <merge "
              "key=\"input.x11_options.MinX\" type=\"string\">%s</merge>\n     "
              "       <merge key=\"input.x11_options.MinY\" "
              "type=\"string\">%s</merge>\n            <merge "
              "key=\"input.x11_options.MaxX\" type=\"string\">%s</merge>\n     "
              "       <merge key=\"input.x11_options.MaxY\" "
              "type=\"string\">%s</merge>\n\n            <merge "
              "key=\"input.x11_options.emulate3buttons\" "
              "type=\"string\">false</merge>\n            <merge "
              "key=\"input.x11_options.MoveLimit\" type=\"string\">4</merge>\n "
              "           <merge key=\"input.x11_options.TapTimer\" "
              "type=\"string\">10</merge>\n        </match>\n    "
              "</device>\n</deviceinfo>",
              argv[2], argv[3], argv[4], argv[5]);
      fclose(fd);
    } else {
      printf("%s::error::cannot create file [%s]\n", "fujitsu_usb_touchscreen",
             "/etc/hal/fdi/policy/"
             "fujitsu_usb_touchscreen"
             ".fdi");
    }
    fd = fopen("/etc/modprobe.d/"
               "fujitsu_usb_touchscreen"
               ".conf",
               "w");
    if (fd) {
      fprintf(fd,
              "options fujitsu_usb_touchscreen touch_minx=%s touch_miny=%s "
              "touch_maxx=%s touch_maxy=%s\n",
              argv[2], argv[3], argv[4], argv[5]);
      fclose(fd);
    } else {
      printf("%s::error::cannot create file [%s]\n", "fujitsu_usb_touchscreen",
             "/etc/modprobe.d/"
             "fujitsu_usb_touchscreen"
             ".conf");
    }
    system("/sbin/rmmod"
           " "
           "fujitsu_usb_touchscreen");
    system("/sbin/modprobe"
           " "
           "fujitsu_usb_touchscreen");
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11c1 <main+0x31>
mov    $0x0,%al
call   1090 <show_help@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe67(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12d3 <main+0x143>
cmpl   $0x3,-0x8(%rbp)
jge    11ff <main+0x6f>
mov    $0x0,%al
call   1090 <show_help@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
movl   $0xffffffff,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdeb(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1230 <main+0xa0>
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdc3(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    125a <main+0xca>
movl   $0x1,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd9b(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1284 <main+0xf4>
movl   $0x2,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd73(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12ae <main+0x11e>
movl   $0x3,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jle    12ce <main+0x13e>
mov    -0x1c(%rbp),%esi
lea    0xd46(%rip),%rdi
lea    0x13c9(%rip),%rdx
call   1050 <set_param@plt>
jmp    12d3 <main+0x143>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd90(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1391 <main+0x201>
cmpl   $0x3,-0x8(%rbp)
jge    1311 <main+0x181>
mov    $0x0,%al
call   1090 <show_help@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
movl   $0xffffffff,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcd9(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1342 <main+0x1b2>
movl   $0x0,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcb1(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    136c <main+0x1dc>
movl   $0x1,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jle    138c <main+0x1fc>
mov    -0x1c(%rbp),%esi
lea    0xcc3(%rip),%rdi
lea    0x130b(%rip),%rdx
call   1050 <set_param@plt>
jmp    1391 <main+0x201>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcdc(%rip),%rsi
mov    $0xe,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1408 <main+0x278>
lea    0xcd0(%rip),%rdi
xor    %esi,%esi
lea    0x12ce(%rip),%rdx
call   1050 <set_param@plt>
lea    0xcf5(%rip),%rdi
xor    %esi,%esi
lea    0x12b9(%rip),%rdx
call   1050 <set_param@plt>
lea    0xd1a(%rip),%rdi
xor    %esi,%esi
lea    0x12a4(%rip),%rdx
call   1050 <set_param@plt>
lea    0xd3f(%rip),%rdi
xor    %esi,%esi
lea    0x128f(%rip),%rdx
call   1050 <set_param@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd5c(%rip),%rsi
mov    $0xe,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    15b6 <main+0x426>
cmpl   $0x6,-0x8(%rbp)
jge    1446 <main+0x2b6>
mov    $0x0,%al
call   1090 <show_help@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xd2d(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdx
lea    0xd4e(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
lea    0xd6f(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rdx
lea    0xd90(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
lea    0xdb9(%rip),%rdi
lea    0xde2(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     150a <main+0x37a>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%r8
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%r9
lea    0xda5(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
jmp    1524 <main+0x394>
lea    0x115e(%rip),%rdi
lea    0x120d(%rip),%rsi
lea    0xd4b(%rip),%rdx
call   1070 <printf@plt>
lea    0x1168(%rip),%rdi
lea    0xd68(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1584 <main+0x3f4>
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rcx
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%r8
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%r9
lea    0x114f(%rip),%rsi
call   1080 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
jmp    159e <main+0x40e>
lea    0x10e4(%rip),%rdi
lea    0x1193(%rip),%rsi
lea    0x10fa(%rip),%rdx
call   1070 <printf@plt>
lea    0x1174(%rip),%rdi
call   1060 <system@plt>
lea    0x118c(%rip),%rdi
call   1060 <system@plt>
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
cmp    $0x1,%edi
jle    149d <main+0x30d>
mov    %rsi,%rbx
mov    %edi,%r14d
mov    0x8(%rsi),%rdi
lea    0xe85(%rip),%rsi
mov    $0xb,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    1264 <main+0xd4>
cmp    $0x2,%r14d
jbe    149d <main+0x30d>
mov    0x10(%rbx),%rdi
lea    0xe26(%rip),%rsi
mov    $0x1,%r15d
mov    $0x1,%edx
call   1030 <strncmp@plt>
neg    %rax
sbb    %r12d,%r12d
mov    0x10(%rbx),%rdi
lea    0xe07(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
cmove  %r15d,%r12d
mov    0x10(%rbx),%rdi
lea    0xded(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
mov    $0x2,%ebp
cmovne %r12d,%ebp
mov    0x10(%rbx),%rdi
lea    0xdce(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
mov    $0x3,%esi
cmovne %ebp,%esi
test   %esi,%esi
js     1264 <main+0xd4>
lea    0xdb0(%rip),%rdi
lea    0x1433(%rip),%rdx
call   1050 <set_param@plt>
mov    0x8(%rbx),%rdi
lea    0xe03(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    12dd <main+0x14d>
cmp    $0x2,%r14d
jbe    149d <main+0x30d>
mov    0x10(%rbx),%rdi
lea    0xd6d(%rip),%rsi
mov    $0x1,%r15d
mov    $0x1,%edx
call   1030 <strncmp@plt>
neg    %rax
sbb    %ebp,%ebp
mov    0x10(%rbx),%rdi
lea    0xd4f(%rip),%rsi
mov    $0x1,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
cmove  %r15d,%ebp
test   %ebp,%ebp
js     12dd <main+0x14d>
lea    0xd74(%rip),%rdi
lea    0x13bc(%rip),%rdx
mov    %ebp,%esi
call   1050 <set_param@plt>
mov    0x8(%rbx),%rdi
lea    0xd94(%rip),%rsi
mov    $0xe,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    1342 <main+0x1b2>
lea    0xd8d(%rip),%rdi
lea    0x138d(%rip),%rbp
xor    %esi,%esi
mov    %rbp,%rdx
call   1050 <set_param@plt>
lea    0xdaf(%rip),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1050 <set_param@plt>
lea    0xdd8(%rip),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1050 <set_param@plt>
lea    0xe01(%rip),%rdi
xor    %esi,%esi
mov    %rbp,%rdx
call   1050 <set_param@plt>
mov    0x8(%rbx),%rdi
lea    0xe26(%rip),%rsi
mov    $0xe,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
jne    1492 <main+0x302>
cmp    $0x5,%r14d
jbe    149d <main+0x30d>
mov    0x10(%rbx),%rdx
lea    0xe0d(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
mov    0x18(%rbx),%rdx
lea    0xe32(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
mov    0x20(%rbx),%rdx
lea    0xe57(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
mov    0x28(%rbx),%rdx
lea    0xe7c(%rip),%rdi
mov    $0xfffffffe,%esi
call   1050 <set_param@plt>
lea    0xea5(%rip),%rdi
lea    0xece(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1402 <main+0x272>
mov    %rax,%rbp
mov    0x10(%rbx),%rdx
mov    0x18(%rbx),%rcx
mov    0x20(%rbx),%r8
mov    0x28(%rbx),%r9
lea    0xeac(%rip),%rsi
mov    %rax,%rdi
call   1080 <fprintf@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
jmp    141c <main+0x28c>
lea    0x1266(%rip),%rdi
lea    0x1315(%rip),%rsi
lea    0xe53(%rip),%rdx
call   1070 <printf@plt>
lea    0x1270(%rip),%rdi
lea    0xe70(%rip),%rsi
call   10a0 <fopen@plt>
test   %rax,%rax
je     1460 <main+0x2d0>
mov    %rax,%rbp
mov    0x10(%rbx),%rdx
mov    0x18(%rbx),%rcx
mov    0x20(%rbx),%r8
mov    0x28(%rbx),%r9
lea    0x1272(%rip),%rsi
mov    %rax,%rdi
call   1080 <fprintf@plt>
mov    %rbp,%rdi
call   1040 <fclose@plt>
jmp    147a <main+0x2ea>
lea    0x1208(%rip),%rdi
lea    0x12b7(%rip),%rsi
lea    0x121e(%rip),%rdx
call   1070 <printf@plt>
lea    0x1298(%rip),%rdi
call   1060 <system@plt>
lea    0x12b0(%rip),%rdi
call   1060 <system@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
call   1090 <show_help@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"orientation\00"
@.str.1 = [2 x i8] c"0\00"
@.str.2 = [2 x i8] c"1\00"
@.str.3 = [2 x i8] c"2\00"
@.str.4 = [2 x i8] c"3\00"
@.str.5 = [59 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/orientation\00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [10 x i8] c"calibrate\00"
@.str.8 = [57 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calibrate\00"
@.str.9 = [15 x i8] c"resetcalibrate\00"
@.str.10 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_minx\00"
@.str.11 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_miny\00"
@.str.12 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_maxx\00"
@.str.13 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_maxy\00"
@.str.14 = [15 x i8] c"writecalibrate\00"
@.str.15 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_minx\00"
@.str.16 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_miny\00"
@.str.17 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_maxx\00"
@.str.18 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_maxy\00"
@.str.19 = [48 x i8] c"/etc/hal/fdi/policy/fujitsu_usb_touchscreen.fdi\00"
@.str.20 = [2 x i8] c"w\00"
@.str.21 = [979 x i8] c"<?xml version=\221.0\22 encoding=\22UTF-8\22?>\0A<deviceinfo version=\220.3.5\22>\0A <device>\0A <match key=\22info.product\22 contains=\22Fujitsu Component USB Touch Panel\22>\0A <merge key=\22input.x11_driver\22 type=\22string\22>evdev</merge>\0A <merge key=\22input.x11_options.ReportingMode\22 type=\22string\22>Raw</merge>\0A <merge key=\22input.x11_options.SendCoreEvents\22 type=\22string\22>True</merge>\0A\0A <merge key=\22input.x11_options.MinX\22 type=\22string\22>%s</merge>\0A <merge key=\22input.x11_options.MinY\22 type=\22string\22>%s</merge>\0A <merge key=\22input.x11_options.MaxX\22 type=\22string\22>%s</merge>\0A <merge key=\22input.x11_options.MaxY\22 type=\22string\22>%s</merge>\0A\0A <merge key=\22input.x11_options.emulate3buttons\22 type=\22string\22>false</merge>\0A <merge key=\22input.x11_options.MoveLimit\22 type=\22string\22>4</merge>\0A <merge key=\22input.x11_options.TapTimer\22 type=\22string\22>10</merge>\0A </match>\0A </device>\0A</deviceinfo>\00"
@.str.22 = [36 x i8] c"%s::error::cannot create file [%s]\0A\00"
@.str.23 = [24 x i8] c"fujitsu_usb_touchscreen\00"
@.str.24 = [45 x i8] c"/etc/modprobe.d/fujitsu_usb_touchscreen.conf\00"
@.str.25 = [89 x i8] c"options fujitsu_usb_touchscreen touch_minx=%s touch_miny=%s touch_maxx=%s touch_maxy=%s\0A\00"
@.str.26 = [36 x i8] c"/sbin/rmmod fujitsu_usb_touchscreen\00"
@.str.27 = [39 x i8] c"/sbin/modprobe fujitsu_usb_touchscreen\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %13
10: ; preds = %2
%11 = call i32 (...) @show_help()
%12 = call i32 @exit(i32 1)
unreachable
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i64 @strncmp(i8* %16, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 11)
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %60
19: ; preds = %13
%20 = load i32, i32* %4
%21 = icmp slt i32 %20, 3
br i1 %21, label %22, label %25
22: ; preds = %19
%23 = call i32 (...) @show_help()
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %19
store i32 -1, i32* %7
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 2
%28 = load i8*, i8** %27
%29 = call i64 @strncmp(i8* %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %25
store i32 0, i32* %7
br label %32
32: ; preds = %31, %25
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
%36 = call i64 @strncmp(i8* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %32
store i32 1, i32* %7
br label %39
39: ; preds = %38, %32
%40 = load i8**, i8*** %5
%41 = getelementptr inbounds i8*, i8** %40, i64 2
%42 = load i8*, i8** %41
%43 = call i64 @strncmp(i8* %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %46
45: ; preds = %39
store i32 2, i32* %7
br label %46
46: ; preds = %45, %39
%47 = load i8**, i8*** %5
%48 = getelementptr inbounds i8*, i8** %47, i64 2
%49 = load i8*, i8** %48
%50 = call i64 @strncmp(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %46
store i32 3, i32* %7
br label %53
53: ; preds = %52, %46
%54 = load i32, i32* %7
%55 = icmp sgt i32 %54, -1
br i1 %55, label %56, label %59
56: ; preds = %53
%57 = load i32, i32* %7
%58 = call i32 @set_param(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 %57, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %59
59: ; preds = %56, %53
br label %60
60: ; preds = %59, %13
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i64 @strncmp(i8* %63, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 9)
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %93
66: ; preds = %60
%67 = load i32, i32* %4
%68 = icmp slt i32 %67, 3
br i1 %68, label %69, label %72
69: ; preds = %66
%70 = call i32 (...) @show_help()
%71 = call i32 @exit(i32 1)
unreachable
72: ; preds = %66
store i32 -1, i32* %7
%73 = load i8**, i8*** %5
%74 = getelementptr inbounds i8*, i8** %73, i64 2
%75 = load i8*, i8** %74
%76 = call i64 @strncmp(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %72
store i32 0, i32* %7
br label %79
79: ; preds = %78, %72
%80 = load i8**, i8*** %5
%81 = getelementptr inbounds i8*, i8** %80, i64 2
%82 = load i8*, i8** %81
%83 = call i64 @strncmp(i8* %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%84 = icmp eq i64 %83, 0
br i1 %84, label %85, label %86
85: ; preds = %79
store i32 1, i32* %7
br label %86
86: ; preds = %85, %79
%87 = load i32, i32* %7
%88 = icmp sgt i32 %87, -1
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = load i32, i32* %7
%91 = call i32 @set_param(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i32 %90, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %92
92: ; preds = %89, %86
br label %93
93: ; preds = %92, %60
%94 = load i8**, i8*** %5
%95 = getelementptr inbounds i8*, i8** %94, i64 1
%96 = load i8*, i8** %95
%97 = call i64 @strncmp(i8* %96, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 14)
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %104
99: ; preds = %93
%100 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%101 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%102 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%103 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %104
104: ; preds = %99, %93
%105 = load i8**, i8*** %5
%106 = getelementptr inbounds i8*, i8** %105, i64 1
%107 = load i8*, i8** %106
%108 = call i64 @strncmp(i8* %107, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i32 14)
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %181
110: ; preds = %104
%111 = load i32, i32* %4
%112 = icmp slt i32 %111, 6
br i1 %112, label %113, label %116
113: ; preds = %110
%114 = call i32 (...) @show_help()
%115 = call i32 @exit(i32 1)
unreachable
116: ; preds = %110
%117 = load i8**, i8*** %5
%118 = getelementptr inbounds i8*, i8** %117, i64 2
%119 = load i8*, i8** %118
%120 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0), i32 -2, i8* %119)
%121 = load i8**, i8*** %5
%122 = getelementptr inbounds i8*, i8** %121, i64 3
%123 = load i8*, i8** %122
%124 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.16, i64 0, i64 0), i32 -2, i8* %123)
%125 = load i8**, i8*** %5
%126 = getelementptr inbounds i8*, i8** %125, i64 4
%127 = load i8*, i8** %126
%128 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.17, i64 0, i64 0), i32 -2, i8* %127)
%129 = load i8**, i8*** %5
%130 = getelementptr inbounds i8*, i8** %129, i64 5
%131 = load i8*, i8** %130
%132 = call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.18, i64 0, i64 0), i32 -2, i8* %131)
%133 = call i32* @fopen(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
store i32* %133, i32** %6
%134 = load i32*, i32** %6
%135 = icmp ne i32* %134, null
br i1 %135, label %136, label %153
136: ; preds = %116
%137 = load i32*, i32** %6
%138 = load i8**, i8*** %5
%139 = getelementptr inbounds i8*, i8** %138, i64 2
%140 = load i8*, i8** %139
%141 = load i8**, i8*** %5
%142 = getelementptr inbounds i8*, i8** %141, i64 3
%143 = load i8*, i8** %142
%144 = load i8**, i8*** %5
%145 = getelementptr inbounds i8*, i8** %144, i64 4
%146 = load i8*, i8** %145
%147 = load i8**, i8*** %5
%148 = getelementptr inbounds i8*, i8** %147, i64 5
%149 = load i8*, i8** %148
%150 = call i32 @fprintf(i32* %137, i8* getelementptr inbounds ([979 x i8], [979 x i8]* @.str.21, i64 0, i64 0), i8* %140, i8* %143, i8* %146, i8* %149)
%151 = load i32*, i32** %6
%152 = call i32 @fclose(i32* %151)
br label %155
153: ; preds = %116
%154 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0))
br label %155
155: ; preds = %153, %136
%156 = call i32* @fopen(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
store i32* %156, i32** %6
%157 = load i32*, i32** %6
%158 = icmp ne i32* %157, null
br i1 %158, label %159, label %176
159: ; preds = %155
%160 = load i32*, i32** %6
%161 = load i8**, i8*** %5
%162 = getelementptr inbounds i8*, i8** %161, i64 2
%163 = load i8*, i8** %162
%164 = load i8**, i8*** %5
%165 = getelementptr inbounds i8*, i8** %164, i64 3
%166 = load i8*, i8** %165
%167 = load i8**, i8*** %5
%168 = getelementptr inbounds i8*, i8** %167, i64 4
%169 = load i8*, i8** %168
%170 = load i8**, i8*** %5
%171 = getelementptr inbounds i8*, i8** %170, i64 5
%172 = load i8*, i8** %171
%173 = call i32 @fprintf(i32* %160, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.25, i64 0, i64 0), i8* %163, i8* %166, i8* %169, i8* %172)
%174 = load i32*, i32** %6
%175 = call i32 @fclose(i32* %174)
br label %178
176: ; preds = %155
%177 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.24, i64 0, i64 0))
br label %178
178: ; preds = %176, %159
%179 = call i32 @system(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.26, i64 0, i64 0))
%180 = call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.27, i64 0, i64 0))
br label %181
181: ; preds = %178, %104
%182 = load i32, i32* %3
ret i32 %182
}

LLVM IR (-O2):
@.str = [12 x i8] c"orientation\00"
@.str.1 = [2 x i8] c"0\00"
@.str.2 = [2 x i8] c"1\00"
@.str.3 = [2 x i8] c"2\00"
@.str.4 = [2 x i8] c"3\00"
@.str.5 = [59 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/orientation\00"
@.str.6 = [1 x i8] zeroinitializer
@.str.7 = [10 x i8] c"calibrate\00"
@.str.8 = [57 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calibrate\00"
@.str.9 = [15 x i8] c"resetcalibrate\00"
@.str.10 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_minx\00"
@.str.11 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_miny\00"
@.str.12 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_maxx\00"
@.str.13 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/calib_maxy\00"
@.str.14 = [15 x i8] c"writecalibrate\00"
@.str.15 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_minx\00"
@.str.16 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_miny\00"
@.str.17 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_maxx\00"
@.str.18 = [58 x i8] c"/sys/module/fujitsu_usb_touchscreen/parameters/touch_maxy\00"
@.str.19 = [48 x i8] c"/etc/hal/fdi/policy/fujitsu_usb_touchscreen.fdi\00"
@.str.20 = [2 x i8] c"w\00"
@.str.21 = [979 x i8] c"<?xml version=\221.0\22 encoding=\22UTF-8\22?>\0A<deviceinfo version=\220.3.5\22>\0A <device>\0A <match key=\22info.product\22 contains=\22Fujitsu Component USB Touch Panel\22>\0A <merge key=\22input.x11_driver\22 type=\22string\22>evdev</merge>\0A <merge key=\22input.x11_options.ReportingMode\22 type=\22string\22>Raw</merge>\0A <merge key=\22input.x11_options.SendCoreEvents\22 type=\22string\22>True</merge>\0A\0A <merge key=\22input.x11_options.MinX\22 type=\22string\22>%s</merge>\0A <merge key=\22input.x11_options.MinY\22 type=\22string\22>%s</merge>\0A <merge key=\22input.x11_options.MaxX\22 type=\22string\22>%s</merge>\0A <merge key=\22input.x11_options.MaxY\22 type=\22string\22>%s</merge>\0A\0A <merge key=\22input.x11_options.emulate3buttons\22 type=\22string\22>false</merge>\0A <merge key=\22input.x11_options.MoveLimit\22 type=\22string\22>4</merge>\0A <merge key=\22input.x11_options.TapTimer\22 type=\22string\22>10</merge>\0A </match>\0A </device>\0A</deviceinfo>\00"
@.str.22 = [36 x i8] c"%s::error::cannot create file [%s]\0A\00"
@.str.23 = [24 x i8] c"fujitsu_usb_touchscreen\00"
@.str.24 = [45 x i8] c"/etc/modprobe.d/fujitsu_usb_touchscreen.conf\00"
@.str.25 = [89 x i8] c"options fujitsu_usb_touchscreen touch_minx=%s touch_miny=%s touch_maxx=%s touch_maxy=%s\0A\00"
@.str.26 = [36 x i8] c"/sbin/rmmod fujitsu_usb_touchscreen\00"
@.str.27 = [39 x i8] c"/sbin/modprobe fujitsu_usb_touchscreen\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = tail call i32 (...) @show_help()
%6 = tail call i32 @exit(i32 1)
unreachable
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
%10 = tail call i64 @strncmp(i8* %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 11)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %38
12: ; preds = %7
%13 = icmp ult i32 %0, 3
br i1 %13, label %14, label %17
14: ; preds = %12
%15 = tail call i32 (...) @show_help()
%16 = tail call i32 @exit(i32 1)
unreachable
17: ; preds = %12
%18 = getelementptr inbounds i8*, i8** %1, i64 2
%19 = load i8*, i8** %18
%20 = tail call i64 @strncmp(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%21 = icmp ne i64 %20, 0
%22 = sext i1 %21 to i32
%23 = load i8*, i8** %18
%24 = tail call i64 @strncmp(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%25 = icmp eq i64 %24, 0
%26 = select i1 %25, i32 1, i32 %22
%27 = load i8*, i8** %18
%28 = tail call i64 @strncmp(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%29 = icmp eq i64 %28, 0
%30 = select i1 %29, i32 2, i32 %26
%31 = load i8*, i8** %18
%32 = tail call i64 @strncmp(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
%33 = icmp eq i64 %32, 0
%34 = select i1 %33, i32 3, i32 %30
%35 = icmp sgt i32 %34, -1
br i1 %35, label %36, label %38
36: ; preds = %17
%37 = tail call i32 @set_param(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 %34, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %38
38: ; preds = %17, %36, %7
%39 = load i8*, i8** %8
%40 = tail call i64 @strncmp(i8* %39, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), i32 9)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %60
42: ; preds = %38
%43 = icmp ult i32 %0, 3
br i1 %43, label %44, label %47
44: ; preds = %42
%45 = tail call i32 (...) @show_help()
%46 = tail call i32 @exit(i32 1)
unreachable
47: ; preds = %42
%48 = getelementptr inbounds i8*, i8** %1, i64 2
%49 = load i8*, i8** %48
%50 = tail call i64 @strncmp(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 1)
%51 = icmp ne i64 %50, 0
%52 = sext i1 %51 to i32
%53 = load i8*, i8** %48
%54 = tail call i64 @strncmp(i8* %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i32 1)
%55 = icmp eq i64 %54, 0
%56 = select i1 %55, i32 1, i32 %52
%57 = icmp sgt i32 %56, -1
br i1 %57, label %58, label %60
58: ; preds = %47
%59 = tail call i32 @set_param(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i32 %56, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %60
60: ; preds = %47, %58, %38
%61 = load i8*, i8** %8
%62 = tail call i64 @strncmp(i8* %61, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i32 14)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %69
64: ; preds = %60
%65 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%66 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%67 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
%68 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.13, i64 0, i64 0), i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.6, i64 0, i64 0))
br label %69
69: ; preds = %64, %60
%70 = load i8*, i8** %8
%71 = tail call i64 @strncmp(i8* %70, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.14, i64 0, i64 0), i32 14)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %117
73: ; preds = %69
%74 = icmp ult i32 %0, 6
br i1 %74, label %75, label %78
75: ; preds = %73
%76 = tail call i32 (...) @show_help()
%77 = tail call i32 @exit(i32 1)
unreachable
78: ; preds = %73
%79 = getelementptr inbounds i8*, i8** %1, i64 2
%80 = load i8*, i8** %79
%81 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.15, i64 0, i64 0), i32 -2, i8* %80)
%82 = getelementptr inbounds i8*, i8** %1, i64 3
%83 = load i8*, i8** %82
%84 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.16, i64 0, i64 0), i32 -2, i8* %83)
%85 = getelementptr inbounds i8*, i8** %1, i64 4
%86 = load i8*, i8** %85
%87 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.17, i64 0, i64 0), i32 -2, i8* %86)
%88 = getelementptr inbounds i8*, i8** %1, i64 5
%89 = load i8*, i8** %88
%90 = tail call i32 @set_param(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.18, i64 0, i64 0), i32 -2, i8* %89)
%91 = tail call i32* @fopen(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%92 = icmp eq i32* %91, null
br i1 %92, label %100, label %93
93: ; preds = %78
%94 = load i8*, i8** %79
%95 = load i8*, i8** %82
%96 = load i8*, i8** %85
%97 = load i8*, i8** %88
%98 = tail call i32 @fprintf(i32* %91, i8* getelementptr inbounds ([979 x i8], [979 x i8]* @.str.21, i64 0, i64 0), i8* %94, i8* %95, i8* %96, i8* %97)
%99 = tail call i32 @fclose(i32* %91)
br label %102
100: ; preds = %78
%101 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.19, i64 0, i64 0))
br label %102
102: ; preds = %100, %93
%103 = tail call i32* @fopen(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
%104 = icmp eq i32* %103, null
br i1 %104, label %112, label %105
105: ; preds = %102
%106 = load i8*, i8** %79
%107 = load i8*, i8** %82
%108 = load i8*, i8** %85
%109 = load i8*, i8** %88
%110 = tail call i32 @fprintf(i32* %103, i8* getelementptr inbounds ([89 x i8], [89 x i8]* @.str.25, i64 0, i64 0), i8* %106, i8* %107, i8* %108, i8* %109)
%111 = tail call i32 @fclose(i32* %103)
br label %114
112: ; preds = %102
%113 = tail call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.24, i64 0, i64 0))
br label %114
114: ; preds = %112, %105
%115 = tail call i32 @system(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.26, i64 0, i64 0))
%116 = tail call i32 @system(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.27, i64 0, i64 0))
br label %117
117: ; preds = %114, %69
ret i32 0
}