| 124 | } |
| 125 | |
| 126 | void |
| 127 | IntSet::init(const int r[], int n) { |
| 128 | assert(n > 0); |
| 129 | Region reg; |
| 130 | Range* dr = reg.alloc<Range>(n); |
| 131 | for (int i=0; i<n; i++) { |
| 132 | dr[i].min=r[i]; dr[i].max=r[i]; |
| 133 | } |
| 134 | normalize(&dr[0],n); |
| 135 | } |
| 136 | |
| 137 | void |
| 138 | IntSet::init(const int r[][2], int n) { |
no test coverage detected