github.com/solo-io/cue@v0.4.7/cue/testdata/cycle/issue242.txtar (about)

     1  -- in.cue --
     2  size:: 2
     3  #CellValue: 0 | 1 | 2 | 3
     4  cell: "0": "0": #CellValue
     5  cell: "0": "0": != cell["0"]["1"]
     6  cell: "0": "0": != cell["1"]["0"]
     7  cell: "0": "0": != cell["1"]["1"]
     8  
     9  cell: "0": "1": #CellValue
    10  cell: "0": "1": != cell["0"]["0"]
    11  cell: "0": "1": != cell["1"]["0"]
    12  cell: "0": "1": != cell["1"]["1"]
    13  
    14  cell: "1": "0": #CellValue
    15  cell: "1": "0": != cell["0"]["0"]
    16  cell: "1": "0": != cell["0"]["1"]
    17  cell: "1": "0": != cell["1"]["1"]
    18  
    19  cell: "1": "1": #CellValue
    20  cell: "1": "1": != cell["0"]["0"]
    21  cell: "1": "1": != cell["0"]["1"]
    22  cell: "1": "1": != cell["1"]["0"]
    23  
    24  cell: "0": "0": 0
    25  cell: "0": "1": 1
    26  cell: "1": "0": 2
    27  cell: "1": "1": 3
    28  
    29  cell2: a:  0 | 1
    30  cell2: a:  != cell2.b
    31  
    32  cell2: b:  0 | 1
    33  cell2: b:  != cell2.a
    34  
    35  cell2: a:  _
    36  cell2: b:  1
    37  
    38  cell3: a:  0 | 1
    39  cell3: a:  != cell3.b
    40  
    41  cell3: b:  0 | 1
    42  cell3: b:  != cell3.a
    43  
    44  cell3: a:  0
    45  cell3: b:  _
    46  
    47  cell4: a:  0 | 1
    48  cell4: a:  != cell4.b
    49  
    50  cell4: b:  0 | 1
    51  cell4: b:  != cell4.a
    52  
    53  cell4: b:  _
    54  cell4: a:  0
    55  
    56  cell5: b:  0 | 1
    57  cell5: b:  != cell5.a
    58  
    59  cell5: a:  0 | 1
    60  cell5: a:  != cell5.b
    61  
    62  cell5: b:  _
    63  cell5: a:  0
    64  
    65  a: #CellValue
    66  a: != b
    67  a: != c
    68  a: != d
    69  
    70  b: #CellValue
    71  b: != a
    72  b: != c
    73  b: != d
    74  
    75  c: #CellValue
    76  c: != a
    77  c: != b
    78  c: != d
    79  
    80  d: #CellValue
    81  d: != a
    82  d: != b
    83  d: != c
    84  
    85  a: 0
    86  b: 1
    87  c: 2
    88  d: 3
    89  -- out/eval --
    90  (struct){
    91    size: (int){ 2 }
    92    #CellValue: (int){ |((int){ 0 }, (int){ 1 }, (int){ 2 }, (int){ 3 }) }
    93    cell: (struct){
    94      "0": (struct){
    95        "0": (int){ 0 }
    96        "1": (int){ 1 }
    97      }
    98      "1": (struct){
    99        "0": (int){ 2 }
   100        "1": (int){ 3 }
   101      }
   102    }
   103    cell2: (struct){
   104      a: (int){ 0 }
   105      b: (int){ 1 }
   106    }
   107    cell3: (struct){
   108      a: (int){ 0 }
   109      b: (int){ 1 }
   110    }
   111    cell4: (struct){
   112      a: (int){ 0 }
   113      b: (int){ 1 }
   114    }
   115    cell5: (struct){
   116      b: (int){ 1 }
   117      a: (int){ 0 }
   118    }
   119    a: (int){ 0 }
   120    b: (int){ 1 }
   121    c: (int){ 2 }
   122    d: (int){ 3 }
   123  }
   124  -- out/compile --
   125  --- in.cue
   126  {
   127    size:: 2
   128    #CellValue: (0|1|2|3)
   129    cell: {
   130      "0": {
   131        "0": 〈2;#CellValue〉
   132      }
   133    }
   134    cell: {
   135      "0": {
   136        "0": !=〈2;cell〉["0"]["1"]
   137      }
   138    }
   139    cell: {
   140      "0": {
   141        "0": !=〈2;cell〉["1"]["0"]
   142      }
   143    }
   144    cell: {
   145      "0": {
   146        "0": !=〈2;cell〉["1"]["1"]
   147      }
   148    }
   149    cell: {
   150      "0": {
   151        "1": 〈2;#CellValue〉
   152      }
   153    }
   154    cell: {
   155      "0": {
   156        "1": !=〈2;cell〉["0"]["0"]
   157      }
   158    }
   159    cell: {
   160      "0": {
   161        "1": !=〈2;cell〉["1"]["0"]
   162      }
   163    }
   164    cell: {
   165      "0": {
   166        "1": !=〈2;cell〉["1"]["1"]
   167      }
   168    }
   169    cell: {
   170      "1": {
   171        "0": 〈2;#CellValue〉
   172      }
   173    }
   174    cell: {
   175      "1": {
   176        "0": !=〈2;cell〉["0"]["0"]
   177      }
   178    }
   179    cell: {
   180      "1": {
   181        "0": !=〈2;cell〉["0"]["1"]
   182      }
   183    }
   184    cell: {
   185      "1": {
   186        "0": !=〈2;cell〉["1"]["1"]
   187      }
   188    }
   189    cell: {
   190      "1": {
   191        "1": 〈2;#CellValue〉
   192      }
   193    }
   194    cell: {
   195      "1": {
   196        "1": !=〈2;cell〉["0"]["0"]
   197      }
   198    }
   199    cell: {
   200      "1": {
   201        "1": !=〈2;cell〉["0"]["1"]
   202      }
   203    }
   204    cell: {
   205      "1": {
   206        "1": !=〈2;cell〉["1"]["0"]
   207      }
   208    }
   209    cell: {
   210      "0": {
   211        "0": 0
   212      }
   213    }
   214    cell: {
   215      "0": {
   216        "1": 1
   217      }
   218    }
   219    cell: {
   220      "1": {
   221        "0": 2
   222      }
   223    }
   224    cell: {
   225      "1": {
   226        "1": 3
   227      }
   228    }
   229    cell2: {
   230      a: (0|1)
   231    }
   232    cell2: {
   233      a: !=〈1;cell2〉.b
   234    }
   235    cell2: {
   236      b: (0|1)
   237    }
   238    cell2: {
   239      b: !=〈1;cell2〉.a
   240    }
   241    cell2: {
   242      a: _
   243    }
   244    cell2: {
   245      b: 1
   246    }
   247    cell3: {
   248      a: (0|1)
   249    }
   250    cell3: {
   251      a: !=〈1;cell3〉.b
   252    }
   253    cell3: {
   254      b: (0|1)
   255    }
   256    cell3: {
   257      b: !=〈1;cell3〉.a
   258    }
   259    cell3: {
   260      a: 0
   261    }
   262    cell3: {
   263      b: _
   264    }
   265    cell4: {
   266      a: (0|1)
   267    }
   268    cell4: {
   269      a: !=〈1;cell4〉.b
   270    }
   271    cell4: {
   272      b: (0|1)
   273    }
   274    cell4: {
   275      b: !=〈1;cell4〉.a
   276    }
   277    cell4: {
   278      b: _
   279    }
   280    cell4: {
   281      a: 0
   282    }
   283    cell5: {
   284      b: (0|1)
   285    }
   286    cell5: {
   287      b: !=〈1;cell5〉.a
   288    }
   289    cell5: {
   290      a: (0|1)
   291    }
   292    cell5: {
   293      a: !=〈1;cell5〉.b
   294    }
   295    cell5: {
   296      b: _
   297    }
   298    cell5: {
   299      a: 0
   300    }
   301    a: 〈0;#CellValue〉
   302    a: !=〈0;b〉
   303    a: !=〈0;c〉
   304    a: !=〈0;d〉
   305    b: 〈0;#CellValue〉
   306    b: !=〈0;a〉
   307    b: !=〈0;c〉
   308    b: !=〈0;d〉
   309    c: 〈0;#CellValue〉
   310    c: !=〈0;a〉
   311    c: !=〈0;b〉
   312    c: !=〈0;d〉
   313    d: 〈0;#CellValue〉
   314    d: !=〈0;a〉
   315    d: !=〈0;b〉
   316    d: !=〈0;c〉
   317    a: 0
   318    b: 1
   319    c: 2
   320    d: 3
   321  }