mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | """ |
| 4 | Selects all rows and columns that satisfy the condition specified |
| 5 | and draws the matrix. There is a seperate SQL query made for every (x,y) |
| 6 | in the matrix. |
| 7 | """ |
| 8 | |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 9 | print "Content-type: text/html\n" |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 10 | import cgi, cgitb, re, datetime, query_lib |
mbligh | a426693 | 2007-11-05 18:12:16 +0000 | [diff] [blame] | 11 | import sys, os |
mbligh | b180f6c | 2008-01-04 20:24:41 +0000 | [diff] [blame] | 12 | import urllib |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 13 | |
| 14 | tko = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0]))) |
| 15 | sys.path.insert(0, tko) |
| 16 | |
mbligh | 2b67253 | 2007-11-05 19:24:51 +0000 | [diff] [blame] | 17 | import display, frontend, db, query_lib |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 18 | client_bin = os.path.abspath(os.path.join(tko, '../client/bin')) |
| 19 | sys.path.insert(0, client_bin) |
| 20 | import kernel_versions |
| 21 | |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 22 | html_header = """\ |
| 23 | <form action="compose_query.cgi" method="get"> |
| 24 | <table border="0"> |
| 25 | <tr> |
| 26 | <td>Column: </td> |
| 27 | <td>Row: </td> |
| 28 | <td>Condition: </td> |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 29 | <td align="center"> |
| 30 | <a href="http://test.kernel.org/autotest/AutotestTKOCondition">Help</a> |
| 31 | </td> |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 32 | </tr> |
| 33 | <tr> |
| 34 | <td> |
| 35 | <SELECT NAME="columns"> |
| 36 | %s |
| 37 | </SELECT> |
| 38 | </td> |
| 39 | <td> |
| 40 | <SELECT NAME="rows"> |
| 41 | %s |
| 42 | </SELECT> |
| 43 | </td> |
| 44 | <td> |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 45 | <input type="text" name="condition" size="30" value="%s"> |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 46 | <input type="hidden" name="title" value="%s"> |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 47 | </td> |
| 48 | <td align="center"><input type="submit" value="Submit"> |
| 49 | </td> |
| 50 | </tr> |
| 51 | </table> |
| 52 | </form> |
| 53 | """ |
| 54 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 55 | |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 56 | next_field = { |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 57 | 'machine_group': 'hostname', |
| 58 | 'hostname': 'tag', |
| 59 | 'tag': 'tag', |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 60 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 61 | 'kernel': 'test', |
| 62 | 'test': 'label', |
| 63 | 'label': 'tag', |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 64 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 65 | 'reason': 'tag', |
| 66 | 'user': 'tag', |
| 67 | 'status': 'tag', |
| 68 | |
mbligh | 5bb5586 | 2008-04-16 23:09:31 +0000 | [diff] [blame] | 69 | 'time': 'tag', |
| 70 | 'time_daily': 'time', |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 71 | } |
| 72 | |
| 73 | |
mbligh | 11204f8 | 2008-04-16 23:30:07 +0000 | [diff] [blame] | 74 | def parse_field(form, form_field, field_default): |
| 75 | if not form_field in form: |
| 76 | return field_default |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 77 | field_input = form[form_field].value.lower() |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 78 | if field_input and field_input in frontend.test_view_field_dict: |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 79 | return field_input |
mbligh | 11204f8 | 2008-04-16 23:30:07 +0000 | [diff] [blame] | 80 | return field_default |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 81 | |
| 82 | |
| 83 | def parse_condition(form, form_field, field_default): |
| 84 | if not form_field in form: |
| 85 | return field_default |
| 86 | return form[form_field].value |
| 87 | |
| 88 | |
| 89 | form = cgi.FieldStorage() |
mbligh | 3d7a5f5 | 2008-04-16 23:06:36 +0000 | [diff] [blame] | 90 | |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 91 | title_field = parse_condition(form, 'title', '') |
mbligh | 9add588 | 2008-04-16 23:32:01 +0000 | [diff] [blame] | 92 | row = parse_field(form, 'rows', 'kernel') |
| 93 | column = parse_field(form, 'columns', 'machine_group') |
| 94 | condition_field = parse_condition(form, 'condition', '') |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 95 | |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 96 | ## caller can specify rows and columns that shall be included into the report |
| 97 | ## regardless of whether actual test data is available yet |
| 98 | force_row_field = parse_condition(form,'force_row','') |
| 99 | force_column_field = parse_condition(form,'force_column','') |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 100 | |
mbligh | 9add588 | 2008-04-16 23:32:01 +0000 | [diff] [blame] | 101 | |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 102 | def split_forced_fields(force_field): |
| 103 | if force_field: |
| 104 | return force_field.split() |
| 105 | else: |
| 106 | return [] |
| 107 | |
| 108 | force_row = split_forced_fields(force_row_field) |
| 109 | force_column = split_forced_fields(force_column_field) |
| 110 | |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 111 | cgitb.enable() |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 112 | db_obj = db.db() |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 113 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 114 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 115 | def construct_link(x, y): |
| 116 | next_row = row |
| 117 | next_column = column |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 118 | condition_list = [] |
| 119 | if condition_field != '': |
| 120 | condition_list.append(condition_field) |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 121 | if y: |
| 122 | next_row = next_field[row] |
| 123 | condition_list.append("%s='%s'" % (row, y)) |
| 124 | if x: |
| 125 | next_column = next_field[column] |
| 126 | condition_list.append("%s='%s'" % (column, x)) |
mbligh | b180f6c | 2008-01-04 20:24:41 +0000 | [diff] [blame] | 127 | next_condition = '&'.join(condition_list) |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 128 | link = 'compose_query.cgi?' + urllib.urlencode({'columns': next_column, |
| 129 | 'rows': next_row, 'condition': next_condition, |
| 130 | 'title': title_field}) |
| 131 | return link |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 132 | |
| 133 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 134 | def create_select_options(selected_val): |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 135 | ret = "" |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 136 | for option in sorted(frontend.test_view_field_dict.keys()): |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 137 | if selected_val == option: |
| 138 | selected = " SELECTED" |
| 139 | else: |
| 140 | selected = "" |
| 141 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 142 | ret += '<OPTION VALUE="%s"%s>%s</OPTION>\n' % \ |
| 143 | (option, selected, option) |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 144 | return ret |
| 145 | |
| 146 | |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 147 | def map_kernel_base(kernel_name): |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 148 | ## insert <br> after each / in kernel name |
| 149 | ## but spare consequtive // |
mbligh | 8e7c78e | 2008-02-20 21:18:49 +0000 | [diff] [blame] | 150 | kernel_name = kernel_name.replace('/','/<br>') |
| 151 | kernel_name = kernel_name.replace('/<br>/<br>','//') |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 152 | return kernel_name |
| 153 | |
| 154 | |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 155 | def header_tuneup(field_name, header): |
| 156 | ## header tune up depends on particular field name and may include: |
| 157 | ## - breaking header into several strings if it is long url |
| 158 | ## - creating date from datetime stamp |
| 159 | ## - possibly, expect more various refinements for different fields |
| 160 | if field_name == 'kernel': |
| 161 | return map_kernel_base(header) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 162 | else: |
| 163 | return header |
| 164 | |
| 165 | |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 166 | # Kernel name mappings -- the kernels table 'printable' field is |
| 167 | # effectively a sortable identifier for the kernel It encodes the base |
| 168 | # release which is used for overall sorting, plus where patches are |
| 169 | # applied it adds an increasing pNNN patch combination identifier |
| 170 | # (actually the kernel_idx for the entry). This allows sorting |
| 171 | # as normal by the base kernel version and then sub-sorting by the |
| 172 | # "first time we saw" a patch combination which should keep them in |
| 173 | # approximatly date order. This patch identifier is not suitable |
| 174 | # for display, so we have to map it to a suitable html fragment for |
| 175 | # display. This contains the kernel base version plus the truncated |
| 176 | # names of all the patches, |
| 177 | # |
| 178 | # 2.6.24-mm1 p112 |
| 179 | # +add-new-string-functions- |
| 180 | # +x86-amd-thermal-interrupt |
| 181 | # |
| 182 | # This mapping is produced when the first mapping is request, with |
| 183 | # a single query over the patches table; the result is then cached. |
| 184 | # |
| 185 | # Note: that we only count a base version as patched if it contains |
| 186 | # patches which are not already "expressed" in the base version. |
| 187 | # This includes both -gitN and -mmN kernels. |
| 188 | map_kernel_map = None |
| 189 | |
| 190 | |
| 191 | def map_kernel_init(): |
| 192 | fields = ['base', 'k.kernel_idx', 'name', 'url'] |
| 193 | map = {} |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 194 | for (base, idx, name, url) in db_obj.select(','.join(fields), |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 195 | 'kernels k,patches p', 'k.kernel_idx=p.kernel_idx'): |
| 196 | match = re.match(r'.*(-mm[0-9]+|-git[0-9]+)\.(bz2|gz)$', url) |
| 197 | if match: |
| 198 | continue |
| 199 | |
| 200 | key = base + ' p%d' % (idx) |
| 201 | if not map.has_key(key): |
| 202 | map[key] = map_kernel_base(base) + ' p%d' % (idx) |
| 203 | map[key] += '<br>+<span title="' + name + '">' + name[0:25] + '</span>' |
| 204 | |
| 205 | return map |
| 206 | |
| 207 | |
| 208 | def map_kernel(name): |
| 209 | global map_kernel_map |
| 210 | if map_kernel_map == None: |
| 211 | map_kernel_map = map_kernel_init() |
| 212 | |
| 213 | if map_kernel_map.has_key(name): |
| 214 | return map_kernel_map[name] |
| 215 | |
| 216 | return map_kernel_base(name.split(' ')[0]) |
| 217 | |
| 218 | |
| 219 | field_map = { |
| 220 | 'kernel':map_kernel |
| 221 | } |
| 222 | |
| 223 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 224 | def gen_matrix(): |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 225 | where = None |
| 226 | if condition_field.strip() != '': |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 227 | try: |
| 228 | where = query_lib.parse_scrub_and_gen_condition( |
| 229 | condition_field, frontend.test_view_field_dict) |
| 230 | print "<!-- where clause: %s -->" % (where,) |
| 231 | except: |
| 232 | msg = "Unspecified error when parsing condition" |
| 233 | return [[display.box(msg)]] |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 234 | |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 235 | try: |
mbligh | 3126069 | 2008-04-16 23:12:12 +0000 | [diff] [blame] | 236 | ## Unfortunately, we can not request reasons of failure always |
| 237 | ## because it may result in an inflated size of data transfer |
| 238 | ## (at the moment we fetch 500 bytes of reason descriptions into |
| 239 | ## each cell ) |
| 240 | ## If 'status' in [row,column] then either width or height |
| 241 | ## of the table <=7, hence table is not really 2D, and |
| 242 | ## query_reason is relatively save. |
| 243 | ## At the same time view when either rows or columns grouped |
| 244 | ## by status is when users need reasons of failures the most. |
| 245 | |
| 246 | ## TO DO: implement [Show/Hide reasons] button or link in |
| 247 | ## all views and make thorough performance testing |
| 248 | test_data = frontend.get_matrix_data(db_obj, column, row, where, |
| 249 | query_reasons = ('status' in [row,column]) |
| 250 | ) |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 251 | except db.MySQLTooManyRows, error: |
| 252 | return [[display.box(str(error))]] |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 253 | |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 254 | for f_row in force_row: |
| 255 | if not f_row in test_data.y_values: |
| 256 | test_data.y_values.append(f_row) |
| 257 | for f_column in force_column: |
| 258 | if not f_column in test_data.x_values: |
| 259 | test_data.x_values.append(f_column) |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 260 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 261 | if not test_data.y_values: |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 262 | msg = "There are no results for this query (yet?)." |
| 263 | return [[display.box(msg)]] |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 264 | |
mbligh | 456b477 | 2008-03-25 23:54:45 +0000 | [diff] [blame] | 265 | dict_url = {'columns': row, |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 266 | 'rows': column, 'condition': condition_field, |
| 267 | 'title': title_field} |
mbligh | 456b477 | 2008-03-25 23:54:45 +0000 | [diff] [blame] | 268 | link = 'compose_query.cgi?' + urllib.urlencode(dict_url) |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 269 | header_row = [display.box("<center>(Flip Axis)</center>", link=link)] |
| 270 | |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 271 | for x in test_data.x_values: |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 272 | dx = x |
| 273 | if field_map.has_key(column): |
| 274 | dx = field_map[column](x) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 275 | x_header = header_tuneup(column, dx) |
| 276 | link = construct_link(x, None) |
| 277 | header_row.append(display.box(x_header,header=True,link=link)) |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 278 | |
| 279 | matrix = [header_row] |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 280 | for y in test_data.y_values: |
apw | 7a7316b | 2008-02-21 17:42:05 +0000 | [diff] [blame] | 281 | dy = y |
| 282 | if field_map.has_key(row): |
| 283 | dy = field_map[row](y) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 284 | y_header = header_tuneup(row, dy) |
mbligh | 5bb5586 | 2008-04-16 23:09:31 +0000 | [diff] [blame] | 285 | link = construct_link(None, y) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 286 | cur_row = [display.box(y_header, header=True, link=link)] |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 287 | for x in test_data.x_values: |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 288 | ## next 2 lines: temporary, until non timestamped |
| 289 | ## records are in the database |
| 290 | if x==datetime.datetime(1970,1,1): x = None |
| 291 | if y==datetime.datetime(1970,1,1): y = None |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 292 | try: |
mbligh | 3126069 | 2008-04-16 23:12:12 +0000 | [diff] [blame] | 293 | box_data = test_data.data[x][y] |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 294 | except: |
| 295 | cur_row.append(display.box(None, None)) |
| 296 | continue |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 297 | job_tag = test_data.data[x][y].job_tag |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 298 | if job_tag: |
mbligh | e47ff2a | 2008-02-28 00:44:11 +0000 | [diff] [blame] | 299 | link = frontend.html_root + job_tag + '/' |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 300 | if (row == 'test' and |
| 301 | not 'boot' in y and |
| 302 | not 'build' in y and |
| 303 | not 'install' in y ): |
| 304 | link += y + '/' |
| 305 | if (column == 'test' and |
| 306 | not 'boot' in x and |
| 307 | not 'build' in x and |
| 308 | not 'install' in x): |
| 309 | link += x + '/' |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 310 | else: |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 311 | link = construct_link(x, y) |
mbligh | 44710b6 | 2008-03-07 00:25:43 +0000 | [diff] [blame] | 312 | |
mbligh | aea0960 | 2008-04-16 22:59:37 +0000 | [diff] [blame] | 313 | cur_row.append(display.status_precounted_box(db_obj, |
mbligh | 5dd503b | 2008-01-03 16:35:27 +0000 | [diff] [blame] | 314 | box_data, |
| 315 | link)) |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 316 | matrix.append(cur_row) |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 317 | return matrix |
mbligh | 2b67253 | 2007-11-05 19:24:51 +0000 | [diff] [blame] | 318 | |
mbligh | 2b67253 | 2007-11-05 19:24:51 +0000 | [diff] [blame] | 319 | |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 320 | def main(): |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 321 | # create the actual page |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 322 | print '<html><head><title>' |
| 323 | print 'Filtered Autotest Results' |
| 324 | print '</title></head><body>' |
mbligh | 1467162 | 2008-01-11 16:49:54 +0000 | [diff] [blame] | 325 | display.print_main_header() |
mbligh | 2ba3e73 | 2008-01-16 01:30:19 +0000 | [diff] [blame] | 326 | print html_header % (create_select_options(column), |
| 327 | create_select_options(row), |
mbligh | be25745 | 2008-04-16 23:29:13 +0000 | [diff] [blame] | 328 | condition_field, title_field) |
| 329 | if title_field: |
| 330 | print '<h1> %s </h1>' % (title_field) |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 331 | print display.color_keys_row() |
mbligh | 12eebfa | 2008-01-03 02:01:53 +0000 | [diff] [blame] | 332 | display.print_table(gen_matrix()) |
mbligh | 439661b | 2008-02-19 15:57:53 +0000 | [diff] [blame] | 333 | print display.color_keys_row() |
mbligh | 190a81d | 2007-11-05 20:40:38 +0000 | [diff] [blame] | 334 | print '</body></html>' |
mbligh | 2e4e5df | 2007-11-05 17:22:46 +0000 | [diff] [blame] | 335 | |
| 336 | |
| 337 | main() |