#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*/ addvm();
int /*<<< orphan*/ alter_alter();
int /*<<< orphan*/ alter_query();
int /*<<< orphan*/ alter_rebase();
int /*<<< orphan*/ backup_backup();
int /*<<< orphan*/ backup_query();
int /*<<< orphan*/ backup_rebase();
int /*<<< orphan*/ backup_restore();
int /*<<< orphan*/ brctl_addbr();
int /*<<< orphan*/ brctl_addif();
int /*<<< orphan*/ cd_list();
int /*<<< orphan*/ cd_mount();
int /*<<< orphan*/ cd_mounted();
int /*<<< orphan*/ cd_unmount();
int /*<<< orphan*/ delvm();
int /*<<< orphan*/ disk_create();
int /*<<< orphan*/ disk_list();
int /*<<< orphan*/ disk_mount();
int /*<<< orphan*/ disk_umount();
int /*<<< orphan*/ diskk_mount();
int /*<<< orphan*/ diskk_umount();
int /*<<< orphan*/ getegid();
int /*<<< orphan*/ geteuid();
int /*<<< orphan*/ iso_list();
int /*<<< orphan*/ iso_rsync();
int /*<<< orphan*/ migrate_cancel0();
int /*<<< orphan*/ migrate_cancel1();
int /*<<< orphan*/ migrate_query0();
int /*<<< orphan*/ migrate_query1();
int /*<<< orphan*/ migrate_recv0();
int /*<<< orphan*/ migrate_send0();
int /*<<< orphan*/ migrate_send1();
int /*<<< orphan*/ online();
int /*<<< orphan*/ os_import();
int /*<<< orphan*/ os_list();
int /*<<< orphan*/ os_query();
int /*<<< orphan*/ os_rebuild();
int /*<<< orphan*/ pbackup_backup();
int /*<<< orphan*/ power_commit();
int /*<<< orphan*/ power_compare();
int /*<<< orphan*/ power_continue();
int /*<<< orphan*/ power_drop();
int /*<<< orphan*/ power_halt();
int /*<<< orphan*/ power_off();
int /*<<< orphan*/ power_on();
int /*<<< orphan*/ power_rebuild();
int /*<<< orphan*/ power_reset();
int /*<<< orphan*/ power_status();
int /*<<< orphan*/ power_stop();
int /*<<< orphan*/ ppower_continue();
int /*<<< orphan*/ ppower_halt();
int /*<<< orphan*/ ppower_off();
int /*<<< orphan*/ ppower_on();
int /*<<< orphan*/ ppower_reset();
int /*<<< orphan*/ ppower_status();
int /*<<< orphan*/ ppower_stop();
int /*<<< orphan*/ scanf(char *, ...);
int /*<<< orphan*/ setgid(int /*<<< orphan*/);
int /*<<< orphan*/ setuid(int /*<<< orphan*/);
int /*<<< orphan*/ snapshot_apply();
int /*<<< orphan*/ snapshot_create();
int /*<<< orphan*/ snapshot_del();
int /*<<< orphan*/ snapshot_list();
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ sync_query();
int /*<<< orphan*/ sync_rebuild();
int /*<<< orphan*/ sync_sync();
int /*<<< orphan*/ sys_list();
int /*<<< orphan*/ sys_rsync();
int /*<<< orphan*/ sysiso_query();
int main(int argc, char **argv) {
  setuid(geteuid());
  setgid(getegid());
  char cmd[1024];
  int ctl;
  scanf("%s", cmd);
  if (strcmp(cmd, "addvm") == 0) {
    addvm();
  } else if (strcmp(cmd, "delvm") == 0) {
    delvm();
  } else if (strcmp(cmd, "power") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      power_status();
    } else if (2 == ctl) {
      power_on();
    } else if (3 == ctl) {
      power_off();
    } else if (4 == ctl) {
      power_reset();
    } else if (5 == ctl) {
      power_stop();
    } else if (6 == ctl) {
      power_continue();
    } else if (7 == ctl) {
      power_halt();
    } else if (8 == ctl) {
      power_commit();
    } else if (9 == ctl) {
      power_drop();
    } else if (10 == ctl) {
      power_rebuild();
    } else if (11 == ctl) {
      power_compare();
    }
  } else if (strcmp(cmd, "snapshot") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      snapshot_list();
    } else if (2 == ctl) {
      snapshot_create();
    } else if (3 == ctl) {
      snapshot_del();
    } else if (4 == ctl) {
      snapshot_apply();
    }
  } else if (strcmp(cmd, "cd") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      cd_list();
    } else if (2 == ctl) {
      cd_mounted();
    } else if (3 == ctl) {
      cd_mount();
    } else if (4 == ctl) {
      cd_unmount();
    }
  } else if (strcmp(cmd, "ppower") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      ppower_status();
    } else if (2 == ctl) {
      ppower_on();
    } else if (3 == ctl) {
      ppower_off();
    } else if (4 == ctl) {
      ppower_reset();
    } else if (5 == ctl) {
      ppower_stop();
    } else if (6 == ctl) {
      ppower_continue();
    } else if (7 == ctl) {
      ppower_halt();
    }
  } else if (strcmp(cmd, "os") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      os_list();
    } else if (2 == ctl) {
      os_import();
    } else if (3 == ctl) {
      os_query();
    } else if (4 == ctl) {
      os_rebuild();
    }
  } else if (strcmp(cmd, "sync") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      sync_sync();
    } else if (2 == ctl) {
      sync_query();
    } else if (3 == ctl) {
      sync_rebuild();
    }
  } else if (strcmp(cmd, "migrate") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      migrate_send0();
    } else if (2 == ctl) {
      migrate_recv0();
    } else if (3 == ctl) {
      migrate_send1();
    } else if (4 == ctl) {
    } else if (5 == ctl) {
      migrate_query0();
    } else if (6 == ctl) {
      migrate_query1();
    } else if (7 == ctl) {
      migrate_cancel0();
    } else if (8 == ctl) {
      migrate_cancel1();
    }
  } else if (strcmp(cmd, "distb") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      sys_list();
    } else if (2 == ctl) {
      sys_rsync();
    } else if (3 == ctl) {
      iso_list();
    } else if (4 == ctl) {
      iso_rsync();
    } else if (5 == ctl) {
      sysiso_query();
    }
  } else if (strcmp(cmd, "backup") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      backup_backup();
    } else if (2 == ctl) {
      backup_restore();
    } else if (3 == ctl) {
      backup_query();
    } else if (4 == ctl) {
      backup_rebase();
    }
  } else if (strcmp(cmd, "alter") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      alter_alter();
    } else if (2 == ctl) {
      alter_query();
    } else if (3 == ctl) {
      alter_rebase();
    }
  } else if (strcmp(cmd, "online") == 0) {
    online();
  } else if (strcmp(cmd, "disk") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      disk_list();
    } else if (2 == ctl) {
      disk_create();
    } else if (3 == ctl) {
      disk_mount();
    } else if (4 == ctl) {
      disk_umount();
    }
  } else if (strcmp(cmd, "brctl") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      brctl_addbr();
    } else if (2 == ctl) {
    } else if (3 == ctl) {
      brctl_addif();
    }
  } else if (strcmp(cmd, "diskk") == 0) {
    scanf("%d", &ctl);
    if (1 == ctl) {
      diskk_mount();
    } else if (2 == ctl) {
      diskk_umount();
    }
  } else if (strcmp(cmd, "pbackup") == 0) {
    pbackup_backup();
  } else {
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x420,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    $0x0,%al
call   2180 <geteuid@plt>
mov    %eax,%edi
call   2410 <setuid@plt>
mov    $0x0,%al
call   22b0 <getegid@plt>
mov    %eax,%edi
call   2350 <setgid@plt>
lea    -0x410(%rbp),%rsi
lea    0x1a5d(%rip),%rdi
mov    $0x0,%al
call   2340 <scanf@plt>
lea    -0x410(%rbp),%rdi
lea    0x1a4b(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    25d3 <main+0x73>
mov    $0x0,%al
call   2060 <addvm@plt>
jmp    311a <main+0xbba>
lea    -0x410(%rbp),%rdi
lea    0x1a28(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    25fc <main+0x9c>
mov    $0x0,%al
call   23e0 <delvm@plt>
jmp    3115 <main+0xbb5>
lea    -0x410(%rbp),%rdi
lea    0x1a15(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    279f <main+0x23f>
lea    0x19ef(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    264b <main+0xeb>
mov    $0x0,%al
call   2320 <power_status@plt>
jmp    279a <main+0x23a>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2668 <main+0x108>
mov    $0x0,%al
call   22a0 <power_on@plt>
jmp    2795 <main+0x235>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2685 <main+0x125>
mov    $0x0,%al
call   2330 <power_off@plt>
jmp    2790 <main+0x230>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    26a2 <main+0x142>
mov    $0x0,%al
call   2400 <power_reset@plt>
jmp    278b <main+0x22b>
mov    $0x5,%eax
cmp    -0x414(%rbp),%eax
jne    26bf <main+0x15f>
mov    $0x0,%al
call   2220 <power_stop@plt>
jmp    2786 <main+0x226>
mov    $0x6,%eax
cmp    -0x414(%rbp),%eax
jne    26dc <main+0x17c>
mov    $0x0,%al
call   22c0 <power_continue@plt>
jmp    2781 <main+0x221>
mov    $0x7,%eax
cmp    -0x414(%rbp),%eax
jne    26f9 <main+0x199>
mov    $0x0,%al
call   2310 <power_halt@plt>
jmp    277c <main+0x21c>
mov    $0x8,%eax
cmp    -0x414(%rbp),%eax
jne    2716 <main+0x1b6>
mov    $0x0,%al
call   2260 <power_commit@plt>
jmp    2777 <main+0x217>
mov    $0x9,%eax
cmp    -0x414(%rbp),%eax
jne    2733 <main+0x1d3>
mov    $0x0,%al
call   2030 <power_drop@plt>
jmp    2772 <main+0x212>
mov    $0xa,%eax
cmp    -0x414(%rbp),%eax
jne    2750 <main+0x1f0>
mov    $0x0,%al
call   2150 <power_rebuild@plt>
jmp    276d <main+0x20d>
mov    $0xb,%eax
cmp    -0x414(%rbp),%eax
jne    2768 <main+0x208>
mov    $0x0,%al
call   23c0 <power_compare@plt>
jmp    276d <main+0x20d>
jmp    2772 <main+0x212>
jmp    2777 <main+0x217>
jmp    277c <main+0x21c>
jmp    2781 <main+0x221>
jmp    2786 <main+0x226>
jmp    278b <main+0x22b>
jmp    2790 <main+0x230>
jmp    2795 <main+0x235>
jmp    279a <main+0x23a>
jmp    3110 <main+0xbb0>
lea    -0x410(%rbp),%rdi
lea    0x1865(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2854 <main+0x2f4>
lea    0x184c(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    27ee <main+0x28e>
mov    $0x0,%al
call   2270 <snapshot_list@plt>
jmp    284f <main+0x2ef>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    280b <main+0x2ab>
mov    $0x0,%al
call   2300 <snapshot_create@plt>
jmp    284a <main+0x2ea>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2828 <main+0x2c8>
mov    $0x0,%al
call   21d0 <snapshot_del@plt>
jmp    2845 <main+0x2e5>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    2840 <main+0x2e0>
mov    $0x0,%al
call   2050 <snapshot_apply@plt>
jmp    2845 <main+0x2e5>
jmp    284a <main+0x2ea>
jmp    284f <main+0x2ef>
jmp    310b <main+0xbab>
lea    -0x410(%rbp),%rdi
lea    0x17b9(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2909 <main+0x3a9>
lea    0x1797(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    28a3 <main+0x343>
mov    $0x0,%al
call   2480 <cd_list@plt>
jmp    2904 <main+0x3a4>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    28c0 <main+0x360>
mov    $0x0,%al
call   2090 <cd_mounted@plt>
jmp    28ff <main+0x39f>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    28dd <main+0x37d>
mov    $0x0,%al
call   2190 <cd_mount@plt>
jmp    28fa <main+0x39a>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    28f5 <main+0x395>
mov    $0x0,%al
call   20c0 <cd_unmount@plt>
jmp    28fa <main+0x39a>
jmp    28ff <main+0x39f>
jmp    2904 <main+0x3a4>
jmp    3106 <main+0xba6>
lea    -0x410(%rbp),%rdi
lea    0x1707(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2a24 <main+0x4c4>
lea    0x16e2(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2958 <main+0x3f8>
mov    $0x0,%al
call   2250 <ppower_status@plt>
jmp    2a1f <main+0x4bf>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2975 <main+0x415>
mov    $0x0,%al
call   2080 <ppower_on@plt>
jmp    2a1a <main+0x4ba>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2992 <main+0x432>
mov    $0x0,%al
call   22e0 <ppower_off@plt>
jmp    2a15 <main+0x4b5>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    29af <main+0x44f>
mov    $0x0,%al
call   20a0 <ppower_reset@plt>
jmp    2a10 <main+0x4b0>
mov    $0x5,%eax
cmp    -0x414(%rbp),%eax
jne    29cc <main+0x46c>
mov    $0x0,%al
call   2440 <ppower_stop@plt>
jmp    2a0b <main+0x4ab>
mov    $0x6,%eax
cmp    -0x414(%rbp),%eax
jne    29e9 <main+0x489>
mov    $0x0,%al
call   23a0 <ppower_continue@plt>
jmp    2a06 <main+0x4a6>
mov    $0x7,%eax
cmp    -0x414(%rbp),%eax
jne    2a01 <main+0x4a1>
mov    $0x0,%al
call   2470 <ppower_halt@plt>
jmp    2a06 <main+0x4a6>
jmp    2a0b <main+0x4ab>
jmp    2a10 <main+0x4b0>
jmp    2a15 <main+0x4b5>
jmp    2a1a <main+0x4ba>
jmp    2a1f <main+0x4bf>
jmp    3101 <main+0xba1>
lea    -0x410(%rbp),%rdi
lea    0x15f3(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2ad9 <main+0x579>
lea    0x15c7(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2a73 <main+0x513>
mov    $0x0,%al
call   2240 <os_list@plt>
jmp    2ad4 <main+0x574>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2a90 <main+0x530>
mov    $0x0,%al
call   23b0 <os_import@plt>
jmp    2acf <main+0x56f>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2aad <main+0x54d>
mov    $0x0,%al
call   23f0 <os_query@plt>
jmp    2aca <main+0x56a>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    2ac5 <main+0x565>
mov    $0x0,%al
call   21e0 <os_rebuild@plt>
jmp    2aca <main+0x56a>
jmp    2acf <main+0x56f>
jmp    2ad4 <main+0x574>
jmp    30fc <main+0xb9c>
lea    -0x410(%rbp),%rdi
lea    0x1541(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2b6c <main+0x60c>
lea    0x1512(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2b28 <main+0x5c8>
mov    $0x0,%al
call   21a0 <sync_sync@plt>
jmp    2b67 <main+0x607>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2b45 <main+0x5e5>
mov    $0x0,%al
call   2390 <sync_query@plt>
jmp    2b62 <main+0x602>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2b5d <main+0x5fd>
mov    $0x0,%al
call   2140 <sync_rebuild@plt>
jmp    2b62 <main+0x602>
jmp    2b67 <main+0x607>
jmp    30f7 <main+0xb97>
lea    -0x410(%rbp),%rdi
lea    0x14b3(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2ca2 <main+0x742>
lea    0x147f(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2bbb <main+0x65b>
mov    $0x0,%al
call   2200 <migrate_send0@plt>
jmp    2c9d <main+0x73d>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2bd8 <main+0x678>
mov    $0x0,%al
call   2070 <migrate_recv0@plt>
jmp    2c98 <main+0x738>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2bf5 <main+0x695>
mov    $0x0,%al
call   2450 <migrate_send1@plt>
jmp    2c93 <main+0x733>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    2c0b <main+0x6ab>
jmp    2c8e <main+0x72e>
mov    $0x5,%eax
cmp    -0x414(%rbp),%eax
jne    2c28 <main+0x6c8>
mov    $0x0,%al
call   2130 <migrate_query0@plt>
jmp    2c89 <main+0x729>
mov    $0x6,%eax
cmp    -0x414(%rbp),%eax
jne    2c45 <main+0x6e5>
mov    $0x0,%al
call   2360 <migrate_query1@plt>
jmp    2c84 <main+0x724>
mov    $0x7,%eax
cmp    -0x414(%rbp),%eax
jne    2c62 <main+0x702>
mov    $0x0,%al
call   2230 <migrate_cancel0@plt>
jmp    2c7f <main+0x71f>
mov    $0x8,%eax
cmp    -0x414(%rbp),%eax
jne    2c7a <main+0x71a>
mov    $0x0,%al
call   2040 <migrate_cancel1@plt>
jmp    2c7f <main+0x71f>
jmp    2c84 <main+0x724>
jmp    2c89 <main+0x729>
jmp    2c8e <main+0x72e>
jmp    2c93 <main+0x733>
jmp    2c98 <main+0x738>
jmp    2c9d <main+0x73d>
jmp    30f2 <main+0xb92>
lea    -0x410(%rbp),%rdi
lea    0x1385(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2d79 <main+0x819>
lea    0x1349(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2cf1 <main+0x791>
mov    $0x0,%al
call   21c0 <sys_list@plt>
jmp    2d74 <main+0x814>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2d0e <main+0x7ae>
mov    $0x0,%al
call   2110 <sys_rsync@plt>
jmp    2d6f <main+0x80f>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2d2b <main+0x7cb>
mov    $0x0,%al
call   2420 <iso_list@plt>
jmp    2d6a <main+0x80a>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    2d48 <main+0x7e8>
mov    $0x0,%al
call   22f0 <iso_rsync@plt>
jmp    2d65 <main+0x805>
mov    $0x5,%eax
cmp    -0x414(%rbp),%eax
jne    2d60 <main+0x800>
mov    $0x0,%al
call   22d0 <sysiso_query@plt>
jmp    2d65 <main+0x805>
jmp    2d6a <main+0x80a>
jmp    2d6f <main+0x80f>
jmp    2d74 <main+0x814>
jmp    30ed <main+0xb8d>
lea    -0x410(%rbp),%rdi
lea    0x12d3(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2e2e <main+0x8ce>
lea    0x1272(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2dc8 <main+0x868>
mov    $0x0,%al
call   2380 <backup_backup@plt>
jmp    2e29 <main+0x8c9>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2de5 <main+0x885>
mov    $0x0,%al
call   20d0 <backup_restore@plt>
jmp    2e24 <main+0x8c4>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2e02 <main+0x8a2>
mov    $0x0,%al
call   21b0 <backup_query@plt>
jmp    2e1f <main+0x8bf>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    2e1a <main+0x8ba>
mov    $0x0,%al
call   2460 <backup_rebase@plt>
jmp    2e1f <main+0x8bf>
jmp    2e24 <main+0x8c4>
jmp    2e29 <main+0x8c9>
jmp    30e8 <main+0xb88>
lea    -0x410(%rbp),%rdi
lea    0x11ff(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2ec1 <main+0x961>
lea    0x11bd(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2e7d <main+0x91d>
mov    $0x0,%al
call   2170 <alter_alter@plt>
jmp    2ebc <main+0x95c>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2e9a <main+0x93a>
mov    $0x0,%al
call   20e0 <alter_query@plt>
jmp    2eb7 <main+0x957>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2eb2 <main+0x952>
mov    $0x0,%al
call   2370 <alter_rebase@plt>
jmp    2eb7 <main+0x957>
jmp    2ebc <main+0x95c>
jmp    30e3 <main+0xb83>
lea    -0x410(%rbp),%rdi
lea    0x1172(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2eea <main+0x98a>
mov    $0x0,%al
call   2280 <online@plt>
jmp    30de <main+0xb7e>
lea    -0x410(%rbp),%rdi
lea    0x1150(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    2f9f <main+0xa3f>
lea    0x1101(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2f39 <main+0x9d9>
mov    $0x0,%al
call   20f0 <disk_list@plt>
jmp    2f9a <main+0xa3a>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    2f56 <main+0x9f6>
mov    $0x0,%al
call   2100 <disk_create@plt>
jmp    2f95 <main+0xa35>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    2f73 <main+0xa13>
mov    $0x0,%al
call   21f0 <disk_mount@plt>
jmp    2f90 <main+0xa30>
mov    $0x4,%eax
cmp    -0x414(%rbp),%eax
jne    2f8b <main+0xa2b>
mov    $0x0,%al
call   20b0 <disk_umount@plt>
jmp    2f90 <main+0xa30>
jmp    2f95 <main+0xa35>
jmp    2f9a <main+0xa3a>
jmp    30d9 <main+0xb79>
lea    -0x410(%rbp),%rdi
lea    0x10a0(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    302b <main+0xacb>
lea    0x104c(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    2fee <main+0xa8e>
mov    $0x0,%al
call   2120 <brctl_addbr@plt>
jmp    3026 <main+0xac6>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    3004 <main+0xaa4>
jmp    3021 <main+0xac1>
mov    $0x3,%eax
cmp    -0x414(%rbp),%eax
jne    301c <main+0xabc>
mov    $0x0,%al
call   2160 <brctl_addif@plt>
jmp    3021 <main+0xac1>
jmp    3026 <main+0xac6>
jmp    30d4 <main+0xb74>
lea    -0x410(%rbp),%rdi
lea    0x101a(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    309c <main+0xb3c>
lea    0xfc0(%rip),%rdi
lea    -0x414(%rbp),%rsi
mov    $0x0,%al
call   2340 <scanf@plt>
mov    $0x1,%eax
cmp    -0x414(%rbp),%eax
jne    307a <main+0xb1a>
mov    $0x0,%al
call   2430 <diskk_mount@plt>
jmp    3097 <main+0xb37>
mov    $0x2,%eax
cmp    -0x414(%rbp),%eax
jne    3092 <main+0xb32>
mov    $0x0,%al
call   2290 <diskk_umount@plt>
jmp    3097 <main+0xb37>
jmp    30cf <main+0xb6f>
lea    -0x410(%rbp),%rdi
lea    0xfaf(%rip),%rsi
call   2210 <strcmp@plt>
cmp    $0x0,%rax
jne    30c5 <main+0xb65>
mov    $0x0,%al
call   23d0 <pbackup_backup@plt>
jmp    30ca <main+0xb6a>
jmp    30ca <main+0xb6a>
jmp    30cf <main+0xb6f>
jmp    30d4 <main+0xb74>
jmp    30d9 <main+0xb79>
jmp    30de <main+0xb7e>
jmp    30e3 <main+0xb83>
jmp    30e8 <main+0xb88>
jmp    30ed <main+0xb8d>
jmp    30f2 <main+0xb92>
jmp    30f7 <main+0xb97>
jmp    30fc <main+0xb9c>
jmp    3101 <main+0xba1>
jmp    3106 <main+0xba6>
jmp    310b <main+0xbab>
jmp    3110 <main+0xbb0>
jmp    3115 <main+0xbb5>
jmp    311a <main+0xbba>
xor    %eax,%eax
add    $0x420,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x410,%rsp
xor    %eax,%eax
call   2180 <geteuid@plt>
mov    %eax,%edi
call   2410 <setuid@plt>
xor    %eax,%eax
call   22b0 <getegid@plt>
mov    %eax,%edi
call   2350 <setgid@plt>
lea    0xb41(%rip),%rdi
lea    0x10(%rsp),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
lea    0xb2e(%rip),%rsi
mov    %rbx,%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2757 <main+0x1f7>
lea    0xb1c(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2760 <main+0x200>
lea    0xb18(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2772 <main+0x212>
lea    0xaf1(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     27aa <main+0x24a>
lea    0xae0(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     27e2 <main+0x282>
lea    0xac9(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2821 <main+0x2c1>
lea    0xab6(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2860 <main+0x300>
lea    0xa9f(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     28c3 <main+0x363>
lea    0xa8a(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     299d <main+0x43d>
lea    0xa78(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     29dc <main+0x47c>
lea    0xa83(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2a9f <main+0x53f>
lea    0xa4a(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2ade <main+0x57e>
lea    0xa36(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2b1c <main+0x5bc>
lea    0xa23(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2ba0 <main+0x640>
lea    0xa0e(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2c1b <main+0x6bb>
lea    0x9fa(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
je     2c4c <main+0x6ec>
lea    0x9e6(%rip),%rsi
lea    0x10(%rsp),%rdi
call   2210 <strcmp@plt>
test   %rax,%rax
jne    2767 <main+0x207>
xor    %eax,%eax
call   23d0 <pbackup_backup@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2060 <addvm@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   23e0 <delvm@plt>
xor    %eax,%eax
add    $0x410,%rsp
pop    %rbx
ret
lea    0x962(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0xa,%eax
ja     2767 <main+0x207>
lea    0x908(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2320 <power_status@plt>
jmp    2767 <main+0x207>
lea    0x92a(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     2767 <main+0x207>
lea    0x8c0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2270 <snapshot_list@plt>
jmp    2767 <main+0x207>
lea    0x8f2(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     2767 <main+0x207>
lea    0x874(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2480 <cd_list@plt>
jmp    2767 <main+0x207>
lea    0x8b3(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x6,%eax
ja     2767 <main+0x207>
lea    0x819(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2250 <ppower_status@plt>
jmp    2767 <main+0x207>
lea    0x874(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     2767 <main+0x207>
lea    0x7ca(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2240 <os_list@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2300 <snapshot_create@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   21d0 <snapshot_del@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2050 <snapshot_apply@plt>
jmp    2767 <main+0x207>
lea    0x811(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x3,%eax
je     2a87 <main+0x527>
cmp    $0x2,%eax
je     2a93 <main+0x533>
cmp    $0x1,%eax
jne    2767 <main+0x207>
xor    %eax,%eax
call   21a0 <sync_sync@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   22a0 <power_on@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2330 <power_off@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2400 <power_reset@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2220 <power_stop@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   22c0 <power_continue@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2310 <power_halt@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2260 <power_commit@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2030 <power_drop@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2150 <power_rebuild@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   23c0 <power_compare@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2090 <cd_mounted@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2190 <cd_mount@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   20c0 <cd_unmount@plt>
jmp    2767 <main+0x207>
lea    0x737(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x7,%eax
ja     2767 <main+0x207>
lea    0x66d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2200 <migrate_send0@plt>
jmp    2767 <main+0x207>
lea    0x6f8(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x4,%eax
ja     2767 <main+0x207>
lea    0x61a(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   21c0 <sys_list@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2080 <ppower_on@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   22e0 <ppower_off@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   20a0 <ppower_reset@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2440 <ppower_stop@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   23a0 <ppower_continue@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2470 <ppower_halt@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   23b0 <os_import@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   23f0 <os_query@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   21e0 <os_rebuild@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2140 <sync_rebuild@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2390 <sync_query@plt>
jmp    2767 <main+0x207>
lea    0x635(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     2767 <main+0x207>
lea    0x547(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   2380 <backup_backup@plt>
jmp    2767 <main+0x207>
lea    0x5f6(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x3,%eax
je     2c03 <main+0x6a3>
cmp    $0x2,%eax
je     2c0f <main+0x6af>
cmp    $0x1,%eax
jne    2767 <main+0x207>
xor    %eax,%eax
call   2170 <alter_alter@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2280 <online@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2070 <migrate_recv0@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2450 <migrate_send1@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2130 <migrate_query0@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2360 <migrate_query1@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2230 <migrate_cancel0@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2040 <migrate_cancel1@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2110 <sys_rsync@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2420 <iso_list@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   22f0 <iso_rsync@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   22d0 <sysiso_query@plt>
jmp    2767 <main+0x207>
lea    0x534(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
add    $0xffffffff,%eax
cmp    $0x3,%eax
ja     2767 <main+0x207>
lea    0x436(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   20f0 <disk_list@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   20d0 <backup_restore@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   21b0 <backup_query@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2460 <backup_rebase@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2370 <alter_rebase@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   20e0 <alter_query@plt>
jmp    2767 <main+0x207>
lea    0x4b9(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x3,%eax
je     2ca1 <main+0x741>
cmp    $0x1,%eax
jne    2767 <main+0x207>
xor    %eax,%eax
call   2120 <brctl_addbr@plt>
jmp    2767 <main+0x207>
lea    0x488(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   2340 <scanf@plt>
mov    0xc(%rsp),%eax
cmp    $0x2,%eax
je     2cad <main+0x74d>
cmp    $0x1,%eax
jne    2767 <main+0x207>
xor    %eax,%eax
call   2430 <diskk_mount@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2100 <disk_create@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   21f0 <disk_mount@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   20b0 <disk_umount@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2160 <brctl_addif@plt>
jmp    2767 <main+0x207>
xor    %eax,%eax
call   2290 <diskk_umount@plt>
jmp    2767 <main+0x207>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"addvm\00"
@.str.2 = [6 x i8] c"delvm\00"
@.str.3 = [6 x i8] c"power\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [9 x i8] c"snapshot\00"
@.str.6 = [3 x i8] c"cd\00"
@.str.7 = [7 x i8] c"ppower\00"
@.str.8 = [3 x i8] c"os\00"
@.str.9 = [5 x i8] c"sync\00"
@.str.10 = [8 x i8] c"migrate\00"
@.str.11 = [6 x i8] c"distb\00"
@.str.12 = [7 x i8] c"backup\00"
@.str.13 = [6 x i8] c"alter\00"
@.str.14 = [7 x i8] c"online\00"
@.str.15 = [5 x i8] c"disk\00"
@.str.16 = [6 x i8] c"brctl\00"
@.str.17 = [6 x i8] c"diskk\00"
@.str.18 = [8 x i8] c"pbackup\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [1024 x i8]
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 (...) @geteuid()
%9 = call i32 @setuid(i32 %8)
%10 = call i32 (...) @getegid()
%11 = call i32 @setgid(i32 %10)
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%13 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %12)
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %2
%18 = call i32 (...) @addvm()
br label %489
19: ; preds = %2
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %25
23: ; preds = %19
%24 = call i32 (...) @delvm()
br label %488
25: ; preds = %19
%26 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%27 = call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %96
29: ; preds = %25
%30 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%31 = load i32, i32* %7
%32 = icmp eq i32 1, %31
br i1 %32, label %33, label %35
33: ; preds = %29
%34 = call i32 (...) @power_status()
br label %95
35: ; preds = %29
%36 = load i32, i32* %7
%37 = icmp eq i32 2, %36
br i1 %37, label %38, label %40
38: ; preds = %35
%39 = call i32 (...) @power_on()
br label %94
40: ; preds = %35
%41 = load i32, i32* %7
%42 = icmp eq i32 3, %41
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = call i32 (...) @power_off()
br label %93
45: ; preds = %40
%46 = load i32, i32* %7
%47 = icmp eq i32 4, %46
br i1 %47, label %48, label %50
48: ; preds = %45
%49 = call i32 (...) @power_reset()
br label %92
50: ; preds = %45
%51 = load i32, i32* %7
%52 = icmp eq i32 5, %51
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 (...) @power_stop()
br label %91
55: ; preds = %50
%56 = load i32, i32* %7
%57 = icmp eq i32 6, %56
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 (...) @power_continue()
br label %90
60: ; preds = %55
%61 = load i32, i32* %7
%62 = icmp eq i32 7, %61
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 (...) @power_halt()
br label %89
65: ; preds = %60
%66 = load i32, i32* %7
%67 = icmp eq i32 8, %66
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 (...) @power_commit()
br label %88
70: ; preds = %65
%71 = load i32, i32* %7
%72 = icmp eq i32 9, %71
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 (...) @power_drop()
br label %87
75: ; preds = %70
%76 = load i32, i32* %7
%77 = icmp eq i32 10, %76
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 (...) @power_rebuild()
br label %86
80: ; preds = %75
%81 = load i32, i32* %7
%82 = icmp eq i32 11, %81
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 (...) @power_compare()
br label %85
85: ; preds = %83, %80
br label %86
86: ; preds = %85, %78
br label %87
87: ; preds = %86, %73
br label %88
88: ; preds = %87, %68
br label %89
89: ; preds = %88, %63
br label %90
90: ; preds = %89, %58
br label %91
91: ; preds = %90, %53
br label %92
92: ; preds = %91, %48
br label %93
93: ; preds = %92, %43
br label %94
94: ; preds = %93, %38
br label %95
95: ; preds = %94, %33
br label %487
96: ; preds = %25
%97 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%98 = call i64 @strcmp(i8* %97, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %125
100: ; preds = %96
%101 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%102 = load i32, i32* %7
%103 = icmp eq i32 1, %102
br i1 %103, label %104, label %106
104: ; preds = %100
%105 = call i32 (...) @snapshot_list()
br label %124
106: ; preds = %100
%107 = load i32, i32* %7
%108 = icmp eq i32 2, %107
br i1 %108, label %109, label %111
109: ; preds = %106
%110 = call i32 (...) @snapshot_create()
br label %123
111: ; preds = %106
%112 = load i32, i32* %7
%113 = icmp eq i32 3, %112
br i1 %113, label %114, label %116
114: ; preds = %111
%115 = call i32 (...) @snapshot_del()
br label %122
116: ; preds = %111
%117 = load i32, i32* %7
%118 = icmp eq i32 4, %117
br i1 %118, label %119, label %121
119: ; preds = %116
%120 = call i32 (...) @snapshot_apply()
br label %121
121: ; preds = %119, %116
br label %122
122: ; preds = %121, %114
br label %123
123: ; preds = %122, %109
br label %124
124: ; preds = %123, %104
br label %486
125: ; preds = %96
%126 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%127 = call i64 @strcmp(i8* %126, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %154
129: ; preds = %125
%130 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%131 = load i32, i32* %7
%132 = icmp eq i32 1, %131
br i1 %132, label %133, label %135
133: ; preds = %129
%134 = call i32 (...) @cd_list()
br label %153
135: ; preds = %129
%136 = load i32, i32* %7
%137 = icmp eq i32 2, %136
br i1 %137, label %138, label %140
138: ; preds = %135
%139 = call i32 (...) @cd_mounted()
br label %152
140: ; preds = %135
%141 = load i32, i32* %7
%142 = icmp eq i32 3, %141
br i1 %142, label %143, label %145
143: ; preds = %140
%144 = call i32 (...) @cd_mount()
br label %151
145: ; preds = %140
%146 = load i32, i32* %7
%147 = icmp eq i32 4, %146
br i1 %147, label %148, label %150
148: ; preds = %145
%149 = call i32 (...) @cd_unmount()
br label %150
150: ; preds = %148, %145
br label %151
151: ; preds = %150, %143
br label %152
152: ; preds = %151, %138
br label %153
153: ; preds = %152, %133
br label %485
154: ; preds = %125
%155 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%156 = call i64 @strcmp(i8* %155, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %201
158: ; preds = %154
%159 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%160 = load i32, i32* %7
%161 = icmp eq i32 1, %160
br i1 %161, label %162, label %164
162: ; preds = %158
%163 = call i32 (...) @ppower_status()
br label %200
164: ; preds = %158
%165 = load i32, i32* %7
%166 = icmp eq i32 2, %165
br i1 %166, label %167, label %169
167: ; preds = %164
%168 = call i32 (...) @ppower_on()
br label %199
169: ; preds = %164
%170 = load i32, i32* %7
%171 = icmp eq i32 3, %170
br i1 %171, label %172, label %174
172: ; preds = %169
%173 = call i32 (...) @ppower_off()
br label %198
174: ; preds = %169
%175 = load i32, i32* %7
%176 = icmp eq i32 4, %175
br i1 %176, label %177, label %179
177: ; preds = %174
%178 = call i32 (...) @ppower_reset()
br label %197
179: ; preds = %174
%180 = load i32, i32* %7
%181 = icmp eq i32 5, %180
br i1 %181, label %182, label %184
182: ; preds = %179
%183 = call i32 (...) @ppower_stop()
br label %196
184: ; preds = %179
%185 = load i32, i32* %7
%186 = icmp eq i32 6, %185
br i1 %186, label %187, label %189
187: ; preds = %184
%188 = call i32 (...) @ppower_continue()
br label %195
189: ; preds = %184
%190 = load i32, i32* %7
%191 = icmp eq i32 7, %190
br i1 %191, label %192, label %194
192: ; preds = %189
%193 = call i32 (...) @ppower_halt()
br label %194
194: ; preds = %192, %189
br label %195
195: ; preds = %194, %187
br label %196
196: ; preds = %195, %182
br label %197
197: ; preds = %196, %177
br label %198
198: ; preds = %197, %172
br label %199
199: ; preds = %198, %167
br label %200
200: ; preds = %199, %162
br label %484
201: ; preds = %154
%202 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%203 = call i64 @strcmp(i8* %202, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%204 = icmp eq i64 %203, 0
br i1 %204, label %205, label %230
205: ; preds = %201
%206 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%207 = load i32, i32* %7
%208 = icmp eq i32 1, %207
br i1 %208, label %209, label %211
209: ; preds = %205
%210 = call i32 (...) @os_list()
br label %229
211: ; preds = %205
%212 = load i32, i32* %7
%213 = icmp eq i32 2, %212
br i1 %213, label %214, label %216
214: ; preds = %211
%215 = call i32 (...) @os_import()
br label %228
216: ; preds = %211
%217 = load i32, i32* %7
%218 = icmp eq i32 3, %217
br i1 %218, label %219, label %221
219: ; preds = %216
%220 = call i32 (...) @os_query()
br label %227
221: ; preds = %216
%222 = load i32, i32* %7
%223 = icmp eq i32 4, %222
br i1 %223, label %224, label %226
224: ; preds = %221
%225 = call i32 (...) @os_rebuild()
br label %226
226: ; preds = %224, %221
br label %227
227: ; preds = %226, %219
br label %228
228: ; preds = %227, %214
br label %229
229: ; preds = %228, %209
br label %483
230: ; preds = %201
%231 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%232 = call i64 @strcmp(i8* %231, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%233 = icmp eq i64 %232, 0
br i1 %233, label %234, label %253
234: ; preds = %230
%235 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%236 = load i32, i32* %7
%237 = icmp eq i32 1, %236
br i1 %237, label %238, label %240
238: ; preds = %234
%239 = call i32 (...) @sync_sync()
br label %252
240: ; preds = %234
%241 = load i32, i32* %7
%242 = icmp eq i32 2, %241
br i1 %242, label %243, label %245
243: ; preds = %240
%244 = call i32 (...) @sync_query()
br label %251
245: ; preds = %240
%246 = load i32, i32* %7
%247 = icmp eq i32 3, %246
br i1 %247, label %248, label %250
248: ; preds = %245
%249 = call i32 (...) @sync_rebuild()
br label %250
250: ; preds = %248, %245
br label %251
251: ; preds = %250, %243
br label %252
252: ; preds = %251, %238
br label %482
253: ; preds = %230
%254 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%255 = call i64 @strcmp(i8* %254, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%256 = icmp eq i64 %255, 0
br i1 %256, label %257, label %305
257: ; preds = %253
%258 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%259 = load i32, i32* %7
%260 = icmp eq i32 1, %259
br i1 %260, label %261, label %263
261: ; preds = %257
%262 = call i32 (...) @migrate_send0()
br label %304
263: ; preds = %257
%264 = load i32, i32* %7
%265 = icmp eq i32 2, %264
br i1 %265, label %266, label %268
266: ; preds = %263
%267 = call i32 (...) @migrate_recv0()
br label %303
268: ; preds = %263
%269 = load i32, i32* %7
%270 = icmp eq i32 3, %269
br i1 %270, label %271, label %273
271: ; preds = %268
%272 = call i32 (...) @migrate_send1()
br label %302
273: ; preds = %268
%274 = load i32, i32* %7
%275 = icmp eq i32 4, %274
br i1 %275, label %276, label %277
276: ; preds = %273
br label %301
277: ; preds = %273
%278 = load i32, i32* %7
%279 = icmp eq i32 5, %278
br i1 %279, label %280, label %282
280: ; preds = %277
%281 = call i32 (...) @migrate_query0()
br label %300
282: ; preds = %277
%283 = load i32, i32* %7
%284 = icmp eq i32 6, %283
br i1 %284, label %285, label %287
285: ; preds = %282
%286 = call i32 (...) @migrate_query1()
br label %299
287: ; preds = %282
%288 = load i32, i32* %7
%289 = icmp eq i32 7, %288
br i1 %289, label %290, label %292
290: ; preds = %287
%291 = call i32 (...) @migrate_cancel0()
br label %298
292: ; preds = %287
%293 = load i32, i32* %7
%294 = icmp eq i32 8, %293
br i1 %294, label %295, label %297
295: ; preds = %292
%296 = call i32 (...) @migrate_cancel1()
br label %297
297: ; preds = %295, %292
br label %298
298: ; preds = %297, %290
br label %299
299: ; preds = %298, %285
br label %300
300: ; preds = %299, %280
br label %301
301: ; preds = %300, %276
br label %302
302: ; preds = %301, %271
br label %303
303: ; preds = %302, %266
br label %304
304: ; preds = %303, %261
br label %481
305: ; preds = %253
%306 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%307 = call i64 @strcmp(i8* %306, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%308 = icmp eq i64 %307, 0
br i1 %308, label %309, label %340
309: ; preds = %305
%310 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%311 = load i32, i32* %7
%312 = icmp eq i32 1, %311
br i1 %312, label %313, label %315
313: ; preds = %309
%314 = call i32 (...) @sys_list()
br label %339
315: ; preds = %309
%316 = load i32, i32* %7
%317 = icmp eq i32 2, %316
br i1 %317, label %318, label %320
318: ; preds = %315
%319 = call i32 (...) @sys_rsync()
br label %338
320: ; preds = %315
%321 = load i32, i32* %7
%322 = icmp eq i32 3, %321
br i1 %322, label %323, label %325
323: ; preds = %320
%324 = call i32 (...) @iso_list()
br label %337
325: ; preds = %320
%326 = load i32, i32* %7
%327 = icmp eq i32 4, %326
br i1 %327, label %328, label %330
328: ; preds = %325
%329 = call i32 (...) @iso_rsync()
br label %336
330: ; preds = %325
%331 = load i32, i32* %7
%332 = icmp eq i32 5, %331
br i1 %332, label %333, label %335
333: ; preds = %330
%334 = call i32 (...) @sysiso_query()
br label %335
335: ; preds = %333, %330
br label %336
336: ; preds = %335, %328
br label %337
337: ; preds = %336, %323
br label %338
338: ; preds = %337, %318
br label %339
339: ; preds = %338, %313
br label %480
340: ; preds = %305
%341 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%342 = call i64 @strcmp(i8* %341, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%343 = icmp eq i64 %342, 0
br i1 %343, label %344, label %369
344: ; preds = %340
%345 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%346 = load i32, i32* %7
%347 = icmp eq i32 1, %346
br i1 %347, label %348, label %350
348: ; preds = %344
%349 = call i32 (...) @backup_backup()
br label %368
350: ; preds = %344
%351 = load i32, i32* %7
%352 = icmp eq i32 2, %351
br i1 %352, label %353, label %355
353: ; preds = %350
%354 = call i32 (...) @backup_restore()
br label %367
355: ; preds = %350
%356 = load i32, i32* %7
%357 = icmp eq i32 3, %356
br i1 %357, label %358, label %360
358: ; preds = %355
%359 = call i32 (...) @backup_query()
br label %366
360: ; preds = %355
%361 = load i32, i32* %7
%362 = icmp eq i32 4, %361
br i1 %362, label %363, label %365
363: ; preds = %360
%364 = call i32 (...) @backup_rebase()
br label %365
365: ; preds = %363, %360
br label %366
366: ; preds = %365, %358
br label %367
367: ; preds = %366, %353
br label %368
368: ; preds = %367, %348
br label %479
369: ; preds = %340
%370 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%371 = call i64 @strcmp(i8* %370, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%372 = icmp eq i64 %371, 0
br i1 %372, label %373, label %392
373: ; preds = %369
%374 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%375 = load i32, i32* %7
%376 = icmp eq i32 1, %375
br i1 %376, label %377, label %379
377: ; preds = %373
%378 = call i32 (...) @alter_alter()
br label %391
379: ; preds = %373
%380 = load i32, i32* %7
%381 = icmp eq i32 2, %380
br i1 %381, label %382, label %384
382: ; preds = %379
%383 = call i32 (...) @alter_query()
br label %390
384: ; preds = %379
%385 = load i32, i32* %7
%386 = icmp eq i32 3, %385
br i1 %386, label %387, label %389
387: ; preds = %384
%388 = call i32 (...) @alter_rebase()
br label %389
389: ; preds = %387, %384
br label %390
390: ; preds = %389, %382
br label %391
391: ; preds = %390, %377
br label %478
392: ; preds = %369
%393 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%394 = call i64 @strcmp(i8* %393, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%395 = icmp eq i64 %394, 0
br i1 %395, label %396, label %398
396: ; preds = %392
%397 = call i32 (...) @online()
br label %477
398: ; preds = %392
%399 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%400 = call i64 @strcmp(i8* %399, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%401 = icmp eq i64 %400, 0
br i1 %401, label %402, label %427
402: ; preds = %398
%403 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%404 = load i32, i32* %7
%405 = icmp eq i32 1, %404
br i1 %405, label %406, label %408
406: ; preds = %402
%407 = call i32 (...) @disk_list()
br label %426
408: ; preds = %402
%409 = load i32, i32* %7
%410 = icmp eq i32 2, %409
br i1 %410, label %411, label %413
411: ; preds = %408
%412 = call i32 (...) @disk_create()
br label %425
413: ; preds = %408
%414 = load i32, i32* %7
%415 = icmp eq i32 3, %414
br i1 %415, label %416, label %418
416: ; preds = %413
%417 = call i32 (...) @disk_mount()
br label %424
418: ; preds = %413
%419 = load i32, i32* %7
%420 = icmp eq i32 4, %419
br i1 %420, label %421, label %423
421: ; preds = %418
%422 = call i32 (...) @disk_umount()
br label %423
423: ; preds = %421, %418
br label %424
424: ; preds = %423, %416
br label %425
425: ; preds = %424, %411
br label %426
426: ; preds = %425, %406
br label %476
427: ; preds = %398
%428 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%429 = call i64 @strcmp(i8* %428, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%430 = icmp eq i64 %429, 0
br i1 %430, label %431, label %449
431: ; preds = %427
%432 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%433 = load i32, i32* %7
%434 = icmp eq i32 1, %433
br i1 %434, label %435, label %437
435: ; preds = %431
%436 = call i32 (...) @brctl_addbr()
br label %448
437: ; preds = %431
%438 = load i32, i32* %7
%439 = icmp eq i32 2, %438
br i1 %439, label %440, label %441
440: ; preds = %437
br label %447
441: ; preds = %437
%442 = load i32, i32* %7
%443 = icmp eq i32 3, %442
br i1 %443, label %444, label %446
444: ; preds = %441
%445 = call i32 (...) @brctl_addif()
br label %446
446: ; preds = %444, %441
br label %447
447: ; preds = %446, %440
br label %448
448: ; preds = %447, %435
br label %475
449: ; preds = %427
%450 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%451 = call i64 @strcmp(i8* %450, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%452 = icmp eq i64 %451, 0
br i1 %452, label %453, label %466
453: ; preds = %449
%454 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%455 = load i32, i32* %7
%456 = icmp eq i32 1, %455
br i1 %456, label %457, label %459
457: ; preds = %453
%458 = call i32 (...) @diskk_mount()
br label %465
459: ; preds = %453
%460 = load i32, i32* %7
%461 = icmp eq i32 2, %460
br i1 %461, label %462, label %464
462: ; preds = %459
%463 = call i32 (...) @diskk_umount()
br label %464
464: ; preds = %462, %459
br label %465
465: ; preds = %464, %457
br label %474
466: ; preds = %449
%467 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%468 = call i64 @strcmp(i8* %467, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%469 = icmp eq i64 %468, 0
br i1 %469, label %470, label %472
470: ; preds = %466
%471 = call i32 (...) @pbackup_backup()
br label %473
472: ; preds = %466
br label %473
473: ; preds = %472, %470
br label %474
474: ; preds = %473, %465
br label %475
475: ; preds = %474, %448
br label %476
476: ; preds = %475, %426
br label %477
477: ; preds = %476, %396
br label %478
478: ; preds = %477, %391
br label %479
479: ; preds = %478, %368
br label %480
480: ; preds = %479, %339
br label %481
481: ; preds = %480, %304
br label %482
482: ; preds = %481, %252
br label %483
483: ; preds = %482, %229
br label %484
484: ; preds = %483, %200
br label %485
485: ; preds = %484, %153
br label %486
486: ; preds = %485, %124
br label %487
487: ; preds = %486, %95
br label %488
488: ; preds = %487, %23
br label %489
489: ; preds = %488, %17
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [6 x i8] c"addvm\00"
@.str.2 = [6 x i8] c"delvm\00"
@.str.3 = [6 x i8] c"power\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [9 x i8] c"snapshot\00"
@.str.6 = [3 x i8] c"cd\00"
@.str.7 = [7 x i8] c"ppower\00"
@.str.8 = [3 x i8] c"os\00"
@.str.9 = [5 x i8] c"sync\00"
@.str.10 = [8 x i8] c"migrate\00"
@.str.11 = [6 x i8] c"distb\00"
@.str.12 = [7 x i8] c"backup\00"
@.str.13 = [6 x i8] c"alter\00"
@.str.14 = [7 x i8] c"online\00"
@.str.15 = [5 x i8] c"disk\00"
@.str.16 = [6 x i8] c"brctl\00"
@.str.17 = [6 x i8] c"diskk\00"
@.str.18 = [8 x i8] c"pbackup\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [1024 x i8]
%4 = alloca i32
%5 = tail call i32 (...) @geteuid()
%6 = tail call i32 @setuid(i32 %5)
%7 = tail call i32 (...) @getegid()
%8 = tail call i32 @setgid(i32 %7)
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%10 = bitcast i32* %4 to i8*
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %9)
%12 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 (...) @addvm()
br label %229
16: ; preds = %2
%17 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @delvm()
br label %229
21: ; preds = %16
%22 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %49
24: ; preds = %21
%25 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%26 = load i32, i32* %4
switch i32 %26, label %229 [
i32 1, label %27
i32 2, label %29
i32 3, label %31
i32 4, label %33
i32 5, label %35
i32 6, label %37
i32 7, label %39
i32 8, label %41
i32 9, label %43
i32 10, label %45
i32 11, label %47
]
27: ; preds = %24
%28 = call i32 (...) @power_status()
br label %229
29: ; preds = %24
%30 = call i32 (...) @power_on()
br label %229
31: ; preds = %24
%32 = call i32 (...) @power_off()
br label %229
33: ; preds = %24
%34 = call i32 (...) @power_reset()
br label %229
35: ; preds = %24
%36 = call i32 (...) @power_stop()
br label %229
37: ; preds = %24
%38 = call i32 (...) @power_continue()
br label %229
39: ; preds = %24
%40 = call i32 (...) @power_halt()
br label %229
41: ; preds = %24
%42 = call i32 (...) @power_commit()
br label %229
43: ; preds = %24
%44 = call i32 (...) @power_drop()
br label %229
45: ; preds = %24
%46 = call i32 (...) @power_rebuild()
br label %229
47: ; preds = %24
%48 = call i32 (...) @power_compare()
br label %229
49: ; preds = %21
%50 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %63
52: ; preds = %49
%53 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%54 = load i32, i32* %4
switch i32 %54, label %229 [
i32 1, label %55
i32 2, label %57
i32 3, label %59
i32 4, label %61
]
55: ; preds = %52
%56 = call i32 (...) @snapshot_list()
br label %229
57: ; preds = %52
%58 = call i32 (...) @snapshot_create()
br label %229
59: ; preds = %52
%60 = call i32 (...) @snapshot_del()
br label %229
61: ; preds = %52
%62 = call i32 (...) @snapshot_apply()
br label %229
63: ; preds = %49
%64 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %77
66: ; preds = %63
%67 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%68 = load i32, i32* %4
switch i32 %68, label %229 [
i32 1, label %69
i32 2, label %71
i32 3, label %73
i32 4, label %75
]
69: ; preds = %66
%70 = call i32 (...) @cd_list()
br label %229
71: ; preds = %66
%72 = call i32 (...) @cd_mounted()
br label %229
73: ; preds = %66
%74 = call i32 (...) @cd_mount()
br label %229
75: ; preds = %66
%76 = call i32 (...) @cd_unmount()
br label %229
77: ; preds = %63
%78 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %97
80: ; preds = %77
%81 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%82 = load i32, i32* %4
switch i32 %82, label %229 [
i32 1, label %83
i32 2, label %85
i32 3, label %87
i32 4, label %89
i32 5, label %91
i32 6, label %93
i32 7, label %95
]
83: ; preds = %80
%84 = call i32 (...) @ppower_status()
br label %229
85: ; preds = %80
%86 = call i32 (...) @ppower_on()
br label %229
87: ; preds = %80
%88 = call i32 (...) @ppower_off()
br label %229
89: ; preds = %80
%90 = call i32 (...) @ppower_reset()
br label %229
91: ; preds = %80
%92 = call i32 (...) @ppower_stop()
br label %229
93: ; preds = %80
%94 = call i32 (...) @ppower_continue()
br label %229
95: ; preds = %80
%96 = call i32 (...) @ppower_halt()
br label %229
97: ; preds = %77
%98 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %100, label %111
100: ; preds = %97
%101 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%102 = load i32, i32* %4
switch i32 %102, label %229 [
i32 1, label %103
i32 2, label %105
i32 3, label %107
i32 4, label %109
]
103: ; preds = %100
%104 = call i32 (...) @os_list()
br label %229
105: ; preds = %100
%106 = call i32 (...) @os_import()
br label %229
107: ; preds = %100
%108 = call i32 (...) @os_query()
br label %229
109: ; preds = %100
%110 = call i32 (...) @os_rebuild()
br label %229
111: ; preds = %97
%112 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%113 = icmp eq i64 %112, 0
br i1 %113, label %114, label %123
114: ; preds = %111
%115 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%116 = load i32, i32* %4
switch i32 %116, label %229 [
i32 1, label %117
i32 2, label %119
i32 3, label %121
]
117: ; preds = %114
%118 = call i32 (...) @sync_sync()
br label %229
119: ; preds = %114
%120 = call i32 (...) @sync_query()
br label %229
121: ; preds = %114
%122 = call i32 (...) @sync_rebuild()
br label %229
123: ; preds = %111
%124 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %143
126: ; preds = %123
%127 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%128 = load i32, i32* %4
switch i32 %128, label %229 [
i32 1, label %129
i32 2, label %131
i32 3, label %133
i32 8, label %141
i32 5, label %135
i32 6, label %137
i32 7, label %139
]
129: ; preds = %126
%130 = call i32 (...) @migrate_send0()
br label %229
131: ; preds = %126
%132 = call i32 (...) @migrate_recv0()
br label %229
133: ; preds = %126
%134 = call i32 (...) @migrate_send1()
br label %229
135: ; preds = %126
%136 = call i32 (...) @migrate_query0()
br label %229
137: ; preds = %126
%138 = call i32 (...) @migrate_query1()
br label %229
139: ; preds = %126
%140 = call i32 (...) @migrate_cancel0()
br label %229
141: ; preds = %126
%142 = call i32 (...) @migrate_cancel1()
br label %229
143: ; preds = %123
%144 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %159
146: ; preds = %143
%147 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%148 = load i32, i32* %4
switch i32 %148, label %229 [
i32 1, label %149
i32 2, label %151
i32 3, label %153
i32 4, label %155
i32 5, label %157
]
149: ; preds = %146
%150 = call i32 (...) @sys_list()
br label %229
151: ; preds = %146
%152 = call i32 (...) @sys_rsync()
br label %229
153: ; preds = %146
%154 = call i32 (...) @iso_list()
br label %229
155: ; preds = %146
%156 = call i32 (...) @iso_rsync()
br label %229
157: ; preds = %146
%158 = call i32 (...) @sysiso_query()
br label %229
159: ; preds = %143
%160 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%161 = icmp eq i64 %160, 0
br i1 %161, label %162, label %173
162: ; preds = %159
%163 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%164 = load i32, i32* %4
switch i32 %164, label %229 [
i32 1, label %165
i32 2, label %167
i32 3, label %169
i32 4, label %171
]
165: ; preds = %162
%166 = call i32 (...) @backup_backup()
br label %229
167: ; preds = %162
%168 = call i32 (...) @backup_restore()
br label %229
169: ; preds = %162
%170 = call i32 (...) @backup_query()
br label %229
171: ; preds = %162
%172 = call i32 (...) @backup_rebase()
br label %229
173: ; preds = %159
%174 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %185
176: ; preds = %173
%177 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%178 = load i32, i32* %4
switch i32 %178, label %229 [
i32 1, label %179
i32 2, label %181
i32 3, label %183
]
179: ; preds = %176
%180 = call i32 (...) @alter_alter()
br label %229
181: ; preds = %176
%182 = call i32 (...) @alter_query()
br label %229
183: ; preds = %176
%184 = call i32 (...) @alter_rebase()
br label %229
185: ; preds = %173
%186 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0))
%187 = icmp eq i64 %186, 0
br i1 %187, label %188, label %190
188: ; preds = %185
%189 = call i32 (...) @online()
br label %229
190: ; preds = %185
%191 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%192 = icmp eq i64 %191, 0
br i1 %192, label %193, label %204
193: ; preds = %190
%194 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%195 = load i32, i32* %4
switch i32 %195, label %229 [
i32 1, label %196
i32 2, label %198
i32 3, label %200
i32 4, label %202
]
196: ; preds = %193
%197 = call i32 (...) @disk_list()
br label %229
198: ; preds = %193
%199 = call i32 (...) @disk_create()
br label %229
200: ; preds = %193
%201 = call i32 (...) @disk_mount()
br label %229
202: ; preds = %193
%203 = call i32 (...) @disk_umount()
br label %229
204: ; preds = %190
%205 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0))
%206 = icmp eq i64 %205, 0
br i1 %206, label %207, label %214
207: ; preds = %204
%208 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%209 = load i32, i32* %4
switch i32 %209, label %229 [
i32 1, label %210
i32 3, label %212
]
210: ; preds = %207
%211 = call i32 (...) @brctl_addbr()
br label %229
212: ; preds = %207
%213 = call i32 (...) @brctl_addif()
br label %229
214: ; preds = %204
%215 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%216 = icmp eq i64 %215, 0
br i1 %216, label %217, label %224
217: ; preds = %214
%218 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %4)
%219 = load i32, i32* %4
switch i32 %219, label %229 [
i32 1, label %220
i32 2, label %222
]
220: ; preds = %217
%221 = call i32 (...) @diskk_mount()
br label %229
222: ; preds = %217
%223 = call i32 (...) @diskk_umount()
br label %229
224: ; preds = %214
%225 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%226 = icmp eq i64 %225, 0
br i1 %226, label %227, label %229
227: ; preds = %224
%228 = call i32 (...) @pbackup_backup()
br label %229
229: ; preds = %217, %207, %193, %176, %162, %146, %126, %114, %100, %80, %66, %52, %24, %19, %57, %61, %59, %55, %85, %89, %93, %95, %91, %87, %83, %119, %121, %117, %151, %155, %157, %153, %149, %181, %183, %179, %198, %202, %200, %196, %222, %220, %224, %227, %210, %212, %188, %165, %169, %171, %167, %129, %133, %135, %139, %141, %137, %131, %103, %107, %109, %105, %69, %73, %75, %71, %27, %31, %35, %39, %43, %47, %45, %41, %37, %33, %29, %14
ret i32 0
}