Gastón Zanitti
0d9669e26c
SourceRef in expressions ( #1357 )
...
This PR solves issue https://github.com/powdr-labs/powdr/issues/1293 .
Includes PRs that modify some Expression in order to match fields. It is
recommended to review/merge those first:
- #1351
- #1352
- #1353
- #1354
- #1355
All comments are welcome :)
---------
Co-authored-by: chriseth <chris@ethereum.org >
2024-05-26 16:52:07 +00:00
Leo
34d04ed873
move internal dependencies to shared version ( #1379 )
...
Trying this out which will make releases much easier
2024-05-15 10:46:34 +00:00
Amin Latifi
9472671b9b
Reduce Number of Expression Parentheses ( #1289 )
...
Adds binary operation precedence support to avoid unnecessary
parentheses in expression printed format
- #962
---------
Co-authored-by: chriseth <chris@ethereum.org >
2024-05-09 07:33:26 +00:00
chriseth
62c3eadc4c
Re-enable non-inlined format args ( #1362 )
...
Fixes https://github.com/powdr-labs/powdr/issues/1360
2024-05-08 16:27:22 +00:00
Leandro Pacheco
cea207ff3f
Machine properties using with syntax ( #1267 )
...
This implements issue #1251 .
Basically `machine Foo(a,b) { ... }` is now `machine Foo with latch: a,
operation_id: b { ... }`
2024-04-25 16:02:01 +00:00
chriseth
989087634c
Some dependency cleanup. ( #1209 )
2024-03-28 12:23:35 +00:00
Georg Wiese
80fafbe19c
Spell-check
2024-03-20 16:12:55 +01:00
Leandro Pacheco
edaf536500
Allow machines to be linked via permutation
...
by instructions and links using `~` instead of `=`.
Block machines must declare `call_selectors`.
2024-03-20 08:17:21 -03:00
Leo Alt
efe11f40fc
enum declarations
2024-03-18 22:09:44 +01:00
Leandro Pacheco
ff8fda1563
Expressions in instr/link params
...
allow for `link` and RHS of `instr` params to use full on expressions
2024-03-18 14:04:08 -03:00
chriseth
349f9aa461
Parse numbers as integers.
2024-03-08 15:48:49 +01:00
Lucas Clemente Vella
08ace88416
Nightly fix: ignoring env_logger on cargo udeps.
...
cargo udeps doesn't undertand why env_logger is needed on development
dependencies
2024-03-05 18:54:10 +00:00
Leandro Pacheco
f3e1802787
move link params to RHS and simplify the code
...
- added more checks for pc machines / constrained machines
- improve example and docs
2024-03-04 09:55:37 -03:00
Georg Wiese
39ab430595
For block machines, don't generate constraints on operation ID
2024-02-27 09:09:28 +01:00
Leo Alt
96cdbcdc3f
disable diff monitor trace
2024-02-26 11:40:28 +01:00
Leandro Pacheco
2e1a8571a7
instr param mapping
...
allow RHS of `instr` declarations to control the usage of write and assignment
registers.
2024-02-14 13:31:19 -03:00
chriseth
8f6cd49969
Introduce identity operator.
2024-02-07 16:04:55 +01:00
Leandro Pacheco
36c3a78fe7
move LinkDeclaration SourceRef to enum (like other variants)
2024-02-06 10:13:11 -03:00
Lucas Clemente Vella
df14ab8be0
Merge pull request #1015 from powdr-labs/lazy_parsers
...
Lazy parsers
2024-02-06 12:03:21 +00:00
Leandro Pacheco
39c5c62028
AST parsing and impl Display fixes
...
- `instr x = y` statements must end with semicolon
- fixed Display implementation for AST objects such that
source->AST->source->AST works properly
- tests for the above
2024-02-05 18:40:00 -03:00
chriseth
ec75819cc0
Re-use parsers.
2024-02-05 17:16:45 +01:00
Leo Alt
3daf9d90be
add package info
2024-01-29 18:35:32 +01:00
Leo Alt
607c0043d7
add powdr- prefix to all crates
2024-01-23 18:51:29 +01:00
Leandro Pacheco
c4b4f35771
make parser generate SourceRefs
...
also added a way for analyzing PILFile's directly without having to re-parse
from a string
2024-01-23 08:45:47 -03:00
chriseth
aee0846add
Adjust paths.
2024-01-22 11:53:11 +01:00
chriseth
00dc038259
Move type check crate into analysis.
2024-01-22 11:29:51 +01:00
chriseth
252eaa070c
Support pil at module level.
2024-01-15 10:03:38 +01:00
Leo Alt
9990b1c59d
remove leftover cargo comments
2024-01-10 13:20:43 +01:00
chriseth
1404e89063
Rename artifacts and document a bit more.
2024-01-03 19:38:49 +01:00
chriseth
7002712a49
Proper name resolution in PIL.
2024-01-02 09:31:21 +01:00
chriseth
9da882c99f
Merge pull request #830 from powdr-labs/clean_up_paths
...
Clean up paths
2023-12-19 16:43:10 +00:00
chriseth
46c1d83805
Formatting of machines inside modules.
2023-12-19 17:07:02 +01:00
chriseth
3691be7aff
Some cleanup for SymbolPaths.
2023-12-19 16:54:39 +01:00
chriseth
381de8f3bf
Merge pull request #854 from powdr-labs/fix_public_parsing
...
Fix public parsing and labels.
2023-12-19 15:40:10 +00:00
chriseth
bef7d80c70
Change labels to require just a single colon.
2023-12-19 14:07:21 +01:00
chriseth
6d75e5300f
Run importer and resolver in tests.
2023-12-18 21:09:41 +01:00
Georg Wiese
54045fbcf7
Pipeline
2023-12-07 22:12:29 +01:00
chriseth
9946b863b4
Remove macros.
2023-11-28 15:57:29 +01:00
Leo
912cab8fa3
Merge pull request #759 from powdr-labs/arbitrary_function_calls
...
Allow arbitrary expressions to be function-called.
2023-11-27 14:45:22 +00:00
chriseth
47f71cd1a9
Allow arbitrary expressions to be function-called.
2023-11-27 15:07:40 +01:00
chriseth
86cf0df559
Replace Mapping enum alternative by Expression.
2023-11-24 17:57:41 +01:00
Lucas Clemente Vella
cd4449e65f
RISCV executor
2023-11-24 11:42:35 +01:00
chriseth
e4c836c84a
Omit prover query for register if free input is not used.
2023-11-21 16:34:16 +01:00
chriseth
7fc93cc61e
Transform references in query strings.
2023-11-21 16:34:16 +01:00
chriseth
99ea18a17a
Allow namespaced names to be function-called.
2023-11-16 14:57:00 +01:00
chriseth
861e2c0bd9
Fix macro processing.
2023-11-15 16:55:46 +01:00
chriseth
d3de79ab98
Parse arbitrary expressions at pil statement level.
2023-11-15 16:55:46 +01:00
chriseth
e4d22a2fb9
Make index access a proper operation.
2023-11-02 17:47:52 +01:00
chriseth
7630446948
Parse next as operator.
2023-11-02 10:59:22 +01:00
schaeff
f71cd82d49
allow ommiting latch if no operations and operation_id if <= 1 operations
2023-10-22 09:32:37 +02:00