diff options
| author | Pierre-Marie Pédrot | 2020-09-28 09:54:42 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-10-11 17:35:13 +0200 |
| commit | 9a026fcaeb3fa2678b9c93da8204f9f1ddcc0b31 (patch) | |
| tree | 276a153f77e1bda164ad7bbe72bef8b11285d6e2 /kernel/vconv.ml | |
| parent | 03d55f990bb7a2c4f5c1fefa408b94a8a93e8d05 (diff) | |
Remove the compare_graph field from the conversion API.
We know statically that the first thing the conversion algorithm is going to
do is to get it from the provided function, so we simply explicitly pass it
around.
Diffstat (limited to 'kernel/vconv.ml')
| -rw-r--r-- | kernel/vconv.ml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/vconv.ml b/kernel/vconv.ml index cc2c2c0b4b..304e7e8470 100644 --- a/kernel/vconv.ml +++ b/kernel/vconv.ml @@ -190,10 +190,10 @@ let warn_bytecode_compiler_failed = (fun () -> strbrk "Bytecode compiler failed, " ++ strbrk "falling back to standard conversion") -let vm_conv_gen cv_pb env univs t1 t2 = +let vm_conv_gen cv_pb env graph univs t1 t2 = if not (typing_flags env).Declarations.enable_VM then Reduction.generic_conv cv_pb ~l2r:false (fun _ -> None) - TransparentState.full env univs t1 t2 + TransparentState.full env graph univs t1 t2 else try let v1 = val_of_constr env t1 in @@ -202,7 +202,7 @@ let vm_conv_gen cv_pb env univs t1 t2 = with Not_found | Invalid_argument _ -> warn_bytecode_compiler_failed (); Reduction.generic_conv cv_pb ~l2r:false (fun _ -> None) - TransparentState.full env univs t1 t2 + TransparentState.full env graph univs t1 t2 let vm_conv cv_pb env t1 t2 = let univs = Environ.universes env in @@ -211,5 +211,5 @@ let vm_conv cv_pb env t1 t2 = else Constr.eq_constr_univs univs t1 t2 in if not b then - let univs = (univs, checked_universes) in - let _ = vm_conv_gen cv_pb env univs t1 t2 in () + let state = (univs, checked_universes) in + let _ = vm_conv_gen cv_pb env univs state t1 t2 in () |
