History log of /seL4-camkes-master/tools/cogent/cogent/src/Cogent/Desugar.hs
Revision Date Author Comments
# 9708370d 09-Oct-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix case on Bool type

[skip bamboo]


# 118a4134 01-Oct-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: rework parts of Dargent's typehecking

[skip bamboo]


# e57b48f8 03-Jul-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: partly revert 64c25e67f49

... as it breaks recursive types.
Now cogent-c type corres table needs to be reworked for Dargent.


# 5130e33d 22-Jun-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: add support for ghc-8.8+


# 83c926ce 17-Apr-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix desugar bug due to c68ff1

[skip lemma]

TODO: fix other potential bugs in field non-reordering


# 3fb954ad 08-Apr-2020 vjackson725 <vjackson725@users.noreply.github.com>

compiler: fix mismatched ordering causing proof failures


# 7403f26d 08-Apr-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix merge breakge

[skip lemma]


# 20ec7dee 24-Feb-2020 Emmet Murray <e.minor.murray@gmail.com>

compiler: Fix various recursive types bugs, fix common library, fix anti C


# 009a183f 05-Feb-2020 Emmet Murray <e.minor.murray@gmail.com>

compiler: building after dargent merge


# b2d58e3c 03-Feb-2020 Emmet Murray <e.minor.murray@gmail.com>

compiler: fix small issues


# 158147f1 29-Jan-2020 Emmet Murray <e.minor.murray@gmail.com>

Added banged recpars


# 591e8bcc 19-Jan-2020 Emmet Murray <e.minor.murray@gmail.com>

compiler: recursive types inference in core language


# cb1c2911 05-Jan-2020 Emmet Murray <e.minor.murray@gmail.com>

compiler: further integrate recursive parameters into the core/surface language, begin work on typechecking


# 866262ac 26-Feb-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: add layout synonym support

[skip lemma]


# 5eab2a3a 17-Feb-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: modify desugar to support layout polyphorism

[skip lemma]


# e32ba8b0 17-Feb-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: WIP - typecheck for layout polymorphism

- have typecheck working for some basic cases
- change core lang to allow layout args
- introduce TLApp to surface syntax

[skip lemma]


# 1f69fb70 12-Feb-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: WIP - progress on typechecking

- also modify travis config, it should be able to build binary now

[skip lemma]


# c91d8460 10-Feb-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: WIP - more changes on core lang & misc

[skip lemma]


# 7e17136b 09-Feb-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: WIP - change core lang; fix typevar check

[skip lemma]


# 655405aa 23-Jan-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

compiler.dargent: add syntax for layout polymorphism

[skip lemma]


# 5447b745 01-Feb-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix merge breakage

[skip lemma]


# d7633fb5 23-Jan-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler.array: fix an SMT solver mistake

[skip ci][skip lemma]


# 37fafbe3 19-Jan-2020 Zhenyu Yao <z5125769@student.unsw.edu.au>

dargent: add array layout support

[skip lemma]


# d6decdb7 12-Jan-2020 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler.array: [wip] get many types right


# 2440f820 01-Dec-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler.array: use LExpr for predicates in types

[skip lemma]


# 92778d20 01-Nov-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: [wip] kill tons of type errors. still infinitely many left.

[skip lemma]


# 17512625 30-Oct-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler,array: some progress on array take

thanks to Vivian and Vincent for helping me debug the parser
Post is currently broken.

[skip lemma]


# d11a4c69 29-Oct-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler,array: [wip] take/put with a single hole

[skip lemma]


# 1698a216 14-Oct-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: post and desugar array put

[skip lemma][skip ci]


# da1b8e55 03-Oct-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: try out a general way to track array takes/puts

[skip lemma][skip ci]


# 7c0b24a7 01-Oct-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: keep track of takens array elems in core

[skip lemma][skip ci]


# f0ace17c 29-Aug-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: eliminate trailing spaces

[skip lemma][skip ci]


# 2f3bbe53 29-Aug-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: relax array indexing op

[skip lemma][skip ci]


# 00108421 23-Aug-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: array fix parser and pp

