Skip to content

Commit 8c2ee91

Browse files
authored
Adapt to coq/coq#18590 (#1821)
1 parent 0e22c51 commit 8c2ee91

File tree

5 files changed

+47
-47
lines changed

5 files changed

+47
-47
lines changed

src/Algebra/Group.v

+8-8
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ Section GroupByIsomorphism.
9797

9898
Class isomorphic_groups :=
9999
{
100-
isomorphic_groups_group_G :> @group G EQ OP ID INV;
101-
isomorphic_groups_group_H :> @group H eq op id inv;
102-
isomorphic_groups_hom_GH :> @Monoid.is_homomorphism G EQ OP H eq op phi;
103-
isomorphic_groups_hom_HG :> @Monoid.is_homomorphism H eq op G EQ OP phi';
100+
#[global] isomorphic_groups_group_G :: @group G EQ OP ID INV;
101+
#[global] isomorphic_groups_group_H :: @group H eq op id inv;
102+
#[global] isomorphic_groups_hom_GH :: @Monoid.is_homomorphism G EQ OP H eq op phi;
103+
#[global] isomorphic_groups_hom_HG :: @Monoid.is_homomorphism H eq op G EQ OP phi';
104104
}.
105105

106106
Lemma group_by_isomorphism
@@ -144,10 +144,10 @@ Section CommutativeGroupByIsomorphism.
144144

145145
Class isomorphic_commutative_groups :=
146146
{
147-
isomorphic_commutative_groups_group_G :> @commutative_group G EQ OP ID INV;
148-
isomorphic_commutative_groups_group_H :> @commutative_group H eq op id inv;
149-
isomorphic_commutative_groups_hom_GH :> @Monoid.is_homomorphism G EQ OP H eq op phi;
150-
isomorphic_commutative_groups_hom_HG :> @Monoid.is_homomorphism H eq op G EQ OP phi';
147+
#[global] isomorphic_commutative_groups_group_G :: @commutative_group G EQ OP ID INV;
148+
#[global] isomorphic_commutative_groups_group_H :: @commutative_group H eq op id inv;
149+
#[global] isomorphic_commutative_groups_hom_GH :: @Monoid.is_homomorphism G EQ OP H eq op phi;
150+
#[global] isomorphic_commutative_groups_hom_HG :: @Monoid.is_homomorphism H eq op G EQ OP phi';
151151
}.
152152

153153
Lemma commutative_group_by_isomorphism

src/Assembly/Equivalence.v

