Commit graph

35 commits

Author SHA1 Message Date
Leonardo de Moura
c30e9ca551 chore: add TypeContext.lean file 2019-10-21 10:51:55 -07:00
Leonardo de Moura
d18305297d feat: add Expr.getAppRevArgs 2019-10-21 10:49:01 -07:00
Leonardo de Moura
447482e489 refactor: use Array instead of List at mkApp and getAppArgs
Preparation for new unifier.

@dselsam: I had to make minor changes at `Synth.Lean`, and add messy
code to `Context.lean`. `Context.lean` will be deleted in the future.
So, it is not a big deal.
2019-10-21 09:12:36 -07:00
Daniel Selsam
8c8d47562d perf: do not recompute anormSubgoal 2019-10-19 18:07:37 -07:00
Daniel Selsam
c45547a14c perf: check for mvar in uAlphaNormalizeCore 2019-10-19 18:07:37 -07:00
Daniel Selsam
7e19b5999a perf: check for MVar in eAlphaNormalizeCore 2019-10-19 18:07:37 -07:00
Sebastian Ullrich
ba8b3a1733 feat: allow ':' as search path operator on Windows
This reimplements 704e203.
2019-10-19 18:03:55 -07:00
Leonardo de Moura
7a11f3b0a9 test: add getCtorLayout test 2019-10-11 15:11:24 -07:00
Leonardo de Moura
7adf00666b feat: expose getCtorLayout 2019-10-11 14:34:30 -07:00
Leonardo de Moura
e5a55e16cf chore: rename files 2019-10-11 11:19:58 -07:00
Leonardo de Moura
604cb3dd81 feat: check struct/union projs 2019-10-11 11:13:44 -07:00
Leonardo de Moura
97373b5a20 feat: add struct/union constructors to IRType 2019-10-11 10:57:36 -07:00
Leonardo de Moura
dd69b3b46e feat: remove unnecessary normalizeIds steps 2019-10-09 15:24:07 -07:00
Leonardo de Moura
2b3218d35a fix: ensure expandResetReuse does not produce decl with duplicate indices 2019-10-09 15:18:01 -07:00
Leonardo de Moura
04c0c0c159 feat: ensure duplicate indices are not used 2019-10-09 15:02:43 -07:00
Leonardo de Moura
8ec03b09ec fix: make sure maxIndex takes into account dead variables too 2019-10-09 14:55:48 -07:00
Leonardo de Moura
b44e27c91c refactor: ensure pushProj does not reuse variable ids 2019-10-09 14:55:39 -07:00
Leonardo de Moura
d1ca45d83a chore: use #[] instead of Array.empty 2019-10-08 16:23:06 -07:00
Leonardo de Moura
bfe4f5e7d3 chore: style 2019-10-08 15:21:42 -07:00
Daniel Selsam
c1bd666bc2 feat: stack wrapper around array 2019-10-08 14:32:50 -07:00
Daniel Selsam
f3526ca18f fix: handle no instances for a typeclass goal 2019-10-08 14:32:50 -07:00
Leonardo de Moura
8207e05b0a chore: style 2019-10-08 14:32:10 -07:00
Leonardo de Moura
d52558bf35 chore: update stage0 2019-10-07 15:48:13 -07:00
Leonardo de Moura
5f035af4f5 feat: add array literal notation to new parser 2019-10-07 15:46:45 -07:00
Leonardo de Moura
d345ec9774 feat: enforce one file per import in the new parser 2019-10-07 15:44:26 -07:00
Leonardo de Moura
0bc41efc7a chore: use new array notation #[...] 2019-10-07 15:41:34 -07:00
Leonardo de Moura
4e13904d6b chore: remove unnecessary function 2019-10-07 14:27:23 -07:00
Leonardo de Moura
daf9d219d3 fix: must reset assignments before each iteration
Reason: the join points cached values are incorrect since they were
computed using the previous values for `funVals`.
2019-10-07 14:25:45 -07:00
Leonardo de Moura
c81ab9759f feat: add elimDeadBranches 2019-10-07 13:59:00 -07:00
Leonardo de Moura
f8bf68a9af chore: invoke inferCtorSummaries from IR compiler 2019-10-07 13:10:54 -07:00
Leonardo de Moura
3f62957c8f feat: add widening operator 2019-10-07 13:05:43 -07:00
Leonardo de Moura
4e53cc0bfa fix: bugs at infer 2019-10-07 10:52:17 -07:00
Leonardo de Moura
0714716477 fix: file and import names, tests and stage0
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2019-10-04 17:04:02 -07:00
Leonardo de Moura
a2abbdbf9a chore: fix imports using script
This is just a draft.
```
for f in `find . -name '*.lean'`; do echo $f; gsed "/^import/s/\b\(.\)/\u\1/g" $f > tmp; gsed "/^Import/s/Import/import/g" tmp > $f; done
```
2019-10-04 14:34:58 -07:00
Leonardo de Moura
de4d3152f1 chore: use CamelCase to name files and directories 2019-10-04 14:23:08 -07:00