[skip lemma][skip ci]


# 600a824b 19-Aug-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: array core-tc, normal, mono, surface-tc gen

[skip ci][skip lemma]


# 4db21bad 16-Aug-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: a little bit of desugar

[skip lemma][skip ci]


# c47c59f2 16-Aug-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: compiles with tarray ast

[skip lemma][skip ci]


# 1db60988 02-Jul-2019 vjackson725 <vjackson725@users.noreply.github.com>

dargent-merge: add in quasi quoter + tests


# 6896380c 26-Jun-2019 vjackson725 <vjackson725@users.noreply.github.com>

dargent-merge: fix desugar


# 31d1ceff 03-Mar-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: rename modules to Dargent

[skip lemma]


# fab41faa 11-Sep-2018 Matthew Di Meglio <mdimeglio@optusnet.com.au>

Implemented layout generation in desugaring phase.

* Changed INSTALL.md to reflect need for GNU sed for some tests
* Modified Core language `Type t` `Sigils` so that `TCon` sigils are of type `Sigil ()` and `TRecord` sigils are of type `Sigil (DataLayout BitRange)`. This is because in the core language, `TCon` is only used for abstract types, and abstract types have no layout. `TRecords` must always have a layout if they are boxed.
* Added layout generation in the desugaring phase for types whose layout wasn't provided.
* Changed a few test cases to WIP because they involve records containing boxed abstract types, which we will probably be removing from the language, and the initial dargent implementation doesn't support.


# 2fcafc20 29-Aug-2018 Matthew Di Meglio <mdimeglio@optusnet.com.au>

Setup for implementing separated typechecking and desugaring.

Not sure why `make test-tc` has `fail_wf-take-nonexisting-field.cogent` broken.


# 5936b119 22-Aug-2018 Matthew Di Meglio <mdimeglio@optusnet.com.au>

Updated project to use new DataLayout structures, instead of Repr structures.


# b48becde 04-Nov-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix (partially) #306.

the compiler should work but the formal verification hasn't been
established for unboxed variables.

[skip lemma]


# a0937c70 04-Nov-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix #307

[skip lemma]


# bf6d4b9c 11-Sep-2019 vjackson725 <vjackson725@users.noreply.github.com>

compiler: keep function typevar context when making lambda toplevel


# c84dfe2b 15-Aug-2019 Emmet Murray <e.minor.murray@gmail.com>

Isabelle embedding now avoids the use of keywords


# e6cce3c0 11-Sep-2019 vjackson725 <vjackson725@users.noreply.github.com>

compiler: fix tuple->record field order problem

Some parts of desugar were not treating the tuple order correctly.
Unboxed records are required to be ordered by their field name.

Co-authored-by: Zilin Chen <Zilin.Chen@data61.csiro.au>


# 45514c89 04-Jul-2019 vjackson725 <vjackson725@users.noreply.github.com>

compiler: add a nice error for FFI constants


# 533aa24b 13-May-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

cogent-repl: preload almost works

[skip lemma][skip ci]