+5-5
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,11 @@ Definition assembly_stack_size {calling_convention : assembly_callee_saved_regis
135135
end.
136136

137137
Class assembly_conventions_opt :=
138-
{ assembly_calling_registers_ :> assembly_calling_registers_opt
139-
; assembly_stack_size_ :> assembly_stack_size_opt
140-
; assembly_output_first_ :> assembly_output_first_opt
141-
; assembly_argument_registers_left_to_right_ :> assembly_argument_registers_left_to_right_opt
142-
; assembly_callee_saved_registers_ :> assembly_callee_saved_registers_opt
138+
{ #[global] assembly_calling_registers_ :: assembly_calling_registers_opt
139+
; #[global] assembly_stack_size_ :: assembly_stack_size_opt
140+
; #[global] assembly_output_first_ :: assembly_output_first_opt
141+
; #[global] assembly_argument_registers_left_to_right_ :: assembly_argument_registers_left_to_right_opt
142+
; #[global] assembly_callee_saved_registers_ :: assembly_callee_saved_registers_opt
143143
}.
144144
Definition default_assembly_conventions : assembly_conventions_opt
145145
:= {| assembly_calling_registers_ := None

src/Bedrock/Field/Common/Types.v

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ Section WithParameters.
4848
Class ok {parameters_sentinel : parameters} :=
4949
{
5050
(* semantics_ok : Semantics.parameters_ok semantics *)
51-
word_ok :> word.ok word;
52-
mem_ok :> map.ok mem;
53-
locals_ok :> map.ok locals;
54-
ext_spec_ok :> Semantics.ext_spec.ok ext_spec;
51+
#[global] word_ok :: word.ok word;
52+
#[global] mem_ok :: map.ok mem;
53+
#[global] locals_ok :: map.ok locals;
54+
#[global] ext_spec_ok :: Semantics.ext_spec.ok ext_spec;
5555

5656
varname_gen_unique :
5757
forall i j : nat, varname_gen i = varname_gen j <-> i = j;

src/CLI.v

+27-27
Original file line numberDiff line numberDiff line change
@@ -587,73 +587,73 @@ Module ForExtraction.
587587
Class ParsedSynthesizeOptions :=
588588
{
589589
(** Is the code static / private *)
590-
static :> static_opt
590+
#[global] static :: static_opt
591591
(** Is the internal code static / private *)
592-
; internal_static :> internal_static_opt
592+
; #[global] internal_static :: internal_static_opt
593593
(** Is the code inlined *)
594-
; inline :> inline_opt
594+
; #[global] inline :: inline_opt
595595
(** Is the internal code inlined *)
596-
; inline_internal :> inline_internal_opt
596+
; #[global] inline_internal :: inline_internal_opt
597597
(** Should we only use signed integers *)
598-
; only_signed :> only_signed_opt
598+
; #[global] only_signed :: only_signed_opt
599599
(** Should we emit expressions requiring cmov *)
600-
; no_select :> no_select_opt
600+
; #[global] no_select :: no_select_opt
601601
(** Should we emit primitive operations *)
602-
; emit_primitives :> emit_primitives_opt
602+
; #[global] emit_primitives :: emit_primitives_opt
603603
(** Various output options including: *)
604604
(** Should we skip emitting typedefs for field elements *)
605605
(** Should we relax the bounds on the return carry type of sbb/adc operations? *)
606-
; output_options :> output_options_opt
606+
; #[global] output_options :: output_options_opt
607607
(** Should we use the alternate implementation of cmovznz *)
608-
; use_mul_for_cmovznz :> use_mul_for_cmovznz_opt
608+
; #[global] use_mul_for_cmovznz :: use_mul_for_cmovznz_opt
609609
(** Various abstract interpretation options *)
610610
(** Should we avoid uint1 at the output of shiftr *)
611-
; abstract_interpretation_options :> AbstractInterpretation.Options
611+
; #[global] abstract_interpretation_options :: AbstractInterpretation.Options
612612
(** Should we split apart oversized operations? *)
613-
; should_split_mul :> should_split_mul_opt
613+
; #[global] should_split_mul :: should_split_mul_opt
614614
(** Should we split apart multi-return operations? *)
615-
; should_split_multiret :> should_split_multiret_opt
615+
; #[global] should_split_multiret :: should_split_multiret_opt
616616
(** Should we remove use of value_barrier? *)
617-
; unfold_value_barrier :> unfold_value_barrier_opt
617+
; #[global] unfold_value_barrier :: unfold_value_barrier_opt
618618
(** Should we widen the carry to the full bitwidth? *)
619-
; widen_carry :> widen_carry_opt
619+
; #[global] widen_carry :: widen_carry_opt
620620
(** Should we widen the byte type to the full bitwidth? *)
621-
; widen_bytes :> widen_bytes_opt
621+
; #[global] widen_bytes :: widen_bytes_opt
622622
(** Should we ignore function-name mismatch errors when there's only one assembly function and only one actual function requested? *)
623-
; ignore_unique_asm_names :> ignore_unique_asm_names_opt
623+
; #[global] ignore_unique_asm_names :: ignore_unique_asm_names_opt
624624
(** What method should we use for rewriting? *)
625-
; low_level_rewriter_method :> low_level_rewriter_method_opt
625+
; #[global] low_level_rewriter_method :: low_level_rewriter_method_opt
626626
:= default_low_level_rewriter_method
627627
(** What's the bitwidth? *)
628-
; machine_wordsize :> machine_wordsize_opt
628+
; #[global] machine_wordsize :: machine_wordsize_opt
629629
(** What's the package name *)
630-
; internal_package_name :> package_name_opt
630+
; #[global] internal_package_name :: package_name_opt
631631
(** What's the class name *)
632-
; internal_class_name :> class_name_opt
632+
; #[global] internal_class_name :: class_name_opt
633633
(** What's are the naming conventions to use? *)
634-
; language_naming_conventions :> language_naming_conventions_opt
634+
; #[global] language_naming_conventions :: language_naming_conventions_opt
635635
(** Documentation options *)
636-
; documentation_options :> documentation_options_opt
636+
; #[global] documentation_options :: documentation_options_opt
637637
(** assembly equivalence checker options *)
638-
; equivalence_checker_options :> equivalence_checker_options_opt
638+
; #[global] equivalence_checker_options :: equivalence_checker_options_opt
639639
(** error if there are un-requested assembly functions *)
640-
; error_on_unused_assembly_functions :> error_on_unused_assembly_functions_opt
640+
; #[global] error_on_unused_assembly_functions :: error_on_unused_assembly_functions_opt
641641
(** don't prepend fiat to prefix *)
642642
; no_prefix_fiat : bool
643643
(** Extra lines before the documentation header *)
644644
; before_header_lines : list string
645645
(** Extra lines at the beginning of the documentation header *)
646646
; extra_early_header_lines : list string
647647
(** Debug rewriting *)
648-
; debug_rewriting :> debug_rewriting_opt
648+
; #[global] debug_rewriting :: debug_rewriting_opt
649649
(** Print debug info on success too *)
650650
; debug_on_success : bool
651651
}.
652652
Class SynthesizeOptions :=
653653
{
654-
parsed_synthesize_options :> ParsedSynthesizeOptions
654+
#[global] parsed_synthesize_options :: ParsedSynthesizeOptions
655655
(** Lines of assembly hints *)
656-
; assembly_hints_lines :> assembly_hints_lines_opt
656+
; #[global] assembly_hints_lines :: assembly_hints_lines_opt
657657
}.
658658

659659
(** We define a class for holding the various options about file interaction that we don't pass to [Synthesize] *)

src/Stringification/Language.v

+3-3
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,9 @@ Module Compilers.
154154
|}.
155155

156156
Class output_options_opt :=
157-
{ skip_typedefs_ :> skip_typedefs_opt
158-
; relax_adc_sbb_return_carry_to_bitwidth_ :> relax_adc_sbb_return_carry_to_bitwidth_opt
159-
; language_specific_cast_adjustment_ :> language_specific_cast_adjustment_opt
157+
{ #[global] skip_typedefs_ :: skip_typedefs_opt
158+
; #[global] relax_adc_sbb_return_carry_to_bitwidth_ :: relax_adc_sbb_return_carry_to_bitwidth_opt
159+
; #[global] language_specific_cast_adjustment_ :: language_specific_cast_adjustment_opt
160160
}.
161161

162162
Definition default_output_options : output_options_opt

0 commit comments

Comments
 (0)