diff options
Diffstat (limited to 'backend/RTLtyping.v')
-rw-r--r-- | backend/RTLtyping.v | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/RTLtyping.v b/backend/RTLtyping.v index 533c47a9..a002746a 100644 --- a/backend/RTLtyping.v +++ b/backend/RTLtyping.v @@ -123,7 +123,7 @@ Inductive wt_instr : instruction -> Prop := forall arg tbl, env arg = Tint -> (forall s, In s tbl -> valid_successor s) -> - list_length_z tbl * 4 <= Int.max_signed -> + list_length_z tbl * 4 <= Int.max_unsigned -> wt_instr (Ijumptable arg tbl) | wt_Ireturn: forall optres, @@ -245,7 +245,7 @@ Definition check_instr (i: instruction) : bool := | Ijumptable arg tbl => check_reg arg Tint && List.forallb check_successor tbl - && zle (list_length_z tbl * 4) Int.max_signed + && zle (list_length_z tbl * 4) Int.max_unsigned | Ireturn optres => match optres, funct.(fn_sig).(sig_res) with | None, None => true @@ -527,7 +527,7 @@ Proof. econstructor; eauto. apply wt_regset_assign. auto. replace (env res) with (snd (type_of_operation op)). - apply type_of_operation_sound with fundef unit ge rs##args sp; auto. + eapply type_of_operation_sound; eauto. rewrite <- H6. reflexivity. (* Iload *) econstructor; eauto. |