diff options
Diffstat (limited to 'src/Compilers/Z/Bounds/MapCastByDeBruijn.v')
-rw-r--r-- | src/Compilers/Z/Bounds/MapCastByDeBruijn.v | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/Compilers/Z/Bounds/MapCastByDeBruijn.v b/src/Compilers/Z/Bounds/MapCastByDeBruijn.v new file mode 100644 index 000000000..45b084566 --- /dev/null +++ b/src/Compilers/Z/Bounds/MapCastByDeBruijn.v @@ -0,0 +1,23 @@ +Require Import Crypto.Compilers.Syntax. +Require Import Crypto.Compilers.Z.MapCastByDeBruijn. +Require Import Crypto.Compilers.Z.Syntax. +Require Import Crypto.Compilers.Z.Syntax.Util. +Require Import Crypto.Compilers.Z.Bounds.Interpretation. + +Section language. + Context {t : type base_type}. + + Definition MapCastCompile := @MapCastCompile t. + Definition MapCastDoCast + := @MapCastDoCast + (@Bounds.interp_base_type) (@Bounds.interp_op) + (fun _ => @Bounds.bounds_to_base_type) + (fun _ _ opc _ => @genericize_op _ _ _ opc _ _ _) + t. + Definition MapCastDoInterp + := @MapCastDoInterp + (@Bounds.interp_base_type) (fun _ => @Bounds.bounds_to_base_type) + t. + Definition MapCast e input_bounds + := MapCastDoInterp input_bounds (MapCastDoCast input_bounds (MapCastCompile e)). +End language. |