Leonardo de Moura
|
23e2f72f42
|
test(list): add tests for improving code coverage
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-25 22:04:24 -07:00 |
|
Leonardo de Moura
|
db4e5ab0ad
|
feat(expr_lt): improve expr_lt performance by using hash codes, and add more tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-25 21:59:58 -07:00 |
|
Leonardo de Moura
|
a7707dd669
|
test(bit_tricks): add tests for log2
|
2013-09-25 20:58:01 -07:00 |
|
Leonardo de Moura
|
44a16cab6a
|
test(exception): add new tests exception and parser_exception
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-25 20:57:53 -07:00 |
|
Leonardo de Moura
|
87e749cd12
|
test(trace): add unit test for trace module
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-25 20:30:05 -07:00 |
|
Leonardo de Moura
|
e16f45854b
|
refactor(deep_copy): simplify deep_copy implementation, and move unit test to separate file
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-25 20:25:24 -07:00 |
|
Leonardo de Moura
|
037ebfd1d4
|
refactor(util): make 'util/test.h' the first include
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-25 20:13:05 -07:00 |
|
Soonho Kong
|
ad62f9762b
|
fix(tests/util): use lean_assert_eq
|
2013-09-25 19:22:36 -07:00 |
|
Soonho Kong
|
475338080f
|
fix(tests/interval): use new lean_assert and lean_assert_eq
|
2013-09-25 18:40:45 -07:00 |
|
Soonho Kong
|
1d8b7dc193
|
Update 'orelse' and 'then' rewriter to take a list of rewriters
|
2013-09-25 16:46:39 -07:00 |
|
Soonho Kong
|
a50f5f92b8
|
Rename 'rewrite' to 'Rewriter', change type of rewriter::operator()
|
2013-09-25 15:38:16 -07:00 |
|
Soonho Kong
|
57e9e2c658
|
Re-implement rewrite module using rewrite_cell
|
2013-09-24 19:11:09 -07:00 |
|
Leonardo de Moura
|
ba0528c298
|
Implement total order on expressions
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-24 12:16:32 -07:00 |
|
Leonardo de Moura
|
e23813f15d
|
Add support for creating unique internal names.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-24 11:01:30 -07:00 |
|
Leonardo de Moura
|
1779b29355
|
Implement map using splay_trees
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-24 01:44:46 -07:00 |
|
Soonho Kong
|
71fb150333
|
Fix type of rewrite() to take an env. Add skeletons for other rewriters
|
2013-09-24 01:20:45 -07:00 |
|
Soonho Kong
|
81c9de229b
|
Add then and orelse rewrite combinators and tests
|
2013-09-24 01:19:03 -07:00 |
|
Soonho Kong
|
9ba6068858
|
Update fo_match
|
2013-09-24 01:19:03 -07:00 |
|
Soonho Kong
|
f89ededddc
|
Add rewrite and first-order pattern matching skeletal
|
2013-09-24 01:19:03 -07:00 |
|
Leonardo de Moura
|
b78b2e0585
|
Add remaining splay tree methods
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-24 01:04:02 -07:00 |
|
Leonardo de Moura
|
d31f3facac
|
Implement splay trees
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-23 22:31:18 -07:00 |
|
Leonardo de Moura
|
46d6c41835
|
Fix bug in the type checker (when type checking terms with meta-variables).
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-22 19:12:19 -07:00 |
|
Leonardo de Moura
|
c847d27763
|
Improve higher order unification
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-21 00:41:49 -07:00 |
|
Leonardo de Moura
|
d29ec9ab6f
|
Add tests for memory.cpp
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-20 22:37:13 -07:00 |
|
Leonardo de Moura
|
7ac94ee976
|
Add max_sharing tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-20 22:01:40 -07:00 |
|
Leonardo de Moura
|
d34cfe3f8a
|
Add simple formatter tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-20 21:46:32 -07:00 |
|
Leonardo de Moura
|
42482622f6
|
Add imitation for lambdas and Pis
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-19 16:28:23 -07:00 |
|
Leonardo de Moura
|
d7cc5d2404
|
Fix bug in ho_unifier
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-19 16:28:23 -07:00 |
|
Leonardo de Moura
|
2f29ff70d7
|
Implement higher-order unification
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-18 20:46:00 -07:00 |
|
Soonho Kong
|
27d5ae13d7
|
Move src/interval to src/util/interval
|
2013-09-17 14:10:53 -07:00 |
|
Leonardo de Moura
|
3df6149daa
|
Add support for metavariables in the type checker.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-17 11:09:59 -07:00 |
|
Leonardo de Moura
|
30b19c314a
|
Add basic support for metavariables at is_convertible. Swap is_convertible arguments to make it more intuitive.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-17 07:15:47 -07:00 |
|
Leonardo de Moura
|
a26c7d47f2
|
Add simplification to add_lift
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-17 03:14:02 -07:00 |
|
Leonardo de Moura
|
99e8d2feae
|
Add simplification rule to add_inst
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-17 02:57:28 -07:00 |
|
Leonardo de Moura
|
21c7a45f67
|
Relax definition of identity_stack. Fix printer for metavariable contexts.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-17 02:09:45 -07:00 |
|
Leonardo de Moura
|
d3bce584f4
|
Add support for new metavariable representation in the normalizer.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-17 01:57:21 -07:00 |
|
Leonardo de Moura
|
99a163f11d
|
Simplify metavariable context. Now, we have only 'lift' and 'inst' instead of 'subst', 'lift' and 'lower'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-16 19:32:28 -07:00 |
|
Leonardo de Moura
|
cad562a448
|
Add support for metavariables in the normalizer.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-16 19:32:28 -07:00 |
|
Leonardo de Moura
|
f79f046294
|
Add partial support for metavariables in the normalizer
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-15 21:23:50 -07:00 |
|
Leonardo de Moura
|
2800292947
|
Add timestamp to metavar_env
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-15 19:50:48 -07:00 |
|
Leonardo de Moura
|
5a4bc331d2
|
Make unification_problems a virtual class. Associate a 'standard' context with each metavariable in metavar_env
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-15 19:38:36 -07:00 |
|
Leonardo de Moura
|
63e102055e
|
Move metavariables to the kernel. This is the first step for implementing the new elaborator.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-15 12:09:01 -07:00 |
|
Soonho Kong
|
e4b327bbaa
|
Use C++11's <random> in pdeque/pvector tests (cygwin doesn't support rand_r)
|
2013-09-15 01:38:57 -07:00 |
|
Soonho Kong
|
c96a6982a0
|
Add <ctime> header for time() in pdeque/pvector tests
|
2013-09-13 20:42:49 -07:00 |
|
Soonho Kong
|
eda25e77a4
|
Use time(0) as an initial seed for rand_r() in pvector/pdeque tests
|
2013-09-13 20:28:15 -07:00 |
|
Soonho Kong
|
bc60b47295
|
Apply coding style
|
2013-09-13 18:48:09 -07:00 |
|
Leonardo de Moura
|
8c735f1daa
|
Use consistent coding style for spaces after ','
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-13 12:49:03 -07:00 |
|
Leonardo de Moura
|
573ec5ccc2
|
Rename import_all. The idea is to use consistent name for library files.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-13 09:06:46 -07:00 |
|
Leonardo de Moura
|
070c87bef0
|
Rename arith library files
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
|
2013-09-13 08:55:09 -07:00 |
|
Soonho Kong
|
5c3866cd71
|
Use fullpath in #include directives, add missing STL headers
|
2013-09-13 03:35:29 -07:00 |
|