#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 */
struct rangeElement {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ assert(int);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
struct rangeElement *parseIntRanges(char *);
int /*<<< orphan*/ printf(char *, ...);
struct rangeElement *rangeAddGreaterEqual(int, struct rangeElement *);
struct rangeElement *rangeAddSingle(int, struct rangeElement *);
struct rangeElement *rangeAddStartEnd(int, int, struct rangeElement *);
int rangeContainsNum(int, struct rangeElement *);
int /*<<< orphan*/ rangeElementToString(char *, int, struct rangeElement *);
int /*<<< orphan*/ rangeFree(struct rangeElement *);
int /*<<< orphan*/ rangeListToString(char *, int, struct rangeElement *);
scalar_t__ strcmp(char *, char *);
int main(int argc, char **argv) {
  printf("start\n");
  struct rangeElement *list = NULL;
  bool b;
  int bufsize = 1024;
  char buf[bufsize];
  char *rv;
  list = rangeAddSingle(5, list);
  printf("list = 5\n");
  printf("test: not contains 4\n");
  b = rangeContainsNum(4, list);
  assert(b == false);
  printf("\tok\n");
  printf("test: contains 5\n");
  b = rangeContainsNum(5, list);
  assert(b == true);
  printf("\tok\n");
  printf("test: element to string\n");
  memset(buf, 0, bufsize);
  rangeElementToString(buf, bufsize, list);
  rv = "[5]";
  printf("\t%s == %s ???", rv, buf);
  assert(strcmp(rv, buf) == 0);
  printf("\tok\n");
  printf("test: list to string\n");
  memset(buf, 0, bufsize);
  rangeListToString(buf, bufsize, list);
  rv = "[5]";
  printf("\t%s == %s ???\n", rv, buf);
  assert(strcmp("[5]", buf) == 0);
  printf("\tok\n");
  printf("test: free\n");
  rangeFree(list);
  assert(true);
  printf("\tok\n");
  list = NULL;
  list = rangeAddStartEnd(5, 10, list);
  printf("test b1:\n");
  b = rangeContainsNum(4, list);
  assert(b == false);
  printf("\tok\n");
  printf("test b2:\n");
  b = rangeContainsNum(5, list);
  assert(b == true);
  printf("\tok\n");
  printf("test b3:\n");
  b = rangeContainsNum(7, list);
  assert(b == true);
  printf("\tok\n");
  printf("test b4:\n");
  b = rangeContainsNum(10, list);
  assert(b == true);
  printf("\tok\n");
  printf("test b5:\n");
  b = rangeContainsNum(12, list);
  assert(b == false);
  printf("\tok\n");
  printf("test b6:\n");
  memset(buf, 0, bufsize);
  rangeElementToString(buf, bufsize, list);
  rv = "[5-10]";
  printf("\t%s == %s ???", rv, buf);
  assert(strcmp(rv, buf) == 0);
  printf("\tok\n");
  printf("test b7:\n");
  memset(buf, 0, bufsize);
  rangeListToString(buf, bufsize, list);
  rv = "[5-10]";
  printf("\t%s == %s ???", rv, buf);
  assert(strcmp(rv, buf) == 0);
  printf("\tok\n");
  rangeFree(list);
  list = NULL;
  list = rangeAddStartEnd(5, 10, list);
  list = rangeAddSingle(15, list);
  list = rangeAddGreaterEqual(40, list);
  printf("test c1:\n");
  b = rangeContainsNum(1, list);
  assert(b == false);
  printf("\tok\n");
  printf("test c2:\n");
  b = rangeContainsNum(6, list);
  assert(b == true);
  printf("\tok\n");
  printf("test c3:\n");
  b = rangeContainsNum(12, list);
  assert(b == false);
  printf("\tok\n");
  printf("test c4:\n");
  b = rangeContainsNum(50, list);
  assert(b == true);
  printf("\tok\n");
  printf("test c6:\n");
  memset(buf, 0, bufsize);
  rangeElementToString(buf, bufsize, list);
  printf("\t%s", buf);
  rv = "[5-10]";
  assert(strcmp(buf, rv) == 0);
  printf("\tok\n");
  printf("test c7:");
  memset(buf, 0, bufsize);
  rangeListToString(buf, bufsize, list);
  rv = "[5-10][15][40-]";
  printf("\t%s == %s ???", rv, buf);
  assert(strcmp(buf, rv) == 0);
  printf("\tok\n");
  rangeFree(list);
  list = NULL;
  list = rangeAddSingle(2, list);
  list = rangeAddStartEnd(2, 4, list);
  printf("testd:");
  memset(buf, 0, bufsize);
  rangeListToString(buf, bufsize, list);
  rv = "[2][2-4]";
  printf("\t%s == %s ???\n", rv, buf);
  assert(strcmp(buf, rv) == 0);
  printf("\tok\n");
  printf("test:");
  struct rangeElement *l2 = parseIntRanges("2,2-4");
  memset(buf, 0, bufsize);
  rangeListToString(buf, bufsize, l2);
  rv = "[2][2-4]";
  printf("\t%s == %s ???\n", rv, buf);
  assert(strcmp(buf, rv) == 0);
  printf("\tok\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe23(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
movq   $0x0,-0x18(%rbp)
movl   $0x400,-0x20(%rbp)
mov    -0x20(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x48(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0x5,%edi
call   10b0 <rangeAddSingle@plt>
mov    %rax,-0x18(%rbp)
lea    0xdd5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdd1(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x4,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xdb7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xdae(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x5,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xd79(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd82(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10e0 <rangeElementToString@plt>
mov    -0x48(%rbp),%rdx
lea    0xd6b(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xd60(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rsi
mov    -0x38(%rbp),%rdi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xd34(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10c0 <rangeListToString@plt>
mov    -0x48(%rbp),%rdx
lea    0xcf2(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xd0b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rsi
lea    0xcd1(%rip),%rdi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xc84(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xcdd(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <rangeFree@plt>
mov    $0x1,%edi
call   10a0 <assert@plt>
lea    0xc55(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rdx
mov    $0x5,%edi
mov    $0xa,%esi
call   1050 <rangeAddStartEnd@plt>
mov    %rax,-0x18(%rbp)
lea    0xc9b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x4,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xbf8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc67(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x5,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xbba(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc33(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x7,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xb7c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xbff(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0xa,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xb3e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xbcb(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0xc,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xb00(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xb97(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10e0 <rangeElementToString@plt>
mov    -0x48(%rbp),%rdx
lea    0xb71(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xae7(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rsi
mov    -0x38(%rbp),%rdi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xa87(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xb2f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10c0 <rangeListToString@plt>
mov    -0x48(%rbp),%rdx
lea    0xaf8(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xa6e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rsi
mov    -0x38(%rbp),%rdi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0xa0e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <rangeFree@plt>
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rdx
mov    $0x5,%edi
mov    $0xa,%esi
call   1050 <rangeAddStartEnd@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0xf,%edi
call   10b0 <rangeAddSingle@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0x28,%edi
call   10d0 <rangeAddGreaterEqual@plt>
mov    %rax,-0x18(%rbp)
lea    0xa74(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x1,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x984(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xa40(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x6,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x946(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xa0c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0xc,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x908(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x9d8(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rsi
mov    $0x32,%edi
call   1040 <rangeContainsNum@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x8ca(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x9a4(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10e0 <rangeElementToString@plt>
mov    -0x48(%rbp),%rsi
lea    0x97e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
lea    0x929(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x855(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x93d(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10c0 <rangeListToString@plt>
mov    -0x48(%rbp),%rdx
lea    0x916(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0x83c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x7dc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <rangeFree@plt>
movq   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%rsi
mov    $0x2,%edi
call   10b0 <rangeAddSingle@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdx
mov    $0x2,%edi
mov    $0x4,%esi
call   1050 <rangeAddStartEnd@plt>
mov    %rax,-0x18(%rbp)
lea    0x8a3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   10c0 <rangeListToString@plt>
mov    -0x48(%rbp),%rdx
lea    0x87a(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0x7ad(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x729(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x83a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0x832(%rip),%rdi
call   1080 <parseIntRanges@plt>
mov    -0x48(%rbp),%rdi
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%edx
xor    %esi,%esi
call   1070 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%esi
mov    -0x40(%rbp),%rdx
call   10c0 <rangeListToString@plt>
mov    -0x48(%rbp),%rdx
lea    0x7f1(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0x724(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x38(%rbp),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   10a0 <assert@plt>
lea    0x6a0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x408,%rsp
lea    0xe79(%rip),%rdi
call   1030 <puts@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   10c0 <rangeAddSingle@plt>
mov    %rax,%rbp
lea    0xe64(%rip),%rdi
call   1030 <puts@plt>
lea    0xe61(%rip),%rdi
call   1030 <puts@plt>
mov    $0x4,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
lea    0xf05(%rip),%r14
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xe41(%rip),%rdi
call   1030 <puts@plt>
mov    $0x5,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xe23(%rip),%rdi
call   1030 <puts@plt>
mov    %rsp,%r15
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbp,%rdx
call   10f0 <rangeElementToString@plt>
lea    0xd63(%rip),%r12
lea    0xd58(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xdce(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbp,%rdx
call   10d0 <rangeListToString@plt>
lea    0xd07(%rip),%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd83(%rip),%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1040 <rangeFree@plt>
mov    $0x1,%edi
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    $0x5,%edi
mov    $0xa,%esi
xor    %edx,%edx
call   1060 <rangeAddStartEnd@plt>
mov    %rax,%rbp
lea    0xd54(%rip),%rdi
call   1030 <puts@plt>
mov    $0x4,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd2f(%rip),%rdi
call   1030 <puts@plt>
mov    $0x5,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xd09(%rip),%rdi
call   1030 <puts@plt>
mov    $0x7,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xce3(%rip),%rdi
call   1030 <puts@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xcbd(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xc98(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbp,%rdx
call   10f0 <rangeElementToString@plt>
lea    0xb93(%rip),%r13
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xc3e(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbp,%rdx
call   10d0 <rangeListToString@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r13,%rdi
mov    %r15,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1040 <rangeFree@plt>
mov    $0x5,%edi
mov    $0xa,%esi
xor    %edx,%edx
call   1060 <rangeAddStartEnd@plt>
mov    $0xf,%edi
mov    %rax,%rsi
call   10c0 <rangeAddSingle@plt>
mov    $0x28,%edi
mov    %rax,%rsi
call   10e0 <rangeAddGreaterEqual@plt>
mov    %rax,%rbp
lea    0xbb5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xb90(%rip),%rdi
call   1030 <puts@plt>
mov    $0x6,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xb6a(%rip),%rdi
call   1030 <puts@plt>
mov    $0xc,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
test   %eax,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xb45(%rip),%rdi
call   1030 <puts@plt>
mov    $0x32,%edi
mov    %rbp,%rsi
call   1050 <rangeContainsNum@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0xb1f(%rip),%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbp,%rdx
call   10f0 <rangeElementToString@plt>
lea    0x9eb(%rip),%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
mov    %r13,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0x9bd(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbp,%rdx
call   10d0 <rangeListToString@plt>
lea    0x999(%rip),%rbx
mov    %r12,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %rbp,%rdi
call   1040 <rangeFree@plt>
mov    $0x2,%edi
xor    %esi,%esi
call   10c0 <rangeAddSingle@plt>
mov    $0x2,%edi
mov    $0x4,%esi
mov    %rax,%rdx
call   1060 <rangeAddStartEnd@plt>
mov    %rax,%rbx
lea    0x948(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbx,%rdx
call   10d0 <rangeListToString@plt>
lea    0x922(%rip),%rbp
lea    0x8e1(%rip),%r12
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
lea    0x8ec(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
lea    0x8e4(%rip),%rdi
call   1090 <parseIntRanges@plt>
mov    %rax,%rbx
mov    %r15,%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1080 <memset@plt>
mov    %r15,%rdi
mov    $0x400,%esi
mov    %rbx,%rdx
call   10d0 <rangeListToString@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   1070 <printf@plt>
mov    %r15,%rdi
mov    %rbp,%rsi
call   10a0 <strcmp@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   10b0 <assert@plt>
mov    %r14,%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x408,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.rangeElement = type { i32 }
@.str = [7 x i8] c"start\0A\00"
@.str.1 = [10 x i8] c"list = 5\0A\00"
@.str.2 = [22 x i8] c"test: not contains 4\0A\00"
@.str.3 = [5 x i8] c"\09ok\0A\00"
@.str.4 = [18 x i8] c"test: contains 5\0A\00"
@.str.5 = [25 x i8] c"test: element to string\0A\00"
@.str.6 = [4 x i8] c"[5]\00"
@.str.7 = [14 x i8] c"\09%s == %s ???\00"
@.str.8 = [22 x i8] c"test: list to string\0A\00"
@.str.9 = [15 x i8] c"\09%s == %s ???\0A\00"
@.str.10 = [12 x i8] c"test: free\0A\00"
@.str.11 = [10 x i8] c"test b1:\0A\00"
@.str.12 = [10 x i8] c"test b2:\0A\00"
@.str.13 = [10 x i8] c"test b3:\0A\00"
@.str.14 = [10 x i8] c"test b4:\0A\00"
@.str.15 = [10 x i8] c"test b5:\0A\00"
@.str.16 = [10 x i8] c"test b6:\0A\00"
@.str.17 = [7 x i8] c"[5-10]\00"
@.str.18 = [10 x i8] c"test b7:\0A\00"
@.str.19 = [10 x i8] c"test c1:\0A\00"
@.str.20 = [10 x i8] c"test c2:\0A\00"
@.str.21 = [10 x i8] c"test c3:\0A\00"
@.str.22 = [10 x i8] c"test c4:\0A\00"
@.str.23 = [10 x i8] c"test c6:\0A\00"
@.str.24 = [4 x i8] c"\09%s\00"
@.str.25 = [9 x i8] c"test c7:\00"
@.str.26 = [16 x i8] c"[5-10][15][40-]\00"
@.str.27 = [7 x i8] c"testd:\00"
@.str.28 = [9 x i8] c"[2][2-4]\00"
@.str.29 = [6 x i8] c"test:\00"
@.str.30 = [6 x i8] c"2,2-4\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.rangeElement*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i8*
%12 = alloca %struct.rangeElement*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
store %struct.rangeElement* null, %struct.rangeElement** %6
store i32 1024, i32* %8
%14 = load i32, i32* %8
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %9
%17 = alloca i8, i64 %15
store i64 %15, i64* %10
%18 = load %struct.rangeElement*, %struct.rangeElement** %6
%19 = call %struct.rangeElement* @rangeAddSingle(i32 5, %struct.rangeElement* %18)
store %struct.rangeElement* %19, %struct.rangeElement** %6
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%22 = load %struct.rangeElement*, %struct.rangeElement** %6
%23 = call i32 @rangeContainsNum(i32 4, %struct.rangeElement* %22)
store i32 %23, i32* %7
%24 = load i32, i32* %7
%25 = icmp eq i32 %24, 0
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%30 = load %struct.rangeElement*, %struct.rangeElement** %6
%31 = call i32 @rangeContainsNum(i32 5, %struct.rangeElement* %30)
store i32 %31, i32* %7
%32 = load i32, i32* %7
%33 = icmp eq i32 %32, 1
%34 = zext i1 %33 to i32
%35 = call i32 @assert(i32 %34)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%38 = load i32, i32* %8
%39 = call i32 @memset(i8* %17, i32 0, i32 %38)
%40 = load i32, i32* %8
%41 = load %struct.rangeElement*, %struct.rangeElement** %6
%42 = call i32 @rangeElementToString(i8* %17, i32 %40, %struct.rangeElement* %41)
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %11
%43 = load i8*, i8** %11
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %43, i8* %17)
%45 = load i8*, i8** %11
%46 = call i64 @strcmp(i8* %45, i8* %17)
%47 = icmp eq i64 %46, 0
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%52 = load i32, i32* %8
%53 = call i32 @memset(i8* %17, i32 0, i32 %52)
%54 = load i32, i32* %8
%55 = load %struct.rangeElement*, %struct.rangeElement** %6
%56 = call i32 @rangeListToString(i8* %17, i32 %54, %struct.rangeElement* %55)
store i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8** %11
%57 = load i8*, i8** %11
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %57, i8* %17)
%59 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %17)
%60 = icmp eq i64 %59, 0
%61 = zext i1 %60 to i32
%62 = call i32 @assert(i32 %61)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
%65 = load %struct.rangeElement*, %struct.rangeElement** %6
%66 = call i32 @rangeFree(%struct.rangeElement* %65)
%67 = call i32 @assert(i32 1)
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store %struct.rangeElement* null, %struct.rangeElement** %6
%69 = load %struct.rangeElement*, %struct.rangeElement** %6
%70 = call %struct.rangeElement* @rangeAddStartEnd(i32 5, i32 10, %struct.rangeElement* %69)
store %struct.rangeElement* %70, %struct.rangeElement** %6
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%72 = load %struct.rangeElement*, %struct.rangeElement** %6
%73 = call i32 @rangeContainsNum(i32 4, %struct.rangeElement* %72)
store i32 %73, i32* %7
%74 = load i32, i32* %7
%75 = icmp eq i32 %74, 0
%76 = zext i1 %75 to i32
%77 = call i32 @assert(i32 %76)
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%80 = load %struct.rangeElement*, %struct.rangeElement** %6
%81 = call i32 @rangeContainsNum(i32 5, %struct.rangeElement* %80)
store i32 %81, i32* %7
%82 = load i32, i32* %7
%83 = icmp eq i32 %82, 1
%84 = zext i1 %83 to i32
%85 = call i32 @assert(i32 %84)
%86 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%88 = load %struct.rangeElement*, %struct.rangeElement** %6
%89 = call i32 @rangeContainsNum(i32 7, %struct.rangeElement* %88)
store i32 %89, i32* %7
%90 = load i32, i32* %7
%91 = icmp eq i32 %90, 1
%92 = zext i1 %91 to i32
%93 = call i32 @assert(i32 %92)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%95 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%96 = load %struct.rangeElement*, %struct.rangeElement** %6
%97 = call i32 @rangeContainsNum(i32 10, %struct.rangeElement* %96)
store i32 %97, i32* %7
%98 = load i32, i32* %7
%99 = icmp eq i32 %98, 1
%100 = zext i1 %99 to i32
%101 = call i32 @assert(i32 %100)
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%104 = load %struct.rangeElement*, %struct.rangeElement** %6
%105 = call i32 @rangeContainsNum(i32 12, %struct.rangeElement* %104)
store i32 %105, i32* %7
%106 = load i32, i32* %7
%107 = icmp eq i32 %106, 0
%108 = zext i1 %107 to i32
%109 = call i32 @assert(i32 %108)
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%112 = load i32, i32* %8
%113 = call i32 @memset(i8* %17, i32 0, i32 %112)
%114 = load i32, i32* %8
%115 = load %struct.rangeElement*, %struct.rangeElement** %6
%116 = call i32 @rangeElementToString(i8* %17, i32 %114, %struct.rangeElement* %115)
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8** %11
%117 = load i8*, i8** %11
%118 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %117, i8* %17)
%119 = load i8*, i8** %11
%120 = call i64 @strcmp(i8* %119, i8* %17)
%121 = icmp eq i64 %120, 0
%122 = zext i1 %121 to i32
%123 = call i32 @assert(i32 %122)
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%125 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.18, i64 0, i64 0))
%126 = load i32, i32* %8
%127 = call i32 @memset(i8* %17, i32 0, i32 %126)
%128 = load i32, i32* %8
%129 = load %struct.rangeElement*, %struct.rangeElement** %6
%130 = call i32 @rangeListToString(i8* %17, i32 %128, %struct.rangeElement* %129)
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8** %11
%131 = load i8*, i8** %11
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %131, i8* %17)
%133 = load i8*, i8** %11
%134 = call i64 @strcmp(i8* %133, i8* %17)
%135 = icmp eq i64 %134, 0
%136 = zext i1 %135 to i32
%137 = call i32 @assert(i32 %136)
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%139 = load %struct.rangeElement*, %struct.rangeElement** %6
%140 = call i32 @rangeFree(%struct.rangeElement* %139)
store %struct.rangeElement* null, %struct.rangeElement** %6
%141 = load %struct.rangeElement*, %struct.rangeElement** %6
%142 = call %struct.rangeElement* @rangeAddStartEnd(i32 5, i32 10, %struct.rangeElement* %141)
store %struct.rangeElement* %142, %struct.rangeElement** %6
%143 = load %struct.rangeElement*, %struct.rangeElement** %6
%144 = call %struct.rangeElement* @rangeAddSingle(i32 15, %struct.rangeElement* %143)
store %struct.rangeElement* %144, %struct.rangeElement** %6
%145 = load %struct.rangeElement*, %struct.rangeElement** %6
%146 = call %struct.rangeElement* @rangeAddGreaterEqual(i32 40, %struct.rangeElement* %145)
store %struct.rangeElement* %146, %struct.rangeElement** %6
%147 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
%148 = load %struct.rangeElement*, %struct.rangeElement** %6
%149 = call i32 @rangeContainsNum(i32 1, %struct.rangeElement* %148)
store i32 %149, i32* %7
%150 = load i32, i32* %7
%151 = icmp eq i32 %150, 0
%152 = zext i1 %151 to i32
%153 = call i32 @assert(i32 %152)
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%155 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%156 = load %struct.rangeElement*, %struct.rangeElement** %6
%157 = call i32 @rangeContainsNum(i32 6, %struct.rangeElement* %156)
store i32 %157, i32* %7
%158 = load i32, i32* %7
%159 = icmp eq i32 %158, 1
%160 = zext i1 %159 to i32
%161 = call i32 @assert(i32 %160)
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.21, i64 0, i64 0))
%164 = load %struct.rangeElement*, %struct.rangeElement** %6
%165 = call i32 @rangeContainsNum(i32 12, %struct.rangeElement* %164)
store i32 %165, i32* %7
%166 = load i32, i32* %7
%167 = icmp eq i32 %166, 0
%168 = zext i1 %167 to i32
%169 = call i32 @assert(i32 %168)
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%171 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.22, i64 0, i64 0))
%172 = load %struct.rangeElement*, %struct.rangeElement** %6
%173 = call i32 @rangeContainsNum(i32 50, %struct.rangeElement* %172)
store i32 %173, i32* %7
%174 = load i32, i32* %7
%175 = icmp eq i32 %174, 1
%176 = zext i1 %175 to i32
%177 = call i32 @assert(i32 %176)
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%179 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.23, i64 0, i64 0))
%180 = load i32, i32* %8
%181 = call i32 @memset(i8* %17, i32 0, i32 %180)
%182 = load i32, i32* %8
%183 = load %struct.rangeElement*, %struct.rangeElement** %6
%184 = call i32 @rangeElementToString(i8* %17, i32 %182, %struct.rangeElement* %183)
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i8* %17)
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8** %11
%186 = load i8*, i8** %11
%187 = call i64 @strcmp(i8* %17, i8* %186)
%188 = icmp eq i64 %187, 0
%189 = zext i1 %188 to i32
%190 = call i32 @assert(i32 %189)
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
%193 = load i32, i32* %8
%194 = call i32 @memset(i8* %17, i32 0, i32 %193)
%195 = load i32, i32* %8
%196 = load %struct.rangeElement*, %struct.rangeElement** %6
%197 = call i32 @rangeListToString(i8* %17, i32 %195, %struct.rangeElement* %196)
store i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8** %11
%198 = load i8*, i8** %11
%199 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* %198, i8* %17)
%200 = load i8*, i8** %11
%201 = call i64 @strcmp(i8* %17, i8* %200)
%202 = icmp eq i64 %201, 0
%203 = zext i1 %202 to i32
%204 = call i32 @assert(i32 %203)
%205 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%206 = load %struct.rangeElement*, %struct.rangeElement** %6
%207 = call i32 @rangeFree(%struct.rangeElement* %206)
store %struct.rangeElement* null, %struct.rangeElement** %6
%208 = load %struct.rangeElement*, %struct.rangeElement** %6
%209 = call %struct.rangeElement* @rangeAddSingle(i32 2, %struct.rangeElement* %208)
store %struct.rangeElement* %209, %struct.rangeElement** %6
%210 = load %struct.rangeElement*, %struct.rangeElement** %6
%211 = call %struct.rangeElement* @rangeAddStartEnd(i32 2, i32 4, %struct.rangeElement* %210)
store %struct.rangeElement* %211, %struct.rangeElement** %6
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
%213 = load i32, i32* %8
%214 = call i32 @memset(i8* %17, i32 0, i32 %213)
%215 = load i32, i32* %8
%216 = load %struct.rangeElement*, %struct.rangeElement** %6
%217 = call i32 @rangeListToString(i8* %17, i32 %215, %struct.rangeElement* %216)
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0), i8** %11
%218 = load i8*, i8** %11
%219 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %218, i8* %17)
%220 = load i8*, i8** %11
%221 = call i64 @strcmp(i8* %17, i8* %220)
%222 = icmp eq i64 %221, 0
%223 = zext i1 %222 to i32
%224 = call i32 @assert(i32 %223)
%225 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%226 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
%227 = call %struct.rangeElement* @parseIntRanges(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
store %struct.rangeElement* %227, %struct.rangeElement** %12
%228 = load i32, i32* %8
%229 = call i32 @memset(i8* %17, i32 0, i32 %228)
%230 = load i32, i32* %8
%231 = load %struct.rangeElement*, %struct.rangeElement** %12
%232 = call i32 @rangeListToString(i8* %17, i32 %230, %struct.rangeElement* %231)
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0), i8** %11
%233 = load i8*, i8** %11
%234 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* %233, i8* %17)
%235 = load i8*, i8** %11
%236 = call i64 @strcmp(i8* %17, i8* %235)
%237 = icmp eq i64 %236, 0
%238 = zext i1 %237 to i32
%239 = call i32 @assert(i32 %238)
%240 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %3
%241 = load i8*, i8** %9
%242 = load i32, i32* %3
ret i32 %242
}

LLVM IR (-O2):
%struct.rangeElement = type { i32 }
@.str.6 = [4 x i8] c"[5]\00"
@.str.7 = [14 x i8] c"\09%s == %s ???\00"
@.str.9 = [15 x i8] c"\09%s == %s ???\0A\00"
@.str.17 = [7 x i8] c"[5-10]\00"
@.str.24 = [4 x i8] c"\09%s\00"
@.str.25 = [9 x i8] c"test c7:\00"
@.str.26 = [16 x i8] c"[5-10][15][40-]\00"
@.str.27 = [7 x i8] c"testd:\00"
@.str.28 = [9 x i8] c"[2][2-4]\00"
@.str.29 = [6 x i8] c"test:\00"
@.str.30 = [6 x i8] c"2,2-4\00"
@str = [6 x i8] c"start\00"
@str.31 = [9 x i8] c"list = 5\00"
@str.32 = [21 x i8] c"test: not contains 4\00"
@str.34 = [17 x i8] c"test: contains 5\00"
@str.36 = [24 x i8] c"test: element to string\00"
@str.38 = [21 x i8] c"test: list to string\00"
@str.40 = [11 x i8] c"test: free\00"
@str.42 = [9 x i8] c"test b1:\00"
@str.44 = [9 x i8] c"test b2:\00"
@str.46 = [9 x i8] c"test b3:\00"
@str.48 = [9 x i8] c"test b4:\00"
@str.50 = [9 x i8] c"test b5:\00"
@str.52 = [9 x i8] c"test b6:\00"
@str.54 = [9 x i8] c"test b7:\00"
@str.56 = [9 x i8] c"test c1:\00"
@str.58 = [9 x i8] c"test c2:\00"
@str.60 = [9 x i8] c"test c3:\00"
@str.62 = [9 x i8] c"test c4:\00"
@str.64 = [9 x i8] c"test c6:\00"
@str.68 = [4 x i8] c"\09ok\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @str, i64 0, i64 0))
%4 = alloca [1024 x i8]
%5 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%6 = tail call %struct.rangeElement* @rangeAddSingle(i32 5, %struct.rangeElement* null)
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.31, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.32, i64 0, i64 0))
%9 = tail call i32 @rangeContainsNum(i32 4, %struct.rangeElement* %6)
%10 = icmp eq i32 %9, 0
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.34, i64 0, i64 0))
%15 = tail call i32 @rangeContainsNum(i32 5, %struct.rangeElement* %6)
%16 = icmp eq i32 %15, 1
%17 = zext i1 %16 to i32
%18 = tail call i32 @assert(i32 %17)
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.36, i64 0, i64 0))
%21 = call i32 @memset(i8* %5, i32 0, i32 1024)
%22 = call i32 @rangeElementToString(i8* %5, i32 1024, %struct.rangeElement* %6)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%24 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%25 = icmp eq i64 %24, 0
%26 = zext i1 %25 to i32
%27 = call i32 @assert(i32 %26)
%28 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.38, i64 0, i64 0))
%30 = call i32 @memset(i8* %5, i32 0, i32 1024)
%31 = call i32 @rangeListToString(i8* %5, i32 1024, %struct.rangeElement* %6)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%33 = call i64 @strcmp(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %5)
%34 = icmp eq i64 %33, 0
%35 = zext i1 %34 to i32
%36 = call i32 @assert(i32 %35)
%37 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%38 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str.40, i64 0, i64 0))
%39 = call i32 @rangeFree(%struct.rangeElement* %6)
%40 = call i32 @assert(i32 1)
%41 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%42 = call %struct.rangeElement* @rangeAddStartEnd(i32 5, i32 10, %struct.rangeElement* null)
%43 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.42, i64 0, i64 0))
%44 = call i32 @rangeContainsNum(i32 4, %struct.rangeElement* %42)
%45 = icmp eq i32 %44, 0
%46 = zext i1 %45 to i32
%47 = call i32 @assert(i32 %46)
%48 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%49 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.44, i64 0, i64 0))
%50 = call i32 @rangeContainsNum(i32 5, %struct.rangeElement* %42)
%51 = icmp eq i32 %50, 1
%52 = zext i1 %51 to i32
%53 = call i32 @assert(i32 %52)
%54 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.46, i64 0, i64 0))
%56 = call i32 @rangeContainsNum(i32 7, %struct.rangeElement* %42)
%57 = icmp eq i32 %56, 1
%58 = zext i1 %57 to i32
%59 = call i32 @assert(i32 %58)
%60 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%61 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.48, i64 0, i64 0))
%62 = call i32 @rangeContainsNum(i32 10, %struct.rangeElement* %42)
%63 = icmp eq i32 %62, 1
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.50, i64 0, i64 0))
%68 = call i32 @rangeContainsNum(i32 12, %struct.rangeElement* %42)
%69 = icmp eq i32 %68, 0
%70 = zext i1 %69 to i32
%71 = call i32 @assert(i32 %70)
%72 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%73 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.52, i64 0, i64 0))
%74 = call i32 @memset(i8* %5, i32 0, i32 1024)
%75 = call i32 @rangeElementToString(i8* %5, i32 1024, %struct.rangeElement* %42)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* %5)
%77 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* %5)
%78 = icmp eq i64 %77, 0
%79 = zext i1 %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%82 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.54, i64 0, i64 0))
%83 = call i32 @memset(i8* %5, i32 0, i32 1024)
%84 = call i32 @rangeListToString(i8* %5, i32 1024, %struct.rangeElement* %42)
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* %5)
%86 = call i64 @strcmp(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0), i8* %5)
%87 = icmp eq i64 %86, 0
%88 = zext i1 %87 to i32
%89 = call i32 @assert(i32 %88)
%90 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%91 = call i32 @rangeFree(%struct.rangeElement* %42)
%92 = call %struct.rangeElement* @rangeAddStartEnd(i32 5, i32 10, %struct.rangeElement* null)
%93 = call %struct.rangeElement* @rangeAddSingle(i32 15, %struct.rangeElement* %92)
%94 = call %struct.rangeElement* @rangeAddGreaterEqual(i32 40, %struct.rangeElement* %93)
%95 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.56, i64 0, i64 0))
%96 = call i32 @rangeContainsNum(i32 1, %struct.rangeElement* %94)
%97 = icmp eq i32 %96, 0
%98 = zext i1 %97 to i32
%99 = call i32 @assert(i32 %98)
%100 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%101 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.58, i64 0, i64 0))
%102 = call i32 @rangeContainsNum(i32 6, %struct.rangeElement* %94)
%103 = icmp eq i32 %102, 1
%104 = zext i1 %103 to i32
%105 = call i32 @assert(i32 %104)
%106 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%107 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.60, i64 0, i64 0))
%108 = call i32 @rangeContainsNum(i32 12, %struct.rangeElement* %94)
%109 = icmp eq i32 %108, 0
%110 = zext i1 %109 to i32
%111 = call i32 @assert(i32 %110)
%112 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%113 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.62, i64 0, i64 0))
%114 = call i32 @rangeContainsNum(i32 50, %struct.rangeElement* %94)
%115 = icmp eq i32 %114, 1
%116 = zext i1 %115 to i32
%117 = call i32 @assert(i32 %116)
%118 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%119 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.64, i64 0, i64 0))
%120 = call i32 @memset(i8* %5, i32 0, i32 1024)
%121 = call i32 @rangeElementToString(i8* %5, i32 1024, %struct.rangeElement* %94)
%122 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0), i8* %5)
%123 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%124 = icmp eq i64 %123, 0
%125 = zext i1 %124 to i32
%126 = call i32 @assert(i32 %125)
%127 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%128 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.25, i64 0, i64 0))
%129 = call i32 @memset(i8* %5, i32 0, i32 1024)
%130 = call i32 @rangeListToString(i8* %5, i32 1024, %struct.rangeElement* %94)
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0), i8* %5)
%132 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.26, i64 0, i64 0))
%133 = icmp eq i64 %132, 0
%134 = zext i1 %133 to i32
%135 = call i32 @assert(i32 %134)
%136 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%137 = call i32 @rangeFree(%struct.rangeElement* %94)
%138 = call %struct.rangeElement* @rangeAddSingle(i32 2, %struct.rangeElement* null)
%139 = call %struct.rangeElement* @rangeAddStartEnd(i32 2, i32 4, %struct.rangeElement* %138)
%140 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.27, i64 0, i64 0))
%141 = call i32 @memset(i8* %5, i32 0, i32 1024)
%142 = call i32 @rangeListToString(i8* %5, i32 1024, %struct.rangeElement* %139)
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0), i8* %5)
%144 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
%146 = zext i1 %145 to i32
%147 = call i32 @assert(i32 %146)
%148 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.29, i64 0, i64 0))
%150 = call %struct.rangeElement* @parseIntRanges(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.30, i64 0, i64 0))
%151 = call i32 @memset(i8* %5, i32 0, i32 1024)
%152 = call i32 @rangeListToString(i8* %5, i32 1024, %struct.rangeElement* %150)
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0), i8* %5)
%154 = call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
%155 = icmp eq i64 %154, 0
%156 = zext i1 %155 to i32
%157 = call i32 @assert(i32 %156)
%158 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.68, i64 0, i64 0))
ret i32 0
}