Commit 2931e58
Event-B and general improvements (#21)
* Add support for :sequence in eventb dsl
* make sure that implicit sequential substitutions are not ignored in eventb translation
* fix specter transform not recursing deeper into expression after finding match
* add support for sequences in eventb translation
* undo lambda change in i2eventb2
* update specter paths for IR to support Tuple
* do not return tags when visiting IR
this fixes transforming tags with specter when tag is named the same as a variable/definition
* add support for let-preds/exprs
* fix let-sub translation
* in progress: if in expressions/predicates
* implement tail
* allow multiple args for functions in eventb
* fix bug with previous commit
* reformat i2eventb
* improve specter Tuple nav
* do not quote sets in lisb ir
* implement if in expressions for eventb
still WIP
* revert previous commit regarding sets and add comment explaining why
* cleanup
* use to-vec for all ::ids fields in lisb2ir
* update rest of b2eventb code
* simplify if-expr translation and fix let replacement being run to late
* add brackets around lambda expressions
* add new identifier for if-expr generated code
* implement eventb prj1/prj2
* add eventb-prj docs
* fix eventb printing by adding parentheses around all exprs
* add more spaces and brackets around exprs in eventb print
* use a different translation for seq(S)
* Wrap injector craetion in delay to not install/start probcli when not required
* update deps
* update deps
* update deps
* update deps
* set main component of eventb model if not already done
---------
Co-authored-by: Philipp Körner <p.koerner@hhu.de>1 parent 62fd6d5 commit 2931e58
23 files changed
Lines changed: 783 additions & 349 deletions
File tree
- .clj-kondo/lisb/translation
- eventb
- doc
- src/lisb
- examples
- prob
- translation
- eventb
- test/lisb/translation
- eventb
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
135 | 137 | | |
136 | 138 | | |
137 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
| |||
638 | 642 | | |
639 | 643 | | |
640 | 644 | | |
| 645 | + | |
| 646 | + | |
641 | 647 | | |
642 | 648 | | |
643 | | - | |
644 | 649 | | |
645 | 650 | | |
646 | 651 | | |
| |||
683 | 688 | | |
684 | 689 | | |
685 | 690 | | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
686 | 695 | | |
687 | 696 | | |
688 | 697 | | |
| |||
0 commit comments