source: proto/s2k/trunk/framework/input/test/visitors/CarryIntroXFormerNotFinalBlock/pablo2CarryQ.s2k @ 3767

Last change on this file since 3767 was 3767, checked in by ksherdy, 4 years ago

Replaced function keyword with filter.

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