@cella-lang/cfamily 0.1.202611241359 → 0.1.202611260445
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGES.md +2 -0
- package/README.md +4 -4
- package/cfamily.arithmetic.cell +0 -0
- package/cfamily.behavior.cell +0 -0
- package/cfamily.cell +0 -0
- package/cfamily.clibrary.cell +0 -0
- package/cfamily.conversion.cell +0 -0
- package/cfamily.debugging.cell +0 -0
- package/cfamily.encoding.cell +0 -0
- package/cfamily.evaluation.cell +0 -0
- package/cfamily.execution.cell +0 -0
- package/cfamily.expressions.cell +0 -0
- package/cfamily.files.cell +0 -0
- package/cfamily.formatting.cell +0 -0
- package/cfamily.generate.cell +0 -0
- package/cfamily.integer.cell +0 -0
- package/cfamily.layout.cell +0 -0
- package/cfamily.lengths.cell +0 -0
- package/cfamily.librarycode.cell +0 -0
- package/cfamily.lifting.cell +0 -0
- package/cfamily.literals.cell +0 -0
- package/cfamily.memory.cell +0 -0
- package/cfamily.orders.cell +0 -0
- package/cfamily.program.cell +0 -0
- package/cfamily.querying.cell +0 -0
- package/cfamily.representation.cell +0 -0
- package/cfamily.resolution.cell +0 -0
- package/cfamily.rules.cell +0 -0
- package/cfamily.running.cell +0 -0
- package/cfamily.scanning.cell +0 -0
- package/cfamily.scopes.cell +0 -0
- package/cfamily.sequencing.cell +0 -0
- package/cfamily.sessions.cell +0 -0
- package/cfamily.standardlibrary.cell +0 -0
- package/cfamily.state.cell +0 -0
- package/cfamily.statements.cell +0 -0
- package/cfamily.statics.cell +0 -0
- package/cfamily.summaries.cell +0 -0
- package/cfamily.syntax.cell +0 -0
- package/cfamily.syntaxcollect.cell +0 -0
- package/cfamily.syntaxnodes.cell +0 -0
- package/cfamily.syntaxtypes.cell +0 -0
- package/cfamily.syntaxwalk.cell +0 -0
- package/cfamily.tables.cell +0 -0
- package/cfamily.typed.cell +0 -0
- package/cfamily.typetext.cell +0 -0
- package/cfamily.variables.cell +0 -0
- package/index.json +49 -49
- package/package.json +6 -6
- package/verdict-kinds.json +121 -1
package/CHANGES.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## 未發佈
|
|
4
4
|
|
|
5
|
+
- **`verdict-kinds.json` 的每個種類多 `meaning` 與 `category`**(只增加)(C、C++、Arduino 共用這份清單):`meaning` 是這個種類的意思,給使用者看的一句英文(宿主沒有自己的說明時可以直接顯示);`category` 是判決裡這個種類的問題帶的分類,六種之一(`error`、`unsupported`、`indeterminate`、`termination`、`incomplete`、`invalid`)。宿主可以只讀清單就知道一個種類怎麼歸類,不必等它出現在判決裡。
|
|
6
|
+
|
|
5
7
|
- **檢查器自己的上限判 unknown,不判 reject**:運算式或敘述巢狀深過檢查器的燃料(各 10000 層),或一個程式需要的
|
|
6
8
|
函式模板實例與 lambda 推出的結果型別多過上限(64 次重新檢查),之前判 reject(「the expression is nested too deeply」、
|
|
7
9
|
「the statement is nested too deeply」、「too many instantiations」)。這是檢查器的上限、不是程式錯(程式可能是對的),
|
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ wrote, decoded, with U+FFFD for an invalid sequence.
|
|
|
27
27
|
|
|
28
28
|
## Verdicts
|
|
29
29
|
|
|
30
|
-
A branch's `verdict
|
|
30
|
+
A branch's `verdict(src, input, fuel)` returns:
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
33
|
{"verdict": "reject", "basis": "computed", "exit": null, "out": "",
|
|
@@ -49,8 +49,8 @@ A branch's `verdict src input fuel` returns:
|
|
|
49
49
|
exception), `incomplete` (an empty slot) and `invalid` (the JSON is not a program). A problem also has `params`, its
|
|
50
50
|
details as strings and booleans (an integer in decimal; a detail not known is absent), and `structured`: a structured
|
|
51
51
|
problem's `reason` is made from its kind and `params` (a developer's log; a host reads the `params`), one not
|
|
52
|
-
structured yet has `"params": {}` and `"structured": false`. The kinds,
|
|
53
|
-
of the structured ones are listed in `verdict-kinds.json` (shipped with this package; the C, C++ and Arduino
|
|
52
|
+
structured yet has `"params": {}` and `"structured": false`. The kinds, each with its `meaning` (a sentence for a
|
|
53
|
+
person) and `category`, whether each is structured, and the `params` of the structured ones are listed in `verdict-kinds.json` (shipped with this package; the C, C++ and Arduino
|
|
54
54
|
branches share it). An undeclared name is `undeclared` with `name`, `what` (`variable`, `function` or `name`) and,
|
|
55
55
|
when a standard header declares it, `header`.
|
|
56
56
|
Two calls in an unspecified order (C11 6.5.2.2p10, C++17 [intro.execution]p11) whose effects could conflict are run in
|
|
@@ -69,7 +69,7 @@ A branch's `verdict src input fuel` returns:
|
|
|
69
69
|
|
|
70
70
|
## Type query
|
|
71
71
|
|
|
72
|
-
A branch's `types
|
|
72
|
+
A branch's `types(src, candidates)` answers what a block editor asks of a program that may have holes. A hole is
|
|
73
73
|
`{"k": "eHole", "n": "<node>#<slot>"}` (or `sHole` where the syntax needs a statement); a program with holes has the
|
|
74
74
|
verdict `unknown` with a `hole` problem. `candidates` is a JSON array of types written as C or C++ (`"int"`,
|
|
75
75
|
`"double"`, `"char *"`, `"std::string"`, `"struct S"`), the same way the result prints them.
|
package/cfamily.arithmetic.cell
CHANGED
|
Binary file
|
package/cfamily.behavior.cell
CHANGED
|
Binary file
|
package/cfamily.cell
CHANGED
|
Binary file
|
package/cfamily.clibrary.cell
CHANGED
|
Binary file
|
package/cfamily.conversion.cell
CHANGED
|
Binary file
|
package/cfamily.debugging.cell
CHANGED
|
Binary file
|
package/cfamily.encoding.cell
CHANGED
|
Binary file
|
package/cfamily.evaluation.cell
CHANGED
|
Binary file
|
package/cfamily.execution.cell
CHANGED
|
Binary file
|
package/cfamily.expressions.cell
CHANGED
|
Binary file
|
package/cfamily.files.cell
CHANGED
|
Binary file
|
package/cfamily.formatting.cell
CHANGED
|
Binary file
|
package/cfamily.generate.cell
CHANGED
|
Binary file
|
package/cfamily.integer.cell
CHANGED
|
Binary file
|
package/cfamily.layout.cell
CHANGED
|
Binary file
|
package/cfamily.lengths.cell
CHANGED
|
Binary file
|
package/cfamily.librarycode.cell
CHANGED
|
Binary file
|
package/cfamily.lifting.cell
CHANGED
|
Binary file
|
package/cfamily.literals.cell
CHANGED
|
Binary file
|
package/cfamily.memory.cell
CHANGED
|
Binary file
|
package/cfamily.orders.cell
CHANGED
|
Binary file
|
package/cfamily.program.cell
CHANGED
|
Binary file
|
package/cfamily.querying.cell
CHANGED
|
Binary file
|
|
Binary file
|
package/cfamily.resolution.cell
CHANGED
|
Binary file
|
package/cfamily.rules.cell
CHANGED
|
Binary file
|
package/cfamily.running.cell
CHANGED
|
Binary file
|
package/cfamily.scanning.cell
CHANGED
|
Binary file
|
package/cfamily.scopes.cell
CHANGED
|
Binary file
|
package/cfamily.sequencing.cell
CHANGED
|
Binary file
|
package/cfamily.sessions.cell
CHANGED
|
Binary file
|
|
Binary file
|
package/cfamily.state.cell
CHANGED
|
Binary file
|
package/cfamily.statements.cell
CHANGED
|
Binary file
|
package/cfamily.statics.cell
CHANGED
|
Binary file
|
package/cfamily.summaries.cell
CHANGED
|
Binary file
|
package/cfamily.syntax.cell
CHANGED
|
Binary file
|
|
Binary file
|
package/cfamily.syntaxnodes.cell
CHANGED
|
Binary file
|
package/cfamily.syntaxtypes.cell
CHANGED
|
Binary file
|
package/cfamily.syntaxwalk.cell
CHANGED
|
Binary file
|
package/cfamily.tables.cell
CHANGED
|
Binary file
|
package/cfamily.typed.cell
CHANGED
|
Binary file
|
package/cfamily.typetext.cell
CHANGED
|
Binary file
|
package/cfamily.variables.cell
CHANGED
|
Binary file
|
package/index.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"cbfVersion":
|
|
3
|
-
"checkerHash": "
|
|
2
|
+
"cbfVersion": 35,
|
|
3
|
+
"checkerHash": "0b3103e70af9f0fa",
|
|
4
4
|
"defs": {
|
|
5
5
|
"__RecordTag_cfamily.Activation": {
|
|
6
6
|
"merkle": "3bc6d5e364c4e4a2b13666369e691a1d6fef6b59285da9c81740b3c5ebb59cc1",
|
|
@@ -12316,10 +12316,10 @@
|
|
|
12316
12316
|
}
|
|
12317
12317
|
},
|
|
12318
12318
|
"format": 1,
|
|
12319
|
-
"inputs": "
|
|
12319
|
+
"inputs": "d2bf61b403c66f48f1aa703ca58c3c61b4be5413ea43fd9beff92e21d4a4062b",
|
|
12320
12320
|
"modules": {
|
|
12321
12321
|
"cfamily": {
|
|
12322
|
-
"bytes":
|
|
12322
|
+
"bytes": 19703,
|
|
12323
12323
|
"deps": [
|
|
12324
12324
|
"cfamily",
|
|
12325
12325
|
"cfamily.integer",
|
|
@@ -12369,7 +12369,7 @@
|
|
|
12369
12369
|
]
|
|
12370
12370
|
},
|
|
12371
12371
|
"cfamily.arithmetic": {
|
|
12372
|
-
"bytes":
|
|
12372
|
+
"bytes": 397472,
|
|
12373
12373
|
"deps": [
|
|
12374
12374
|
"cfamily",
|
|
12375
12375
|
"cfamily.integer",
|
|
@@ -12383,7 +12383,7 @@
|
|
|
12383
12383
|
]
|
|
12384
12384
|
},
|
|
12385
12385
|
"cfamily.behavior": {
|
|
12386
|
-
"bytes":
|
|
12386
|
+
"bytes": 102075,
|
|
12387
12387
|
"deps": [
|
|
12388
12388
|
"cfamily",
|
|
12389
12389
|
"cfamily.integer",
|
|
@@ -12393,7 +12393,7 @@
|
|
|
12393
12393
|
]
|
|
12394
12394
|
},
|
|
12395
12395
|
"cfamily.clibrary": {
|
|
12396
|
-
"bytes":
|
|
12396
|
+
"bytes": 354560,
|
|
12397
12397
|
"deps": [
|
|
12398
12398
|
"cfamily",
|
|
12399
12399
|
"cfamily.integer",
|
|
@@ -12411,7 +12411,7 @@
|
|
|
12411
12411
|
]
|
|
12412
12412
|
},
|
|
12413
12413
|
"cfamily.conversion": {
|
|
12414
|
-
"bytes":
|
|
12414
|
+
"bytes": 369194,
|
|
12415
12415
|
"deps": [
|
|
12416
12416
|
"cfamily",
|
|
12417
12417
|
"cfamily.integer",
|
|
@@ -12435,7 +12435,7 @@
|
|
|
12435
12435
|
]
|
|
12436
12436
|
},
|
|
12437
12437
|
"cfamily.debugging": {
|
|
12438
|
-
"bytes":
|
|
12438
|
+
"bytes": 779570,
|
|
12439
12439
|
"deps": [
|
|
12440
12440
|
"cfamily",
|
|
12441
12441
|
"cfamily.integer",
|
|
@@ -12481,7 +12481,7 @@
|
|
|
12481
12481
|
]
|
|
12482
12482
|
},
|
|
12483
12483
|
"cfamily.encoding": {
|
|
12484
|
-
"bytes":
|
|
12484
|
+
"bytes": 51563,
|
|
12485
12485
|
"deps": [
|
|
12486
12486
|
"cfamily",
|
|
12487
12487
|
"cfamily.integer",
|
|
@@ -12508,7 +12508,7 @@
|
|
|
12508
12508
|
]
|
|
12509
12509
|
},
|
|
12510
12510
|
"cfamily.evaluation": {
|
|
12511
|
-
"bytes":
|
|
12511
|
+
"bytes": 481607,
|
|
12512
12512
|
"deps": [
|
|
12513
12513
|
"cfamily",
|
|
12514
12514
|
"cfamily.integer",
|
|
@@ -12545,7 +12545,7 @@
|
|
|
12545
12545
|
]
|
|
12546
12546
|
},
|
|
12547
12547
|
"cfamily.execution": {
|
|
12548
|
-
"bytes":
|
|
12548
|
+
"bytes": 805419,
|
|
12549
12549
|
"deps": [
|
|
12550
12550
|
"cfamily",
|
|
12551
12551
|
"cfamily.integer",
|
|
@@ -12588,7 +12588,7 @@
|
|
|
12588
12588
|
]
|
|
12589
12589
|
},
|
|
12590
12590
|
"cfamily.expressions": {
|
|
12591
|
-
"bytes":
|
|
12591
|
+
"bytes": 512436,
|
|
12592
12592
|
"deps": [
|
|
12593
12593
|
"cfamily",
|
|
12594
12594
|
"cfamily.integer",
|
|
@@ -12618,7 +12618,7 @@
|
|
|
12618
12618
|
]
|
|
12619
12619
|
},
|
|
12620
12620
|
"cfamily.files": {
|
|
12621
|
-
"bytes":
|
|
12621
|
+
"bytes": 378436,
|
|
12622
12622
|
"deps": [
|
|
12623
12623
|
"cfamily",
|
|
12624
12624
|
"cfamily.integer",
|
|
@@ -12658,7 +12658,7 @@
|
|
|
12658
12658
|
]
|
|
12659
12659
|
},
|
|
12660
12660
|
"cfamily.formatting": {
|
|
12661
|
-
"bytes":
|
|
12661
|
+
"bytes": 183986,
|
|
12662
12662
|
"deps": [
|
|
12663
12663
|
"cfamily",
|
|
12664
12664
|
"cfamily.integer",
|
|
@@ -12696,7 +12696,7 @@
|
|
|
12696
12696
|
]
|
|
12697
12697
|
},
|
|
12698
12698
|
"cfamily.generate": {
|
|
12699
|
-
"bytes":
|
|
12699
|
+
"bytes": 526725,
|
|
12700
12700
|
"deps": [
|
|
12701
12701
|
"cfamily",
|
|
12702
12702
|
"cfamily.integer",
|
|
@@ -12743,14 +12743,14 @@
|
|
|
12743
12743
|
]
|
|
12744
12744
|
},
|
|
12745
12745
|
"cfamily.integer": {
|
|
12746
|
-
"bytes":
|
|
12746
|
+
"bytes": 98754,
|
|
12747
12747
|
"deps": [
|
|
12748
12748
|
"cfamily",
|
|
12749
12749
|
"cfamily.integer"
|
|
12750
12750
|
]
|
|
12751
12751
|
},
|
|
12752
12752
|
"cfamily.layout": {
|
|
12753
|
-
"bytes":
|
|
12753
|
+
"bytes": 318956,
|
|
12754
12754
|
"deps": [
|
|
12755
12755
|
"cfamily",
|
|
12756
12756
|
"cfamily.integer",
|
|
@@ -12771,7 +12771,7 @@
|
|
|
12771
12771
|
]
|
|
12772
12772
|
},
|
|
12773
12773
|
"cfamily.lengths": {
|
|
12774
|
-
"bytes":
|
|
12774
|
+
"bytes": 482843,
|
|
12775
12775
|
"deps": [
|
|
12776
12776
|
"cfamily",
|
|
12777
12777
|
"cfamily.integer",
|
|
@@ -12803,7 +12803,7 @@
|
|
|
12803
12803
|
]
|
|
12804
12804
|
},
|
|
12805
12805
|
"cfamily.librarycode": {
|
|
12806
|
-
"bytes":
|
|
12806
|
+
"bytes": 365511,
|
|
12807
12807
|
"deps": [
|
|
12808
12808
|
"cfamily",
|
|
12809
12809
|
"cfamily.integer",
|
|
@@ -12837,7 +12837,7 @@
|
|
|
12837
12837
|
]
|
|
12838
12838
|
},
|
|
12839
12839
|
"cfamily.lifting": {
|
|
12840
|
-
"bytes":
|
|
12840
|
+
"bytes": 296653,
|
|
12841
12841
|
"deps": [
|
|
12842
12842
|
"cfamily",
|
|
12843
12843
|
"cfamily.integer",
|
|
@@ -12860,7 +12860,7 @@
|
|
|
12860
12860
|
]
|
|
12861
12861
|
},
|
|
12862
12862
|
"cfamily.literals": {
|
|
12863
|
-
"bytes":
|
|
12863
|
+
"bytes": 126012,
|
|
12864
12864
|
"deps": [
|
|
12865
12865
|
"cfamily",
|
|
12866
12866
|
"cfamily.integer",
|
|
@@ -12889,7 +12889,7 @@
|
|
|
12889
12889
|
]
|
|
12890
12890
|
},
|
|
12891
12891
|
"cfamily.memory": {
|
|
12892
|
-
"bytes":
|
|
12892
|
+
"bytes": 375796,
|
|
12893
12893
|
"deps": [
|
|
12894
12894
|
"cfamily",
|
|
12895
12895
|
"cfamily.integer",
|
|
@@ -12901,7 +12901,7 @@
|
|
|
12901
12901
|
]
|
|
12902
12902
|
},
|
|
12903
12903
|
"cfamily.orders": {
|
|
12904
|
-
"bytes":
|
|
12904
|
+
"bytes": 381019,
|
|
12905
12905
|
"deps": [
|
|
12906
12906
|
"cfamily",
|
|
12907
12907
|
"cfamily.integer",
|
|
@@ -12943,7 +12943,7 @@
|
|
|
12943
12943
|
]
|
|
12944
12944
|
},
|
|
12945
12945
|
"cfamily.program": {
|
|
12946
|
-
"bytes":
|
|
12946
|
+
"bytes": 682362,
|
|
12947
12947
|
"deps": [
|
|
12948
12948
|
"cfamily",
|
|
12949
12949
|
"cfamily.integer",
|
|
@@ -12979,7 +12979,7 @@
|
|
|
12979
12979
|
]
|
|
12980
12980
|
},
|
|
12981
12981
|
"cfamily.querying": {
|
|
12982
|
-
"bytes":
|
|
12982
|
+
"bytes": 655723,
|
|
12983
12983
|
"deps": [
|
|
12984
12984
|
"cfamily",
|
|
12985
12985
|
"cfamily.integer",
|
|
@@ -13027,7 +13027,7 @@
|
|
|
13027
13027
|
]
|
|
13028
13028
|
},
|
|
13029
13029
|
"cfamily.representation": {
|
|
13030
|
-
"bytes":
|
|
13030
|
+
"bytes": 399724,
|
|
13031
13031
|
"deps": [
|
|
13032
13032
|
"cfamily",
|
|
13033
13033
|
"cfamily.integer",
|
|
@@ -13071,7 +13071,7 @@
|
|
|
13071
13071
|
]
|
|
13072
13072
|
},
|
|
13073
13073
|
"cfamily.resolution": {
|
|
13074
|
-
"bytes":
|
|
13074
|
+
"bytes": 323870,
|
|
13075
13075
|
"deps": [
|
|
13076
13076
|
"cfamily",
|
|
13077
13077
|
"cfamily.integer",
|
|
@@ -13091,7 +13091,7 @@
|
|
|
13091
13091
|
]
|
|
13092
13092
|
},
|
|
13093
13093
|
"cfamily.rules": {
|
|
13094
|
-
"bytes":
|
|
13094
|
+
"bytes": 53540,
|
|
13095
13095
|
"deps": [
|
|
13096
13096
|
"cfamily",
|
|
13097
13097
|
"cfamily.integer",
|
|
@@ -13099,7 +13099,7 @@
|
|
|
13099
13099
|
]
|
|
13100
13100
|
},
|
|
13101
13101
|
"cfamily.running": {
|
|
13102
|
-
"bytes":
|
|
13102
|
+
"bytes": 775385,
|
|
13103
13103
|
"deps": [
|
|
13104
13104
|
"cfamily",
|
|
13105
13105
|
"cfamily.integer",
|
|
@@ -13144,7 +13144,7 @@
|
|
|
13144
13144
|
]
|
|
13145
13145
|
},
|
|
13146
13146
|
"cfamily.scanning": {
|
|
13147
|
-
"bytes":
|
|
13147
|
+
"bytes": 188950,
|
|
13148
13148
|
"deps": [
|
|
13149
13149
|
"cfamily",
|
|
13150
13150
|
"cfamily.integer",
|
|
@@ -13183,7 +13183,7 @@
|
|
|
13183
13183
|
]
|
|
13184
13184
|
},
|
|
13185
13185
|
"cfamily.scopes": {
|
|
13186
|
-
"bytes":
|
|
13186
|
+
"bytes": 360094,
|
|
13187
13187
|
"deps": [
|
|
13188
13188
|
"cfamily",
|
|
13189
13189
|
"cfamily.integer",
|
|
@@ -13218,7 +13218,7 @@
|
|
|
13218
13218
|
]
|
|
13219
13219
|
},
|
|
13220
13220
|
"cfamily.sequencing": {
|
|
13221
|
-
"bytes":
|
|
13221
|
+
"bytes": 303972,
|
|
13222
13222
|
"deps": [
|
|
13223
13223
|
"cfamily",
|
|
13224
13224
|
"cfamily.integer",
|
|
@@ -13240,7 +13240,7 @@
|
|
|
13240
13240
|
]
|
|
13241
13241
|
},
|
|
13242
13242
|
"cfamily.sessions": {
|
|
13243
|
-
"bytes":
|
|
13243
|
+
"bytes": 816733,
|
|
13244
13244
|
"deps": [
|
|
13245
13245
|
"cfamily",
|
|
13246
13246
|
"cfamily.integer",
|
|
@@ -13290,7 +13290,7 @@
|
|
|
13290
13290
|
]
|
|
13291
13291
|
},
|
|
13292
13292
|
"cfamily.standardlibrary": {
|
|
13293
|
-
"bytes":
|
|
13293
|
+
"bytes": 622528,
|
|
13294
13294
|
"deps": [
|
|
13295
13295
|
"cfamily",
|
|
13296
13296
|
"cfamily.integer",
|
|
@@ -13331,7 +13331,7 @@
|
|
|
13331
13331
|
]
|
|
13332
13332
|
},
|
|
13333
13333
|
"cfamily.state": {
|
|
13334
|
-
"bytes":
|
|
13334
|
+
"bytes": 363593,
|
|
13335
13335
|
"deps": [
|
|
13336
13336
|
"cfamily",
|
|
13337
13337
|
"cfamily.integer",
|
|
@@ -13344,7 +13344,7 @@
|
|
|
13344
13344
|
]
|
|
13345
13345
|
},
|
|
13346
13346
|
"cfamily.statements": {
|
|
13347
|
-
"bytes":
|
|
13347
|
+
"bytes": 637689,
|
|
13348
13348
|
"deps": [
|
|
13349
13349
|
"cfamily",
|
|
13350
13350
|
"cfamily.integer",
|
|
@@ -13377,7 +13377,7 @@
|
|
|
13377
13377
|
]
|
|
13378
13378
|
},
|
|
13379
13379
|
"cfamily.statics": {
|
|
13380
|
-
"bytes":
|
|
13380
|
+
"bytes": 286798,
|
|
13381
13381
|
"deps": [
|
|
13382
13382
|
"cfamily",
|
|
13383
13383
|
"cfamily.integer",
|
|
@@ -13408,7 +13408,7 @@
|
|
|
13408
13408
|
]
|
|
13409
13409
|
},
|
|
13410
13410
|
"cfamily.summaries": {
|
|
13411
|
-
"bytes":
|
|
13411
|
+
"bytes": 367169,
|
|
13412
13412
|
"deps": [
|
|
13413
13413
|
"cfamily",
|
|
13414
13414
|
"cfamily.integer",
|
|
@@ -13425,7 +13425,7 @@
|
|
|
13425
13425
|
]
|
|
13426
13426
|
},
|
|
13427
13427
|
"cfamily.syntax": {
|
|
13428
|
-
"bytes":
|
|
13428
|
+
"bytes": 647141,
|
|
13429
13429
|
"deps": [
|
|
13430
13430
|
"cfamily",
|
|
13431
13431
|
"cfamily.integer",
|
|
@@ -13434,7 +13434,7 @@
|
|
|
13434
13434
|
]
|
|
13435
13435
|
},
|
|
13436
13436
|
"cfamily.syntaxcollect": {
|
|
13437
|
-
"bytes":
|
|
13437
|
+
"bytes": 235396,
|
|
13438
13438
|
"deps": [
|
|
13439
13439
|
"cfamily",
|
|
13440
13440
|
"cfamily.integer",
|
|
@@ -13450,7 +13450,7 @@
|
|
|
13450
13450
|
]
|
|
13451
13451
|
},
|
|
13452
13452
|
"cfamily.syntaxnodes": {
|
|
13453
|
-
"bytes":
|
|
13453
|
+
"bytes": 296443,
|
|
13454
13454
|
"deps": [
|
|
13455
13455
|
"cfamily",
|
|
13456
13456
|
"cfamily.integer",
|
|
@@ -13475,7 +13475,7 @@
|
|
|
13475
13475
|
]
|
|
13476
13476
|
},
|
|
13477
13477
|
"cfamily.syntaxtypes": {
|
|
13478
|
-
"bytes":
|
|
13478
|
+
"bytes": 269181,
|
|
13479
13479
|
"deps": [
|
|
13480
13480
|
"cfamily",
|
|
13481
13481
|
"cfamily.integer",
|
|
@@ -13503,7 +13503,7 @@
|
|
|
13503
13503
|
]
|
|
13504
13504
|
},
|
|
13505
13505
|
"cfamily.syntaxwalk": {
|
|
13506
|
-
"bytes":
|
|
13506
|
+
"bytes": 226961,
|
|
13507
13507
|
"deps": [
|
|
13508
13508
|
"cfamily",
|
|
13509
13509
|
"cfamily.integer",
|
|
@@ -13529,7 +13529,7 @@
|
|
|
13529
13529
|
]
|
|
13530
13530
|
},
|
|
13531
13531
|
"cfamily.tables": {
|
|
13532
|
-
"bytes":
|
|
13532
|
+
"bytes": 313717,
|
|
13533
13533
|
"deps": [
|
|
13534
13534
|
"cfamily",
|
|
13535
13535
|
"cfamily.integer",
|
|
@@ -13544,7 +13544,7 @@
|
|
|
13544
13544
|
]
|
|
13545
13545
|
},
|
|
13546
13546
|
"cfamily.typed": {
|
|
13547
|
-
"bytes":
|
|
13547
|
+
"bytes": 307721,
|
|
13548
13548
|
"deps": [
|
|
13549
13549
|
"cfamily",
|
|
13550
13550
|
"cfamily.integer",
|
|
@@ -13555,7 +13555,7 @@
|
|
|
13555
13555
|
]
|
|
13556
13556
|
},
|
|
13557
13557
|
"cfamily.typetext": {
|
|
13558
|
-
"bytes":
|
|
13558
|
+
"bytes": 292630,
|
|
13559
13559
|
"deps": [
|
|
13560
13560
|
"cfamily",
|
|
13561
13561
|
"cfamily.integer",
|
|
@@ -13574,7 +13574,7 @@
|
|
|
13574
13574
|
]
|
|
13575
13575
|
},
|
|
13576
13576
|
"cfamily.variables": {
|
|
13577
|
-
"bytes":
|
|
13577
|
+
"bytes": 808420,
|
|
13578
13578
|
"deps": [
|
|
13579
13579
|
"cfamily",
|
|
13580
13580
|
"cfamily.integer",
|
|
@@ -13625,7 +13625,7 @@
|
|
|
13625
13625
|
},
|
|
13626
13626
|
"requires": {
|
|
13627
13627
|
"cella-lang": {
|
|
13628
|
-
"checkerHash": "
|
|
13628
|
+
"checkerHash": "0b3103e70af9f0fa",
|
|
13629
13629
|
"modules": [
|
|
13630
13630
|
"int",
|
|
13631
13631
|
"list",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cella-lang/cfamily",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.202611260445",
|
|
4
4
|
"description": "C11 and C++17 as a deep embedding for Cella Lang: a program is a data value (the JSON semorphe sends), with a type checker that reports errors at the offending node, a small-step semantics over a unified memory model, verdicts (accept, reject, unknown with the clause of the standard), a debugger host interface, and a printer back to source for differential testing against clang and gcc — compiled module pack.",
|
|
5
5
|
"files": [
|
|
6
6
|
"cfamily.arithmetic.cell",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"author": "SungYu Chang",
|
|
70
70
|
"homepage": "https://cella-lang.org/",
|
|
71
71
|
"peerDependencies": {
|
|
72
|
-
"cella-lang": "0.1.
|
|
73
|
-
"@cella-lang/machine": "0.1.
|
|
72
|
+
"cella-lang": "0.1.202611260344",
|
|
73
|
+
"@cella-lang/machine": "0.1.202611260445"
|
|
74
74
|
},
|
|
75
75
|
"cella": {
|
|
76
|
-
"checkerHash": "
|
|
77
|
-
"cbfVersion":
|
|
76
|
+
"checkerHash": "0b3103e70af9f0fa",
|
|
77
|
+
"cbfVersion": 35,
|
|
78
78
|
"modules": [
|
|
79
79
|
"cfamily"
|
|
80
80
|
],
|
|
81
|
-
"packHash": "
|
|
81
|
+
"packHash": "cdb501ef3eea4b19"
|
|
82
82
|
}
|
|
83
83
|
}
|
package/verdict-kinds.json
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"description": "The kinds of the problems a verdict of this package can have:
|
|
2
|
+
"description": "The kinds of the problems a verdict of this package can have: for each, its meaning (a sentence for a person), its category (one of error, unsupported, indeterminate, termination, incomplete, invalid), whether it is structured (its params are the details a host reads; the reason is made from them), and the params of a structured one (values are strings, integers in decimal, or booleans; an optional one may be absent).",
|
|
3
3
|
"kinds": {
|
|
4
4
|
"abort": {
|
|
5
|
+
"meaning": "The program called abort (or std::abort) and ended there, as the standard defines.",
|
|
6
|
+
"category": "termination",
|
|
5
7
|
"structured": false
|
|
6
8
|
},
|
|
7
9
|
"assumed": {
|
|
10
|
+
"meaning": "The result depends on a choice the standard leaves to the implementation; the checker made it as the listed implementation does.",
|
|
11
|
+
"category": "indeterminate",
|
|
8
12
|
"structured": false
|
|
9
13
|
},
|
|
10
14
|
"callArguments": {
|
|
15
|
+
"meaning": "A call whose arguments do not fit the function: too few, too many, or no overload accepts them.",
|
|
16
|
+
"category": "error",
|
|
11
17
|
"structured": true,
|
|
12
18
|
"params": {
|
|
13
19
|
"name": {
|
|
@@ -42,6 +48,8 @@
|
|
|
42
48
|
}
|
|
43
49
|
},
|
|
44
50
|
"fuel": {
|
|
51
|
+
"meaning": "The run reached the checker's step limit before the program finished, so its result is not known.",
|
|
52
|
+
"category": "indeterminate",
|
|
45
53
|
"structured": true,
|
|
46
54
|
"params": {
|
|
47
55
|
"steps": {
|
|
@@ -51,12 +59,18 @@
|
|
|
51
59
|
}
|
|
52
60
|
},
|
|
53
61
|
"hole": {
|
|
62
|
+
"meaning": "The program has an empty slot that still has to be filled in.",
|
|
63
|
+
"category": "incomplete",
|
|
54
64
|
"structured": false
|
|
55
65
|
},
|
|
56
66
|
"json": {
|
|
67
|
+
"meaning": "The input is not a valid program in the JSON form the package reads.",
|
|
68
|
+
"category": "invalid",
|
|
57
69
|
"structured": false
|
|
58
70
|
},
|
|
59
71
|
"noConversion": {
|
|
72
|
+
"meaning": "A value is used where another type is needed and there is no conversion between the two types.",
|
|
73
|
+
"category": "error",
|
|
60
74
|
"structured": true,
|
|
61
75
|
"params": {
|
|
62
76
|
"from": {
|
|
@@ -90,6 +104,8 @@
|
|
|
90
104
|
}
|
|
91
105
|
},
|
|
92
106
|
"notAssignable": {
|
|
107
|
+
"meaning": "An assignment to something that cannot be assigned: a const object, a temporary value, an array, a function, or an object whose copy assignment is deleted.",
|
|
108
|
+
"category": "error",
|
|
93
109
|
"structured": true,
|
|
94
110
|
"params": {
|
|
95
111
|
"what": {
|
|
@@ -109,6 +125,8 @@
|
|
|
109
125
|
}
|
|
110
126
|
},
|
|
111
127
|
"operandTypes": {
|
|
128
|
+
"meaning": "An operator used with operands of types it does not accept.",
|
|
129
|
+
"category": "error",
|
|
112
130
|
"structured": true,
|
|
113
131
|
"params": {
|
|
114
132
|
"operator": {
|
|
@@ -130,6 +148,8 @@
|
|
|
130
148
|
}
|
|
131
149
|
},
|
|
132
150
|
"orderUncompared": {
|
|
151
|
+
"meaning": "Calls in an unspecified order whose effects could conflict, which the checker could not compare in both orders.",
|
|
152
|
+
"category": "indeterminate",
|
|
133
153
|
"structured": true,
|
|
134
154
|
"params": {
|
|
135
155
|
"why": {
|
|
@@ -142,6 +162,8 @@
|
|
|
142
162
|
}
|
|
143
163
|
},
|
|
144
164
|
"redeclared": {
|
|
165
|
+
"meaning": "A name declared again in the same scope in a way the language does not allow.",
|
|
166
|
+
"category": "error",
|
|
145
167
|
"structured": true,
|
|
146
168
|
"params": {
|
|
147
169
|
"name": {
|
|
@@ -162,12 +184,18 @@
|
|
|
162
184
|
}
|
|
163
185
|
},
|
|
164
186
|
"reject": {
|
|
187
|
+
"meaning": "The program does not pass the language's checks (a compile error).",
|
|
188
|
+
"category": "error",
|
|
165
189
|
"structured": false
|
|
166
190
|
},
|
|
167
191
|
"resource": {
|
|
192
|
+
"meaning": "The program needs more than the checker's model keeps (a limit of the checker, not an error in the program).",
|
|
193
|
+
"category": "indeterminate",
|
|
168
194
|
"structured": false
|
|
169
195
|
},
|
|
170
196
|
"returnValue": {
|
|
197
|
+
"meaning": "A return statement without a value in a function that returns one, or with a value in a function that returns none.",
|
|
198
|
+
"category": "error",
|
|
171
199
|
"structured": true,
|
|
172
200
|
"params": {
|
|
173
201
|
"what": {
|
|
@@ -180,15 +208,23 @@
|
|
|
180
208
|
}
|
|
181
209
|
},
|
|
182
210
|
"ubAlias": {
|
|
211
|
+
"meaning": "Undefined behavior: an object accessed through a type its effective type does not allow.",
|
|
212
|
+
"category": "error",
|
|
183
213
|
"structured": false
|
|
184
214
|
},
|
|
185
215
|
"ubAlign": {
|
|
216
|
+
"meaning": "Undefined behavior: a pointer converted to one not aligned for the type it points to.",
|
|
217
|
+
"category": "error",
|
|
186
218
|
"structured": false
|
|
187
219
|
},
|
|
188
220
|
"ubAlignUnknown": {
|
|
221
|
+
"meaning": "Whether a converted pointer is aligned depends on the implementation, so the result is not known.",
|
|
222
|
+
"category": "indeterminate",
|
|
189
223
|
"structured": false
|
|
190
224
|
},
|
|
191
225
|
"ubBounds": {
|
|
226
|
+
"meaning": "Undefined behavior: a pointer moved outside the array it points into.",
|
|
227
|
+
"category": "error",
|
|
192
228
|
"structured": true,
|
|
193
229
|
"params": {
|
|
194
230
|
"index": {
|
|
@@ -202,15 +238,23 @@
|
|
|
202
238
|
}
|
|
203
239
|
},
|
|
204
240
|
"ubConstWrite": {
|
|
241
|
+
"meaning": "Undefined behavior: modifying an object defined const.",
|
|
242
|
+
"category": "error",
|
|
205
243
|
"structured": false
|
|
206
244
|
},
|
|
207
245
|
"ubDangling": {
|
|
246
|
+
"meaning": "Undefined behavior: using an object after its lifetime ended.",
|
|
247
|
+
"category": "error",
|
|
208
248
|
"structured": false
|
|
209
249
|
},
|
|
210
250
|
"ubDivOverflow": {
|
|
251
|
+
"meaning": "Undefined behavior: a division whose result does not fit its type (the smallest value divided by -1).",
|
|
252
|
+
"category": "error",
|
|
211
253
|
"structured": false
|
|
212
254
|
},
|
|
213
255
|
"ubDivZero": {
|
|
256
|
+
"meaning": "Undefined behavior: an integer division or remainder by zero.",
|
|
257
|
+
"category": "error",
|
|
214
258
|
"structured": true,
|
|
215
259
|
"params": {
|
|
216
260
|
"op": {
|
|
@@ -223,42 +267,68 @@
|
|
|
223
267
|
}
|
|
224
268
|
},
|
|
225
269
|
"ubElide": {
|
|
270
|
+
"meaning": "The output depends on whether a copy is elided, which the standard permits but does not require.",
|
|
271
|
+
"category": "indeterminate",
|
|
226
272
|
"structured": false
|
|
227
273
|
},
|
|
228
274
|
"ubFile": {
|
|
275
|
+
"meaning": "Undefined behavior: a file used after it was closed.",
|
|
276
|
+
"category": "error",
|
|
229
277
|
"structured": false
|
|
230
278
|
},
|
|
231
279
|
"ubFileMode": {
|
|
280
|
+
"meaning": "A stream used in a way it was not opened for (or with a mode the model does not have), so the result is not known.",
|
|
281
|
+
"category": "indeterminate",
|
|
232
282
|
"structured": false
|
|
233
283
|
},
|
|
234
284
|
"ubFloatCast": {
|
|
285
|
+
"meaning": "Undefined behavior: a floating value converted to an integer type it does not fit in.",
|
|
286
|
+
"category": "error",
|
|
235
287
|
"structured": false
|
|
236
288
|
},
|
|
237
289
|
"ubFloatCastC": {
|
|
290
|
+
"meaning": "A floating value converted to an integer type it does not fit in, which gives an unspecified value.",
|
|
291
|
+
"category": "indeterminate",
|
|
238
292
|
"structured": false
|
|
239
293
|
},
|
|
240
294
|
"ubFloatDivZero": {
|
|
295
|
+
"meaning": "Undefined behavior in C++: a floating-point division by zero.",
|
|
296
|
+
"category": "error",
|
|
241
297
|
"structured": false
|
|
242
298
|
},
|
|
243
299
|
"ubFlowOffEnd": {
|
|
300
|
+
"meaning": "Undefined behavior: a function that returns a value reached its end without a return.",
|
|
301
|
+
"category": "error",
|
|
244
302
|
"structured": false
|
|
245
303
|
},
|
|
246
304
|
"ubFree": {
|
|
305
|
+
"meaning": "Undefined behavior: freeing a pointer that was not allocated, or freeing it twice.",
|
|
306
|
+
"category": "error",
|
|
247
307
|
"structured": false
|
|
248
308
|
},
|
|
249
309
|
"ubIntegerAddress": {
|
|
310
|
+
"meaning": "Using an address made from an integer, whose meaning depends on the implementation.",
|
|
311
|
+
"category": "indeterminate",
|
|
250
312
|
"structured": false
|
|
251
313
|
},
|
|
252
314
|
"ubLib": {
|
|
315
|
+
"meaning": "Undefined behavior: a library function given an argument it does not allow.",
|
|
316
|
+
"category": "error",
|
|
253
317
|
"structured": false
|
|
254
318
|
},
|
|
255
319
|
"ubLitWrite": {
|
|
320
|
+
"meaning": "Undefined behavior: writing to a string literal.",
|
|
321
|
+
"category": "error",
|
|
256
322
|
"structured": false
|
|
257
323
|
},
|
|
258
324
|
"ubNull": {
|
|
325
|
+
"meaning": "Undefined behavior: dereferencing a null pointer.",
|
|
326
|
+
"category": "error",
|
|
259
327
|
"structured": false
|
|
260
328
|
},
|
|
261
329
|
"ubOrder": {
|
|
330
|
+
"meaning": "Calls in an unspecified order whose two orders give different results.",
|
|
331
|
+
"category": "indeterminate",
|
|
262
332
|
"structured": true,
|
|
263
333
|
"params": {
|
|
264
334
|
"difference": {
|
|
@@ -280,6 +350,8 @@
|
|
|
280
350
|
}
|
|
281
351
|
},
|
|
282
352
|
"ubOverflow": {
|
|
353
|
+
"meaning": "Undefined behavior: a signed integer operation whose result does not fit its type.",
|
|
354
|
+
"category": "error",
|
|
283
355
|
"structured": true,
|
|
284
356
|
"params": {
|
|
285
357
|
"type": {
|
|
@@ -305,9 +377,13 @@
|
|
|
305
377
|
}
|
|
306
378
|
},
|
|
307
379
|
"ubOverlap": {
|
|
380
|
+
"meaning": "Undefined behavior: a value assigned from an object that overlaps the one written.",
|
|
381
|
+
"category": "error",
|
|
308
382
|
"structured": false
|
|
309
383
|
},
|
|
310
384
|
"ubPastEnd": {
|
|
385
|
+
"meaning": "Undefined behavior: dereferencing a pointer past the end of an array.",
|
|
386
|
+
"category": "error",
|
|
311
387
|
"structured": true,
|
|
312
388
|
"params": {
|
|
313
389
|
"index": {
|
|
@@ -319,63 +395,103 @@
|
|
|
319
395
|
}
|
|
320
396
|
},
|
|
321
397
|
"ubPin": {
|
|
398
|
+
"meaning": "A pin number the board does not have.",
|
|
399
|
+
"category": "error",
|
|
322
400
|
"structured": false
|
|
323
401
|
},
|
|
324
402
|
"ubPointerAddress": {
|
|
403
|
+
"meaning": "A pointer converted to an integer, whose value depends on the implementation.",
|
|
404
|
+
"category": "indeterminate",
|
|
325
405
|
"structured": false
|
|
326
406
|
},
|
|
327
407
|
"ubPrintf": {
|
|
408
|
+
"meaning": "Undefined behavior: a printf argument that does not match its conversion.",
|
|
409
|
+
"category": "error",
|
|
328
410
|
"structured": false
|
|
329
411
|
},
|
|
330
412
|
"ubPtrCmp": {
|
|
413
|
+
"meaning": "Undefined behavior: comparing pointers into different arrays.",
|
|
414
|
+
"category": "error",
|
|
331
415
|
"structured": false
|
|
332
416
|
},
|
|
333
417
|
"ubPtrDiff": {
|
|
418
|
+
"meaning": "Undefined behavior: subtracting pointers into different arrays.",
|
|
419
|
+
"category": "error",
|
|
334
420
|
"structured": false
|
|
335
421
|
},
|
|
336
422
|
"ubPtrOrder": {
|
|
423
|
+
"meaning": "Ordering pointers to different objects, whose result is unspecified.",
|
|
424
|
+
"category": "indeterminate",
|
|
337
425
|
"structured": false
|
|
338
426
|
},
|
|
339
427
|
"ubPureCall": {
|
|
428
|
+
"meaning": "Undefined behavior: a pure virtual function called.",
|
|
429
|
+
"category": "error",
|
|
340
430
|
"structured": false
|
|
341
431
|
},
|
|
342
432
|
"ubRealloc": {
|
|
433
|
+
"meaning": "Undefined behavior: realloc of a pointer that was not allocated.",
|
|
434
|
+
"category": "error",
|
|
343
435
|
"structured": false
|
|
344
436
|
},
|
|
345
437
|
"ubReallocZero": {
|
|
438
|
+
"meaning": "realloc of size zero, whose result depends on the implementation.",
|
|
439
|
+
"category": "indeterminate",
|
|
346
440
|
"structured": false
|
|
347
441
|
},
|
|
348
442
|
"ubRepresentation": {
|
|
443
|
+
"meaning": "Reading the bytes of an object that is not a character, whose order and values depend on the implementation.",
|
|
444
|
+
"category": "indeterminate",
|
|
349
445
|
"structured": false
|
|
350
446
|
},
|
|
351
447
|
"ubScanf": {
|
|
448
|
+
"meaning": "Undefined behavior: a scanf argument that does not match its conversion.",
|
|
449
|
+
"category": "error",
|
|
352
450
|
"structured": false
|
|
353
451
|
},
|
|
354
452
|
"ubShift": {
|
|
453
|
+
"meaning": "Undefined behavior: a shift by a negative amount or by at least the width of the type.",
|
|
454
|
+
"category": "error",
|
|
355
455
|
"structured": false
|
|
356
456
|
},
|
|
357
457
|
"ubStdHeader": {
|
|
458
|
+
"meaning": "A name that std may also declare through headers included indirectly, which depends on the implementation.",
|
|
459
|
+
"category": "indeterminate",
|
|
358
460
|
"structured": false
|
|
359
461
|
},
|
|
360
462
|
"ubTypeName": {
|
|
463
|
+
"meaning": "Output that depends on the string from type_info::name(), which the implementation defines.",
|
|
464
|
+
"category": "indeterminate",
|
|
361
465
|
"structured": false
|
|
362
466
|
},
|
|
363
467
|
"ubUninit": {
|
|
468
|
+
"meaning": "Undefined behavior: reading a value that was never set.",
|
|
469
|
+
"category": "error",
|
|
364
470
|
"structured": false
|
|
365
471
|
},
|
|
366
472
|
"ubUnseq": {
|
|
473
|
+
"meaning": "Undefined behavior: an object modified twice, or modified and read, with no order between them.",
|
|
474
|
+
"category": "error",
|
|
367
475
|
"structured": false
|
|
368
476
|
},
|
|
369
477
|
"ubUnwind": {
|
|
478
|
+
"meaning": "Output that depends on whether the stack is unwound before std::terminate, which the implementation defines.",
|
|
479
|
+
"category": "indeterminate",
|
|
370
480
|
"structured": false
|
|
371
481
|
},
|
|
372
482
|
"ubVlaSize": {
|
|
483
|
+
"meaning": "Undefined behavior: a variable length array whose size is not positive.",
|
|
484
|
+
"category": "error",
|
|
373
485
|
"structured": false
|
|
374
486
|
},
|
|
375
487
|
"uncaught": {
|
|
488
|
+
"meaning": "An exception no handler caught, so the program ended through std::terminate.",
|
|
489
|
+
"category": "termination",
|
|
376
490
|
"structured": false
|
|
377
491
|
},
|
|
378
492
|
"undeclared": {
|
|
493
|
+
"meaning": "A name used that is not declared.",
|
|
494
|
+
"category": "error",
|
|
379
495
|
"structured": true,
|
|
380
496
|
"params": {
|
|
381
497
|
"name": {
|
|
@@ -396,9 +512,13 @@
|
|
|
396
512
|
}
|
|
397
513
|
},
|
|
398
514
|
"undetermined": {
|
|
515
|
+
"meaning": "The result depends on something the checker does not determine.",
|
|
516
|
+
"category": "indeterminate",
|
|
399
517
|
"structured": false
|
|
400
518
|
},
|
|
401
519
|
"unsupported": {
|
|
520
|
+
"meaning": "The program uses a construct the model does not have yet (the program may be valid).",
|
|
521
|
+
"category": "unsupported",
|
|
402
522
|
"structured": false
|
|
403
523
|
}
|
|
404
524
|
}
|