修订版 | 35 (tree) |
---|---|
时间 | 2018-07-18 03:44:20 |
作者 | jakobthomsen |
omit eof when iterating over StreamIn
@@ -1,6 +1,6 @@ | ||
1 | 1 | Test iterate stream-in |
2 | 2 | This is the input test file |
3 | - . | |
3 | +. | |
4 | 4 | [256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0][][12345] |
5 | 5 | Test compare |
6 | 6 | for-test 0: |
@@ -1,6 +1,6 @@ | ||
1 | 1 | Test iterate stream-in |
2 | 2 | This is the input test file |
3 | - . | |
3 | +. | |
4 | 4 | [256, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 240, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 224, 223, 222, 221, 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 210, 209, 208, 207, 206, 205, 204, 203, 202, 201, 200, 199, 198, 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0][][12345] |
5 | 5 | Test compare |
6 | 6 | for-test 0: |
@@ -3344,60 +3344,45 @@ | ||
3344 | 3344 | PutStrLn(0 /* _1 */, &*_2, &_3); |
3345 | 3345 | string$dest(&_3); |
3346 | 3346 | } |
3347 | - uint8_t _c = 0; | |
3348 | - do { | |
3349 | - Get(&_c, &((*streams).in)); | |
3347 | + for(int _2 = getc(((*streams).in).f); _2 >= 0; _2 = getc(((*streams).in).f)) | |
3348 | + { | |
3349 | + const uint8_t _c = (uint8_t)_2; | |
3350 | 3350 | { |
3351 | - const struct StreamOut *_3 = &(*streams).out; | |
3352 | - Put(0 /* _2 */, &*_3, &_c); | |
3351 | + const struct StreamOut *_4 = &(*streams).out; | |
3352 | + Put(0 /* _3 */, &*_4, &_c); | |
3353 | 3353 | } |
3354 | 3354 | } |
3355 | - while(_c); | |
3356 | 3355 | { |
3357 | - const struct StreamOut *_3 = &(*streams).out; | |
3358 | - struct string _4; memset(&_4, 0, sizeof(struct string)); | |
3359 | - init$fromliteral(&_4, ".", 1); | |
3360 | - PutStrLn(0 /* _2 */, &*_3, &_4); | |
3361 | - string$dest(&_4); | |
3356 | + const struct StreamOut *_4 = &(*streams).out; | |
3357 | + struct string _5; memset(&_5, 0, sizeof(struct string)); | |
3358 | + init$fromliteral(&_5, ".", 1); | |
3359 | + PutStrLn(0 /* _3 */, &*_4, &_5); | |
3360 | + string$dest(&_5); | |
3362 | 3361 | } |
3363 | 3362 | { |
3364 | - TestStack$(0 /* _3 */, &*streams); | |
3363 | + TestStack$(0 /* _4 */, &*streams); | |
3365 | 3364 | } |
3366 | 3365 | { |
3367 | - const struct StreamOut *_5 = &(*streams).out; | |
3368 | - struct string _6; memset(&_6, 0, sizeof(struct string)); | |
3369 | - init$fromliteral(&_6, "Test compare", 12); | |
3370 | - PutStrLn(0 /* _4 */, &*_5, &_6); | |
3371 | - string$dest(&_6); | |
3366 | + const struct StreamOut *_6 = &(*streams).out; | |
3367 | + struct string _7; memset(&_7, 0, sizeof(struct string)); | |
3368 | + init$fromliteral(&_7, "Test compare", 12); | |
3369 | + PutStrLn(0 /* _5 */, &*_6, &_7); | |
3370 | + string$dest(&_7); | |
3372 | 3371 | } |
3373 | 3372 | { |
3374 | 3373 | struct stack/*string2$*/ _data; memset(&_data, 0, sizeof(struct stack/*string2$*/)); |
3375 | 3374 | { |
3376 | - struct string2$ _7; memset(&_7, 0, sizeof(struct string2$)); | |
3377 | - { | |
3378 | - struct string _8; memset(&_8, 0, sizeof(struct string)); | |
3379 | - init$fromliteral(&_8, "abc", 3); | |
3380 | - struct string _9; memset(&_9, 0, sizeof(struct string)); | |
3381 | - init$fromliteral(&_9, "abc", 3); | |
3382 | - string2$(&_7, &_8, &_9); | |
3383 | - string$dest(&_9); | |
3384 | - string$dest(&_8); | |
3385 | - } | |
3386 | - push(0 /* _6 */, &_data, &_7, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 482); | |
3387 | - string2$$dest(&_7); | |
3388 | - } | |
3389 | - { | |
3390 | 3375 | struct string2$ _8; memset(&_8, 0, sizeof(struct string2$)); |
3391 | 3376 | { |
3392 | 3377 | struct string _9; memset(&_9, 0, sizeof(struct string)); |
3393 | 3378 | init$fromliteral(&_9, "abc", 3); |
3394 | 3379 | struct string _10; memset(&_10, 0, sizeof(struct string)); |
3395 | - init$fromliteral(&_10, "abcba", 5); | |
3380 | + init$fromliteral(&_10, "abc", 3); | |
3396 | 3381 | string2$(&_8, &_9, &_10); |
3397 | 3382 | string$dest(&_10); |
3398 | 3383 | string$dest(&_9); |
3399 | 3384 | } |
3400 | - push(0 /* _7 */, &_data, &_8, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 483); | |
3385 | + push(0 /* _7 */, &_data, &_8, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 482); | |
3401 | 3386 | string2$$dest(&_8); |
3402 | 3387 | } |
3403 | 3388 | { |
@@ -3404,14 +3389,14 @@ | ||
3404 | 3389 | struct string2$ _9; memset(&_9, 0, sizeof(struct string2$)); |
3405 | 3390 | { |
3406 | 3391 | struct string _10; memset(&_10, 0, sizeof(struct string)); |
3407 | - init$fromliteral(&_10, "abcba", 5); | |
3392 | + init$fromliteral(&_10, "abc", 3); | |
3408 | 3393 | struct string _11; memset(&_11, 0, sizeof(struct string)); |
3409 | - init$fromliteral(&_11, "abc", 3); | |
3394 | + init$fromliteral(&_11, "abcba", 5); | |
3410 | 3395 | string2$(&_9, &_10, &_11); |
3411 | 3396 | string$dest(&_11); |
3412 | 3397 | string$dest(&_10); |
3413 | 3398 | } |
3414 | - push(0 /* _8 */, &_data, &_9, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 484); | |
3399 | + push(0 /* _8 */, &_data, &_9, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 483); | |
3415 | 3400 | string2$$dest(&_9); |
3416 | 3401 | } |
3417 | 3402 | { |
@@ -3418,14 +3403,14 @@ | ||
3418 | 3403 | struct string2$ _10; memset(&_10, 0, sizeof(struct string2$)); |
3419 | 3404 | { |
3420 | 3405 | struct string _11; memset(&_11, 0, sizeof(struct string)); |
3421 | - init$fromliteral(&_11, "2abc1", 5); | |
3406 | + init$fromliteral(&_11, "abcba", 5); | |
3422 | 3407 | struct string _12; memset(&_12, 0, sizeof(struct string)); |
3423 | - init$fromliteral(&_12, "1abc2", 5); | |
3408 | + init$fromliteral(&_12, "abc", 3); | |
3424 | 3409 | string2$(&_10, &_11, &_12); |
3425 | 3410 | string$dest(&_12); |
3426 | 3411 | string$dest(&_11); |
3427 | 3412 | } |
3428 | - push(0 /* _9 */, &_data, &_10, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 485); | |
3413 | + push(0 /* _9 */, &_data, &_10, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 484); | |
3429 | 3414 | string2$$dest(&_10); |
3430 | 3415 | } |
3431 | 3416 | { |
@@ -3432,14 +3417,14 @@ | ||
3432 | 3417 | struct string2$ _11; memset(&_11, 0, sizeof(struct string2$)); |
3433 | 3418 | { |
3434 | 3419 | struct string _12; memset(&_12, 0, sizeof(struct string)); |
3435 | - init$fromliteral(&_12, "1abc2", 5); | |
3420 | + init$fromliteral(&_12, "2abc1", 5); | |
3436 | 3421 | struct string _13; memset(&_13, 0, sizeof(struct string)); |
3437 | - init$fromliteral(&_13, "2abc1", 5); | |
3422 | + init$fromliteral(&_13, "1abc2", 5); | |
3438 | 3423 | string2$(&_11, &_12, &_13); |
3439 | 3424 | string$dest(&_13); |
3440 | 3425 | string$dest(&_12); |
3441 | 3426 | } |
3442 | - push(0 /* _10 */, &_data, &_11, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 486); | |
3427 | + push(0 /* _10 */, &_data, &_11, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 485); | |
3443 | 3428 | string2$$dest(&_11); |
3444 | 3429 | } |
3445 | 3430 | { |
@@ -3446,14 +3431,14 @@ | ||
3446 | 3431 | struct string2$ _12; memset(&_12, 0, sizeof(struct string2$)); |
3447 | 3432 | { |
3448 | 3433 | struct string _13; memset(&_13, 0, sizeof(struct string)); |
3449 | - init$fromliteral(&_13, "abc1", 4); | |
3434 | + init$fromliteral(&_13, "1abc2", 5); | |
3450 | 3435 | struct string _14; memset(&_14, 0, sizeof(struct string)); |
3451 | - init$fromliteral(&_14, "abc2", 4); | |
3436 | + init$fromliteral(&_14, "2abc1", 5); | |
3452 | 3437 | string2$(&_12, &_13, &_14); |
3453 | 3438 | string$dest(&_14); |
3454 | 3439 | string$dest(&_13); |
3455 | 3440 | } |
3456 | - push(0 /* _11 */, &_data, &_12, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 487); | |
3441 | + push(0 /* _11 */, &_data, &_12, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 486); | |
3457 | 3442 | string2$$dest(&_12); |
3458 | 3443 | } |
3459 | 3444 | { |
@@ -3460,14 +3445,14 @@ | ||
3460 | 3445 | struct string2$ _13; memset(&_13, 0, sizeof(struct string2$)); |
3461 | 3446 | { |
3462 | 3447 | struct string _14; memset(&_14, 0, sizeof(struct string)); |
3463 | - init$fromliteral(&_14, "abc2", 4); | |
3448 | + init$fromliteral(&_14, "abc1", 4); | |
3464 | 3449 | struct string _15; memset(&_15, 0, sizeof(struct string)); |
3465 | - init$fromliteral(&_15, "abc1", 4); | |
3450 | + init$fromliteral(&_15, "abc2", 4); | |
3466 | 3451 | string2$(&_13, &_14, &_15); |
3467 | 3452 | string$dest(&_15); |
3468 | 3453 | string$dest(&_14); |
3469 | 3454 | } |
3470 | - push(0 /* _12 */, &_data, &_13, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 488); | |
3455 | + push(0 /* _12 */, &_data, &_13, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 487); | |
3471 | 3456 | string2$$dest(&_13); |
3472 | 3457 | } |
3473 | 3458 | { |
@@ -3474,14 +3459,14 @@ | ||
3474 | 3459 | struct string2$ _14; memset(&_14, 0, sizeof(struct string2$)); |
3475 | 3460 | { |
3476 | 3461 | struct string _15; memset(&_15, 0, sizeof(struct string)); |
3477 | - init$fromliteral(&_15, "1abc", 4); | |
3462 | + init$fromliteral(&_15, "abc2", 4); | |
3478 | 3463 | struct string _16; memset(&_16, 0, sizeof(struct string)); |
3479 | - init$fromliteral(&_16, "2abc", 4); | |
3464 | + init$fromliteral(&_16, "abc1", 4); | |
3480 | 3465 | string2$(&_14, &_15, &_16); |
3481 | 3466 | string$dest(&_16); |
3482 | 3467 | string$dest(&_15); |
3483 | 3468 | } |
3484 | - push(0 /* _13 */, &_data, &_14, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 489); | |
3469 | + push(0 /* _13 */, &_data, &_14, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 488); | |
3485 | 3470 | string2$$dest(&_14); |
3486 | 3471 | } |
3487 | 3472 | { |
@@ -3488,14 +3473,14 @@ | ||
3488 | 3473 | struct string2$ _15; memset(&_15, 0, sizeof(struct string2$)); |
3489 | 3474 | { |
3490 | 3475 | struct string _16; memset(&_16, 0, sizeof(struct string)); |
3491 | - init$fromliteral(&_16, "2abc", 4); | |
3476 | + init$fromliteral(&_16, "1abc", 4); | |
3492 | 3477 | struct string _17; memset(&_17, 0, sizeof(struct string)); |
3493 | - init$fromliteral(&_17, "1abc", 4); | |
3478 | + init$fromliteral(&_17, "2abc", 4); | |
3494 | 3479 | string2$(&_15, &_16, &_17); |
3495 | 3480 | string$dest(&_17); |
3496 | 3481 | string$dest(&_16); |
3497 | 3482 | } |
3498 | - push(0 /* _14 */, &_data, &_15, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 490); | |
3483 | + push(0 /* _14 */, &_data, &_15, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 489); | |
3499 | 3484 | string2$$dest(&_15); |
3500 | 3485 | } |
3501 | 3486 | { |
@@ -3502,52 +3487,66 @@ | ||
3502 | 3487 | struct string2$ _16; memset(&_16, 0, sizeof(struct string2$)); |
3503 | 3488 | { |
3504 | 3489 | struct string _17; memset(&_17, 0, sizeof(struct string)); |
3505 | - init$fromliteral(&_17, "bbcc", 4); | |
3490 | + init$fromliteral(&_17, "2abc", 4); | |
3506 | 3491 | struct string _18; memset(&_18, 0, sizeof(struct string)); |
3507 | - init$fromliteral(&_18, "abcd", 4); | |
3492 | + init$fromliteral(&_18, "1abc", 4); | |
3508 | 3493 | string2$(&_16, &_17, &_18); |
3509 | 3494 | string$dest(&_18); |
3510 | 3495 | string$dest(&_17); |
3511 | 3496 | } |
3512 | - push(0 /* _15 */, &_data, &_16, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 491); | |
3497 | + push(0 /* _15 */, &_data, &_16, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 490); | |
3513 | 3498 | string2$$dest(&_16); |
3514 | 3499 | } |
3515 | 3500 | { |
3516 | - const struct StreamOut *_17 = &(*streams).out; | |
3517 | - struct string _18; memset(&_18, 0, sizeof(struct string)); | |
3518 | - init$fromliteral(&_18, "for-test 0: ", 12); | |
3519 | - PutStrLn(0 /* _16 */, &*_17, &_18); | |
3520 | - string$dest(&_18); | |
3501 | + struct string2$ _17; memset(&_17, 0, sizeof(struct string2$)); | |
3502 | + { | |
3503 | + struct string _18; memset(&_18, 0, sizeof(struct string)); | |
3504 | + init$fromliteral(&_18, "bbcc", 4); | |
3505 | + struct string _19; memset(&_19, 0, sizeof(struct string)); | |
3506 | + init$fromliteral(&_19, "abcd", 4); | |
3507 | + string2$(&_17, &_18, &_19); | |
3508 | + string$dest(&_19); | |
3509 | + string$dest(&_18); | |
3510 | + } | |
3511 | + push(0 /* _16 */, &_data, &_17, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 491); | |
3512 | + string2$$dest(&_17); | |
3521 | 3513 | } |
3522 | - struct stack/*string2$*/ _17; memset(&_17, 0, sizeof(struct stack/*string2$*/)); | |
3523 | - clone$(&_17, &(_data), sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy); | |
3524 | - for(uint64_t _18 = 0; _18 < _17.ptr; ++_18) | |
3525 | 3514 | { |
3515 | + const struct StreamOut *_18 = &(*streams).out; | |
3516 | + struct string _19; memset(&_19, 0, sizeof(struct string)); | |
3517 | + init$fromliteral(&_19, "for-test 0: ", 12); | |
3518 | + PutStrLn(0 /* _17 */, &*_18, &_19); | |
3519 | + string$dest(&_19); | |
3520 | + } | |
3521 | + struct stack/*string2$*/ _18; memset(&_18, 0, sizeof(struct stack/*string2$*/)); | |
3522 | + clone$(&_18, &(_data), sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy); | |
3523 | + for(uint64_t _19 = 0; _19 < _18.ptr; ++_19) | |
3524 | + { | |
3526 | 3525 | struct string2$ _e; memset(&_e, 0, sizeof(struct string2$)); |
3527 | - at_get$(&_e, &_17, &_18, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 495); | |
3526 | + at_get$(&_e, &_18, &_19, sizeof(struct string2$), (void (*)(void *))string2$$dest, (void (*)(void *, const void *))string2$$copy, 495); | |
3528 | 3527 | { |
3529 | - const struct StreamOut *_20 = &(*streams).out; | |
3530 | - Print$string2$(0 /* _19 */, &*_20, &_e); | |
3528 | + const struct StreamOut *_21 = &(*streams).out; | |
3529 | + Print$string2$(0 /* _20 */, &*_21, &_e); | |
3531 | 3530 | } |
3532 | 3531 | { |
3533 | - const struct StreamOut *_21 = &(*streams).out; | |
3534 | - struct string _22; memset(&_22, 0, sizeof(struct string)); | |
3535 | - init$fromliteral(&_22, "", 0); | |
3536 | - PutStrLn(0 /* _20 */, &*_21, &_22); | |
3537 | - string$dest(&_22); | |
3532 | + const struct StreamOut *_22 = &(*streams).out; | |
3533 | + struct string _23; memset(&_23, 0, sizeof(struct string)); | |
3534 | + init$fromliteral(&_23, "", 0); | |
3535 | + PutStrLn(0 /* _21 */, &*_22, &_23); | |
3536 | + string$dest(&_23); | |
3538 | 3537 | } |
3539 | 3538 | string2$$dest(&_e); |
3540 | 3539 | } |
3541 | - free$(&_17, sizeof(struct string2$), (void (*)(void *))string2$$dest); | |
3540 | + free$(&_18, sizeof(struct string2$), (void (*)(void *))string2$$dest); | |
3542 | 3541 | { |
3543 | - const struct StreamOut *_20 = &(*streams).out; | |
3544 | - struct string _21; memset(&_21, 0, sizeof(struct string)); | |
3545 | - init$fromliteral(&_21, "---", 3); | |
3546 | - PutStrLn(0 /* _19 */, &*_20, &_21); | |
3547 | - string$dest(&_21); | |
3542 | + const struct StreamOut *_21 = &(*streams).out; | |
3543 | + struct string _22; memset(&_22, 0, sizeof(struct string)); | |
3544 | + init$fromliteral(&_22, "---", 3); | |
3545 | + PutStrLn(0 /* _20 */, &*_21, &_22); | |
3546 | + string$dest(&_22); | |
3548 | 3547 | } |
3549 | 3548 | { |
3550 | - TestCompareStrings$(0 /* _20 */, &*streams, &_data); | |
3549 | + TestCompareStrings$(0 /* _21 */, &*streams, &_data); | |
3551 | 3550 | } |
3552 | 3551 | free$(&_data, sizeof(struct string2$), (void (*)(void *))string2$$dest); |
3553 | 3552 | } |
@@ -3554,108 +3553,6 @@ | ||
3554 | 3553 | { |
3555 | 3554 | struct stack/*tree2$*/ _data; memset(&_data, 0, sizeof(struct stack/*tree2$*/)); |
3556 | 3555 | { |
3557 | - struct tree2$ _8; memset(&_8, 0, sizeof(struct tree2$)); | |
3558 | - { | |
3559 | - struct tree$ _9; memset(&_9, 0, sizeof(struct tree$)); | |
3560 | - { | |
3561 | - struct tree$ _10; memset(&_10, 0, sizeof(struct tree$)); | |
3562 | - { | |
3563 | - struct tree$ _11; memset(&_11, 0, sizeof(struct tree$)); | |
3564 | - { | |
3565 | - struct string _12; memset(&_12, 0, sizeof(struct string)); | |
3566 | - init$fromliteral(&_12, "2", 1); | |
3567 | - leaf$(&_11, &_12); | |
3568 | - string$dest(&_12); | |
3569 | - } | |
3570 | - struct tree$ _12; memset(&_12, 0, sizeof(struct tree$)); | |
3571 | - { | |
3572 | - struct string _13; memset(&_13, 0, sizeof(struct string)); | |
3573 | - init$fromliteral(&_13, "B", 1); | |
3574 | - leaf$(&_12, &_13); | |
3575 | - string$dest(&_13); | |
3576 | - } | |
3577 | - node$(&_10, &_11, &_12); | |
3578 | - tree$$dest(&_12); | |
3579 | - tree$$dest(&_11); | |
3580 | - } | |
3581 | - struct tree$ _11; memset(&_11, 0, sizeof(struct tree$)); | |
3582 | - { | |
3583 | - struct tree$ _12; memset(&_12, 0, sizeof(struct tree$)); | |
3584 | - { | |
3585 | - struct string _13; memset(&_13, 0, sizeof(struct string)); | |
3586 | - init$fromliteral(&_13, "C", 1); | |
3587 | - leaf$(&_12, &_13); | |
3588 | - string$dest(&_13); | |
3589 | - } | |
3590 | - struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); | |
3591 | - { | |
3592 | - struct string _14; memset(&_14, 0, sizeof(struct string)); | |
3593 | - init$fromliteral(&_14, "1", 1); | |
3594 | - leaf$(&_13, &_14); | |
3595 | - string$dest(&_14); | |
3596 | - } | |
3597 | - node$(&_11, &_12, &_13); | |
3598 | - tree$$dest(&_13); | |
3599 | - tree$$dest(&_12); | |
3600 | - } | |
3601 | - node$(&_9, &_10, &_11); | |
3602 | - tree$$dest(&_11); | |
3603 | - tree$$dest(&_10); | |
3604 | - } | |
3605 | - struct tree$ _10; memset(&_10, 0, sizeof(struct tree$)); | |
3606 | - { | |
3607 | - struct tree$ _11; memset(&_11, 0, sizeof(struct tree$)); | |
3608 | - { | |
3609 | - struct tree$ _12; memset(&_12, 0, sizeof(struct tree$)); | |
3610 | - { | |
3611 | - struct string _13; memset(&_13, 0, sizeof(struct string)); | |
3612 | - init$fromliteral(&_13, "1", 1); | |
3613 | - leaf$(&_12, &_13); | |
3614 | - string$dest(&_13); | |
3615 | - } | |
3616 | - struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); | |
3617 | - { | |
3618 | - struct string _14; memset(&_14, 0, sizeof(struct string)); | |
3619 | - init$fromliteral(&_14, "B", 1); | |
3620 | - leaf$(&_13, &_14); | |
3621 | - string$dest(&_14); | |
3622 | - } | |
3623 | - node$(&_11, &_12, &_13); | |
3624 | - tree$$dest(&_13); | |
3625 | - tree$$dest(&_12); | |
3626 | - } | |
3627 | - struct tree$ _12; memset(&_12, 0, sizeof(struct tree$)); | |
3628 | - { | |
3629 | - struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); | |
3630 | - { | |
3631 | - struct string _14; memset(&_14, 0, sizeof(struct string)); | |
3632 | - init$fromliteral(&_14, "C", 1); | |
3633 | - leaf$(&_13, &_14); | |
3634 | - string$dest(&_14); | |
3635 | - } | |
3636 | - struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); | |
3637 | - { | |
3638 | - struct string _15; memset(&_15, 0, sizeof(struct string)); | |
3639 | - init$fromliteral(&_15, "2", 1); | |
3640 | - leaf$(&_14, &_15); | |
3641 | - string$dest(&_15); | |
3642 | - } | |
3643 | - node$(&_12, &_13, &_14); | |
3644 | - tree$$dest(&_14); | |
3645 | - tree$$dest(&_13); | |
3646 | - } | |
3647 | - node$(&_10, &_11, &_12); | |
3648 | - tree$$dest(&_12); | |
3649 | - tree$$dest(&_11); | |
3650 | - } | |
3651 | - tree2$(&_8, &_9, &_10); | |
3652 | - tree$$dest(&_10); | |
3653 | - tree$$dest(&_9); | |
3654 | - } | |
3655 | - push(0 /* _7 */, &_data, &_8, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 507); | |
3656 | - tree2$$dest(&_8); | |
3657 | - } | |
3658 | - { | |
3659 | 3556 | struct tree2$ _9; memset(&_9, 0, sizeof(struct tree2$)); |
3660 | 3557 | { |
3661 | 3558 | struct tree$ _10; memset(&_10, 0, sizeof(struct tree$)); |
@@ -3665,7 +3562,7 @@ | ||
3665 | 3562 | struct tree$ _12; memset(&_12, 0, sizeof(struct tree$)); |
3666 | 3563 | { |
3667 | 3564 | struct string _13; memset(&_13, 0, sizeof(struct string)); |
3668 | - init$fromliteral(&_13, "1", 1); | |
3565 | + init$fromliteral(&_13, "2", 1); | |
3669 | 3566 | leaf$(&_12, &_13); |
3670 | 3567 | string$dest(&_13); |
3671 | 3568 | } |
@@ -3692,7 +3589,7 @@ | ||
3692 | 3589 | struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); |
3693 | 3590 | { |
3694 | 3591 | struct string _15; memset(&_15, 0, sizeof(struct string)); |
3695 | - init$fromliteral(&_15, "2", 1); | |
3592 | + init$fromliteral(&_15, "1", 1); | |
3696 | 3593 | leaf$(&_14, &_15); |
3697 | 3594 | string$dest(&_15); |
3698 | 3595 | } |
@@ -3711,7 +3608,7 @@ | ||
3711 | 3608 | struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); |
3712 | 3609 | { |
3713 | 3610 | struct string _14; memset(&_14, 0, sizeof(struct string)); |
3714 | - init$fromliteral(&_14, "2", 1); | |
3611 | + init$fromliteral(&_14, "1", 1); | |
3715 | 3612 | leaf$(&_13, &_14); |
3716 | 3613 | string$dest(&_14); |
3717 | 3614 | } |
@@ -3738,7 +3635,7 @@ | ||
3738 | 3635 | struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); |
3739 | 3636 | { |
3740 | 3637 | struct string _16; memset(&_16, 0, sizeof(struct string)); |
3741 | - init$fromliteral(&_16, "1", 1); | |
3638 | + init$fromliteral(&_16, "2", 1); | |
3742 | 3639 | leaf$(&_15, &_16); |
3743 | 3640 | string$dest(&_16); |
3744 | 3641 | } |
@@ -3754,7 +3651,7 @@ | ||
3754 | 3651 | tree$$dest(&_11); |
3755 | 3652 | tree$$dest(&_10); |
3756 | 3653 | } |
3757 | - push(0 /* _8 */, &_data, &_9, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 508); | |
3654 | + push(0 /* _8 */, &_data, &_9, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 507); | |
3758 | 3655 | tree2$$dest(&_9); |
3759 | 3656 | } |
3760 | 3657 | { |
@@ -3767,7 +3664,7 @@ | ||
3767 | 3664 | struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); |
3768 | 3665 | { |
3769 | 3666 | struct string _14; memset(&_14, 0, sizeof(struct string)); |
3770 | - init$fromliteral(&_14, "A", 1); | |
3667 | + init$fromliteral(&_14, "1", 1); | |
3771 | 3668 | leaf$(&_13, &_14); |
3772 | 3669 | string$dest(&_14); |
3773 | 3670 | } |
@@ -3794,7 +3691,7 @@ | ||
3794 | 3691 | struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); |
3795 | 3692 | { |
3796 | 3693 | struct string _16; memset(&_16, 0, sizeof(struct string)); |
3797 | - init$fromliteral(&_16, "D", 1); | |
3694 | + init$fromliteral(&_16, "2", 1); | |
3798 | 3695 | leaf$(&_15, &_16); |
3799 | 3696 | string$dest(&_16); |
3800 | 3697 | } |
@@ -3813,7 +3710,7 @@ | ||
3813 | 3710 | struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); |
3814 | 3711 | { |
3815 | 3712 | struct string _15; memset(&_15, 0, sizeof(struct string)); |
3816 | - init$fromliteral(&_15, "A", 1); | |
3713 | + init$fromliteral(&_15, "2", 1); | |
3817 | 3714 | leaf$(&_14, &_15); |
3818 | 3715 | string$dest(&_15); |
3819 | 3716 | } |
@@ -3840,7 +3737,7 @@ | ||
3840 | 3737 | struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); |
3841 | 3738 | { |
3842 | 3739 | struct string _17; memset(&_17, 0, sizeof(struct string)); |
3843 | - init$fromliteral(&_17, "D", 1); | |
3740 | + init$fromliteral(&_17, "1", 1); | |
3844 | 3741 | leaf$(&_16, &_17); |
3845 | 3742 | string$dest(&_17); |
3846 | 3743 | } |
@@ -3856,7 +3753,7 @@ | ||
3856 | 3753 | tree$$dest(&_12); |
3857 | 3754 | tree$$dest(&_11); |
3858 | 3755 | } |
3859 | - push(0 /* _9 */, &_data, &_10, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 509); | |
3756 | + push(0 /* _9 */, &_data, &_10, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 508); | |
3860 | 3757 | tree2$$dest(&_10); |
3861 | 3758 | } |
3862 | 3759 | { |
@@ -3866,17 +3763,43 @@ | ||
3866 | 3763 | { |
3867 | 3764 | struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); |
3868 | 3765 | { |
3869 | - struct string _14; memset(&_14, 0, sizeof(struct string)); | |
3870 | - init$fromliteral(&_14, "A", 1); | |
3871 | - leaf$(&_13, &_14); | |
3872 | - string$dest(&_14); | |
3766 | + struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); | |
3767 | + { | |
3768 | + struct string _15; memset(&_15, 0, sizeof(struct string)); | |
3769 | + init$fromliteral(&_15, "A", 1); | |
3770 | + leaf$(&_14, &_15); | |
3771 | + string$dest(&_15); | |
3772 | + } | |
3773 | + struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3774 | + { | |
3775 | + struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3776 | + init$fromliteral(&_16, "B", 1); | |
3777 | + leaf$(&_15, &_16); | |
3778 | + string$dest(&_16); | |
3779 | + } | |
3780 | + node$(&_13, &_14, &_15); | |
3781 | + tree$$dest(&_15); | |
3782 | + tree$$dest(&_14); | |
3873 | 3783 | } |
3874 | 3784 | struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); |
3875 | 3785 | { |
3876 | - struct string _15; memset(&_15, 0, sizeof(struct string)); | |
3877 | - init$fromliteral(&_15, "B", 1); | |
3878 | - leaf$(&_14, &_15); | |
3879 | - string$dest(&_15); | |
3786 | + struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3787 | + { | |
3788 | + struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3789 | + init$fromliteral(&_16, "C", 1); | |
3790 | + leaf$(&_15, &_16); | |
3791 | + string$dest(&_16); | |
3792 | + } | |
3793 | + struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); | |
3794 | + { | |
3795 | + struct string _17; memset(&_17, 0, sizeof(struct string)); | |
3796 | + init$fromliteral(&_17, "D", 1); | |
3797 | + leaf$(&_16, &_17); | |
3798 | + string$dest(&_17); | |
3799 | + } | |
3800 | + node$(&_14, &_15, &_16); | |
3801 | + tree$$dest(&_16); | |
3802 | + tree$$dest(&_15); | |
3880 | 3803 | } |
3881 | 3804 | node$(&_12, &_13, &_14); |
3882 | 3805 | tree$$dest(&_14); |
@@ -3886,17 +3809,43 @@ | ||
3886 | 3809 | { |
3887 | 3810 | struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); |
3888 | 3811 | { |
3889 | - struct string _15; memset(&_15, 0, sizeof(struct string)); | |
3890 | - init$fromliteral(&_15, "A", 1); | |
3891 | - leaf$(&_14, &_15); | |
3892 | - string$dest(&_15); | |
3812 | + struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3813 | + { | |
3814 | + struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3815 | + init$fromliteral(&_16, "A", 1); | |
3816 | + leaf$(&_15, &_16); | |
3817 | + string$dest(&_16); | |
3818 | + } | |
3819 | + struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); | |
3820 | + { | |
3821 | + struct string _17; memset(&_17, 0, sizeof(struct string)); | |
3822 | + init$fromliteral(&_17, "B", 1); | |
3823 | + leaf$(&_16, &_17); | |
3824 | + string$dest(&_17); | |
3825 | + } | |
3826 | + node$(&_14, &_15, &_16); | |
3827 | + tree$$dest(&_16); | |
3828 | + tree$$dest(&_15); | |
3893 | 3829 | } |
3894 | 3830 | struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); |
3895 | 3831 | { |
3896 | - struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3897 | - init$fromliteral(&_16, "B", 1); | |
3898 | - leaf$(&_15, &_16); | |
3899 | - string$dest(&_16); | |
3832 | + struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); | |
3833 | + { | |
3834 | + struct string _17; memset(&_17, 0, sizeof(struct string)); | |
3835 | + init$fromliteral(&_17, "C", 1); | |
3836 | + leaf$(&_16, &_17); | |
3837 | + string$dest(&_17); | |
3838 | + } | |
3839 | + struct tree$ _17; memset(&_17, 0, sizeof(struct tree$)); | |
3840 | + { | |
3841 | + struct string _18; memset(&_18, 0, sizeof(struct string)); | |
3842 | + init$fromliteral(&_18, "D", 1); | |
3843 | + leaf$(&_17, &_18); | |
3844 | + string$dest(&_18); | |
3845 | + } | |
3846 | + node$(&_15, &_16, &_17); | |
3847 | + tree$$dest(&_17); | |
3848 | + tree$$dest(&_16); | |
3900 | 3849 | } |
3901 | 3850 | node$(&_13, &_14, &_15); |
3902 | 3851 | tree$$dest(&_15); |
@@ -3906,7 +3855,7 @@ | ||
3906 | 3855 | tree$$dest(&_13); |
3907 | 3856 | tree$$dest(&_12); |
3908 | 3857 | } |
3909 | - push(0 /* _10 */, &_data, &_11, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 510); | |
3858 | + push(0 /* _10 */, &_data, &_11, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 509); | |
3910 | 3859 | tree2$$dest(&_11); |
3911 | 3860 | } |
3912 | 3861 | { |
@@ -3914,10 +3863,23 @@ | ||
3914 | 3863 | { |
3915 | 3864 | struct tree$ _13; memset(&_13, 0, sizeof(struct tree$)); |
3916 | 3865 | { |
3917 | - struct string _14; memset(&_14, 0, sizeof(struct string)); | |
3918 | - init$fromliteral(&_14, "A", 1); | |
3919 | - leaf$(&_13, &_14); | |
3920 | - string$dest(&_14); | |
3866 | + struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); | |
3867 | + { | |
3868 | + struct string _15; memset(&_15, 0, sizeof(struct string)); | |
3869 | + init$fromliteral(&_15, "A", 1); | |
3870 | + leaf$(&_14, &_15); | |
3871 | + string$dest(&_15); | |
3872 | + } | |
3873 | + struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3874 | + { | |
3875 | + struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3876 | + init$fromliteral(&_16, "B", 1); | |
3877 | + leaf$(&_15, &_16); | |
3878 | + string$dest(&_16); | |
3879 | + } | |
3880 | + node$(&_13, &_14, &_15); | |
3881 | + tree$$dest(&_15); | |
3882 | + tree$$dest(&_14); | |
3921 | 3883 | } |
3922 | 3884 | struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); |
3923 | 3885 | { |
@@ -3931,7 +3893,7 @@ | ||
3931 | 3893 | struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); |
3932 | 3894 | { |
3933 | 3895 | struct string _17; memset(&_17, 0, sizeof(struct string)); |
3934 | - init$fromliteral(&_17, "A", 1); | |
3896 | + init$fromliteral(&_17, "B", 1); | |
3935 | 3897 | leaf$(&_16, &_17); |
3936 | 3898 | string$dest(&_17); |
3937 | 3899 | } |
@@ -3943,7 +3905,7 @@ | ||
3943 | 3905 | tree$$dest(&_14); |
3944 | 3906 | tree$$dest(&_13); |
3945 | 3907 | } |
3946 | - push(0 /* _11 */, &_data, &_12, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 511); | |
3908 | + push(0 /* _11 */, &_data, &_12, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 510); | |
3947 | 3909 | tree2$$dest(&_12); |
3948 | 3910 | } |
3949 | 3911 | { |
@@ -3951,13 +3913,13 @@ | ||
3951 | 3913 | { |
3952 | 3914 | struct tree$ _14; memset(&_14, 0, sizeof(struct tree$)); |
3953 | 3915 | { |
3954 | - struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3955 | - { | |
3956 | - struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3957 | - init$fromliteral(&_16, "A", 1); | |
3958 | - leaf$(&_15, &_16); | |
3959 | - string$dest(&_16); | |
3960 | - } | |
3916 | + struct string _15; memset(&_15, 0, sizeof(struct string)); | |
3917 | + init$fromliteral(&_15, "A", 1); | |
3918 | + leaf$(&_14, &_15); | |
3919 | + string$dest(&_15); | |
3920 | + } | |
3921 | + struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3922 | + { | |
3961 | 3923 | struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); |
3962 | 3924 | { |
3963 | 3925 | struct string _17; memset(&_17, 0, sizeof(struct string)); |
@@ -3965,22 +3927,22 @@ | ||
3965 | 3927 | leaf$(&_16, &_17); |
3966 | 3928 | string$dest(&_17); |
3967 | 3929 | } |
3968 | - node$(&_14, &_15, &_16); | |
3930 | + struct tree$ _17; memset(&_17, 0, sizeof(struct tree$)); | |
3931 | + { | |
3932 | + struct string _18; memset(&_18, 0, sizeof(struct string)); | |
3933 | + init$fromliteral(&_18, "A", 1); | |
3934 | + leaf$(&_17, &_18); | |
3935 | + string$dest(&_18); | |
3936 | + } | |
3937 | + node$(&_15, &_16, &_17); | |
3938 | + tree$$dest(&_17); | |
3969 | 3939 | tree$$dest(&_16); |
3970 | - tree$$dest(&_15); | |
3971 | 3940 | } |
3972 | - struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); | |
3973 | - { | |
3974 | - struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3975 | - init$fromliteral(&_16, "A", 1); | |
3976 | - leaf$(&_15, &_16); | |
3977 | - string$dest(&_16); | |
3978 | - } | |
3979 | 3941 | tree2$(&_13, &_14, &_15); |
3980 | 3942 | tree$$dest(&_15); |
3981 | 3943 | tree$$dest(&_14); |
3982 | 3944 | } |
3983 | - push(0 /* _12 */, &_data, &_13, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 512); | |
3945 | + push(0 /* _12 */, &_data, &_13, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 511); | |
3984 | 3946 | tree2$$dest(&_13); |
3985 | 3947 | } |
3986 | 3948 | { |
@@ -3988,10 +3950,23 @@ | ||
3988 | 3950 | { |
3989 | 3951 | struct tree$ _15; memset(&_15, 0, sizeof(struct tree$)); |
3990 | 3952 | { |
3991 | - struct string _16; memset(&_16, 0, sizeof(struct string)); | |
3992 | - init$fromliteral(&_16, "A", 1); | |
3993 | - leaf$(&_15, &_16); | |
3994 | - string$dest(&_16); | |
3953 | + struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); | |
3954 | + { | |
3955 | + struct string _17; memset(&_17, 0, sizeof(struct string)); | |
3956 | + init$fromliteral(&_17, "A", 1); | |
3957 | + leaf$(&_16, &_17); | |
3958 | + string$dest(&_17); | |
3959 | + } | |
3960 | + struct tree$ _17; memset(&_17, 0, sizeof(struct tree$)); | |
3961 | + { | |
3962 | + struct string _18; memset(&_18, 0, sizeof(struct string)); | |
3963 | + init$fromliteral(&_18, "A", 1); | |
3964 | + leaf$(&_17, &_18); | |
3965 | + string$dest(&_18); | |
3966 | + } | |
3967 | + node$(&_15, &_16, &_17); | |
3968 | + tree$$dest(&_17); | |
3969 | + tree$$dest(&_16); | |
3995 | 3970 | } |
3996 | 3971 | struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); |
3997 | 3972 | { |
@@ -4004,75 +3979,99 @@ | ||
4004 | 3979 | tree$$dest(&_16); |
4005 | 3980 | tree$$dest(&_15); |
4006 | 3981 | } |
4007 | - push(0 /* _13 */, &_data, &_14, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 513); | |
3982 | + push(0 /* _13 */, &_data, &_14, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 512); | |
4008 | 3983 | tree2$$dest(&_14); |
4009 | 3984 | } |
4010 | 3985 | { |
4011 | - TestCompareTrees$(0 /* _14 */, &*streams, &_data); | |
3986 | + struct tree2$ _15; memset(&_15, 0, sizeof(struct tree2$)); | |
3987 | + { | |
3988 | + struct tree$ _16; memset(&_16, 0, sizeof(struct tree$)); | |
3989 | + { | |
3990 | + struct string _17; memset(&_17, 0, sizeof(struct string)); | |
3991 | + init$fromliteral(&_17, "A", 1); | |
3992 | + leaf$(&_16, &_17); | |
3993 | + string$dest(&_17); | |
3994 | + } | |
3995 | + struct tree$ _17; memset(&_17, 0, sizeof(struct tree$)); | |
3996 | + { | |
3997 | + struct string _18; memset(&_18, 0, sizeof(struct string)); | |
3998 | + init$fromliteral(&_18, "A", 1); | |
3999 | + leaf$(&_17, &_18); | |
4000 | + string$dest(&_18); | |
4001 | + } | |
4002 | + tree2$(&_15, &_16, &_17); | |
4003 | + tree$$dest(&_17); | |
4004 | + tree$$dest(&_16); | |
4005 | + } | |
4006 | + push(0 /* _14 */, &_data, &_15, sizeof(struct tree2$), (void (*)(void *))tree2$$dest, (void (*)(void *, const void *))tree2$$copy, 513); | |
4007 | + tree2$$dest(&_15); | |
4012 | 4008 | } |
4009 | + { | |
4010 | + TestCompareTrees$(0 /* _15 */, &*streams, &_data); | |
4011 | + } | |
4013 | 4012 | free$(&_data, sizeof(struct tree2$), (void (*)(void *))tree2$$dest); |
4014 | 4013 | } |
4015 | 4014 | struct stack/*string*/ _words; memset(&_words, 0, sizeof(struct stack/*string*/)); |
4016 | 4015 | { |
4017 | - struct string _8; memset(&_8, 0, sizeof(struct string)); | |
4018 | - init$fromliteral(&_8, "123", 3); | |
4019 | - push(0 /* _7 */, &_words, &_8, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 519); | |
4020 | - string$dest(&_8); | |
4021 | - } | |
4022 | - { | |
4023 | 4016 | struct string _9; memset(&_9, 0, sizeof(struct string)); |
4024 | - init$fromliteral(&_9, "456", 3); | |
4017 | + init$fromliteral(&_9, "123", 3); | |
4025 | 4018 | push(0 /* _8 */, &_words, &_9, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 519); |
4026 | 4019 | string$dest(&_9); |
4027 | 4020 | } |
4028 | 4021 | { |
4029 | 4022 | struct string _10; memset(&_10, 0, sizeof(struct string)); |
4030 | - init$fromliteral(&_10, "789", 3); | |
4023 | + init$fromliteral(&_10, "456", 3); | |
4031 | 4024 | push(0 /* _9 */, &_words, &_10, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 519); |
4032 | 4025 | string$dest(&_10); |
4033 | 4026 | } |
4034 | 4027 | { |
4035 | - const struct StreamOut *_11 = &(*streams).out; | |
4036 | - Print$stack(0 /* _10 */, &*_11, &_words, sizeof(struct string), (void (*)(void *, const struct StreamOut *, const void *))Print$string); | |
4028 | + struct string _11; memset(&_11, 0, sizeof(struct string)); | |
4029 | + init$fromliteral(&_11, "789", 3); | |
4030 | + push(0 /* _10 */, &_words, &_11, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 519); | |
4031 | + string$dest(&_11); | |
4037 | 4032 | } |
4038 | 4033 | { |
4039 | 4034 | const struct StreamOut *_12 = &(*streams).out; |
4040 | - struct string _13; memset(&_13, 0, sizeof(struct string)); | |
4041 | - init$fromliteral(&_13, "\n", 1); | |
4042 | - PutStr(0 /* _11 */, &*_12, &_13); | |
4043 | - string$dest(&_13); | |
4035 | + Print$stack(0 /* _11 */, &*_12, &_words, sizeof(struct string), (void (*)(void *, const struct StreamOut *, const void *))Print$string); | |
4044 | 4036 | } |
4037 | + { | |
4038 | + const struct StreamOut *_13 = &(*streams).out; | |
4039 | + struct string _14; memset(&_14, 0, sizeof(struct string)); | |
4040 | + init$fromliteral(&_14, "\n", 1); | |
4041 | + PutStr(0 /* _12 */, &*_13, &_14); | |
4042 | + string$dest(&_14); | |
4043 | + } | |
4045 | 4044 | struct a$ _datatest; memset(&_datatest, 0, sizeof(struct a$)); |
4046 | 4045 | { |
4047 | - uint32_t _12; memset(&_12, 0, sizeof(uint32_t)); | |
4048 | - _12 = 12345; | |
4049 | - d$(&_datatest, &_12); | |
4050 | - _IGNORE_(_12); | |
4046 | + uint32_t _13; memset(&_13, 0, sizeof(uint32_t)); | |
4047 | + _13 = 12345; | |
4048 | + d$(&_datatest, &_13); | |
4049 | + _IGNORE_(_13); | |
4051 | 4050 | } |
4052 | 4051 | { |
4053 | - struct string _12; memset(&_12, 0, sizeof(struct string)); | |
4054 | - init$fromliteral(&_12, "Hello NEW Data!", 15); | |
4055 | - uint64_t _13; memset(&_13, 0, sizeof(uint64_t)); | |
4056 | - _13 = 42; | |
4057 | - uint8_t _14; memset(&_14, 0, sizeof(uint8_t)); | |
4052 | + struct string _13; memset(&_13, 0, sizeof(struct string)); | |
4053 | + init$fromliteral(&_13, "Hello NEW Data!", 15); | |
4054 | + uint64_t _14; memset(&_14, 0, sizeof(uint64_t)); | |
4058 | 4055 | _14 = 42; |
4059 | - b$(&_datatest, &_12, &_13, &_14); | |
4056 | + uint8_t _15; memset(&_15, 0, sizeof(uint8_t)); | |
4057 | + _15 = 42; | |
4058 | + b$(&_datatest, &_13, &_14, &_15); | |
4059 | + _IGNORE_(_15); | |
4060 | 4060 | _IGNORE_(_14); |
4061 | - _IGNORE_(_13); | |
4062 | - string$dest(&_12); | |
4061 | + string$dest(&_13); | |
4063 | 4062 | } |
4064 | - struct a$ _12; memset(&_12, 0, sizeof(struct a$)); | |
4065 | - a$$copy(&_12, &(_datatest)); | |
4066 | - switch((_12).type) | |
4063 | + struct a$ _13; memset(&_13, 0, sizeof(struct a$)); | |
4064 | + a$$copy(&_13, &(_datatest)); | |
4065 | + switch((_13).type) | |
4067 | 4066 | { |
4068 | 4067 | case 0: // struct stack/*b$*/ b$: |
4069 | 4068 | { |
4070 | - const struct b$ *content = ((_12).b$).data; | |
4069 | + const struct b$ *content = ((_13).b$).data; | |
4071 | 4070 | { |
4072 | 4071 | { |
4073 | - const struct StreamOut *_15 = &(*streams).out; | |
4074 | - const struct string *_16 = &(*content).s; | |
4075 | - PutStrLn(0 /* _14 */, &*_15, &*_16); | |
4072 | + const struct StreamOut *_16 = &(*streams).out; | |
4073 | + const struct string *_17 = &(*content).s; | |
4074 | + PutStrLn(0 /* _15 */, &*_16, &*_17); | |
4076 | 4075 | } |
4077 | 4076 | } |
4078 | 4077 | break; |
@@ -4080,11 +4079,11 @@ | ||
4080 | 4079 | case 1: // void c$: |
4081 | 4080 | { |
4082 | 4081 | { |
4083 | - const struct StreamOut *_15 = &(*streams).out; | |
4084 | - struct string _16; memset(&_16, 0, sizeof(struct string)); | |
4085 | - init$fromliteral(&_16, "", 0); | |
4086 | - PutStr(0 /* _14 */, &*_15, &_16); | |
4087 | - string$dest(&_16); | |
4082 | + const struct StreamOut *_16 = &(*streams).out; | |
4083 | + struct string _17; memset(&_17, 0, sizeof(struct string)); | |
4084 | + init$fromliteral(&_17, "", 0); | |
4085 | + PutStr(0 /* _15 */, &*_16, &_17); | |
4086 | + string$dest(&_17); | |
4088 | 4087 | } |
4089 | 4088 | break; |
4090 | 4089 | } |
@@ -4091,11 +4090,11 @@ | ||
4091 | 4090 | case 2: // struct stack/*d$*/ d$: |
4092 | 4091 | { |
4093 | 4092 | { |
4094 | - const struct StreamOut *_16 = &(*streams).out; | |
4095 | - struct string _17; memset(&_17, 0, sizeof(struct string)); | |
4096 | - init$fromliteral(&_17, "", 0); | |
4097 | - PutStr(0 /* _15 */, &*_16, &_17); | |
4098 | - string$dest(&_17); | |
4093 | + const struct StreamOut *_17 = &(*streams).out; | |
4094 | + struct string _18; memset(&_18, 0, sizeof(struct string)); | |
4095 | + init$fromliteral(&_18, "", 0); | |
4096 | + PutStr(0 /* _16 */, &*_17, &_18); | |
4097 | + string$dest(&_18); | |
4099 | 4098 | } |
4100 | 4099 | break; |
4101 | 4100 | } |
@@ -4105,28 +4104,28 @@ | ||
4105 | 4104 | break; |
4106 | 4105 | } |
4107 | 4106 | } |
4108 | - a$$dest(&_12); | |
4107 | + a$$dest(&_13); | |
4109 | 4108 | { |
4110 | - const struct StreamOut *_17 = &(*streams).out; | |
4111 | - struct string _18; memset(&_18, 0, sizeof(struct string)); | |
4112 | - struct a$ _19; memset(&_19, 0, sizeof(struct a$)); | |
4113 | - a$$copy(&_19, &(_datatest)); | |
4114 | - switch((_19).type) | |
4109 | + const struct StreamOut *_18 = &(*streams).out; | |
4110 | + struct string _19; memset(&_19, 0, sizeof(struct string)); | |
4111 | + struct a$ _20; memset(&_20, 0, sizeof(struct a$)); | |
4112 | + a$$copy(&_20, &(_datatest)); | |
4113 | + switch((_20).type) | |
4115 | 4114 | { |
4116 | 4115 | case 0: // struct stack/*b$*/ b$: |
4117 | 4116 | { |
4118 | - const struct b$ *content = ((_19).b$).data; | |
4119 | - string$copy(&_18, &(*content).s); | |
4117 | + const struct b$ *content = ((_20).b$).data; | |
4118 | + string$copy(&_19, &(*content).s); | |
4120 | 4119 | break; |
4121 | 4120 | } |
4122 | 4121 | case 1: // void c$: |
4123 | 4122 | { |
4124 | - init$fromliteral(&_18, "", 0); | |
4123 | + init$fromliteral(&_19, "", 0); | |
4125 | 4124 | break; |
4126 | 4125 | } |
4127 | 4126 | case 2: // struct stack/*d$*/ d$: |
4128 | 4127 | { |
4129 | - init$fromliteral(&_18, "", 0); | |
4128 | + init$fromliteral(&_19, "", 0); | |
4130 | 4129 | break; |
4131 | 4130 | } |
4132 | 4131 | default: |
@@ -4135,49 +4134,29 @@ | ||
4135 | 4134 | break; |
4136 | 4135 | } |
4137 | 4136 | } |
4138 | - a$$dest(&_19); | |
4139 | - PutStrLn(0 /* _16 */, &*_17, &_18); | |
4140 | - string$dest(&_18); | |
4137 | + a$$dest(&_20); | |
4138 | + PutStrLn(0 /* _17 */, &*_18, &_19); | |
4139 | + string$dest(&_19); | |
4141 | 4140 | } |
4142 | 4141 | { |
4143 | - const struct StreamOut *_18 = &(*streams).out; | |
4144 | - Print$a$(0 /* _17 */, &*_18, &_datatest); | |
4142 | + const struct StreamOut *_19 = &(*streams).out; | |
4143 | + Print$a$(0 /* _18 */, &*_19, &_datatest); | |
4145 | 4144 | } |
4146 | 4145 | { |
4147 | - const struct StreamOut *_19 = &(*streams).out; | |
4148 | - struct string _20; memset(&_20, 0, sizeof(struct string)); | |
4149 | - init$fromliteral(&_20, "\n", 1); | |
4150 | - PutStr(0 /* _18 */, &*_19, &_20); | |
4151 | - string$dest(&_20); | |
4146 | + const struct StreamOut *_20 = &(*streams).out; | |
4147 | + struct string _21; memset(&_21, 0, sizeof(struct string)); | |
4148 | + init$fromliteral(&_21, "\n", 1); | |
4149 | + PutStr(0 /* _19 */, &*_20, &_21); | |
4150 | + string$dest(&_21); | |
4152 | 4151 | } |
4153 | 4152 | struct tree$ _tree; memset(&_tree, 0, sizeof(struct tree$)); |
4154 | 4153 | { |
4155 | - struct tree$ _19; memset(&_19, 0, sizeof(struct tree$)); | |
4156 | - { | |
4157 | - struct tree$ _20; memset(&_20, 0, sizeof(struct tree$)); | |
4158 | - { | |
4159 | - struct string _21; memset(&_21, 0, sizeof(struct string)); | |
4160 | - init$fromliteral(&_21, "A", 1); | |
4161 | - leaf$(&_20, &_21); | |
4162 | - string$dest(&_21); | |
4163 | - } | |
4164 | - struct tree$ _21; memset(&_21, 0, sizeof(struct tree$)); | |
4165 | - { | |
4166 | - struct string _22; memset(&_22, 0, sizeof(struct string)); | |
4167 | - init$fromliteral(&_22, "B", 1); | |
4168 | - leaf$(&_21, &_22); | |
4169 | - string$dest(&_22); | |
4170 | - } | |
4171 | - node$(&_19, &_20, &_21); | |
4172 | - tree$$dest(&_21); | |
4173 | - tree$$dest(&_20); | |
4174 | - } | |
4175 | 4154 | struct tree$ _20; memset(&_20, 0, sizeof(struct tree$)); |
4176 | 4155 | { |
4177 | 4156 | struct tree$ _21; memset(&_21, 0, sizeof(struct tree$)); |
4178 | 4157 | { |
4179 | 4158 | struct string _22; memset(&_22, 0, sizeof(struct string)); |
4180 | - init$fromliteral(&_22, "C", 1); | |
4159 | + init$fromliteral(&_22, "A", 1); | |
4181 | 4160 | leaf$(&_21, &_22); |
4182 | 4161 | string$dest(&_22); |
4183 | 4162 | } |
@@ -4184,7 +4163,7 @@ | ||
4184 | 4163 | struct tree$ _22; memset(&_22, 0, sizeof(struct tree$)); |
4185 | 4164 | { |
4186 | 4165 | struct string _23; memset(&_23, 0, sizeof(struct string)); |
4187 | - init$fromliteral(&_23, "D", 1); | |
4166 | + init$fromliteral(&_23, "B", 1); | |
4188 | 4167 | leaf$(&_22, &_23); |
4189 | 4168 | string$dest(&_23); |
4190 | 4169 | } |
@@ -4192,39 +4171,59 @@ | ||
4192 | 4171 | tree$$dest(&_22); |
4193 | 4172 | tree$$dest(&_21); |
4194 | 4173 | } |
4195 | - node$(&_tree, &_19, &_20); | |
4174 | + struct tree$ _21; memset(&_21, 0, sizeof(struct tree$)); | |
4175 | + { | |
4176 | + struct tree$ _22; memset(&_22, 0, sizeof(struct tree$)); | |
4177 | + { | |
4178 | + struct string _23; memset(&_23, 0, sizeof(struct string)); | |
4179 | + init$fromliteral(&_23, "C", 1); | |
4180 | + leaf$(&_22, &_23); | |
4181 | + string$dest(&_23); | |
4182 | + } | |
4183 | + struct tree$ _23; memset(&_23, 0, sizeof(struct tree$)); | |
4184 | + { | |
4185 | + struct string _24; memset(&_24, 0, sizeof(struct string)); | |
4186 | + init$fromliteral(&_24, "D", 1); | |
4187 | + leaf$(&_23, &_24); | |
4188 | + string$dest(&_24); | |
4189 | + } | |
4190 | + node$(&_21, &_22, &_23); | |
4191 | + tree$$dest(&_23); | |
4192 | + tree$$dest(&_22); | |
4193 | + } | |
4194 | + node$(&_tree, &_20, &_21); | |
4195 | + tree$$dest(&_21); | |
4196 | 4196 | tree$$dest(&_20); |
4197 | - tree$$dest(&_19); | |
4198 | 4197 | } |
4199 | 4198 | { |
4200 | - const struct StreamOut *_20 = &(*streams).out; | |
4201 | - PrintTree$(0 /* _19 */, &*_20, &_tree); | |
4202 | - } | |
4203 | - { | |
4204 | 4199 | const struct StreamOut *_21 = &(*streams).out; |
4205 | - struct string _22; memset(&_22, 0, sizeof(struct string)); | |
4206 | - init$fromliteral(&_22, "", 0); | |
4207 | - PutStrLn(0 /* _20 */, &*_21, &_22); | |
4208 | - string$dest(&_22); | |
4200 | + PrintTree$(0 /* _20 */, &*_21, &_tree); | |
4209 | 4201 | } |
4210 | 4202 | { |
4211 | 4203 | const struct StreamOut *_22 = &(*streams).out; |
4212 | - Print$tree$(0 /* _21 */, &*_22, &_tree); | |
4204 | + struct string _23; memset(&_23, 0, sizeof(struct string)); | |
4205 | + init$fromliteral(&_23, "", 0); | |
4206 | + PutStrLn(0 /* _21 */, &*_22, &_23); | |
4207 | + string$dest(&_23); | |
4213 | 4208 | } |
4214 | 4209 | { |
4215 | 4210 | const struct StreamOut *_23 = &(*streams).out; |
4216 | - struct string _24; memset(&_24, 0, sizeof(struct string)); | |
4217 | - init$fromliteral(&_24, "\n", 1); | |
4218 | - PutStr(0 /* _22 */, &*_23, &_24); | |
4219 | - string$dest(&_24); | |
4211 | + Print$tree$(0 /* _22 */, &*_23, &_tree); | |
4220 | 4212 | } |
4221 | 4213 | { |
4214 | + const struct StreamOut *_24 = &(*streams).out; | |
4215 | + struct string _25; memset(&_25, 0, sizeof(struct string)); | |
4216 | + init$fromliteral(&_25, "\n", 1); | |
4217 | + PutStr(0 /* _23 */, &*_24, &_25); | |
4218 | + string$dest(&_25); | |
4219 | + } | |
4220 | + { | |
4222 | 4221 | { |
4223 | - const struct StreamOut *_25 = &(*streams).out; | |
4224 | - struct string _26; memset(&_26, 0, sizeof(struct string)); | |
4225 | - init$fromliteral(&_26, "for-test 1: ", 12); | |
4226 | - PutStrLn(0 /* _24 */, &*_25, &_26); | |
4227 | - string$dest(&_26); | |
4222 | + const struct StreamOut *_26 = &(*streams).out; | |
4223 | + struct string _27; memset(&_27, 0, sizeof(struct string)); | |
4224 | + init$fromliteral(&_27, "for-test 1: ", 12); | |
4225 | + PutStrLn(0 /* _25 */, &*_26, &_27); | |
4226 | + string$dest(&_27); | |
4228 | 4227 | } |
4229 | 4228 | uint32_t _i = 0; |
4230 | 4229 | _i = 5; |
@@ -4231,170 +4230,170 @@ | ||
4231 | 4230 | while(_i--) |
4232 | 4231 | { |
4233 | 4232 | { |
4234 | - const struct StreamOut *_26 = &(*streams).out; | |
4235 | - Print$u32(0 /* _25 */, &*_26, &_i); | |
4233 | + const struct StreamOut *_27 = &(*streams).out; | |
4234 | + Print$u32(0 /* _26 */, &*_27, &_i); | |
4236 | 4235 | } |
4237 | 4236 | } |
4238 | 4237 | { |
4239 | - const struct StreamOut *_26 = &(*streams).out; | |
4240 | - struct string _27; memset(&_27, 0, sizeof(struct string)); | |
4241 | - init$fromliteral(&_27, "", 0); | |
4242 | - PutStrLn(0 /* _25 */, &*_26, &_27); | |
4243 | - string$dest(&_27); | |
4244 | - } | |
4245 | - { | |
4246 | 4238 | const struct StreamOut *_27 = &(*streams).out; |
4247 | 4239 | struct string _28; memset(&_28, 0, sizeof(struct string)); |
4248 | - init$fromliteral(&_28, "for-test 2: ", 12); | |
4240 | + init$fromliteral(&_28, "", 0); | |
4249 | 4241 | PutStrLn(0 /* _26 */, &*_27, &_28); |
4250 | 4242 | string$dest(&_28); |
4251 | 4243 | } |
4252 | - uint32_t _27 = 0; | |
4253 | - _27 = 5; | |
4254 | - while(_27--) | |
4255 | 4244 | { |
4245 | + const struct StreamOut *_28 = &(*streams).out; | |
4246 | + struct string _29; memset(&_29, 0, sizeof(struct string)); | |
4247 | + init$fromliteral(&_29, "for-test 2: ", 12); | |
4248 | + PutStrLn(0 /* _27 */, &*_28, &_29); | |
4249 | + string$dest(&_29); | |
4250 | + } | |
4251 | + uint32_t _28 = 0; | |
4252 | + _28 = 5; | |
4253 | + while(_28--) | |
4254 | + { | |
4256 | 4255 | { |
4257 | - const struct StreamOut *_29 = &(*streams).out; | |
4258 | - struct string _30; memset(&_30, 0, sizeof(struct string)); | |
4259 | - init$fromliteral(&_30, ".", 1); | |
4260 | - PutStr(0 /* _28 */, &*_29, &_30); | |
4261 | - string$dest(&_30); | |
4256 | + const struct StreamOut *_30 = &(*streams).out; | |
4257 | + struct string _31; memset(&_31, 0, sizeof(struct string)); | |
4258 | + init$fromliteral(&_31, ".", 1); | |
4259 | + PutStr(0 /* _29 */, &*_30, &_31); | |
4260 | + string$dest(&_31); | |
4262 | 4261 | } |
4263 | 4262 | } |
4264 | 4263 | { |
4265 | - const struct StreamOut *_29 = &(*streams).out; | |
4266 | - struct string _30; memset(&_30, 0, sizeof(struct string)); | |
4267 | - init$fromliteral(&_30, "", 0); | |
4268 | - PutStrLn(0 /* _28 */, &*_29, &_30); | |
4269 | - string$dest(&_30); | |
4270 | - } | |
4271 | - { | |
4272 | 4264 | const struct StreamOut *_30 = &(*streams).out; |
4273 | 4265 | struct string _31; memset(&_31, 0, sizeof(struct string)); |
4274 | - init$fromliteral(&_31, "for-test 3: ", 12); | |
4266 | + init$fromliteral(&_31, "", 0); | |
4275 | 4267 | PutStrLn(0 /* _29 */, &*_30, &_31); |
4276 | 4268 | string$dest(&_31); |
4277 | 4269 | } |
4270 | + { | |
4271 | + const struct StreamOut *_31 = &(*streams).out; | |
4272 | + struct string _32; memset(&_32, 0, sizeof(struct string)); | |
4273 | + init$fromliteral(&_32, "for-test 3: ", 12); | |
4274 | + PutStrLn(0 /* _30 */, &*_31, &_32); | |
4275 | + string$dest(&_32); | |
4276 | + } | |
4278 | 4277 | struct string _s; memset(&_s, 0, sizeof(struct string)); |
4279 | 4278 | init$fromliteral(&_s, "Test!", 5); |
4280 | - struct stack/*u8*/ _31; memset(&_31, 0, sizeof(struct stack/*u8*/)); | |
4281 | - clone$(&_31, &(_s).data, sizeof(uint8_t), 0/*DEST*/, 0/*COPY*/); | |
4282 | - for(uint64_t _32 = 0; _32 < _31.ptr; ++_32) | |
4279 | + struct stack/*u8*/ _32; memset(&_32, 0, sizeof(struct stack/*u8*/)); | |
4280 | + clone$(&_32, &(_s).data, sizeof(uint8_t), 0/*DEST*/, 0/*COPY*/); | |
4281 | + for(uint64_t _33 = 0; _33 < _32.ptr; ++_33) | |
4283 | 4282 | { |
4284 | 4283 | { |
4285 | - const struct StreamOut *_34 = &(*streams).out; | |
4286 | - struct string _35; memset(&_35, 0, sizeof(struct string)); | |
4287 | - init$fromliteral(&_35, "#", 1); | |
4288 | - PutStr(0 /* _33 */, &*_34, &_35); | |
4289 | - string$dest(&_35); | |
4284 | + const struct StreamOut *_35 = &(*streams).out; | |
4285 | + struct string _36; memset(&_36, 0, sizeof(struct string)); | |
4286 | + init$fromliteral(&_36, "#", 1); | |
4287 | + PutStr(0 /* _34 */, &*_35, &_36); | |
4288 | + string$dest(&_36); | |
4290 | 4289 | } |
4291 | 4290 | } |
4292 | - free$(&_31, sizeof(uint8_t), 0/*DEST*/); | |
4291 | + free$(&_32, sizeof(uint8_t), 0/*DEST*/); | |
4293 | 4292 | { |
4294 | - const struct StreamOut *_34 = &(*streams).out; | |
4295 | - struct string _35; memset(&_35, 0, sizeof(struct string)); | |
4296 | - init$fromliteral(&_35, "", 0); | |
4297 | - PutStrLn(0 /* _33 */, &*_34, &_35); | |
4298 | - string$dest(&_35); | |
4299 | - } | |
4300 | - { | |
4301 | 4293 | const struct StreamOut *_35 = &(*streams).out; |
4302 | 4294 | struct string _36; memset(&_36, 0, sizeof(struct string)); |
4303 | - init$fromliteral(&_36, "for-test 4: ", 12); | |
4295 | + init$fromliteral(&_36, "", 0); | |
4304 | 4296 | PutStrLn(0 /* _34 */, &*_35, &_36); |
4305 | 4297 | string$dest(&_36); |
4306 | 4298 | } |
4307 | - struct stack/*u8*/ _35; memset(&_35, 0, sizeof(struct stack/*u8*/)); | |
4308 | - clone$(&_35, &(_s).data, sizeof(uint8_t), 0/*DEST*/, 0/*COPY*/); | |
4309 | - for(uint64_t _36 = 0; _36 < _35.ptr; ++_36) | |
4310 | 4299 | { |
4300 | + const struct StreamOut *_36 = &(*streams).out; | |
4301 | + struct string _37; memset(&_37, 0, sizeof(struct string)); | |
4302 | + init$fromliteral(&_37, "for-test 4: ", 12); | |
4303 | + PutStrLn(0 /* _35 */, &*_36, &_37); | |
4304 | + string$dest(&_37); | |
4305 | + } | |
4306 | + struct stack/*u8*/ _36; memset(&_36, 0, sizeof(struct stack/*u8*/)); | |
4307 | + clone$(&_36, &(_s).data, sizeof(uint8_t), 0/*DEST*/, 0/*COPY*/); | |
4308 | + for(uint64_t _37 = 0; _37 < _36.ptr; ++_37) | |
4309 | + { | |
4311 | 4310 | uint8_t _e; memset(&_e, 0, sizeof(uint8_t)); |
4312 | - at_get$(&_e, &_35, &_36, sizeof(uint8_t), 0/*DEST*/, 0/*COPY*/, 562); | |
4311 | + at_get$(&_e, &_36, &_37, sizeof(uint8_t), 0/*DEST*/, 0/*COPY*/, 562); | |
4313 | 4312 | { |
4314 | - const struct StreamOut *_38 = &(*streams).out; | |
4315 | - Put(0 /* _37 */, &*_38, &_e); | |
4313 | + const struct StreamOut *_39 = &(*streams).out; | |
4314 | + Put(0 /* _38 */, &*_39, &_e); | |
4316 | 4315 | } |
4317 | 4316 | _IGNORE_(_e); |
4318 | 4317 | } |
4319 | - free$(&_35, sizeof(uint8_t), 0/*DEST*/); | |
4318 | + free$(&_36, sizeof(uint8_t), 0/*DEST*/); | |
4320 | 4319 | { |
4321 | - const struct StreamOut *_38 = &(*streams).out; | |
4322 | - struct string _39; memset(&_39, 0, sizeof(struct string)); | |
4323 | - init$fromliteral(&_39, "", 0); | |
4324 | - PutStrLn(0 /* _37 */, &*_38, &_39); | |
4325 | - string$dest(&_39); | |
4320 | + const struct StreamOut *_39 = &(*streams).out; | |
4321 | + struct string _40; memset(&_40, 0, sizeof(struct string)); | |
4322 | + init$fromliteral(&_40, "", 0); | |
4323 | + PutStrLn(0 /* _38 */, &*_39, &_40); | |
4324 | + string$dest(&_40); | |
4326 | 4325 | } |
4327 | 4326 | string$dest(&_s); |
4328 | 4327 | } |
4329 | 4328 | { |
4330 | - const struct StreamOut *_25 = &(*streams).out; | |
4331 | - TstStk$(0 /* _24 */, &*_25); | |
4329 | + const struct StreamOut *_26 = &(*streams).out; | |
4330 | + TstStk$(0 /* _25 */, &*_26); | |
4332 | 4331 | } |
4333 | 4332 | { |
4334 | - const struct StreamOut *_26 = &(*streams).out; | |
4335 | - TstDyn$(0 /* _25 */, &*_26); | |
4333 | + const struct StreamOut *_27 = &(*streams).out; | |
4334 | + TstDyn$(0 /* _26 */, &*_27); | |
4336 | 4335 | } |
4337 | 4336 | { |
4338 | - const struct StreamOut *_27 = &(*streams).out; | |
4339 | - struct string _28; memset(&_28, 0, sizeof(struct string)); | |
4337 | + const struct StreamOut *_28 = &(*streams).out; | |
4338 | + struct string _29; memset(&_29, 0, sizeof(struct string)); | |
4340 | 4339 | { |
4341 | - testTemporaryDynamics$(&_28); | |
4340 | + testTemporaryDynamics$(&_29); | |
4342 | 4341 | } |
4343 | - PutStr(0 /* _26 */, &*_27, &_28); | |
4344 | - string$dest(&_28); | |
4342 | + PutStr(0 /* _27 */, &*_28, &_29); | |
4343 | + string$dest(&_29); | |
4345 | 4344 | } |
4346 | 4345 | //PutStr(streams.out, "Hello World\n"); |
4347 | 4346 | { |
4348 | - const struct StreamOut *_28 = &(*streams).out; | |
4349 | - struct string _29; memset(&_29, 0, sizeof(struct string)); | |
4347 | + const struct StreamOut *_29 = &(*streams).out; | |
4348 | + struct string _30; memset(&_30, 0, sizeof(struct string)); | |
4350 | 4349 | { |
4351 | - struct string _30; memset(&_30, 0, sizeof(struct string)); | |
4352 | - init$fromliteral(&_30, "Hello ", 6); | |
4353 | 4350 | struct string _31; memset(&_31, 0, sizeof(struct string)); |
4354 | - init$fromliteral(&_31, "World\n", 6); | |
4355 | - strcat$(&_29, &_30, &_31, 572); | |
4351 | + init$fromliteral(&_31, "Hello ", 6); | |
4352 | + struct string _32; memset(&_32, 0, sizeof(struct string)); | |
4353 | + init$fromliteral(&_32, "World\n", 6); | |
4354 | + strcat$(&_30, &_31, &_32, 572); | |
4355 | + string$dest(&_32); | |
4356 | 4356 | string$dest(&_31); |
4357 | - string$dest(&_30); | |
4358 | 4357 | } |
4359 | - PutStr(0 /* _27 */, &*_28, &_29); | |
4360 | - string$dest(&_29); | |
4358 | + PutStr(0 /* _28 */, &*_29, &_30); | |
4359 | + string$dest(&_30); | |
4361 | 4360 | } |
4362 | 4361 | //let U$ test = s$("Hello Union!"); |
4363 | 4362 | struct U$ _test; memset(&_test, 0, sizeof(struct U$)); |
4364 | 4363 | { |
4365 | - struct string _28; memset(&_28, 0, sizeof(struct string)); | |
4366 | - init$fromliteral(&_28, "Hello???", 8); | |
4367 | - s$(&_test, &_28); | |
4368 | - string$dest(&_28); | |
4364 | + struct string _29; memset(&_29, 0, sizeof(struct string)); | |
4365 | + init$fromliteral(&_29, "Hello???", 8); | |
4366 | + s$(&_test, &_29); | |
4367 | + string$dest(&_29); | |
4369 | 4368 | } |
4370 | 4369 | { |
4371 | - struct string _28; memset(&_28, 0, sizeof(struct string)); | |
4372 | - init$fromliteral(&_28, "Hello Union!!!", 14); | |
4373 | - s$(&_test, &_28); | |
4374 | - string$dest(&_28); | |
4370 | + struct string _29; memset(&_29, 0, sizeof(struct string)); | |
4371 | + init$fromliteral(&_29, "Hello Union!!!", 14); | |
4372 | + s$(&_test, &_29); | |
4373 | + string$dest(&_29); | |
4375 | 4374 | } |
4376 | 4375 | { |
4377 | - const struct StreamOut *_29 = &(*streams).out; | |
4378 | - struct string _30; memset(&_30, 0, sizeof(struct string)); | |
4376 | + const struct StreamOut *_30 = &(*streams).out; | |
4377 | + struct string _31; memset(&_31, 0, sizeof(struct string)); | |
4379 | 4378 | { |
4380 | - getstr$(&_30, &_test); | |
4379 | + getstr$(&_31, &_test); | |
4381 | 4380 | } |
4382 | - PutStrLn(0 /* _28 */, &*_29, &_30); | |
4383 | - string$dest(&_30); | |
4381 | + PutStrLn(0 /* _29 */, &*_30, &_31); | |
4382 | + string$dest(&_31); | |
4384 | 4383 | } |
4385 | - struct U$ _29; memset(&_29, 0, sizeof(struct U$)); | |
4386 | - U$$copy(&_29, &(_test)); | |
4387 | - switch((_29).type) | |
4384 | + struct U$ _30; memset(&_30, 0, sizeof(struct U$)); | |
4385 | + U$$copy(&_30, &(_test)); | |
4386 | + switch((_30).type) | |
4388 | 4387 | { |
4389 | 4388 | case 0: // uint32_t x: |
4390 | 4389 | { |
4391 | 4390 | { |
4392 | 4391 | { |
4393 | - const struct StreamOut *_32 = &(*streams).out; | |
4394 | - struct string _33; memset(&_33, 0, sizeof(struct string)); | |
4395 | - init$fromliteral(&_33, "u", 1); | |
4396 | - PutStrLn(0 /* _31 */, &*_32, &_33); | |
4397 | - string$dest(&_33); | |
4392 | + const struct StreamOut *_33 = &(*streams).out; | |
4393 | + struct string _34; memset(&_34, 0, sizeof(struct string)); | |
4394 | + init$fromliteral(&_34, "u", 1); | |
4395 | + PutStrLn(0 /* _32 */, &*_33, &_34); | |
4396 | + string$dest(&_34); | |
4398 | 4397 | } |
4399 | 4398 | } |
4400 | 4399 | break; |
@@ -4402,11 +4401,11 @@ | ||
4402 | 4401 | case 1: // bool b: |
4403 | 4402 | { |
4404 | 4403 | { |
4405 | - const struct StreamOut *_32 = &(*streams).out; | |
4406 | - struct string _33; memset(&_33, 0, sizeof(struct string)); | |
4407 | - init$fromliteral(&_33, "nr", 2); | |
4408 | - PutStrLn(0 /* _31 */, &*_32, &_33); | |
4409 | - string$dest(&_33); | |
4404 | + const struct StreamOut *_33 = &(*streams).out; | |
4405 | + struct string _34; memset(&_34, 0, sizeof(struct string)); | |
4406 | + init$fromliteral(&_34, "nr", 2); | |
4407 | + PutStrLn(0 /* _32 */, &*_33, &_34); | |
4408 | + string$dest(&_34); | |
4410 | 4409 | } |
4411 | 4410 | break; |
4412 | 4411 | } |
@@ -4413,20 +4412,20 @@ | ||
4413 | 4412 | case 2: // void v: |
4414 | 4413 | { |
4415 | 4414 | { |
4416 | - const struct StreamOut *_33 = &(*streams).out; | |
4417 | - struct string _34; memset(&_34, 0, sizeof(struct string)); | |
4418 | - init$fromliteral(&_34, "v", 1); | |
4419 | - PutStrLn(0 /* _32 */, &*_33, &_34); | |
4420 | - string$dest(&_34); | |
4415 | + const struct StreamOut *_34 = &(*streams).out; | |
4416 | + struct string _35; memset(&_35, 0, sizeof(struct string)); | |
4417 | + init$fromliteral(&_35, "v", 1); | |
4418 | + PutStrLn(0 /* _33 */, &*_34, &_35); | |
4419 | + string$dest(&_35); | |
4421 | 4420 | } |
4422 | 4421 | break; |
4423 | 4422 | } |
4424 | 4423 | case 3: // struct string s$: |
4425 | 4424 | { |
4426 | - const struct string *val = &((_29).s$); | |
4425 | + const struct string *val = &((_30).s$); | |
4427 | 4426 | { |
4428 | - const struct StreamOut *_34 = &(*streams).out; | |
4429 | - PutStrLn(0 /* _33 */, &*_34, &*val); | |
4427 | + const struct StreamOut *_35 = &(*streams).out; | |
4428 | + PutStrLn(0 /* _34 */, &*_35, &*val); | |
4430 | 4429 | } |
4431 | 4430 | break; |
4432 | 4431 | } |
@@ -4436,7 +4435,7 @@ | ||
4436 | 4435 | break; |
4437 | 4436 | } |
4438 | 4437 | } |
4439 | - U$$dest(&_29); | |
4438 | + U$$dest(&_30); | |
4440 | 4439 | struct enu _en; memset(&_en, 0, sizeof(struct enu)); |
4441 | 4440 | { |
4442 | 4441 | one(&_en); |
@@ -4444,43 +4443,43 @@ | ||
4444 | 4443 | { |
4445 | 4444 | two(&_en); |
4446 | 4445 | } |
4447 | - struct enu _34; memset(&_34, 0, sizeof(struct enu)); | |
4448 | - enu$copy(&_34, &(_en)); | |
4449 | - switch((_34).type) | |
4446 | + struct enu _35; memset(&_35, 0, sizeof(struct enu)); | |
4447 | + enu$copy(&_35, &(_en)); | |
4448 | + switch((_35).type) | |
4450 | 4449 | { |
4451 | 4450 | case 0: // void zero: |
4452 | 4451 | { |
4453 | 4452 | { |
4454 | - const struct StreamOut *_36 = &(*streams).out; | |
4455 | - struct string _37; memset(&_37, 0, sizeof(struct string)); | |
4456 | - init$fromliteral(&_37, "zero", 4); | |
4457 | - PutStrLn(0 /* _35 */, &*_36, &_37); | |
4458 | - string$dest(&_37); | |
4459 | - } | |
4460 | - break; | |
4461 | - } | |
4462 | - case 1: // void one: | |
4463 | - { | |
4464 | - { | |
4465 | 4453 | const struct StreamOut *_37 = &(*streams).out; |
4466 | 4454 | struct string _38; memset(&_38, 0, sizeof(struct string)); |
4467 | - init$fromliteral(&_38, "one", 3); | |
4455 | + init$fromliteral(&_38, "zero", 4); | |
4468 | 4456 | PutStrLn(0 /* _36 */, &*_37, &_38); |
4469 | 4457 | string$dest(&_38); |
4470 | 4458 | } |
4471 | 4459 | break; |
4472 | 4460 | } |
4473 | - case 2: // void two: | |
4461 | + case 1: // void one: | |
4474 | 4462 | { |
4475 | 4463 | { |
4476 | 4464 | const struct StreamOut *_38 = &(*streams).out; |
4477 | 4465 | struct string _39; memset(&_39, 0, sizeof(struct string)); |
4478 | - init$fromliteral(&_39, "two", 3); | |
4466 | + init$fromliteral(&_39, "one", 3); | |
4479 | 4467 | PutStrLn(0 /* _37 */, &*_38, &_39); |
4480 | 4468 | string$dest(&_39); |
4481 | 4469 | } |
4482 | 4470 | break; |
4483 | 4471 | } |
4472 | + case 2: // void two: | |
4473 | + { | |
4474 | + { | |
4475 | + const struct StreamOut *_39 = &(*streams).out; | |
4476 | + struct string _40; memset(&_40, 0, sizeof(struct string)); | |
4477 | + init$fromliteral(&_40, "two", 3); | |
4478 | + PutStrLn(0 /* _38 */, &*_39, &_40); | |
4479 | + string$dest(&_40); | |
4480 | + } | |
4481 | + break; | |
4482 | + } | |
4484 | 4483 | default: |
4485 | 4484 | { |
4486 | 4485 | fprintf(stderr, "INTERNAL ERROR IN SWITCH"); |
@@ -4487,46 +4486,46 @@ | ||
4487 | 4486 | break; |
4488 | 4487 | } |
4489 | 4488 | } |
4490 | - enu$dest(&_34); | |
4491 | - struct enu2 _38; memset(&_38, 0, sizeof(struct enu2)); | |
4489 | + enu$dest(&_35); | |
4490 | + struct enu2 _39; memset(&_39, 0, sizeof(struct enu2)); | |
4492 | 4491 | { |
4493 | - zero2(&_38); | |
4492 | + zero2(&_39); | |
4494 | 4493 | } |
4495 | - switch((_38).type) | |
4494 | + switch((_39).type) | |
4496 | 4495 | { |
4497 | 4496 | case 0: // void zero2: |
4498 | 4497 | { |
4499 | 4498 | { |
4500 | - const struct StreamOut *_40 = &(*streams).out; | |
4501 | - struct string _41; memset(&_41, 0, sizeof(struct string)); | |
4502 | - init$fromliteral(&_41, "zero2", 5); | |
4503 | - PutStrLn(0 /* _39 */, &*_40, &_41); | |
4504 | - string$dest(&_41); | |
4505 | - } | |
4506 | - break; | |
4507 | - } | |
4508 | - case 1: // void one2: | |
4509 | - { | |
4510 | - { | |
4511 | 4499 | const struct StreamOut *_41 = &(*streams).out; |
4512 | 4500 | struct string _42; memset(&_42, 0, sizeof(struct string)); |
4513 | - init$fromliteral(&_42, "one2", 4); | |
4501 | + init$fromliteral(&_42, "zero2", 5); | |
4514 | 4502 | PutStrLn(0 /* _40 */, &*_41, &_42); |
4515 | 4503 | string$dest(&_42); |
4516 | 4504 | } |
4517 | 4505 | break; |
4518 | 4506 | } |
4519 | - case 2: // void two2: | |
4507 | + case 1: // void one2: | |
4520 | 4508 | { |
4521 | 4509 | { |
4522 | 4510 | const struct StreamOut *_42 = &(*streams).out; |
4523 | 4511 | struct string _43; memset(&_43, 0, sizeof(struct string)); |
4524 | - init$fromliteral(&_43, "two2", 4); | |
4512 | + init$fromliteral(&_43, "one2", 4); | |
4525 | 4513 | PutStrLn(0 /* _41 */, &*_42, &_43); |
4526 | 4514 | string$dest(&_43); |
4527 | 4515 | } |
4528 | 4516 | break; |
4529 | 4517 | } |
4518 | + case 2: // void two2: | |
4519 | + { | |
4520 | + { | |
4521 | + const struct StreamOut *_43 = &(*streams).out; | |
4522 | + struct string _44; memset(&_44, 0, sizeof(struct string)); | |
4523 | + init$fromliteral(&_44, "two2", 4); | |
4524 | + PutStrLn(0 /* _42 */, &*_43, &_44); | |
4525 | + string$dest(&_44); | |
4526 | + } | |
4527 | + break; | |
4528 | + } | |
4530 | 4529 | default: |
4531 | 4530 | { |
4532 | 4531 | fprintf(stderr, "INTERNAL ERROR IN SWITCH"); |
@@ -4533,112 +4532,112 @@ | ||
4533 | 4532 | break; |
4534 | 4533 | } |
4535 | 4534 | } |
4536 | - enu2$dest(&_38); | |
4535 | + enu2$dest(&_39); | |
4537 | 4536 | struct stack/*string*/ _other; memset(&_other, 0, sizeof(struct stack/*string*/)); |
4538 | 4537 | { |
4539 | - struct string _42; memset(&_42, 0, sizeof(struct string)); | |
4540 | - init$fromliteral(&_42, "SOLID", 5); | |
4541 | - solid(&_other, &_42, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 598); | |
4542 | - string$dest(&_42); | |
4538 | + struct string _43; memset(&_43, 0, sizeof(struct string)); | |
4539 | + init$fromliteral(&_43, "SOLID", 5); | |
4540 | + solid(&_other, &_43, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 598); | |
4541 | + string$dest(&_43); | |
4543 | 4542 | } |
4544 | 4543 | { |
4545 | - const struct StreamOut *_43 = &(*streams).out; | |
4546 | - struct string _44; memset(&_44, 0, sizeof(struct string)); | |
4547 | - struct stack/*string*/ _45; memset(&_45, 0, sizeof(struct stack/*string*/)); | |
4548 | - clone$(&_45, &(_other), sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy); | |
4549 | - if(!(_45).size) | |
4544 | + const struct StreamOut *_44 = &(*streams).out; | |
4545 | + struct string _45; memset(&_45, 0, sizeof(struct string)); | |
4546 | + struct stack/*string*/ _46; memset(&_46, 0, sizeof(struct stack/*string*/)); | |
4547 | + clone$(&_46, &(_other), sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy); | |
4548 | + if(!(_46).size) | |
4550 | 4549 | { |
4551 | - init$fromliteral(&_44, "EMPTY", 5); | |
4550 | + init$fromliteral(&_45, "EMPTY", 5); | |
4552 | 4551 | } |
4553 | 4552 | else |
4554 | 4553 | { |
4555 | - const struct string *s = (_45).data; | |
4556 | - string$copy(&_44, &(*s)); | |
4554 | + const struct string *s = (_46).data; | |
4555 | + string$copy(&_45, &(*s)); | |
4557 | 4556 | } |
4558 | - free$(&_45, sizeof(struct string), (void (*)(void *))string$dest); | |
4559 | - PutStrLn(0 /* _42 */, &*_43, &_44); | |
4560 | - string$dest(&_44); | |
4557 | + free$(&_46, sizeof(struct string), (void (*)(void *))string$dest); | |
4558 | + PutStrLn(0 /* _43 */, &*_44, &_45); | |
4559 | + string$dest(&_45); | |
4561 | 4560 | } |
4562 | - struct stack/*string*/ _43; memset(&_43, 0, sizeof(struct stack/*string*/)); | |
4563 | - clone$(&_43, &(_other), sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy); | |
4564 | - if(!(_43).size) | |
4561 | + struct stack/*string*/ _44; memset(&_44, 0, sizeof(struct stack/*string*/)); | |
4562 | + clone$(&_44, &(_other), sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy); | |
4563 | + if(!(_44).size) | |
4565 | 4564 | { |
4566 | 4565 | { |
4567 | - const struct StreamOut *_45 = &(*streams).out; | |
4568 | - struct string _46; memset(&_46, 0, sizeof(struct string)); | |
4569 | - init$fromliteral(&_46, "EMPTY", 5); | |
4570 | - PutStrLn(0 /* _44 */, &*_45, &_46); | |
4571 | - string$dest(&_46); | |
4566 | + const struct StreamOut *_46 = &(*streams).out; | |
4567 | + struct string _47; memset(&_47, 0, sizeof(struct string)); | |
4568 | + init$fromliteral(&_47, "EMPTY", 5); | |
4569 | + PutStrLn(0 /* _45 */, &*_46, &_47); | |
4570 | + string$dest(&_47); | |
4572 | 4571 | } |
4573 | 4572 | } |
4574 | 4573 | else |
4575 | 4574 | { |
4576 | - const struct string *s = (_43).data; | |
4575 | + const struct string *s = (_44).data; | |
4577 | 4576 | { |
4578 | - const struct StreamOut *_46 = &(*streams).out; | |
4579 | - PutStrLn(0 /* _45 */, &*_46, &*s); | |
4577 | + const struct StreamOut *_47 = &(*streams).out; | |
4578 | + PutStrLn(0 /* _46 */, &*_47, &*s); | |
4580 | 4579 | } |
4581 | 4580 | } |
4582 | - free$(&_43, sizeof(struct string), (void (*)(void *))string$dest); | |
4581 | + free$(&_44, sizeof(struct string), (void (*)(void *))string$dest); | |
4583 | 4582 | // verify ignoring dynamic return values |
4584 | 4583 | struct string _str; memset(&_str, 0, sizeof(struct string)); |
4585 | 4584 | init$fromliteral(&_str, "test...", 7); |
4586 | 4585 | struct stack/*string*/ _stk; memset(&_stk, 0, sizeof(struct stack/*string*/)); |
4587 | 4586 | { |
4588 | - push(0 /* _46 */, &_stk, &_str, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 607); | |
4587 | + push(0 /* _47 */, &_stk, &_str, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 607); | |
4589 | 4588 | } |
4590 | 4589 | { |
4591 | - push(0 /* _47 */, &_stk, &_str, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 608); | |
4590 | + push(0 /* _48 */, &_stk, &_str, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 608); | |
4592 | 4591 | } |
4593 | 4592 | { |
4594 | - struct stack/*string*/ _48; memset(&_48, 0, sizeof(struct stack/*string*/)); | |
4595 | - pop_opt(&_48, &_stk, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 609); | |
4596 | - free$(&_48, sizeof(struct string), (void (*)(void *))string$dest); | |
4593 | + struct stack/*string*/ _49; memset(&_49, 0, sizeof(struct stack/*string*/)); | |
4594 | + pop_opt(&_49, &_stk, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 609); | |
4595 | + free$(&_49, sizeof(struct string), (void (*)(void *))string$dest); | |
4597 | 4596 | } |
4598 | 4597 | { |
4599 | 4598 | stack(&_stk, sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy, 610); |
4600 | 4599 | } |
4601 | 4600 | { |
4602 | - struct stack/*u8*/ _48; memset(&_48, 0, sizeof(struct stack/*u8*/)); | |
4603 | - access$(&_48, &_str); | |
4604 | - free$(&_48, sizeof(uint8_t), 0/*DEST*/); | |
4601 | + struct stack/*u8*/ _49; memset(&_49, 0, sizeof(struct stack/*u8*/)); | |
4602 | + access$(&_49, &_str); | |
4603 | + free$(&_49, sizeof(uint8_t), 0/*DEST*/); | |
4605 | 4604 | } |
4606 | 4605 | struct Box$ _A; memset(&_A, 0, sizeof(struct Box$)); |
4607 | 4606 | { |
4608 | - struct string _48; memset(&_48, 0, sizeof(struct string)); | |
4609 | - init$fromliteral(&_48, "ABC", 3); | |
4610 | - Box$(&_A, &_48); | |
4611 | - string$dest(&_48); | |
4612 | - } | |
4613 | - { | |
4614 | 4607 | struct string _49; memset(&_49, 0, sizeof(struct string)); |
4615 | - init$fromliteral(&_49, "ref-count box test", 18); | |
4616 | - boxset$(0 /* _48 */, &_A, &_49); | |
4608 | + init$fromliteral(&_49, "ABC", 3); | |
4609 | + Box$(&_A, &_49); | |
4617 | 4610 | string$dest(&_49); |
4618 | 4611 | } |
4612 | + { | |
4613 | + struct string _50; memset(&_50, 0, sizeof(struct string)); | |
4614 | + init$fromliteral(&_50, "ref-count box test", 18); | |
4615 | + boxset$(0 /* _49 */, &_A, &_50); | |
4616 | + string$dest(&_50); | |
4617 | + } | |
4619 | 4618 | struct Box$ _B; memset(&_B, 0, sizeof(struct Box$)); |
4620 | 4619 | Box$$copy(&_B, &(_A)); |
4621 | 4620 | struct Box$ _C; memset(&_C, 0, sizeof(struct Box$)); |
4622 | 4621 | { |
4623 | - struct string _49; memset(&_49, 0, sizeof(struct string)); | |
4624 | - init$fromliteral(&_49, "DEF", 3); | |
4625 | - Box$(&_C, &_49); | |
4626 | - string$dest(&_49); | |
4622 | + struct string _50; memset(&_50, 0, sizeof(struct string)); | |
4623 | + init$fromliteral(&_50, "DEF", 3); | |
4624 | + Box$(&_C, &_50); | |
4625 | + string$dest(&_50); | |
4627 | 4626 | } |
4628 | 4627 | Box$$copy(&_C, &(_B)); |
4629 | 4628 | { |
4630 | - const struct StreamOut *_50 = &(*streams).out; | |
4631 | - struct string _51; memset(&_51, 0, sizeof(struct string)); | |
4629 | + const struct StreamOut *_51 = &(*streams).out; | |
4630 | + struct string _52; memset(&_52, 0, sizeof(struct string)); | |
4632 | 4631 | { |
4633 | - boxget$(&_51, &_C); | |
4632 | + boxget$(&_52, &_C); | |
4634 | 4633 | } |
4635 | - PutStrLn(0 /* _49 */, &*_50, &_51); | |
4636 | - string$dest(&_51); | |
4634 | + PutStrLn(0 /* _50 */, &*_51, &_52); | |
4635 | + string$dest(&_52); | |
4637 | 4636 | } |
4638 | - uint32_t _50; memset(&_50, 0, sizeof(uint32_t)); | |
4639 | - _50 = 0; | |
4640 | - *_0 = _50; | |
4641 | - _IGNORE_(_50); | |
4637 | + uint32_t _51; memset(&_51, 0, sizeof(uint32_t)); | |
4638 | + _51 = 0; | |
4639 | + *_0 = _51; | |
4640 | + _IGNORE_(_51); | |
4642 | 4641 | Box$$dest(&_C); |
4643 | 4642 | Box$$dest(&_B); |
4644 | 4643 | Box$$dest(&_A); |
@@ -16899,6 +16899,9 @@ | ||
16899 | 16899 | Fail$(0 /* _18 */, &*_19, &*txtpos); |
16900 | 16900 | } |
16901 | 16901 | } |
16902 | + struct stack/*string*/ _path2; memset(&_path2, 0, sizeof(struct stack/*string*/)); | |
16903 | + clone$(&_path2, &(_path), sizeof(struct string), (void (*)(void *))string$dest, (void (*)(void *, const void *))string$copy); | |
16904 | + // PrintPath consumes path! | |
16902 | 16905 | struct qtypepureid _mut_elem; memset(&_mut_elem, 0, sizeof(struct qtypepureid)); |
16903 | 16906 | { |
16904 | 16907 | struct qtypepure _16; memset(&_16, 0, sizeof(struct qtypepure)); |
@@ -16951,7 +16954,7 @@ | ||
16951 | 16954 | varinit(&_19, &_20); |
16952 | 16955 | qtypepureid$dest(&_20); |
16953 | 16956 | } |
16954 | - push(0 /* _18 */, &*scope, &_19, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 3828); | |
16957 | + push(0 /* _18 */, &*scope, &_19, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 3829); | |
16955 | 16958 | var$dest(&_19); |
16956 | 16959 | } |
16957 | 16960 | } |
@@ -16961,7 +16964,11 @@ | ||
16961 | 16964 | AssertGet$(0 /* _18 */, &*streams, &*txtpos, &*level, &_19); |
16962 | 16965 | _IGNORE_(_19); |
16963 | 16966 | } |
16967 | + struct string _tmpid; memset(&_tmpid, 0, sizeof(struct string)); | |
16964 | 16968 | { |
16969 | + GenVar$(&_tmpid, &*tmpnr); | |
16970 | + } | |
16971 | + { | |
16965 | 16972 | const struct StreamOut *_20 = &(*streams).out; |
16966 | 16973 | Indent$(0 /* _19 */, &*_20, &*level); |
16967 | 16974 | } |
@@ -16968,70 +16975,62 @@ | ||
16968 | 16975 | { |
16969 | 16976 | const struct StreamOut *_21 = &(*streams).out; |
16970 | 16977 | struct string _22; memset(&_22, 0, sizeof(struct string)); |
16971 | - init$fromliteral(&_22, "uint8_t ", 8); | |
16978 | + init$fromliteral(&_22, "for(int ", 8); | |
16972 | 16979 | PutStr(0 /* _20 */, &*_21, &_22); |
16973 | 16980 | string$dest(&_22); |
16974 | 16981 | } |
16975 | 16982 | { |
16976 | 16983 | const struct StreamOut *_22 = &(*streams).out; |
16977 | - PutStr(0 /* _21 */, &*_22, &_elem_id); | |
16984 | + PutStr(0 /* _21 */, &*_22, &_tmpid); | |
16978 | 16985 | } |
16979 | 16986 | { |
16980 | 16987 | const struct StreamOut *_23 = &(*streams).out; |
16981 | 16988 | struct string _24; memset(&_24, 0, sizeof(struct string)); |
16982 | - init$fromliteral(&_24, " = 0;", 5); | |
16983 | - PutStrLn(0 /* _22 */, &*_23, &_24); | |
16989 | + init$fromliteral(&_24, " = getc(((*", 11); | |
16990 | + PutStr(0 /* _22 */, &*_23, &_24); | |
16984 | 16991 | string$dest(&_24); |
16985 | 16992 | } |
16986 | 16993 | { |
16987 | 16994 | const struct StreamOut *_24 = &(*streams).out; |
16988 | - Indent$(0 /* _23 */, &*_24, &*level); | |
16995 | + PutStr(0 /* _23 */, &*_24, &_var); | |
16989 | 16996 | } |
16990 | 16997 | { |
16991 | 16998 | const struct StreamOut *_25 = &(*streams).out; |
16992 | 16999 | struct string _26; memset(&_26, 0, sizeof(struct string)); |
16993 | - init$fromliteral(&_26, "do", 2); | |
17000 | + init$fromliteral(&_26, ")", 1); | |
16994 | 17001 | PutStr(0 /* _24 */, &*_25, &_26); |
16995 | 17002 | string$dest(&_26); |
16996 | 17003 | } |
16997 | 17004 | { |
16998 | 17005 | const struct StreamOut *_26 = &(*streams).out; |
16999 | - Indent$(0 /* _25 */, &*_26, &*level); | |
17006 | + PrintPath$(0 /* _25 */, &*_26, &_path); | |
17000 | 17007 | } |
17001 | 17008 | { |
17002 | 17009 | const struct StreamOut *_27 = &(*streams).out; |
17003 | 17010 | struct string _28; memset(&_28, 0, sizeof(struct string)); |
17004 | - init$fromliteral(&_28, "{", 1); | |
17005 | - PutStrLn(0 /* _26 */, &*_27, &_28); | |
17011 | + init$fromliteral(&_28, ").f); ", 6); | |
17012 | + PutStr(0 /* _26 */, &*_27, &_28); | |
17006 | 17013 | string$dest(&_28); |
17007 | 17014 | } |
17008 | 17015 | { |
17009 | 17016 | const struct StreamOut *_28 = &(*streams).out; |
17010 | - uint64_t _29; memset(&_29, 0, sizeof(uint64_t)); | |
17011 | - { | |
17012 | - uint64_t _30; memset(&_30, 0, sizeof(uint64_t)); | |
17013 | - _30 = 1; | |
17014 | - _29 = _30 + *level; | |
17015 | - _IGNORE_(_30); | |
17016 | - } | |
17017 | - Indent$(0 /* _27 */, &*_28, &_29); | |
17018 | - _IGNORE_(_29); | |
17017 | + PutStr(0 /* _27 */, &*_28, &_tmpid); | |
17019 | 17018 | } |
17020 | 17019 | { |
17021 | 17020 | const struct StreamOut *_29 = &(*streams).out; |
17022 | 17021 | struct string _30; memset(&_30, 0, sizeof(struct string)); |
17023 | - init$fromliteral(&_30, "Get(&", 5); | |
17022 | + init$fromliteral(&_30, " >= 0; ", 7); | |
17024 | 17023 | PutStr(0 /* _28 */, &*_29, &_30); |
17025 | 17024 | string$dest(&_30); |
17026 | 17025 | } |
17027 | 17026 | { |
17028 | 17027 | const struct StreamOut *_30 = &(*streams).out; |
17029 | - PutStr(0 /* _29 */, &*_30, &_elem_id); | |
17028 | + PutStr(0 /* _29 */, &*_30, &_tmpid); | |
17030 | 17029 | } |
17031 | 17030 | { |
17032 | 17031 | const struct StreamOut *_31 = &(*streams).out; |
17033 | 17032 | struct string _32; memset(&_32, 0, sizeof(struct string)); |
17034 | - init$fromliteral(&_32, ", &((*", 6); | |
17033 | + init$fromliteral(&_32, " = getc(((*", 11); | |
17035 | 17034 | PutStr(0 /* _30 */, &*_31, &_32); |
17036 | 17035 | string$dest(&_32); |
17037 | 17036 | } |
@@ -17048,71 +17047,103 @@ | ||
17048 | 17047 | } |
17049 | 17048 | { |
17050 | 17049 | const struct StreamOut *_34 = &(*streams).out; |
17051 | - PrintPath$(0 /* _33 */, &*_34, &_path); | |
17050 | + PrintPath$(0 /* _33 */, &*_34, &_path2); | |
17052 | 17051 | } |
17053 | 17052 | { |
17054 | 17053 | const struct StreamOut *_35 = &(*streams).out; |
17055 | 17054 | struct string _36; memset(&_36, 0, sizeof(struct string)); |
17056 | - init$fromliteral(&_36, "));", 3); | |
17055 | + init$fromliteral(&_36, ").f))", 5); | |
17057 | 17056 | PutStrLn(0 /* _34 */, &*_35, &_36); |
17058 | 17057 | string$dest(&_36); |
17059 | 17058 | } |
17060 | 17059 | { |
17061 | - uint64_t _36; memset(&_36, 0, sizeof(uint64_t)); | |
17062 | - { | |
17063 | - uint64_t _37; memset(&_37, 0, sizeof(uint64_t)); | |
17064 | - _37 = 1; | |
17065 | - _36 = _37 + *level; | |
17066 | - _IGNORE_(_37); | |
17067 | - } | |
17068 | - struct stack/*qtypepureid*/ _37; memset(&_37, 0, sizeof(struct stack/*qtypepureid*/)); | |
17069 | - { | |
17070 | - empty(&_37, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3843); | |
17071 | - } | |
17072 | - ParseBlockRaw$(0 /* _35 */, &*streams, &*txtpos, &*state, &_36, &*scope, &*tmpnr, &_37, &*partial, &*action, &*self); | |
17073 | - free$(&_37, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest); | |
17074 | - _IGNORE_(_36); | |
17060 | + const struct StreamOut *_36 = &(*streams).out; | |
17061 | + Indent$(0 /* _35 */, &*_36, &*level); | |
17075 | 17062 | } |
17076 | 17063 | { |
17077 | 17064 | const struct StreamOut *_37 = &(*streams).out; |
17078 | - Indent$(0 /* _36 */, &*_37, &*level); | |
17065 | + struct string _38; memset(&_38, 0, sizeof(struct string)); | |
17066 | + init$fromliteral(&_38, "{", 1); | |
17067 | + PutStrLn(0 /* _36 */, &*_37, &_38); | |
17068 | + string$dest(&_38); | |
17079 | 17069 | } |
17080 | 17070 | { |
17081 | 17071 | const struct StreamOut *_38 = &(*streams).out; |
17082 | - struct string _39; memset(&_39, 0, sizeof(struct string)); | |
17083 | - init$fromliteral(&_39, "}", 1); | |
17084 | - PutStrLn(0 /* _37 */, &*_38, &_39); | |
17085 | - string$dest(&_39); | |
17072 | + uint64_t _39; memset(&_39, 0, sizeof(uint64_t)); | |
17073 | + { | |
17074 | + uint64_t _40; memset(&_40, 0, sizeof(uint64_t)); | |
17075 | + _40 = 1; | |
17076 | + _39 = _40 + *level; | |
17077 | + _IGNORE_(_40); | |
17078 | + } | |
17079 | + Indent$(0 /* _37 */, &*_38, &_39); | |
17080 | + _IGNORE_(_39); | |
17086 | 17081 | } |
17087 | 17082 | { |
17088 | 17083 | const struct StreamOut *_39 = &(*streams).out; |
17089 | - Indent$(0 /* _38 */, &*_39, &*level); | |
17084 | + struct string _40; memset(&_40, 0, sizeof(struct string)); | |
17085 | + init$fromliteral(&_40, "const uint8_t ", 14); | |
17086 | + PutStr(0 /* _38 */, &*_39, &_40); | |
17087 | + string$dest(&_40); | |
17090 | 17088 | } |
17091 | 17089 | { |
17092 | 17090 | const struct StreamOut *_40 = &(*streams).out; |
17093 | - struct string _41; memset(&_41, 0, sizeof(struct string)); | |
17094 | - init$fromliteral(&_41, "while(", 6); | |
17095 | - PutStr(0 /* _39 */, &*_40, &_41); | |
17096 | - string$dest(&_41); | |
17091 | + PutStr(0 /* _39 */, &*_40, &_elem_id); | |
17097 | 17092 | } |
17098 | 17093 | { |
17099 | 17094 | const struct StreamOut *_41 = &(*streams).out; |
17100 | - PutStr(0 /* _40 */, &*_41, &_elem_id); | |
17095 | + struct string _42; memset(&_42, 0, sizeof(struct string)); | |
17096 | + init$fromliteral(&_42, " = (uint8_t)", 12); | |
17097 | + PutStr(0 /* _40 */, &*_41, &_42); | |
17098 | + string$dest(&_42); | |
17101 | 17099 | } |
17102 | 17100 | { |
17103 | 17101 | const struct StreamOut *_42 = &(*streams).out; |
17104 | - struct string _43; memset(&_43, 0, sizeof(struct string)); | |
17105 | - init$fromliteral(&_43, ");", 2); | |
17106 | - PutStrLn(0 /* _41 */, &*_42, &_43); | |
17107 | - string$dest(&_43); | |
17102 | + PutStr(0 /* _41 */, &*_42, &_tmpid); | |
17108 | 17103 | } |
17109 | 17104 | { |
17110 | - uint8_t _43; memset(&_43, 0, sizeof(uint8_t)); | |
17111 | - _43 = 125; | |
17112 | - AssertGet$(0 /* _42 */, &*streams, &*txtpos, &*level, &_43); | |
17113 | - _IGNORE_(_43); | |
17105 | + const struct StreamOut *_43 = &(*streams).out; | |
17106 | + struct string _44; memset(&_44, 0, sizeof(struct string)); | |
17107 | + init$fromliteral(&_44, ";", 1); | |
17108 | + PutStrLn(0 /* _42 */, &*_43, &_44); | |
17109 | + string$dest(&_44); | |
17114 | 17110 | } |
17111 | + { | |
17112 | + uint64_t _44; memset(&_44, 0, sizeof(uint64_t)); | |
17113 | + { | |
17114 | + uint64_t _45; memset(&_45, 0, sizeof(uint64_t)); | |
17115 | + _45 = 1; | |
17116 | + _44 = _45 + *level; | |
17117 | + _IGNORE_(_45); | |
17118 | + } | |
17119 | + struct stack/*qtypepureid*/ _45; memset(&_45, 0, sizeof(struct stack/*qtypepureid*/)); | |
17120 | + { | |
17121 | + empty(&_45, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3852); | |
17122 | + } | |
17123 | + ParseBlockRaw$(0 /* _43 */, &*streams, &*txtpos, &*state, &_44, &*scope, &*tmpnr, &_45, &*partial, &*action, &*self); | |
17124 | + free$(&_45, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest); | |
17125 | + _IGNORE_(_44); | |
17126 | + } | |
17127 | + { | |
17128 | + const struct StreamOut *_45 = &(*streams).out; | |
17129 | + Indent$(0 /* _44 */, &*_45, &*level); | |
17130 | + } | |
17131 | + { | |
17132 | + const struct StreamOut *_46 = &(*streams).out; | |
17133 | + struct string _47; memset(&_47, 0, sizeof(struct string)); | |
17134 | + init$fromliteral(&_47, "}", 1); | |
17135 | + PutStrLn(0 /* _45 */, &*_46, &_47); | |
17136 | + string$dest(&_47); | |
17137 | + } | |
17138 | + { | |
17139 | + uint8_t _47; memset(&_47, 0, sizeof(uint8_t)); | |
17140 | + _47 = 125; | |
17141 | + AssertGet$(0 /* _46 */, &*streams, &*txtpos, &*level, &_47); | |
17142 | + _IGNORE_(_47); | |
17143 | + } | |
17144 | + string$dest(&_tmpid); | |
17115 | 17145 | qtypepureid$dest(&_mut_elem); |
17146 | + free$(&_path2, sizeof(struct string), (void (*)(void *))string$dest); | |
17116 | 17147 | type_pure$dest(&_type); |
17117 | 17148 | free$(&_path, sizeof(struct string), (void (*)(void *))string$dest); |
17118 | 17149 | var$dest(&_provide); |
@@ -17161,7 +17192,7 @@ | ||
17161 | 17192 | varinit(&_12, &_13); |
17162 | 17193 | qtypepureid$dest(&_13); |
17163 | 17194 | } |
17164 | - push(0 /* _11 */, &*scope, &_12, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 3855); | |
17195 | + push(0 /* _11 */, &*scope, &_12, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 3863); | |
17165 | 17196 | var$dest(&_12); |
17166 | 17197 | } |
17167 | 17198 | } |
@@ -17183,7 +17214,7 @@ | ||
17183 | 17214 | { |
17184 | 17215 | struct stack/*qtypepureid*/ _15; memset(&_15, 0, sizeof(struct stack/*qtypepureid*/)); |
17185 | 17216 | { |
17186 | - solid(&_15, &_mut_elem, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3858); | |
17217 | + solid(&_15, &_mut_elem, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3866); | |
17187 | 17218 | } |
17188 | 17219 | struct string _16; memset(&_16, 0, sizeof(struct string)); |
17189 | 17220 | { |
@@ -17219,7 +17250,7 @@ | ||
17219 | 17250 | { |
17220 | 17251 | struct stack/*qtypepureid*/ _20; memset(&_20, 0, sizeof(struct stack/*qtypepureid*/)); |
17221 | 17252 | { |
17222 | - empty(&_20, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3860); | |
17253 | + empty(&_20, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3868); | |
17223 | 17254 | } |
17224 | 17255 | ParseBlock$(0 /* _19 */, &*streams, &*txtpos, &*state, &*level, &*scope, &*tmpnr, &_20, &*partial, &*action, &*self); |
17225 | 17256 | free$(&_20, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest); |
@@ -17255,7 +17286,7 @@ | ||
17255 | 17286 | { |
17256 | 17287 | struct stack/*qtypepureid*/ _10; memset(&_10, 0, sizeof(struct stack/*qtypepureid*/)); |
17257 | 17288 | { |
17258 | - solid(&_10, &_mut_container, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3867); | |
17289 | + solid(&_10, &_mut_container, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3875); | |
17259 | 17290 | } |
17260 | 17291 | struct string _11; memset(&_11, 0, sizeof(struct string)); |
17261 | 17292 | { |
@@ -17410,7 +17441,7 @@ | ||
17410 | 17441 | varinit(&_31, &_32); |
17411 | 17442 | qtypepureid$dest(&_32); |
17412 | 17443 | } |
17413 | - push(0 /* _30 */, &*scope, &_31, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 3883); | |
17444 | + push(0 /* _30 */, &*scope, &_31, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 3891); | |
17414 | 17445 | var$dest(&_31); |
17415 | 17446 | } |
17416 | 17447 | { |
@@ -17568,7 +17599,7 @@ | ||
17568 | 17599 | } |
17569 | 17600 | struct stack/*qtypepureid*/ _47; memset(&_47, 0, sizeof(struct stack/*qtypepureid*/)); |
17570 | 17601 | { |
17571 | - empty(&_47, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3904); | |
17602 | + empty(&_47, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3912); | |
17572 | 17603 | } |
17573 | 17604 | ParseBlockRaw$(0 /* _45 */, &*streams, &*txtpos, &*state, &_46, &*scope, &*tmpnr, &_47, &*partial, &*action, &*self); |
17574 | 17605 | free$(&_47, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest); |
@@ -17616,7 +17647,7 @@ | ||
17616 | 17647 | } |
17617 | 17648 | struct stack/*qtypepureid*/ _31; memset(&_31, 0, sizeof(struct stack/*qtypepureid*/)); |
17618 | 17649 | { |
17619 | - empty(&_31, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3910); | |
17650 | + empty(&_31, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3918); | |
17620 | 17651 | } |
17621 | 17652 | ParseBlockRaw$(0 /* _29 */, &*streams, &*txtpos, &*state, &_30, &*scope, &*tmpnr, &_31, &*partial, &*action, &*self); |
17622 | 17653 | free$(&_31, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest); |
@@ -17769,7 +17800,7 @@ | ||
17769 | 17800 | { |
17770 | 17801 | struct stack/*qtypepureid*/ _6; memset(&_6, 0, sizeof(struct stack/*qtypepureid*/)); |
17771 | 17802 | { |
17772 | - empty(&_6, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3944); | |
17803 | + empty(&_6, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 3952); | |
17773 | 17804 | } |
17774 | 17805 | bool _7; memset(&_7, 0, sizeof(bool)); |
17775 | 17806 | _7 = 0; |
@@ -18463,7 +18494,7 @@ | ||
18463 | 18494 | { |
18464 | 18495 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
18465 | 18496 | { |
18466 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4150); | |
18497 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4158); | |
18467 | 18498 | } |
18468 | 18499 | { |
18469 | 18500 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -18727,7 +18758,7 @@ | ||
18727 | 18758 | } |
18728 | 18759 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
18729 | 18760 | { |
18730 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4201); | |
18761 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4209); | |
18731 | 18762 | } |
18732 | 18763 | { |
18733 | 18764 | uint64_t _6; memset(&_6, 0, sizeof(uint64_t)); |
@@ -18963,7 +18994,7 @@ | ||
18963 | 18994 | _IGNORE_(_4); |
18964 | 18995 | } |
18965 | 18996 | { |
18966 | - push(0 /* _4 */, &*elems, &_ti, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4246); | |
18997 | + push(0 /* _4 */, &*elems, &_ti, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4254); | |
18967 | 18998 | } |
18968 | 18999 | { |
18969 | 19000 | uint64_t _6; memset(&_6, 0, sizeof(uint64_t)); |
@@ -18998,7 +19029,7 @@ | ||
18998 | 19029 | { |
18999 | 19030 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
19000 | 19031 | { |
19001 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4258); | |
19032 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4266); | |
19002 | 19033 | } |
19003 | 19034 | { |
19004 | 19035 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -19166,7 +19197,7 @@ | ||
19166 | 19197 | { |
19167 | 19198 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
19168 | 19199 | { |
19169 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4285); | |
19200 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4293); | |
19170 | 19201 | } |
19171 | 19202 | { |
19172 | 19203 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -19314,7 +19345,7 @@ | ||
19314 | 19345 | { |
19315 | 19346 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
19316 | 19347 | { |
19317 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4311); | |
19348 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4319); | |
19318 | 19349 | } |
19319 | 19350 | { |
19320 | 19351 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -19494,7 +19525,7 @@ | ||
19494 | 19525 | { |
19495 | 19526 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
19496 | 19527 | { |
19497 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4336); | |
19528 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4344); | |
19498 | 19529 | } |
19499 | 19530 | { |
19500 | 19531 | struct qtype _4; memset(&_4, 0, sizeof(struct qtype)); |
@@ -19712,11 +19743,11 @@ | ||
19712 | 19743 | { |
19713 | 19744 | struct constr _c; memset(&_c, 0, sizeof(struct constr)); |
19714 | 19745 | { |
19715 | - at_get$(&_c, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4374); | |
19746 | + at_get$(&_c, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4382); | |
19716 | 19747 | } |
19717 | 19748 | { |
19718 | 19749 | const struct typepureid *_4 = &(_c).ti; |
19719 | - push(0 /* _3 */, &*extracted, &*_4, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4375); | |
19750 | + push(0 /* _3 */, &*extracted, &*_4, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4383); | |
19720 | 19751 | } |
19721 | 19752 | { |
19722 | 19753 | uint64_t _5; memset(&_5, 0, sizeof(uint64_t)); |
@@ -19777,11 +19808,11 @@ | ||
19777 | 19808 | struct typepureid _elem; memset(&_elem, 0, sizeof(struct typepureid)); |
19778 | 19809 | { |
19779 | 19810 | const struct stack/*typepureid*/ *_4 = &(_sd).elems; |
19780 | - at_get$(&_elem, &*_4, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4387); | |
19811 | + at_get$(&_elem, &*_4, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4395); | |
19781 | 19812 | } |
19782 | 19813 | struct constr _constr; memset(&_constr, 0, sizeof(struct constr)); |
19783 | 19814 | { |
19784 | - at_get$(&_constr, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4389); | |
19815 | + at_get$(&_constr, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4397); | |
19785 | 19816 | } |
19786 | 19817 | bool _5; |
19787 | 19818 | { |
@@ -19998,7 +20029,7 @@ | ||
19998 | 20029 | } |
19999 | 20030 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
20000 | 20031 | { |
20001 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4415); | |
20032 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4423); | |
20002 | 20033 | } |
20003 | 20034 | bool _10; |
20004 | 20035 | { |
@@ -20501,11 +20532,11 @@ | ||
20501 | 20532 | struct typepureid _elem; memset(&_elem, 0, sizeof(struct typepureid)); |
20502 | 20533 | { |
20503 | 20534 | const struct stack/*typepureid*/ *_4 = &(_sd).elems; |
20504 | - at_get$(&_elem, &*_4, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4490); | |
20535 | + at_get$(&_elem, &*_4, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4498); | |
20505 | 20536 | } |
20506 | 20537 | struct constr _constr; memset(&_constr, 0, sizeof(struct constr)); |
20507 | 20538 | { |
20508 | - at_get$(&_constr, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4492); | |
20539 | + at_get$(&_constr, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4500); | |
20509 | 20540 | } |
20510 | 20541 | bool _5; |
20511 | 20542 | { |
@@ -20711,7 +20742,7 @@ | ||
20711 | 20742 | } |
20712 | 20743 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
20713 | 20744 | { |
20714 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4518); | |
20745 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4526); | |
20715 | 20746 | } |
20716 | 20747 | bool _10; |
20717 | 20748 | { |
@@ -21067,7 +21098,7 @@ | ||
21067 | 21098 | { |
21068 | 21099 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
21069 | 21100 | { |
21070 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4579); | |
21101 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4587); | |
21071 | 21102 | } |
21072 | 21103 | { |
21073 | 21104 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -21435,7 +21466,7 @@ | ||
21435 | 21466 | { |
21436 | 21467 | struct typepureid _ti; memset(&_ti, 0, sizeof(struct typepureid)); |
21437 | 21468 | { |
21438 | - at_get$(&_ti, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4618); | |
21469 | + at_get$(&_ti, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4626); | |
21439 | 21470 | } |
21440 | 21471 | { |
21441 | 21472 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -21700,7 +21731,7 @@ | ||
21700 | 21731 | struct typepureid _elem; memset(&_elem, 0, sizeof(struct typepureid)); |
21701 | 21732 | { |
21702 | 21733 | const struct stack/*typepureid*/ *_3 = &(*sd).elems; |
21703 | - at_get$(&_elem, &*_3, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4654); | |
21734 | + at_get$(&_elem, &*_3, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4662); | |
21704 | 21735 | } |
21705 | 21736 | { |
21706 | 21737 | struct string _4; memset(&_4, 0, sizeof(struct string)); |
@@ -22029,11 +22060,11 @@ | ||
22029 | 22060 | { |
22030 | 22061 | struct qtype _qt0; memset(&_qt0, 0, sizeof(struct qtype)); |
22031 | 22062 | { |
22032 | - at_get$(&_qt0, &*decl, &*idx, sizeof(struct qtype), (void (*)(void *))qtype$dest, (void (*)(void *, const void *))qtype$copy, 4695); | |
22063 | + at_get$(&_qt0, &*decl, &*idx, sizeof(struct qtype), (void (*)(void *))qtype$dest, (void (*)(void *, const void *))qtype$copy, 4703); | |
22033 | 22064 | } |
22034 | 22065 | struct qtype _qt1; memset(&_qt1, 0, sizeof(struct qtype)); |
22035 | 22066 | { |
22036 | - at_get$(&_qt1, &*def, &*idx, sizeof(struct qtype), (void (*)(void *))qtype$dest, (void (*)(void *, const void *))qtype$copy, 4696); | |
22067 | + at_get$(&_qt1, &*def, &*idx, sizeof(struct qtype), (void (*)(void *))qtype$dest, (void (*)(void *, const void *))qtype$copy, 4704); | |
22037 | 22068 | } |
22038 | 22069 | bool _4; |
22039 | 22070 | { |
@@ -22161,7 +22192,7 @@ | ||
22161 | 22192 | { |
22162 | 22193 | struct typeid _elem; memset(&_elem, 0, sizeof(struct typeid)); |
22163 | 22194 | { |
22164 | - at_get$(&_elem, &*elems, &*idx, sizeof(struct typeid), (void (*)(void *))typeid$dest, (void (*)(void *, const void *))typeid$copy, 4725); | |
22195 | + at_get$(&_elem, &*elems, &*idx, sizeof(struct typeid), (void (*)(void *))typeid$dest, (void (*)(void *, const void *))typeid$copy, 4733); | |
22165 | 22196 | } |
22166 | 22197 | { |
22167 | 22198 | Indent$(0 /* _3 */, &*out, &*level); |
@@ -22239,7 +22270,7 @@ | ||
22239 | 22270 | { |
22240 | 22271 | struct typepureid _elem; memset(&_elem, 0, sizeof(struct typepureid)); |
22241 | 22272 | { |
22242 | - at_get$(&_elem, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4747); | |
22273 | + at_get$(&_elem, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4755); | |
22243 | 22274 | } |
22244 | 22275 | { |
22245 | 22276 | Indent$(0 /* _3 */, &*out, &*level); |
@@ -22397,7 +22428,7 @@ | ||
22397 | 22428 | } |
22398 | 22429 | { |
22399 | 22430 | struct stack/*structdef*/ *_3 = &(*state).structs; |
22400 | - push(0 /* _2 */, &*_3, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 4784); | |
22431 | + push(0 /* _2 */, &*_3, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 4792); | |
22401 | 22432 | } |
22402 | 22433 | { |
22403 | 22434 | struct stack/*structdef*/ *_4 = &(*state).structs; |
@@ -22740,7 +22771,7 @@ | ||
22740 | 22771 | { |
22741 | 22772 | struct typeid _cur; memset(&_cur, 0, sizeof(struct typeid)); |
22742 | 22773 | { |
22743 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typeid), (void (*)(void *))typeid$dest, (void (*)(void *, const void *))typeid$copy, 4847); | |
22774 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typeid), (void (*)(void *))typeid$dest, (void (*)(void *, const void *))typeid$copy, 4855); | |
22744 | 22775 | } |
22745 | 22776 | { |
22746 | 22777 | struct string _4; memset(&_4, 0, sizeof(struct string)); |
@@ -22803,7 +22834,7 @@ | ||
22803 | 22834 | // mark internal structs used |
22804 | 22835 | { |
22805 | 22836 | struct stack/*structdef*/ *_2 = &(*state).structs; |
22806 | - push(0 /* _1 */, &*_2, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 4859); | |
22837 | + push(0 /* _1 */, &*_2, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 4867); | |
22807 | 22838 | } |
22808 | 22839 | { |
22809 | 22840 | struct stack/*structdef*/ *_3 = &(*state).structs; |
@@ -22880,7 +22911,7 @@ | ||
22880 | 22911 | { |
22881 | 22912 | struct typepureid _elem; memset(&_elem, 0, sizeof(struct typepureid)); |
22882 | 22913 | { |
22883 | - at_get$(&_elem, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4871); | |
22914 | + at_get$(&_elem, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4879); | |
22884 | 22915 | } |
22885 | 22916 | bool _2; memset(&_2, 0, sizeof(bool)); |
22886 | 22917 | bool _3; |
@@ -23090,7 +23121,7 @@ | ||
23090 | 23121 | } |
23091 | 23122 | { |
23092 | 23123 | struct stack/*structdef*/ *_3 = &(*state).structs; |
23093 | - push(0 /* _2 */, &*_3, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 4904); | |
23124 | + push(0 /* _2 */, &*_3, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 4912); | |
23094 | 23125 | } |
23095 | 23126 | { |
23096 | 23127 | struct stack/*structdef*/ *_4 = &(*state).structs; |
@@ -23161,7 +23192,7 @@ | ||
23161 | 23192 | { |
23162 | 23193 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
23163 | 23194 | { |
23164 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4918); | |
23195 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4926); | |
23165 | 23196 | } |
23166 | 23197 | { |
23167 | 23198 | uint64_t _4; memset(&_4, 0, sizeof(uint64_t)); |
@@ -23341,7 +23372,7 @@ | ||
23341 | 23372 | { |
23342 | 23373 | struct typepureid _cur; memset(&_cur, 0, sizeof(struct typepureid)); |
23343 | 23374 | { |
23344 | - at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4943); | |
23375 | + at_get$(&_cur, &*elems, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4951); | |
23345 | 23376 | } |
23346 | 23377 | { |
23347 | 23378 | struct qtype _4; memset(&_4, 0, sizeof(struct qtype)); |
@@ -23409,7 +23440,7 @@ | ||
23409 | 23440 | { |
23410 | 23441 | struct constr _c; memset(&_c, 0, sizeof(struct constr)); |
23411 | 23442 | { |
23412 | - at_get$(&_c, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4957); | |
23443 | + at_get$(&_c, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4965); | |
23413 | 23444 | } |
23414 | 23445 | bool _4; |
23415 | 23446 | { |
@@ -23492,11 +23523,11 @@ | ||
23492 | 23523 | struct typepureid _elem; memset(&_elem, 0, sizeof(struct typepureid)); |
23493 | 23524 | { |
23494 | 23525 | const struct stack/*typepureid*/ *_4 = &(_sd).elems; |
23495 | - at_get$(&_elem, &*_4, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4974); | |
23526 | + at_get$(&_elem, &*_4, &*idx, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 4982); | |
23496 | 23527 | } |
23497 | 23528 | struct constr _constr; memset(&_constr, 0, sizeof(struct constr)); |
23498 | 23529 | { |
23499 | - at_get$(&_constr, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4976); | |
23530 | + at_get$(&_constr, &*constrs, &*idx, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 4984); | |
23500 | 23531 | } |
23501 | 23532 | struct stack/*qtype*/ _parts; memset(&_parts, 0, sizeof(struct stack/*qtype*/)); |
23502 | 23533 | { |
@@ -23927,7 +23958,7 @@ | ||
23927 | 23958 | } |
23928 | 23959 | { |
23929 | 23960 | struct stack/*structdef*/ *_5 = &(*state).structs; |
23930 | - push(0 /* _4 */, &*_5, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 5020); | |
23961 | + push(0 /* _4 */, &*_5, &_strdef, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 5028); | |
23931 | 23962 | } |
23932 | 23963 | { |
23933 | 23964 | struct stack/*structdef*/ *_6 = &(*state).structs; |
@@ -24131,7 +24162,7 @@ | ||
24131 | 24162 | _IGNORE_(_4); |
24132 | 24163 | } |
24133 | 24164 | { |
24134 | - push(0 /* _4 */, &*elems, &_ti, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5063); | |
24165 | + push(0 /* _4 */, &*elems, &_ti, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5071); | |
24135 | 24166 | } |
24136 | 24167 | { |
24137 | 24168 | uint64_t _6; memset(&_6, 0, sizeof(uint64_t)); |
@@ -24341,7 +24372,7 @@ | ||
24341 | 24372 | } |
24342 | 24373 | } |
24343 | 24374 | { |
24344 | - push(0 /* _9 */, &*constrs, &_c, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5113); | |
24375 | + push(0 /* _9 */, &*constrs, &_c, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5121); | |
24345 | 24376 | } |
24346 | 24377 | bool _11; |
24347 | 24378 | { |
@@ -24370,7 +24401,7 @@ | ||
24370 | 24401 | { |
24371 | 24402 | struct stack/*constr*/ _1; memset(&_1, 0, sizeof(struct stack/*constr*/)); |
24372 | 24403 | { |
24373 | - pop_opt(&_1, &*constrs, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5123); | |
24404 | + pop_opt(&_1, &*constrs, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5131); | |
24374 | 24405 | } |
24375 | 24406 | if(!(_1).size) |
24376 | 24407 | { |
@@ -25186,7 +25217,7 @@ | ||
25186 | 25217 | struct def _cur; memset(&_cur, 0, sizeof(struct def)); |
25187 | 25218 | { |
25188 | 25219 | struct stack/*def*/ *_19 = &(*state).defs; |
25189 | - at_get$(&_cur, &*_19, &*fnidx, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5311); | |
25220 | + at_get$(&_cur, &*_19, &*fnidx, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5319); | |
25190 | 25221 | } |
25191 | 25222 | bool _20; |
25192 | 25223 | { |
@@ -25366,7 +25397,7 @@ | ||
25366 | 25397 | struct def _cur; memset(&_cur, 0, sizeof(struct def)); |
25367 | 25398 | { |
25368 | 25399 | struct stack/*def*/ *_20 = &(*state).defs; |
25369 | - at_get$(&_cur, &*_20, &*fnidx, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5344); | |
25400 | + at_get$(&_cur, &*_20, &*fnidx, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5352); | |
25370 | 25401 | } |
25371 | 25402 | { |
25372 | 25403 | const struct StreamOut *_21 = &(*streams).err; |
@@ -25597,7 +25628,7 @@ | ||
25597 | 25628 | varinit(&_37, &_38); |
25598 | 25629 | qtypepureid$dest(&_38); |
25599 | 25630 | } |
25600 | - push(0 /* _36 */, &_scope, &_37, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 5377); | |
25631 | + push(0 /* _36 */, &_scope, &_37, sizeof(struct var), (void (*)(void *))var$dest, (void (*)(void *, const void *))var$copy, 5385); | |
25601 | 25632 | var$dest(&_37); |
25602 | 25633 | } |
25603 | 25634 | { |
@@ -25703,7 +25734,7 @@ | ||
25703 | 25734 | qtypepureid(&_30, &_31, &*_32); |
25704 | 25735 | qtypepure$dest(&_31); |
25705 | 25736 | } |
25706 | - solid(&_29, &_30, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 5392); | |
25737 | + solid(&_29, &_30, sizeof(struct qtypepureid), (void (*)(void *))qtypepureid$dest, (void (*)(void *, const void *))qtypepureid$copy, 5400); | |
25707 | 25738 | qtypepureid$dest(&_30); |
25708 | 25739 | } |
25709 | 25740 | const struct string *_30 = &(_ti).id; |
@@ -25871,7 +25902,7 @@ | ||
25871 | 25902 | { |
25872 | 25903 | struct stack/*def*/ _1; memset(&_1, 0, sizeof(struct stack/*def*/)); |
25873 | 25904 | { |
25874 | - pop_opt(&_1, &*defs, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5429); | |
25905 | + pop_opt(&_1, &*defs, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5437); | |
25875 | 25906 | } |
25876 | 25907 | if(!(_1).size) |
25877 | 25908 | { |
@@ -25918,7 +25949,7 @@ | ||
25918 | 25949 | { |
25919 | 25950 | struct stack/*structdef*/ _1; memset(&_1, 0, sizeof(struct stack/*structdef*/)); |
25920 | 25951 | { |
25921 | - pop_opt(&_1, &*structs, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 5445); | |
25952 | + pop_opt(&_1, &*structs, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 5453); | |
25922 | 25953 | } |
25923 | 25954 | if(!(_1).size) |
25924 | 25955 | { |
@@ -25979,11 +26010,11 @@ | ||
25979 | 26010 | { |
25980 | 26011 | struct stack/*def*/ _1; memset(&_1, 0, sizeof(struct stack/*def*/)); |
25981 | 26012 | { |
25982 | - stack(&_1, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5467); | |
26013 | + stack(&_1, sizeof(struct def), (void (*)(void *))def$dest, (void (*)(void *, const void *))def$copy, 5475); | |
25983 | 26014 | } |
25984 | 26015 | struct stack/*structdef*/ _2; memset(&_2, 0, sizeof(struct stack/*structdef*/)); |
25985 | 26016 | { |
25986 | - stack(&_2, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 5467); | |
26017 | + stack(&_2, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 5475); | |
25987 | 26018 | } |
25988 | 26019 | state(&_state, &_1, &_2); |
25989 | 26020 | free$(&_2, sizeof(struct structdef), (void (*)(void *))structdef$dest); |
@@ -26428,7 +26459,7 @@ | ||
26428 | 26459 | string$dest(&_5); |
26429 | 26460 | type_pure$dest(&_4); |
26430 | 26461 | } |
26431 | - push(0 /* _2 */, &_elems, &_3, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5882); | |
26462 | + push(0 /* _2 */, &_elems, &_3, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5890); | |
26432 | 26463 | typepureid$dest(&_3); |
26433 | 26464 | } |
26434 | 26465 | { |
@@ -26468,13 +26499,13 @@ | ||
26468 | 26499 | } |
26469 | 26500 | struct stack/*typepureid*/ _6; memset(&_6, 0, sizeof(struct stack/*typepureid*/)); |
26470 | 26501 | { |
26471 | - stack(&_6, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5889); | |
26502 | + stack(&_6, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5897); | |
26472 | 26503 | } |
26473 | 26504 | constr(&_4, &_5, &_6); |
26474 | 26505 | free$(&_6, sizeof(struct typepureid), (void (*)(void *))typepureid$dest); |
26475 | 26506 | typepureid$dest(&_5); |
26476 | 26507 | } |
26477 | - push(0 /* _3 */, &_constrs, &_4, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5889); | |
26508 | + push(0 /* _3 */, &_constrs, &_4, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5897); | |
26478 | 26509 | constr$dest(&_4); |
26479 | 26510 | } |
26480 | 26511 | { |
@@ -26497,13 +26528,13 @@ | ||
26497 | 26528 | } |
26498 | 26529 | struct stack/*typepureid*/ _7; memset(&_7, 0, sizeof(struct stack/*typepureid*/)); |
26499 | 26530 | { |
26500 | - stack(&_7, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5890); | |
26531 | + stack(&_7, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5898); | |
26501 | 26532 | } |
26502 | 26533 | constr(&_5, &_6, &_7); |
26503 | 26534 | free$(&_7, sizeof(struct typepureid), (void (*)(void *))typepureid$dest); |
26504 | 26535 | typepureid$dest(&_6); |
26505 | 26536 | } |
26506 | - push(0 /* _4 */, &_constrs, &_5, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5890); | |
26537 | + push(0 /* _4 */, &_constrs, &_5, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5898); | |
26507 | 26538 | constr$dest(&_5); |
26508 | 26539 | } |
26509 | 26540 | { |
@@ -26526,13 +26557,13 @@ | ||
26526 | 26557 | } |
26527 | 26558 | struct stack/*typepureid*/ _8; memset(&_8, 0, sizeof(struct stack/*typepureid*/)); |
26528 | 26559 | { |
26529 | - stack(&_8, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5891); | |
26560 | + stack(&_8, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 5899); | |
26530 | 26561 | } |
26531 | 26562 | constr(&_6, &_7, &_8); |
26532 | 26563 | free$(&_8, sizeof(struct typepureid), (void (*)(void *))typepureid$dest); |
26533 | 26564 | typepureid$dest(&_7); |
26534 | 26565 | } |
26535 | - push(0 /* _5 */, &_constrs, &_6, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5891); | |
26566 | + push(0 /* _5 */, &_constrs, &_6, sizeof(struct constr), (void (*)(void *))constr$dest, (void (*)(void *, const void *))constr$copy, 5899); | |
26536 | 26567 | constr$dest(&_6); |
26537 | 26568 | } |
26538 | 26569 | { |
@@ -29827,7 +29858,7 @@ | ||
29827 | 29858 | string$dest(&_53); |
29828 | 29859 | type_pure$dest(&_52); |
29829 | 29860 | } |
29830 | - push(0 /* _50 */, &_elems, &_51, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 6518); | |
29861 | + push(0 /* _50 */, &_elems, &_51, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 6526); | |
29831 | 29862 | typepureid$dest(&_51); |
29832 | 29863 | } |
29833 | 29864 | { |
@@ -29846,7 +29877,7 @@ | ||
29846 | 29877 | string$dest(&_54); |
29847 | 29878 | type_pure$dest(&_53); |
29848 | 29879 | } |
29849 | - push(0 /* _51 */, &_elems, &_52, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 6519); | |
29880 | + push(0 /* _51 */, &_elems, &_52, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 6527); | |
29850 | 29881 | typepureid$dest(&_52); |
29851 | 29882 | } |
29852 | 29883 | { |
@@ -29865,7 +29896,7 @@ | ||
29865 | 29896 | string$dest(&_55); |
29866 | 29897 | type_pure$dest(&_54); |
29867 | 29898 | } |
29868 | - push(0 /* _52 */, &_elems, &_53, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 6520); | |
29899 | + push(0 /* _52 */, &_elems, &_53, sizeof(struct typepureid), (void (*)(void *))typepureid$dest, (void (*)(void *, const void *))typepureid$copy, 6528); | |
29869 | 29900 | typepureid$dest(&_53); |
29870 | 29901 | } |
29871 | 29902 | { |
@@ -29895,7 +29926,7 @@ | ||
29895 | 29926 | typepureid$dest(&_57); |
29896 | 29927 | flavour$dest(&_56); |
29897 | 29928 | } |
29898 | - push(0 /* _53 */, &*_54, &_55, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 6521); | |
29929 | + push(0 /* _53 */, &*_54, &_55, sizeof(struct structdef), (void (*)(void *))structdef$dest, (void (*)(void *, const void *))structdef$copy, 6529); | |
29899 | 29930 | structdef$dest(&_55); |
29900 | 29931 | } |
29901 | 29932 | free$(&_elems, sizeof(struct typepureid), (void (*)(void *))typepureid$dest); |
@@ -3822,6 +3822,7 @@ | ||
3822 | 3822 | EPrTypePurePrim(streams.err, tn.prim); |
3823 | 3823 | Fail$(streams.err, txtpos); |
3824 | 3824 | }; |
3825 | + let mut stack<string> path2 = path; // PrintPath consumes path! | |
3825 | 3826 | |
3826 | 3827 | let qtypepureid mut_elem = qtypepureid(mutqtp(type_pure_normal2("u8")), elem_id); |
3827 | 3828 | if not(istmp$(elem_id)) then |
@@ -3830,20 +3831,27 @@ | ||
3830 | 3831 | }; |
3831 | 3832 | |
3832 | 3833 | AssertGet$(streams, txtpos, level, '{'); |
3833 | - Indent$(streams.out, level); PutStr(streams.out, "uint8_t "); | |
3834 | - PutStr(streams.out, elem_id); PutStrLn(streams.out, " = 0;"); | |
3835 | - Indent$(streams.out, level); PutStr(streams.out, "do"); | |
3836 | - Indent$(streams.out, level); PutStrLn(streams.out, "{"); | |
3837 | - Indent$(streams.out, add<u64>(1, level)); PutStr(streams.out, "Get(&"); | |
3838 | - PutStr(streams.out, elem_id); | |
3839 | - PutStr(streams.out, ", &((*"); | |
3834 | + let string tmpid = GenVar$(tmpnr); | |
3835 | + Indent$(streams.out, level); PutStr(streams.out, "for(int "); | |
3836 | + PutStr(streams.out, tmpid); | |
3837 | + PutStr(streams.out, " = getc(((*"); | |
3840 | 3838 | PutStr(streams.out, var); |
3841 | 3839 | PutStr(streams.out, ")"); |
3842 | 3840 | PrintPath$(streams.out, path); |
3843 | - PutStrLn(streams.out, "));"); | |
3841 | + PutStr(streams.out, ").f); "); | |
3842 | + PutStr(streams.out, tmpid); PutStr(streams.out, " >= 0; "); | |
3843 | + PutStr(streams.out, tmpid); | |
3844 | + PutStr(streams.out, " = getc(((*"); | |
3845 | + PutStr(streams.out, var); | |
3846 | + PutStr(streams.out, ")"); | |
3847 | + PrintPath$(streams.out, path2); | |
3848 | + PutStrLn(streams.out, ").f))"); | |
3849 | + Indent$(streams.out, level); PutStrLn(streams.out, "{"); | |
3850 | + Indent$(streams.out, add<u64>(1, level)); PutStr(streams.out, "const uint8_t "); | |
3851 | + PutStr(streams.out, elem_id); PutStr(streams.out, " = (uint8_t)"); | |
3852 | + PutStr(streams.out, tmpid); PutStrLn(streams.out, ";"); | |
3844 | 3853 | ParseBlockRaw$(streams, txtpos, state, add<u64>(1, level), scope, tmpnr, empty<qtypepureid>(), partial, action, self); |
3845 | 3854 | Indent$(streams.out, level); PutStrLn(streams.out, "}"); |
3846 | - Indent$(streams.out, level); PutStr(streams.out, "while("); PutStr(streams.out, elem_id); PutStrLn(streams.out, ");"); | |
3847 | 3855 | AssertGet$(streams, txtpos, level, '}'); |
3848 | 3856 | }; |
3849 | 3857 | }; |