problems:
* it loops :(
* int literals can be used as Bool for some reason


# 1a19b65b 12-May-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

cogent: [wip] add a repl for cogent

lots of annoying problems are present...
[skip ci][skip lemma]


# eb13ee9a 06-Mar-2019 V Jackson <vjackson725@users.noreply.github.com>

compiler: individuate the types of function names in core (#273)


# 31bb66d2 02-Feb-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix an obsolate presense of Char

[skip lemma]


# 90183fa8 15-Jan-2019 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: implement MultiWayIf syntax

[skip lemma]


# 44db7d06 30-Nov-2018 Liam O’Connor <liamoc@cse.unsw.edu.au>

compiler: migrate from lens to microlens

[skip lemma]


# c8589580 30-Nov-2018 Liam O’Connor <liamoc@cse.unsw.edu.au>

compiler: deps := deps - {tuple}

[skip lemma]


# 6b713412 29-Nov-2018 Liam O’Connor <liamoc@cse.unsw.edu.au>

compiler: experimental arrays are now behind a cabal flag

[skip lemma]


# 692fd176 29-Nov-2018 Liam O’Connor <liamoc@cse.unsw.edu.au>

compiler: deps := deps - {flippers}

[skip lemma]


# 5693fd94 11-Sep-2018 vjackson725 <vjackson725@users.noreply.github.com>

compiler: move Data out of Cogent


# 04bbe9c0 11-Sep-2018 vjackson725 <vjackson725@users.noreply.github.com>

compiler: break out existentials


# ec93f5c7 11-Sep-2018 vjackson725 <vjackson725@users.noreply.github.com>

compiler: break out nats


# dd15f82b 11-Sep-2018 vjackson725 <vjackson725@users.noreply.github.com>

compiler: break out propositional equality


# 31a391a5 11-Sep-2018 vjackson725 <vjackson725@users.noreply.github.com>

compiler: move data to Cogent.Data


# 2fd8872a 10-Sep-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: [major] refactor C-gen code


# a7c82fdd 09-Sep-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: minor fixes to haskell gen

[skip lemma][skip ci]


# 14259353 09-Sep-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix haskell gen breakage

[skip lemma]


# c96f4181 06-Sep-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: trim comments so that they don't clash with Haddock syntax

[skip ci][skip lemma]


# 57e146f0 20-Aug-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: TPtr -> Sigil layout

[skip lemma]


# a82a3e10 15-Aug-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: [wip] clean up Deep.hs + small fixes

I just managed to fixed the most obvious problems. For the rest,
we'll fix them as we test the proofs.


# 354f7bca 08-Jun-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: push repr to the syntax of the core lang.


# 8799f25a 07-Jun-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix array indices eval and core pp

[skip ci]


# 1af58741 27-May-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: implement function composition


# 8d122c26 24-May-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: largely improve coherence btw parser and pp


# 00a1c24c 08-May-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: initial ptr backend impln

[skip lemma]


# cad73cc1 06-May-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix important flaw re. arrays

[skip lemma][skip ci]


# 05e40433 02-May-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: up to core tc.

very coarse. [skip lemma][skip ci]


# 633cc913 11-Apr-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: wip - arrays (parser, ds).

also fix a lot of code to make it work with ghc-8.4

[skip ci][skip lemma]


# db2dfb39 09-Apr-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: some initial array implementation

[skip lemma][skip ci]


# 91c3370e 25-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: implement abs type dependency [WIP]

but it doesn't seems to solve the ordering problem
WordArray and WordArrayView introduced.

[skip ci]


# 48653985 20-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix a bug in desugaring BindingAlts

[skip ci]


# 6fa79df3 20-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: finish early exit feature


# 77f030a3 12-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: wip - closures


# ecefa404 08-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: simple lambda-expressions done

[skip ci]


# 7b64d549 08-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: basic lambda expressions

[skip ci]


# 94208611 07-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: lambda-lifting wip

hit a ghc bug!
[skip ci]


# 208792d3 06-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: insert Promote nodes

[skip ci]


# 9ca73530 04-Feb-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: wip removing debug mode

run into some GHC panic!


# 50be13c0 28-Jan-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: kill some warnings


# 4466c1df 25-Jan-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: cleanup; copyright blocks


# 1b1702a2 19-Jan-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: codegen roughly done


# 0cccc85e 18-Jan-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: ds,core-tc

- tested with testsuites, bilbyfs, ext2
- looks complete (modulo bugs), but may be unsound(?)
- need later phases to confirm


# ba5f0cc3 17-Jan-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler/tc: wip - desugar/core

not quite right. maybe need a dedicated phase for adding
promote nodes


# e607f66d 10-Jan-2018 Zilin Chen <Zilin.Chen@data61.csiro.au>

resolve breakage introduced by a huge rebase

[skip ci]


# 13b754f9 24-Jan-2017 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: trivial fixes in desugarer and core-tc

[skip ci]


# a1e173c4 15-Dec-2016 Zilin Chen <Zilin.Chen@nicta.com.au>

compiler: rework AST to add location to patterns

This solves #36.

FIXME:
* Lots of locations are still not accurate, esp. in desugarer;
* Pattern context might not be good enough (or not added properly);


# 25a00f51 24-Nov-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

warn: add warnings for unused binders (WIP)


# a6e61b26 23-Nov-2016 Zilin Chen <Zilin.Chen@nicta.com.au>

compiler: implement type holes


# b8c550f2 21-Nov-2016 Partha Susarla <ajaysusarla@gmail.com>

compiler: fix build issues when rebasing.

When rebasing to the current master, there were a bunch of patches missing
when I replayed the commits from the `tc-new` branch. This patch adds all
those missing pieces.


# 8abe3769 01-Sep-2016 Zilin Chen <Zilin.Chen@nicta.com.au>

compiler: kind of fix desugarer properly.

if and case still not correct. not promoted.


# 04e2828b 22-Aug-2016 Liam O'Connor <liamoc@cse.unsw.edu.au>

Proper variant subtyping as per Cogent 2.1 Proposal.


# f436c22d 15-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: rename Sugarfree to Core


# 3b47fc93 15-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: all DS errors now occur in guards


# b23ce6ba 15-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix desugarType to deal with multi-param variant alts


# 18b97060 14-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

copmiler: change to right way of desugaring Put


# 1002c2a4 14-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: better pp with more internal structure info

--fdisambiguate-pp flag


# 16a1c823 14-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: some cleanup and better debugging funcs

normaliseT doesn't normalise enough


# 7b489288 04-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: a few more desugar fixed


# 64dae705 04-Aug-2016 Liam O'Connor <liamoc@cse.unsw.edu.au>

Add “widen” and “upcast” keywords; update tests.

Now the typechecker passes all pass_ tests.


# daad9016 03-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: simply use old typeWHNF and helper functions.

Kinda works. some don't (internal) typechecker, may due to new
subtyping rules (cast, promote)


# ca795669 03-Aug-2016 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: use todo instead of undefined


# 72723417 01-Aug-2016 Liam O'Connor <liamoc@cse.unsw.edu.au>

Rudimentary pretty printing; make the thing build through liberal use of undefined; fixed some solver bugs


# 69a4bc2a 20-Nov-2017 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: fix warnings.

all remaining warnings are due to WARNINGS pragma


# 99f28d9e 16-Jun-2017 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: [trivial] disambiguate `take'.

for some reason suddenly picked up by ghc-7.10.3


# 9e55f854 12-Mar-2017 Zilin Chen <Zilin.Chen@data61.csiro.au>

compiler: alpha version of ffi-generator

* users can specify customised type generation via --cust-ty-gen flag
* add examples pass_ffi-gen-1
* bump to 2.0.8.0

* todo: put pass_ffi-gen-1 into testsuite


# c7c9b87b 16-May-2016 Carter Tazio Schonwald <carter.schonwald@gmail.com>

[compiler] GHC 8.0 support and other fixes.

This patch contains the following changes:
* Drop `monoid-subclasses` as a dependency because it is really broken in 8.0
and has lots of orphans.
* Made a number of Fin types more accurate.
* Remove GHC < 8.0 conditional error branches that allegedly aren't needed in
8.0.
* Fixed some good number of Ticked Constructor warnings
* Trimmed trailing whitespace noise.


# 39f7dec4 05-Oct-2016 Partha Susarla <ajaysusarla@gmail.com>

[compiler] Support for C-style includes.

This patch adds support for C-style includes to the Cogent compiler/parser.

* include <> : Search for the included file in the default path(can be
over-ridden by `COGENT_GUM_INC_DIR` enviroment variable.
* include "" : Search for the included file in relation to the current
working directory.


# 3547896f 11-Sep-2016 Partha Susarla <ajaysusarla@gmail.com>

Code reorganisation.

* A rejig of the the Cogent compiler's directory structure.
* Support for building Cogent compiler with both `cabal` and `stack`.
(`stack` support is EXPERIMENTAL)
* Use Makefiles for build and install.
* Remove trailing white-spaces.
* Generate `dummy headers` in `tests/include` for testing C code.
* Remove unused `gen_types.sh` script
* Bump version to `2.0.6`

TODO:
* Remove duplicated files in `libgum`