#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*/ sqlite3;

/* Variables and functions */
int SQLITE_OK;
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ db_simple_exec(int /*<<< orphan*/ *, char *);
int sqlite3_open(char *, int /*<<< orphan*/ **);
sqlite3 *db_create(void) {
  sqlite3 *db;
  int ret;
  ret = sqlite3_open(":memory:", &db);
  assert(ret == SQLITE_OK);
  db_simple_exec(db, "CREATE TABLE forbidden_nick ("
                     "id_nick INTEGER PRIMARY KEY,"
                     "nickname TEXT,"
                     "expiry INTEGER);");
  db_simple_exec(db, "CREATE INDEX fbd_nick "
                     "ON forbidden_nick (nickname ASC);");
  db_simple_exec(
      db, "INSERT INTO forbidden_nick (nickname, expiry) VALUES ('root', 0);");
  db_simple_exec(
      db,
      "INSERT INTO forbidden_nick (nickname, expiry) VALUES ('anonymous', 0);");
  db_simple_exec(db, "CREATE TABLE operator ("
                     "id_oper INTEGER PRIMARY KEY,"
                     "username TEXT UNIQUE,"
                     "password TEXT);");
  db_simple_exec(db, "CREATE INDEX op_userpass ON operator "
                     "(username ASC, password ASC);");
  db_simple_exec(db, "CREATE TABLE client ("
                     "id_client INTEGER PRIMARY KEY,"
                     "id_oper INTEGER REFERENCES operator (id_oper),"
                     "fd INTEGER UNIQUE,"
                     "ip TEXT,"
                     "port INTEGER,"
                     "orig_nickname TEXT,"
                     "nickname TEXT,"
                     "username TEXT,"
                     "realname TEXT,"
                     "orig_fullname TEXT,"
                     "fullname TEXT,"
                     "away_flag INTEGER,"
                     "away_text TEXT,"
                     "invisible_flag INTEGER,"
                     "wallops_flag INTEGER,"
                     "restricted_flag INTEGER,"
                     "operator_flag INTEGER,"
                     "local_operator_flag INTEGER,"
                     "server_notices_flag INTEGER,"
                     "array_index INTEGER,"
                     "regstate INTEGER,"
                     "last_activity INTEGER,"
                     "last_ping INTEGER,"
                     "last_talk INTEGER,"
                     "signon_time INTEGER,"
                     "is_quitting INTEGER);");
  db_simple_exec(db, "CREATE INDEX client_fd ON client (fd ASC);");
  db_simple_exec(db, "CREATE INDEX client_nick ON client (nickname ASC);");
  db_simple_exec(db, "CREATE INDEX client_oper ON client (id_oper ASC);");
  db_simple_exec(db,
                 "CREATE INDEX client_opflag ON client (operator_flag ASC);");
  db_simple_exec(
      db, "CREATE INDEX client_lopflag ON client (local_operator_flag ASC);");
  db_simple_exec(db,
                 "CREATE INDEX client_invflag ON client (invisible_flag ASC);");
  db_simple_exec(db, "CREATE TABLE channel ("
                     "id_channel INTEGER PRIMARY KEY,"
                     "orig_name TEXT,"
                     "name TEXT,"
                     "topic TEXT,"
                     "key_flag INTEGER,"
                     "key STRING,"
                     "limit_flag INTEGER,"
                     "limit_v INTEGER,"
                     "anonymous_flag INTEGER,"
                     "invite_only_flag INTEGER,"
                     "moderated_flag INTEGER,"
                     "no_outside_flag INTEGER,"
                     "quiet_flag INTEGER,"
                     "private_flag INTEGER,"
                     "secret_flag INTEGER,"
                     "oper_topic_flag INTEGER,"
                     "special_flag INTEGER);");
  db_simple_exec(db, "CREATE INDEX channel_name ON channel (name ASC);");
  db_simple_exec(db,
                 "CREATE INDEX channel_special ON channel (special_flag ASC);");
  db_simple_exec(db,
                 "INSERT INTO channel "
                 "(orig_name, name, topic, key_flag, key, limit_flag, limit_v, "
                 " anonymous_flag, invite_only_flag, moderated_flag, "
                 " no_outside_flag, quiet_flag, private_flag, secret_flag, "
                 " oper_topic_flag, special_flag) "
                 "VALUES ('#log', '#log', 'Server Log', 0, '', 0, 0, 0, 0, 0, "
                 "        1, 1, 0, 1, 1, 1);");
  db_simple_exec(db, "CREATE TABLE membership ("
                     "id_channel INTEGER REFERENCES channel (id_channel),"
                     "id_client INTEGER REFERENCES client (id_client),"
                     "operator_flag INTEGER,"
                     "voice_flag INTEGER,"
                     "PRIMARY KEY (id_channel, id_client));");
  db_simple_exec(db, "CREATE INDEX memb_cli ON "
                     "membership (id_client ASC);");
  db_simple_exec(db, "CREATE TRIGGER chan_del_part AFTER DELETE ON membership "
                     "WHEN (SELECT COUNT(*) FROM membership WHERE id_channel = "
                     "OLD.id_channel) = 0 "
                     "BEGIN "
                     "DELETE FROM channel WHERE id_channel = OLD.id_channel "
                     "AND special_flag = 0;"
                     "END;");
  db_simple_exec(db,
                 "CREATE TRIGGER chan_membership_del AFTER DELETE ON channel "
                 "BEGIN "
                 "DELETE FROM membership WHERE id_channel = OLD.id_channel;"
                 "END;");
  db_simple_exec(db, "CREATE TRIGGER cli_membership_del AFTER DELETE ON client "
                     "BEGIN "
                     "DELETE FROM membership WHERE id_client = OLD.id_client;"
                     "END;");
  db_simple_exec(db, "CREATE TABLE banmask ("
                     "id_banmask INTEGER PRIMARY KEY,"
                     "id_channel INTEGER REFERENCES channel (id_channel),"
                     "orig_mask TEXT,"
                     "mask TEXT);");
  db_simple_exec(db, "CREATE INDEX banmask_chan ON "
                     "banmask (id_channel ASC);");
  db_simple_exec(db, "CREATE INDEX banmask_mask ON "
                     "banmask (id_channel ASC, mask ASC);");
  db_simple_exec(db, "CREATE TRIGGER banmask_del AFTER DELETE ON channel "
                     "BEGIN "
                     "DELETE FROM banmask WHERE id_channel = OLD.id_channel;"
                     "END;");
  db_simple_exec(db, "CREATE TABLE exceptmask ("
                     "id_exceptmask INTEGER PRIMARY KEY,"
                     "id_channel INTEGER REFERENCES channel (id_channel),"
                     "orig_mask TEXT,"
                     "mask TEXT);");
  db_simple_exec(db, "CREATE INDEX exceptmask_chan ON "
                     "exceptmask (id_channel ASC);");
  db_simple_exec(db, "CREATE INDEX exceptmask_mask ON "
                     "exceptmask (id_channel ASC, mask ASC);");
  db_simple_exec(db, "CREATE TRIGGER exceptmask_del AFTER DELETE ON channel "
                     "BEGIN "
                     "DELETE FROM exceptmask WHERE id_channel = OLD.id_channel;"
                     "END;");
  db_simple_exec(db, "CREATE TABLE invitemask ("
                     "id_invitemask INTEGER PRIMARY KEY,"
                     "id_channel INTEGER REFERENCES channel (id_channel),"
                     "orig_mask TEXT,"
                     "mask TEXT);");
  db_simple_exec(db, "CREATE INDEX invitemask_chan ON "
                     "invitemask (id_channel ASC);");
  db_simple_exec(db, "CREATE INDEX invitemask_mask ON "
                     "invitemask (id_channel ASC, mask ASC);");
  db_simple_exec(db, "CREATE TRIGGER invitemask_del AFTER DELETE ON channel "
                     "BEGIN "
                     "DELETE FROM invitemask WHERE id_channel = OLD.id_channel;"
                     "END;");
  db_simple_exec(db, "CREATE TABLE invite ("
                     "id_channel INTEGER REFERENCES channel (id_channel),"
                     "id_client INTEGER REFERENCES client (id_client),"
                     "PRIMARY KEY(id_channel, id_client));");
  db_simple_exec(db, "CREATE TRIGGER invite_del AFTER DELETE ON channel "
                     "BEGIN "
                     "DELETE FROM invite WHERE id_channel = OLD.id_channel;"
                     "END;");
  db_simple_exec(db, "CREATE TRIGGER invite_cli_del AFTER DELETE ON client "
                     "BEGIN "
                     "DELETE FROM invite WHERE id_client = OLD.id_client;"
                     "END;");
  db_simple_exec(db, "CREATE TRIGGER invite_clear AFTER INSERT ON membership "
                     "BEGIN "
                     "DELETE FROM invite WHERE id_channel = NEW.id_channel AND "
                     "id_client = NEW.id_client;"
                     "END;");
  db_simple_exec(db, "CREATE TABLE whowas ("
                     "id_whowas INTEGER PRIMARY KEY,"
                     "orig_nickname TEXT,"
                     "nickname TEXT,"
                     "username TEXT,"
                     "ip TEXT,"
                     "realname TEXT,"
                     "quit_time INTEGER);");
  db_simple_exec(db, "CREATE INDEX whowas_nick ON whowas (nickname ASC);");
  db_simple_exec(db,
                 "CREATE TRIGGER whowas_insert AFTER DELETE ON client "
                 "BEGIN "
                 "INSERT INTO whowas "
                 "(orig_nickname, nickname, username, ip, realname, quit_time) "
                 "VALUES (OLD.orig_nickname, OLD.nickname, OLD.username, "
                 "OLD.ip, OLD.realname, strftime('%s'));"
                 "END;");
  return db;
}


