source: proto/pabloj/trunk/input/test/visitors/CarryIntroXFormer/NotFinalBlock/pablo2CarryQ.pablos @ 2975

Last change on this file since 2975 was 2975, checked in by ksherdy, 6 years ago

Updated tests and driver.

File size: 2.0 KB
Line 
1function void Test() {
2        var stream temp;
3        var stream C;   // Cursor stream
4        var stream M;   // Marker stream
5        var stream R;   // Result stream
6       
7        // TODO - UPDATE EXPECTED RESULTS
8       
9        R = carry_set_0.BitBlock_advance_ci_co(C,carry_set_0.CarryAt(0),0);     // Expected
10        R = Advance(C);                                                                                                 // Translated
11               
12        R = carry_set_0.BitBlock_advance_ci_co(C,carry_set_0.CarryAt(1),1);
13        R = pablo.Advance(C);
14       
15        R = carry_set_0.BitBlock_scantofirst(M,carry_set_0.CarryAt(2),2);
16        R = ScanToFirst(M);
17
18        R = carry_set_0.BitBlock_scantofirst(M,carry_set_0.CarryAt(3),3);       
19        R = pablo.ScanToFirst(M);
20
21        R = carry_set_0.BitBlock_scanthru_ci_co(C,X,carry_set_0.CarryAt(4),4);
22        R = ScanThru(C,X);
23
24        R = carry_set_0.BitBlock_scanthru_ci_co(C,X,carry_set_0.CarryAt(5),5);
25        R = pablo.ScanThru(C,X);
26
27        R = carry_set_0.BitBlock_scanthru_ci_co(C,simd_not(X),carry_set_0.CarryAt(6),6);
28        R = ScanTo(C,X);
29       
30        R = carry_set_0.BitBlock_scanthru_ci_co(C,simd_not(X),carry_set_0.CarryAt(7),7);       
31        R = pablo.ScanTo(C,X);
32
33        R = carry_set_0.BitBlock_advance_then_scanthru(C,X,carry_set_0.CarryAt(8),8);
34        R = AdvanceThenScanThru(C,X);
35       
36        R = carry_set_0.BitBlock_advance_then_scanthru(C,X,carry_set_0.CarryAt(9),9);   
37        R = pablo.AdvanceThenScanThru(C,X);
38
39        R = carry_set_0.BitBlock_advance_then_scanthru(C,simd_not(X),carry_set_0.CarryAt(10),10);                       
40        R = AdvanceThenScanTo(C,X);
41       
42        R = carry_set_0.BitBlock_advance_then_scanthru(C,simd_not(X),carry_set_0.CarryAt(11),11);       
43        R = pablo.AdvanceThenScanTo(C,X);
44
45        R = carry_set_0.BitBlock_span_upto(C,X,carry_set_0.CarryAt(12),12);
46        R = SpanUpTo(C,X);
47       
48        R = carry_set_0.BitBlock_span_upto(C,X,carry_set_0.CarryAt(13),13);     
49        R = pablo.SpanUpTo(C,X);
50               
51        R = carry_set_0.BitBlock_inclusive_span(C,X,carry_set_0.CarryAt(14),14);       
52        R = InclusiveSpan(C,X);
53       
54        R = carry_set_0.BitBlock_inclusive_span(C,X,carry_set_0.CarryAt(15),15);       
55        R = pablo.InclusiveSpan(C,X);                   
56
57        R = carry_set_0.BitBlock_exclusive_span(C,X,carry_set_0.CarryAt(16),16);       
58        R = ExclusiveSpan(C,X);
59       
60        R = carry_set_0.BitBlock_exclusive_span(C,X,carry_set_0.CarryAt(17),17);               
61        R = pablo.ExclusiveSpan(C,X);                   
62               
63}
Note: See TracBrowser for help on using the repository browser.