Changeset 53bb8f1 for tests/loopctrl.cfa


Ignore:
Timestamp:
Mar 12, 2019, 3:00:54 PM (7 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
30e32b2, a2545593
Parents:
9d9a451 (diff), 91d6584 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge second draft of Aaron's thesis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/loopctrl.cfa

    r9d9a451 r53bb8f1  
    1010// Created On       : Wed Aug  8 18:32:59 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sun Dec 23 23:00:29 2018
    13 // Update Count     : 79
     12// Last Modified On : Thu Feb 21 08:54:47 2019
     13// Update Count     : 86
    1414//
    1515
     
    5454        for ( i; 5.5 -~ 0.5 ) { sout | i; }                                     sout | nl;
    5555        for ( ui; 2u ~= 10u ~ 2u ) { sout | ui; }                       sout | nl;
    56         for ( ui; 10u -~= 2u ~ 2u ) { sout | ui; }                      sout | nl | nl | nl;
     56        for ( ui; 10u -~= 2u ~ 2u ) { sout | ui; }                      sout | nl | nl;
    5757
     58        for ( i; 2 ~ @ ~ 2 ) {
     59          if ( i > 10 ) break;
     60                sout | i;
     61        }                                                                                                       sout | nl;
     62        for ( i; 2.1 ~ @ ~ @ ) {
     63          if ( i > 10.5 ) break;
     64                sout | i;
     65                i += 1.7;
     66        }                                                                                                       sout | nl;
     67        for ( i; 10 -~ @ ~ 2 ) {
     68          if ( i < 0 ) break;
     69                sout | i;
     70        }                                                                                                       sout | nl;
     71        for ( i; 12.1 ~ @ ~ @ ) {
     72          if ( i < 2.5 ) break;
     73                sout | i;
     74                i -= 1.7;
     75        }                                                                                                       sout | nl | nl;
     76       
    5877        enum { N = 10 };
    5978        for ( N ) { sout | "N"; }                                                       sout | nl;
    6079        for ( i; N ) { sout | i; }                                                      sout | nl;
    61         for ( i; N -~ 0 ) { sout | i; }                                         sout | nl | nl | nl;
     80        for ( i; N -~ 0 ) { sout | i; }                                         sout | nl | nl;
    6281
    6382        const int start = 3, comp = 10, inc = 2;
    6483        for ( i; start ~ comp ~ inc + 1 ) { sout | i; }         sout | nl | nl;
    6584
    66         sout | nl;
    6785        for ( S s = (S){0}; s < (S){10,10}; s += (S){1} ) { sout | s; } sout | nl;
    6886        for ( s; (S){10,10} ) { sout | s; } sout | nl;
Note: See TracChangeset for help on using the changeset viewer.