x86 assembly (clang, -O0):
<db_create>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1030 <sqlite3_open@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    0x3e93(%rip),%rcx
cmp    (%rcx),%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0xee2(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0xf0a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0xf3c(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0xf73(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0xfbb(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0xfee(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1200(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x121b(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x123e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1260(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x128a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x12bb(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x12e7(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1439(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x145a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1486(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x15aa(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1665(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x168a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1755(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x17c4(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x182f(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x18a2(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x18c9(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x18fa(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x195e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x19d7(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1a04(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1a3b(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1aa5(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1b1e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1b4b(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1b82(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1bec(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1c79(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1cdb(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1d3e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1dc3(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1e3f(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rdi
lea    0x1e62(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<db_create>:
push   %rax
lea    0xec8(%rip),%rdi
mov    %rsp,%rsi
call   1030 <sqlite3_open@plt>
mov    0x3ea1(%rip),%rcx
xor    %edi,%edi
cmp    (%rcx),%eax
sete   %dil
call   1040 <assert@plt>
mov    (%rsp),%rdi
lea    0xeaa(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0xef2(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0xf1a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0xf4c(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0xf83(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0xfcb(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0xffe(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1210(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x122b(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x124e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1270(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x129a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x12cb(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x12f7(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1449(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x146a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1496(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x15ba(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1675(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x169a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1765(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x17d4(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x183f(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x18b2(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x18d9(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x190a(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x196e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x19e7(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1a14(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1a4b(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1ab5(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1b2e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1b5b(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1b92(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1bfc(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1c89(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1ceb(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1d4e(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1dd3(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1e4f(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rdi
lea    0x1e72(%rip),%rsi
call   1050 <db_simple_exec@plt>
mov    (%rsp),%rax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [9 x i8] c":memory:\00"
@SQLITE_OK = global i32 0
@.str.1 = [88 x i8] c"CREATE TABLE forbidden_nick (id_nick INTEGER PRIMARY KEY,nickname TEXT,expiry INTEGER);\00"
@.str.2 = [56 x i8] c"CREATE INDEX fbd_nick ON forbidden_nick (nickname ASC);\00"
@.str.3 = [66 x i8] c"INSERT INTO forbidden_nick (nickname, expiry) VALUES ('root', 0);\00"
@.str.4 = [71 x i8] c"INSERT INTO forbidden_nick (nickname, expiry) VALUES ('anonymous', 0);\00"
@.str.5 = [88 x i8] c"CREATE TABLE operator (id_oper INTEGER PRIMARY KEY,username TEXT UNIQUE,password TEXT);\00"
@.str.6 = [67 x i8] c"CREATE INDEX op_userpass ON operator (username ASC, password ASC);\00"
@.str.7 = [546 x i8] c"CREATE TABLE client (id_client INTEGER PRIMARY KEY,id_oper INTEGER REFERENCES operator (id_oper),fd INTEGER UNIQUE,ip TEXT,port INTEGER,orig_nickname TEXT,nickname TEXT,username TEXT,realname TEXT,orig_fullname TEXT,fullname TEXT,away_flag INTEGER,away_text TEXT,invisible_flag INTEGER,wallops_flag INTEGER,restricted_flag INTEGER,operator_flag INTEGER,local_operator_flag INTEGER,server_notices_flag INTEGER,array_index INTEGER,regstate INTEGER,last_activity INTEGER,last_ping INTEGER,last_talk INTEGER,signon_time INTEGER,is_quitting INTEGER);\00"
@.str.8 = [43 x i8] c"CREATE INDEX client_fd ON client (fd ASC);\00"
@.str.9 = [51 x i8] c"CREATE INDEX client_nick ON client (nickname ASC);\00"
@.str.10 = [50 x i8] c"CREATE INDEX client_oper ON client (id_oper ASC);\00"
@.str.11 = [58 x i8] c"CREATE INDEX client_opflag ON client (operator_flag ASC);\00"
@.str.12 = [65 x i8] c"CREATE INDEX client_lopflag ON client (local_operator_flag ASC);\00"
@.str.13 = [60 x i8] c"CREATE INDEX client_invflag ON client (invisible_flag ASC);\00"
@.str.14 = [354 x i8] c"CREATE TABLE channel (id_channel INTEGER PRIMARY KEY,orig_name TEXT,name TEXT,topic TEXT,key_flag INTEGER,key STRING,limit_flag INTEGER,limit_v INTEGER,anonymous_flag INTEGER,invite_only_flag INTEGER,moderated_flag INTEGER,no_outside_flag INTEGER,quiet_flag INTEGER,private_flag INTEGER,secret_flag INTEGER,oper_topic_flag INTEGER,special_flag INTEGER);\00"
@.str.15 = [49 x i8] c"CREATE INDEX channel_name ON channel (name ASC);\00"
@.str.16 = [60 x i8] c"CREATE INDEX channel_special ON channel (special_flag ASC);\00"
@.str.17 = [308 x i8] c"INSERT INTO channel (orig_name, name, topic, key_flag, key, limit_flag, limit_v, anonymous_flag, invite_only_flag, moderated_flag, no_outside_flag, quiet_flag, private_flag, secret_flag, oper_topic_flag, special_flag) VALUES ('#log', '#log', 'Server Log', 0, '', 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1);\00"
@.str.18 = [203 x i8] c"CREATE TABLE membership (id_channel INTEGER REFERENCES channel (id_channel),id_client INTEGER REFERENCES client (id_client),operator_flag INTEGER,voice_flag INTEGER,PRIMARY KEY (id_channel, id_client));\00"
@.str.19 = [53 x i8] c"CREATE INDEX memb_cli ON membership (id_client ASC);\00"
@.str.20 = [219 x i8] c"CREATE TRIGGER chan_del_part AFTER DELETE ON membership WHEN (SELECT COUNT(*) FROM membership WHERE id_channel = OLD.id_channel) = 0 BEGIN DELETE FROM channel WHERE id_channel = OLD.id_channel AND special_flag = 0;END;\00"
@.str.21 = [127 x i8] c"CREATE TRIGGER chan_membership_del AFTER DELETE ON channel BEGIN DELETE FROM membership WHERE id_channel = OLD.id_channel;END;\00"
@.str.22 = [123 x i8] c"CREATE TRIGGER cli_membership_del AFTER DELETE ON client BEGIN DELETE FROM membership WHERE id_client = OLD.id_client;END;\00"
@.str.23 = [131 x i8] c"CREATE TABLE banmask (id_banmask INTEGER PRIMARY KEY,id_channel INTEGER REFERENCES channel (id_channel),orig_mask TEXT,mask TEXT);\00"
@.str.24 = [55 x i8] c"CREATE INDEX banmask_chan ON banmask (id_channel ASC);\00"
@.str.25 = [65 x i8] c"CREATE INDEX banmask_mask ON banmask (id_channel ASC, mask ASC);\00"
@.str.26 = [116 x i8] c"CREATE TRIGGER banmask_del AFTER DELETE ON channel BEGIN DELETE FROM banmask WHERE id_channel = OLD.id_channel;END;\00"
@.str.27 = [137 x i8] c"CREATE TABLE exceptmask (id_exceptmask INTEGER PRIMARY KEY,id_channel INTEGER REFERENCES channel (id_channel),orig_mask TEXT,mask TEXT);\00"
@.str.28 = [61 x i8] c"CREATE INDEX exceptmask_chan ON exceptmask (id_channel ASC);\00"
@.str.29 = [71 x i8] c"CREATE INDEX exceptmask_mask ON exceptmask (id_channel ASC, mask ASC);\00"
@.str.30 = [122 x i8] c"CREATE TRIGGER exceptmask_del AFTER DELETE ON channel BEGIN DELETE FROM exceptmask WHERE id_channel = OLD.id_channel;END;\00"
@.str.31 = [137 x i8] c"CREATE TABLE invitemask (id_invitemask INTEGER PRIMARY KEY,id_channel INTEGER REFERENCES channel (id_channel),orig_mask TEXT,mask TEXT);\00"
@.str.32 = [61 x i8] c"CREATE INDEX invitemask_chan ON invitemask (id_channel ASC);\00"
@.str.33 = [71 x i8] c"CREATE INDEX invitemask_mask ON invitemask (id_channel ASC, mask ASC);\00"
@.str.34 = [122 x i8] c"CREATE TRIGGER invitemask_del AFTER DELETE ON channel BEGIN DELETE FROM invitemask WHERE id_channel = OLD.id_channel;END;\00"
@.str.35 = [157 x i8] c"CREATE TABLE invite (id_channel INTEGER REFERENCES channel (id_channel),id_client INTEGER REFERENCES client (id_client),PRIMARY KEY(id_channel, id_client));\00"
@.str.36 = [114 x i8] c"CREATE TRIGGER invite_del AFTER DELETE ON channel BEGIN DELETE FROM invite WHERE id_channel = OLD.id_channel;END;\00"
@.str.37 = [115 x i8] c"CREATE TRIGGER invite_cli_del AFTER DELETE ON client BEGIN DELETE FROM invite WHERE id_client = OLD.id_client;END;\00"
@.str.38 = [149 x i8] c"CREATE TRIGGER invite_clear AFTER INSERT ON membership BEGIN DELETE FROM invite WHERE id_channel = NEW.id_channel AND id_client = NEW.id_client;END;\00"
@.str.39 = [140 x i8] c"CREATE TABLE whowas (id_whowas INTEGER PRIMARY KEY,orig_nickname TEXT,nickname TEXT,username TEXT,ip TEXT,realname TEXT,quit_time INTEGER);\00"
@.str.40 = [51 x i8] c"CREATE INDEX whowas_nick ON whowas (nickname ASC);\00"
@.str.41 = [236 x i8] c"CREATE TRIGGER whowas_insert AFTER DELETE ON client BEGIN INSERT INTO whowas (orig_nickname, nickname, username, ip, realname, quit_time) VALUES (OLD.orig_nickname, OLD.nickname, OLD.username, OLD.ip, OLD.realname, strftime('%s'));END;\00"
define i32* @db_create() {
%1 = alloca i32*
%2 = alloca i32
%3 = call i32 @sqlite3_open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32** %1)
store i32 %3, i32* %2
%4 = load i32, i32* %2
%5 = load i32, i32* @SQLITE_OK
%6 = icmp eq i32 %4, %5
%7 = zext i1 %6 to i32
%8 = call i32 @assert(i32 %7)
%9 = load i32*, i32** %1
%10 = call i32 @db_simple_exec(i32* %9, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32*, i32** %1
%12 = call i32 @db_simple_exec(i32* %11, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
%13 = load i32*, i32** %1
%14 = call i32 @db_simple_exec(i32* %13, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%15 = load i32*, i32** %1
%16 = call i32 @db_simple_exec(i32* %15, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%17 = load i32*, i32** %1
%18 = call i32 @db_simple_exec(i32* %17, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.5, i64 0, i64 0))
%19 = load i32*, i32** %1
%20 = call i32 @db_simple_exec(i32* %19, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%21 = load i32*, i32** %1
%22 = call i32 @db_simple_exec(i32* %21, i8* getelementptr inbounds ([546 x i8], [546 x i8]* @.str.7, i64 0, i64 0))
%23 = load i32*, i32** %1
%24 = call i32 @db_simple_exec(i32* %23, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%25 = load i32*, i32** %1
%26 = call i32 @db_simple_exec(i32* %25, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%27 = load i32*, i32** %1
%28 = call i32 @db_simple_exec(i32* %27, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0))
%29 = load i32*, i32** %1
%30 = call i32 @db_simple_exec(i32* %29, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%31 = load i32*, i32** %1
%32 = call i32 @db_simple_exec(i32* %31, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%33 = load i32*, i32** %1
%34 = call i32 @db_simple_exec(i32* %33, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0))
%35 = load i32*, i32** %1
%36 = call i32 @db_simple_exec(i32* %35, i8* getelementptr inbounds ([354 x i8], [354 x i8]* @.str.14, i64 0, i64 0))
%37 = load i32*, i32** %1
%38 = call i32 @db_simple_exec(i32* %37, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0))
%39 = load i32*, i32** %1
%40 = call i32 @db_simple_exec(i32* %39, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0))
%41 = load i32*, i32** %1
%42 = call i32 @db_simple_exec(i32* %41, i8* getelementptr inbounds ([308 x i8], [308 x i8]* @.str.17, i64 0, i64 0))
%43 = load i32*, i32** %1
%44 = call i32 @db_simple_exec(i32* %43, i8* getelementptr inbounds ([203 x i8], [203 x i8]* @.str.18, i64 0, i64 0))
%45 = load i32*, i32** %1
%46 = call i32 @db_simple_exec(i32* %45, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.19, i64 0, i64 0))
%47 = load i32*, i32** %1
%48 = call i32 @db_simple_exec(i32* %47, i8* getelementptr inbounds ([219 x i8], [219 x i8]* @.str.20, i64 0, i64 0))
%49 = load i32*, i32** %1
%50 = call i32 @db_simple_exec(i32* %49, i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.21, i64 0, i64 0))
%51 = load i32*, i32** %1
%52 = call i32 @db_simple_exec(i32* %51, i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.22, i64 0, i64 0))
%53 = load i32*, i32** %1
%54 = call i32 @db_simple_exec(i32* %53, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.23, i64 0, i64 0))
%55 = load i32*, i32** %1
%56 = call i32 @db_simple_exec(i32* %55, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.24, i64 0, i64 0))
%57 = load i32*, i32** %1
%58 = call i32 @db_simple_exec(i32* %57, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.25, i64 0, i64 0))
%59 = load i32*, i32** %1
%60 = call i32 @db_simple_exec(i32* %59, i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.26, i64 0, i64 0))
%61 = load i32*, i32** %1
%62 = call i32 @db_simple_exec(i32* %61, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.27, i64 0, i64 0))
%63 = load i32*, i32** %1
%64 = call i32 @db_simple_exec(i32* %63, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.28, i64 0, i64 0))
%65 = load i32*, i32** %1
%66 = call i32 @db_simple_exec(i32* %65, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.29, i64 0, i64 0))
%67 = load i32*, i32** %1
%68 = call i32 @db_simple_exec(i32* %67, i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.30, i64 0, i64 0))
%69 = load i32*, i32** %1
%70 = call i32 @db_simple_exec(i32* %69, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.31, i64 0, i64 0))
%71 = load i32*, i32** %1
%72 = call i32 @db_simple_exec(i32* %71, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.32, i64 0, i64 0))
%73 = load i32*, i32** %1
%74 = call i32 @db_simple_exec(i32* %73, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.33, i64 0, i64 0))
%75 = load i32*, i32** %1
%76 = call i32 @db_simple_exec(i32* %75, i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.34, i64 0, i64 0))
%77 = load i32*, i32** %1
%78 = call i32 @db_simple_exec(i32* %77, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.35, i64 0, i64 0))
%79 = load i32*, i32** %1
%80 = call i32 @db_simple_exec(i32* %79, i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.36, i64 0, i64 0))
%81 = load i32*, i32** %1
%82 = call i32 @db_simple_exec(i32* %81, i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.37, i64 0, i64 0))
%83 = load i32*, i32** %1
%84 = call i32 @db_simple_exec(i32* %83, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.38, i64 0, i64 0))
%85 = load i32*, i32** %1
%86 = call i32 @db_simple_exec(i32* %85, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.39, i64 0, i64 0))
%87 = load i32*, i32** %1
%88 = call i32 @db_simple_exec(i32* %87, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.40, i64 0, i64 0))
%89 = load i32*, i32** %1
%90 = call i32 @db_simple_exec(i32* %89, i8* getelementptr inbounds ([236 x i8], [236 x i8]* @.str.41, i64 0, i64 0))
%91 = load i32*, i32** %1
ret i32* %91
}

LLVM IR (-O2):
@.str = [9 x i8] c":memory:\00"
@SQLITE_OK = global i32 0
@.str.1 = [88 x i8] c"CREATE TABLE forbidden_nick (id_nick INTEGER PRIMARY KEY,nickname TEXT,expiry INTEGER);\00"
@.str.2 = [56 x i8] c"CREATE INDEX fbd_nick ON forbidden_nick (nickname ASC);\00"
@.str.3 = [66 x i8] c"INSERT INTO forbidden_nick (nickname, expiry) VALUES ('root', 0);\00"
@.str.4 = [71 x i8] c"INSERT INTO forbidden_nick (nickname, expiry) VALUES ('anonymous', 0);\00"
@.str.5 = [88 x i8] c"CREATE TABLE operator (id_oper INTEGER PRIMARY KEY,username TEXT UNIQUE,password TEXT);\00"
@.str.6 = [67 x i8] c"CREATE INDEX op_userpass ON operator (username ASC, password ASC);\00"
@.str.7 = [546 x i8] c"CREATE TABLE client (id_client INTEGER PRIMARY KEY,id_oper INTEGER REFERENCES operator (id_oper),fd INTEGER UNIQUE,ip TEXT,port INTEGER,orig_nickname TEXT,nickname TEXT,username TEXT,realname TEXT,orig_fullname TEXT,fullname TEXT,away_flag INTEGER,away_text TEXT,invisible_flag INTEGER,wallops_flag INTEGER,restricted_flag INTEGER,operator_flag INTEGER,local_operator_flag INTEGER,server_notices_flag INTEGER,array_index INTEGER,regstate INTEGER,last_activity INTEGER,last_ping INTEGER,last_talk INTEGER,signon_time INTEGER,is_quitting INTEGER);\00"
@.str.8 = [43 x i8] c"CREATE INDEX client_fd ON client (fd ASC);\00"
@.str.9 = [51 x i8] c"CREATE INDEX client_nick ON client (nickname ASC);\00"
@.str.10 = [50 x i8] c"CREATE INDEX client_oper ON client (id_oper ASC);\00"
@.str.11 = [58 x i8] c"CREATE INDEX client_opflag ON client (operator_flag ASC);\00"
@.str.12 = [65 x i8] c"CREATE INDEX client_lopflag ON client (local_operator_flag ASC);\00"
@.str.13 = [60 x i8] c"CREATE INDEX client_invflag ON client (invisible_flag ASC);\00"
@.str.14 = [354 x i8] c"CREATE TABLE channel (id_channel INTEGER PRIMARY KEY,orig_name TEXT,name TEXT,topic TEXT,key_flag INTEGER,key STRING,limit_flag INTEGER,limit_v INTEGER,anonymous_flag INTEGER,invite_only_flag INTEGER,moderated_flag INTEGER,no_outside_flag INTEGER,quiet_flag INTEGER,private_flag INTEGER,secret_flag INTEGER,oper_topic_flag INTEGER,special_flag INTEGER);\00"
@.str.15 = [49 x i8] c"CREATE INDEX channel_name ON channel (name ASC);\00"
@.str.16 = [60 x i8] c"CREATE INDEX channel_special ON channel (special_flag ASC);\00"
@.str.17 = [308 x i8] c"INSERT INTO channel (orig_name, name, topic, key_flag, key, limit_flag, limit_v, anonymous_flag, invite_only_flag, moderated_flag, no_outside_flag, quiet_flag, private_flag, secret_flag, oper_topic_flag, special_flag) VALUES ('#log', '#log', 'Server Log', 0, '', 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 1);\00"
@.str.18 = [203 x i8] c"CREATE TABLE membership (id_channel INTEGER REFERENCES channel (id_channel),id_client INTEGER REFERENCES client (id_client),operator_flag INTEGER,voice_flag INTEGER,PRIMARY KEY (id_channel, id_client));\00"
@.str.19 = [53 x i8] c"CREATE INDEX memb_cli ON membership (id_client ASC);\00"
@.str.20 = [219 x i8] c"CREATE TRIGGER chan_del_part AFTER DELETE ON membership WHEN (SELECT COUNT(*) FROM membership WHERE id_channel = OLD.id_channel) = 0 BEGIN DELETE FROM channel WHERE id_channel = OLD.id_channel AND special_flag = 0;END;\00"
@.str.21 = [127 x i8] c"CREATE TRIGGER chan_membership_del AFTER DELETE ON channel BEGIN DELETE FROM membership WHERE id_channel = OLD.id_channel;END;\00"
@.str.22 = [123 x i8] c"CREATE TRIGGER cli_membership_del AFTER DELETE ON client BEGIN DELETE FROM membership WHERE id_client = OLD.id_client;END;\00"
@.str.23 = [131 x i8] c"CREATE TABLE banmask (id_banmask INTEGER PRIMARY KEY,id_channel INTEGER REFERENCES channel (id_channel),orig_mask TEXT,mask TEXT);\00"
@.str.24 = [55 x i8] c"CREATE INDEX banmask_chan ON banmask (id_channel ASC);\00"
@.str.25 = [65 x i8] c"CREATE INDEX banmask_mask ON banmask (id_channel ASC, mask ASC);\00"
@.str.26 = [116 x i8] c"CREATE TRIGGER banmask_del AFTER DELETE ON channel BEGIN DELETE FROM banmask WHERE id_channel = OLD.id_channel;END;\00"
@.str.27 = [137 x i8] c"CREATE TABLE exceptmask (id_exceptmask INTEGER PRIMARY KEY,id_channel INTEGER REFERENCES channel (id_channel),orig_mask TEXT,mask TEXT);\00"
@.str.28 = [61 x i8] c"CREATE INDEX exceptmask_chan ON exceptmask (id_channel ASC);\00"
@.str.29 = [71 x i8] c"CREATE INDEX exceptmask_mask ON exceptmask (id_channel ASC, mask ASC);\00"
@.str.30 = [122 x i8] c"CREATE TRIGGER exceptmask_del AFTER DELETE ON channel BEGIN DELETE FROM exceptmask WHERE id_channel = OLD.id_channel;END;\00"
@.str.31 = [137 x i8] c"CREATE TABLE invitemask (id_invitemask INTEGER PRIMARY KEY,id_channel INTEGER REFERENCES channel (id_channel),orig_mask TEXT,mask TEXT);\00"
@.str.32 = [61 x i8] c"CREATE INDEX invitemask_chan ON invitemask (id_channel ASC);\00"
@.str.33 = [71 x i8] c"CREATE INDEX invitemask_mask ON invitemask (id_channel ASC, mask ASC);\00"
@.str.34 = [122 x i8] c"CREATE TRIGGER invitemask_del AFTER DELETE ON channel BEGIN DELETE FROM invitemask WHERE id_channel = OLD.id_channel;END;\00"
@.str.35 = [157 x i8] c"CREATE TABLE invite (id_channel INTEGER REFERENCES channel (id_channel),id_client INTEGER REFERENCES client (id_client),PRIMARY KEY(id_channel, id_client));\00"
@.str.36 = [114 x i8] c"CREATE TRIGGER invite_del AFTER DELETE ON channel BEGIN DELETE FROM invite WHERE id_channel = OLD.id_channel;END;\00"
@.str.37 = [115 x i8] c"CREATE TRIGGER invite_cli_del AFTER DELETE ON client BEGIN DELETE FROM invite WHERE id_client = OLD.id_client;END;\00"
@.str.38 = [149 x i8] c"CREATE TRIGGER invite_clear AFTER INSERT ON membership BEGIN DELETE FROM invite WHERE id_channel = NEW.id_channel AND id_client = NEW.id_client;END;\00"
@.str.39 = [140 x i8] c"CREATE TABLE whowas (id_whowas INTEGER PRIMARY KEY,orig_nickname TEXT,nickname TEXT,username TEXT,ip TEXT,realname TEXT,quit_time INTEGER);\00"
@.str.40 = [51 x i8] c"CREATE INDEX whowas_nick ON whowas (nickname ASC);\00"
@.str.41 = [236 x i8] c"CREATE TRIGGER whowas_insert AFTER DELETE ON client BEGIN INSERT INTO whowas (orig_nickname, nickname, username, ip, realname, quit_time) VALUES (OLD.orig_nickname, OLD.nickname, OLD.username, OLD.ip, OLD.realname, strftime('%s'));END;\00"
define i32* @db_create() {
%1 = alloca i32*
%2 = bitcast i32** %1 to i8*
%3 = call i32 @sqlite3_open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32** %1)
%4 = load i32, i32* @SQLITE_OK
%5 = icmp eq i32 %3, %4
%6 = zext i1 %5 to i32
%7 = call i32 @assert(i32 %6)
%8 = load i32*, i32** %1
%9 = call i32 @db_simple_exec(i32* %8, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32*, i32** %1
%11 = call i32 @db_simple_exec(i32* %10, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.2, i64 0, i64 0))
%12 = load i32*, i32** %1
%13 = call i32 @db_simple_exec(i32* %12, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.3, i64 0, i64 0))
%14 = load i32*, i32** %1
%15 = call i32 @db_simple_exec(i32* %14, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.4, i64 0, i64 0))
%16 = load i32*, i32** %1
%17 = call i32 @db_simple_exec(i32* %16, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.5, i64 0, i64 0))
%18 = load i32*, i32** %1
%19 = call i32 @db_simple_exec(i32* %18, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.6, i64 0, i64 0))
%20 = load i32*, i32** %1
%21 = call i32 @db_simple_exec(i32* %20, i8* getelementptr inbounds ([546 x i8], [546 x i8]* @.str.7, i64 0, i64 0))
%22 = load i32*, i32** %1
%23 = call i32 @db_simple_exec(i32* %22, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.8, i64 0, i64 0))
%24 = load i32*, i32** %1
%25 = call i32 @db_simple_exec(i32* %24, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%26 = load i32*, i32** %1
%27 = call i32 @db_simple_exec(i32* %26, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.10, i64 0, i64 0))
%28 = load i32*, i32** %1
%29 = call i32 @db_simple_exec(i32* %28, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.11, i64 0, i64 0))
%30 = load i32*, i32** %1
%31 = call i32 @db_simple_exec(i32* %30, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.12, i64 0, i64 0))
%32 = load i32*, i32** %1
%33 = call i32 @db_simple_exec(i32* %32, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.13, i64 0, i64 0))
%34 = load i32*, i32** %1
%35 = call i32 @db_simple_exec(i32* %34, i8* getelementptr inbounds ([354 x i8], [354 x i8]* @.str.14, i64 0, i64 0))
%36 = load i32*, i32** %1
%37 = call i32 @db_simple_exec(i32* %36, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.15, i64 0, i64 0))
%38 = load i32*, i32** %1
%39 = call i32 @db_simple_exec(i32* %38, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.16, i64 0, i64 0))
%40 = load i32*, i32** %1
%41 = call i32 @db_simple_exec(i32* %40, i8* getelementptr inbounds ([308 x i8], [308 x i8]* @.str.17, i64 0, i64 0))
%42 = load i32*, i32** %1
%43 = call i32 @db_simple_exec(i32* %42, i8* getelementptr inbounds ([203 x i8], [203 x i8]* @.str.18, i64 0, i64 0))
%44 = load i32*, i32** %1
%45 = call i32 @db_simple_exec(i32* %44, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.19, i64 0, i64 0))
%46 = load i32*, i32** %1
%47 = call i32 @db_simple_exec(i32* %46, i8* getelementptr inbounds ([219 x i8], [219 x i8]* @.str.20, i64 0, i64 0))
%48 = load i32*, i32** %1
%49 = call i32 @db_simple_exec(i32* %48, i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.21, i64 0, i64 0))
%50 = load i32*, i32** %1
%51 = call i32 @db_simple_exec(i32* %50, i8* getelementptr inbounds ([123 x i8], [123 x i8]* @.str.22, i64 0, i64 0))
%52 = load i32*, i32** %1
%53 = call i32 @db_simple_exec(i32* %52, i8* getelementptr inbounds ([131 x i8], [131 x i8]* @.str.23, i64 0, i64 0))
%54 = load i32*, i32** %1
%55 = call i32 @db_simple_exec(i32* %54, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.24, i64 0, i64 0))
%56 = load i32*, i32** %1
%57 = call i32 @db_simple_exec(i32* %56, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.25, i64 0, i64 0))
%58 = load i32*, i32** %1
%59 = call i32 @db_simple_exec(i32* %58, i8* getelementptr inbounds ([116 x i8], [116 x i8]* @.str.26, i64 0, i64 0))
%60 = load i32*, i32** %1
%61 = call i32 @db_simple_exec(i32* %60, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.27, i64 0, i64 0))
%62 = load i32*, i32** %1
%63 = call i32 @db_simple_exec(i32* %62, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.28, i64 0, i64 0))
%64 = load i32*, i32** %1
%65 = call i32 @db_simple_exec(i32* %64, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.29, i64 0, i64 0))
%66 = load i32*, i32** %1
%67 = call i32 @db_simple_exec(i32* %66, i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.30, i64 0, i64 0))
%68 = load i32*, i32** %1
%69 = call i32 @db_simple_exec(i32* %68, i8* getelementptr inbounds ([137 x i8], [137 x i8]* @.str.31, i64 0, i64 0))
%70 = load i32*, i32** %1
%71 = call i32 @db_simple_exec(i32* %70, i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.32, i64 0, i64 0))
%72 = load i32*, i32** %1
%73 = call i32 @db_simple_exec(i32* %72, i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.33, i64 0, i64 0))
%74 = load i32*, i32** %1
%75 = call i32 @db_simple_exec(i32* %74, i8* getelementptr inbounds ([122 x i8], [122 x i8]* @.str.34, i64 0, i64 0))
%76 = load i32*, i32** %1
%77 = call i32 @db_simple_exec(i32* %76, i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.35, i64 0, i64 0))
%78 = load i32*, i32** %1
%79 = call i32 @db_simple_exec(i32* %78, i8* getelementptr inbounds ([114 x i8], [114 x i8]* @.str.36, i64 0, i64 0))
%80 = load i32*, i32** %1
%81 = call i32 @db_simple_exec(i32* %80, i8* getelementptr inbounds ([115 x i8], [115 x i8]* @.str.37, i64 0, i64 0))
%82 = load i32*, i32** %1
%83 = call i32 @db_simple_exec(i32* %82, i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str.38, i64 0, i64 0))
%84 = load i32*, i32** %1
%85 = call i32 @db_simple_exec(i32* %84, i8* getelementptr inbounds ([140 x i8], [140 x i8]* @.str.39, i64 0, i64 0))
%86 = load i32*, i32** %1
%87 = call i32 @db_simple_exec(i32* %86, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.40, i64 0, i64 0))
%88 = load i32*, i32** %1
%89 = call i32 @db_simple_exec(i32* %88, i8* getelementptr inbounds ([236 x i8], [236 x i8]* @.str.41, i64 0, i64 0))
%90 = load i32*, i32** %1
ret i32* %90
}