let _, metasenv, _, _ = proof in
let _, context, goalty = CicUtil.lookup_meta goal metasenv in
let cache =
+ let cache =
+ AutoCache.cache_add_context context metasenv AutoCache.cache_empty
+ in
if use_only_paramod then (* only paramod *)
- AutoCache.cache_empty
+ cache
else
- let cache =
- AutoCache.cache_add_library dbd proof [goal] AutoCache.cache_empty
- in
- AutoCache.cache_add_context context metasenv cache
+ AutoCache.cache_add_library dbd proof [goal] cache
in
let oldmetasenv = metasenv in
let flags = {
- AutoTypes.maxdepth = depth;
+ AutoTypes.maxdepth =
+ if use_only_paramod then 2 else depth;
AutoTypes.maxwidth = width;
AutoTypes.timeout =
if timeout = 0 then float_of_int timeout