@ -84,7 +84,7 @@ let bounds_check tenv pname prop len e =
end ;
end ;
check_bad_index tenv pname prop len e
check_bad_index tenv pname prop len e
let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp t
let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp ( t : Typ . t )
( off : Sil . offset list ) inst : Sil . atom list * Sil . strexp * Typ . t =
( off : Sil . offset list ) inst : Sil . atom list * Sil . strexp * Typ . t =
if Config . trace_rearrange then
if Config . trace_rearrange then
begin
begin
@ -97,17 +97,18 @@ let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp
incr max_stamp ;
incr max_stamp ;
Ident . create kind ! max_stamp in
Ident . create kind ! max_stamp in
let res =
let res =
match Tenv . expand_type tenv t , off with
let fail t off pos =
L . d_str " create_struct_values type: " ; Typ . d_full t ;
L . d_str " off: " ; Sil . d_offset_list off ; L . d_ln () ;
raise ( Exceptions . Bad_footprint pos ) in
match t , off with
| Tstruct _ , [] ->
| Tstruct _ , [] ->
( [] , Sil . Estruct ( [] , inst ) , t )
( [] , Sil . Estruct ( [] , inst ) , t )
| Tstruct ( { name ; fields ; statics } as struct_typ ) ,
| Tstruct name , ( Off_fld ( f , _ ) ) :: off' -> (
( Sil . Off_fld ( f , _ ) ) :: off' ->
match Tenv . lookup tenv name with
let _ , t' , _ =
| Some ( { name ; fields ; statics ; } as struct_typ ) -> (
try
match IList . find ( fun ( f' , _ , _ ) -> Ident . fieldname_equal f f' ) ( fields @ statics ) with
IList . find ( fun ( f' , _ , _ ) -> Ident . fieldname_equal f f' )
| _ , t' , _ ->
( fields @ statics )
with Not_found ->
raise ( Exceptions . Bad_footprint _ _ POS__ ) in
let atoms' , se' , res_t' =
let atoms' , se' , res_t' =
create_struct_values
create_struct_values
pname tenv orig_prop footprint_part kind max_stamp t' off' inst in
pname tenv orig_prop footprint_part kind max_stamp t' off' inst in
@ -116,8 +117,15 @@ let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp
if Ident . fieldname_equal f f' then ( f , res_t' , a' ) else ( f' , t' , a' ) in
if Ident . fieldname_equal f f' then ( f , res_t' , a' ) else ( f' , t' , a' ) in
let fields' =
let fields' =
IList . sort Typ . fld_typ_ann_compare ( IList . map replace_typ_of_f fields ) in
IList . sort Typ . fld_typ_ann_compare ( IList . map replace_typ_of_f fields ) in
( atoms' , se , Typ . Tstruct ( Tenv . mk_struct tenv ~ default : struct_typ ~ fields : fields' name ) )
ignore ( Tenv . mk_struct tenv ~ default : struct_typ ~ fields : fields' name ) ;
| Typ . Tstruct _ , ( Sil . Off_index e ) :: off' ->
( atoms' , se , t )
| exception Not_found ->
fail t off _ _ POS__
)
| None ->
fail t off _ _ POS__
)
| Tstruct _ , ( Off_index e ) :: off' ->
let atoms' , se' , res_t' =
let atoms' , se' , res_t' =
create_struct_values
create_struct_values
pname tenv orig_prop footprint_part kind max_stamp t off' inst in
pname tenv orig_prop footprint_part kind max_stamp t off' inst in
@ -126,7 +134,7 @@ let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp
let se = Sil . Earray ( len , [ ( e' , se' ) ] , inst ) in
let se = Sil . Earray ( len , [ ( e' , se' ) ] , inst ) in
let res_t = Typ . Tarray ( res_t' , None ) in
let res_t = Typ . Tarray ( res_t' , None ) in
( Sil . Aeq ( e , e' ) :: atoms' , se , res_t )
( Sil . Aeq ( e , e' ) :: atoms' , se , res_t )
| Typ . Tarray ( t' , len_ ) , off ->
| Tarray ( t' , len_ ) , off ->
let len = match len_ with
let len = match len_ with
| None -> Exp . Var ( new_id () )
| None -> Exp . Var ( new_id () )
| Some len -> Exp . Const ( Const . Cint len ) in
| Some len -> Exp . Const ( Const . Cint len ) in
@ -145,10 +153,10 @@ let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp
| ( Sil . Off_fld _ ) :: _ ->
| ( Sil . Off_fld _ ) :: _ ->
assert false
assert false
)
)
| Typ . Tint _ , [] | Typ . Tfloat _ , [] | Typ . Tvoid , [] | Typ . Tfun _ , [] | Typ . Tptr _ , [] ->
| Tint _ , [] | Tfloat _ , [] | Tvoid , [] | Tfun _ , [] | Tptr _ , [] ->
let id = new_id () in
let id = new_id () in
( [] , Sil . Eexp ( Exp . Var id , inst ) , t )
( [] , Sil . Eexp ( Exp . Var id , inst ) , t )
| ( Typ . Tint _ | Tfloat _ | Tvoid | Tfun _ | Tptr _ ) , ( Sil . Off_index e ) :: off' ->
| ( Tint _ | Tfloat _ | Tvoid | Tfun _ | Tptr _ ) , ( Off_index e ) :: off' ->
(* In this case, we lift t to the t array. *)
(* In this case, we lift t to the t array. *)
let t' = match t with
let t' = match t with
| Typ . Tptr ( t' , _ ) -> t'
| Typ . Tptr ( t' , _ ) -> t'
@ -161,16 +169,9 @@ let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp
let se = Sil . Earray ( len , [ ( e' , se' ) ] , inst ) in
let se = Sil . Earray ( len , [ ( e' , se' ) ] , inst ) in
let res_t = Typ . Tarray ( res_t' , None ) in
let res_t = Typ . Tarray ( res_t' , None ) in
( Sil . Aeq ( e , e' ) :: atoms' , se , res_t )
( Sil . Aeq ( e , e' ) :: atoms' , se , res_t )
| Typ . Tint _ , _ | Typ . Tfloat _ , _ | Typ . Tvoid , _ | Typ . Tfun _ , _ | Typ . Tptr _ , _ ->
| Tint _ , _ | Tfloat _ , _ | Tvoid , _ | Tfun _ , _ | Tptr _ , _ ->
L . d_str " create_struct_values type: " ; Typ . d_full t ;
fail t off _ _ POS__
L . d_str " off: " ; Sil . d_offset_list off ; L . d_ln () ;
in
raise ( Exceptions . Bad_footprint _ _ POS__ )
| Typ . Tvar _ , _ ->
L . d_str " create_struct_values type: " ; Typ . d_full t ;
L . d_str " off: " ; Sil . d_offset_list off ; L . d_ln () ;
assert false in
if Config . trace_rearrange then
if Config . trace_rearrange then
begin
begin
let _ , se , _ = res in
let _ , se , _ = res in
@ -188,11 +189,11 @@ let rec create_struct_values pname tenv orig_prop footprint_part kind max_stamp
we need to change this function . * )
we need to change this function . * )
let rec _ strexp_extend_values
let rec _ strexp_extend_values
pname tenv orig_prop footprint_part kind max_stamp
pname tenv orig_prop footprint_part kind max_stamp
se typ ( off : Sil . offset list ) inst =
se ( typ : Typ . t ) ( off : Sil . offset list ) inst =
let new_id () =
let new_id () =
incr max_stamp ;
incr max_stamp ;
Ident . create kind ! max_stamp in
Ident . create kind ! max_stamp in
match off , se , Tenv . expand_type tenv typ with
match off , se , typ with
| [] , Sil . Eexp _ , _
| [] , Sil . Eexp _ , _
| [] , Sil . Estruct _ , _ ->
| [] , Sil . Estruct _ , _ ->
[ ( [] , se , typ ) ]
[ ( [] , se , typ ) ]
@ -200,56 +201,56 @@ let rec _strexp_extend_values
let off_new = Sil . Off_index ( Exp . zero ) :: off in
let off_new = Sil . Off_index ( Exp . zero ) :: off in
_ strexp_extend_values
_ strexp_extend_values
pname tenv orig_prop footprint_part kind max_stamp se typ off_new inst
pname tenv orig_prop footprint_part kind max_stamp se typ off_new inst
| ( Sil . Off_fld _ ) :: _ , Sil . Earray _ , Typ . Tarray _ ->
| ( Off_fld _ ) :: _ , Sil . Earray _ , Tarray _ ->
let off_new = Sil . Off_index ( Exp . zero ) :: off in
let off_new = Sil . Off_index ( Exp . zero ) :: off in
_ strexp_extend_values
_ strexp_extend_values
pname tenv orig_prop footprint_part kind max_stamp se typ off_new inst
pname tenv orig_prop footprint_part kind max_stamp se typ off_new inst
| ( Sil . Off_fld ( f , _ ) ) :: off' , Sil . Estruct ( fsel , inst' ) ,
| ( Off_fld ( f , _ ) ) :: off' , Sil . Estruct ( fsel , inst' ) , Tstruct name -> (
Tstruct ( { name ; fields ; statics } as struct_typ ) ->
match Tenv . lookup tenv name with
| Some ( { name ; fields ; statics ; } as struct_typ ) -> (
let replace_fv new_v fv = if Ident . fieldname_equal ( fst fv ) f then ( f , new_v ) else fv in
let replace_fv new_v fv = if Ident . fieldname_equal ( fst fv ) f then ( f , new_v ) else fv in
let _ , typ' , _ =
match IList . find ( fun ( f' , _ , _ ) -> Ident . fieldname_equal f f' ) ( fields @ statics ) with
try
| _ , typ' , _ -> (
IList . find ( fun ( f' , _ , _ ) -> Ident . fieldname_equal f f' )
match IList . find ( fun ( f' , _ ) -> Ident . fieldname_equal f f' ) fsel with
( fields @ statics )
| _ , se' ->
with Not_found ->
raise ( Exceptions . Missing_fld ( f , _ _ POS__ ) ) in
begin
try
let _ , se' = IList . find ( fun ( f' , _ ) -> Ident . fieldname_equal f f' ) fsel in
let atoms_se_typ_list' =
let atoms_se_typ_list' =
_ strexp_extend_values
_ strexp_extend_values
pname tenv orig_prop footprint_part kind max_stamp se' typ' off' inst in
pname tenv orig_prop footprint_part kind max_stamp se' typ' off' inst in
let replace acc ( res_atoms' , res_se' , res_typ' ) =
let replace acc ( res_atoms' , res_se' , res_typ' ) =
let replace_fse = replace_fv res_se' in
let replace_fse = replace_fv res_se' in
let res_fsel' = IList . sort Sil . fld_strexp_compare ( IList . map replace_fse fsel ) in
let res_fsel' =
let replace_fta ( f , t , a ) = let f' , t' = replace_fv res_typ' ( f , t ) in ( f' , t' , a ) in
IList . sort Sil . fld_strexp_compare ( IList . map replace_fse fsel ) in
let replace_fta ( f , t , a ) =
let f' , t' = replace_fv res_typ' ( f , t ) in
( f' , t' , a ) in
let fields' =
let fields' =
IList . sort Typ . fld_typ_ann_compare ( IList . map replace_fta fields ) in
IList . sort Typ . fld_typ_ann_compare ( IList . map replace_fta fields ) in
let struct_typ =
ignore ( Tenv . mk_struct tenv ~ default : struct_typ ~ fields : fields' name ) ;
Typ . Tstruct ( Tenv . mk_struct tenv ~ default : struct_typ ~ fields : fields' name ) in
( res_atoms' , Sil . Estruct ( res_fsel' , inst' ) , typ ) :: acc in
( res_atoms' , Sil . Estruct ( res_fsel' , inst' ) , struct_typ ) :: acc in
IList . fold_left replace [] atoms_se_typ_list'
IList . fold_left replace [] atoms_se_typ_list'
with Not_found ->
| exception Not_found ->
let atoms' , se' , res_typ' =
let atoms' , se' , res_typ' =
create_struct_values
create_struct_values
pname tenv orig_prop footprint_part kind max_stamp typ' off' inst in
pname tenv orig_prop footprint_part kind max_stamp typ' off' inst in
let res_fsel' = IList . sort Sil . fld_strexp_compare ( ( f , se' ) :: fsel ) in
let res_fsel' = IList . sort Sil . fld_strexp_compare ( ( f , se' ) :: fsel ) in
let replace_fta ( f' , t' , a' ) = if Ident . fieldname_equal f' f then ( f , res_typ' , a' ) else ( f' , t' , a' ) in
let replace_fta ( f' , t' , a' ) =
if Ident . fieldname_equal f' f then ( f , res_typ' , a' ) else ( f' , t' , a' ) in
let fields' =
let fields' =
IList . sort Typ . fld_typ_ann_compare ( IList . map replace_fta fields ) in
IList . sort Typ . fld_typ_ann_compare ( IList . map replace_fta fields ) in
let struct_typ =
ignore ( Tenv . mk_struct tenv ~ default : struct_typ ~ fields : fields' name ) ;
Typ . Tstruct ( Tenv . mk_struct tenv ~ default : struct_typ ~ fields : fields' name ) in
[ ( atoms' , Sil . Estruct ( res_fsel' , inst' ) , typ ) ]
[ ( atoms' , Sil . Estruct ( res_fsel' , inst' ) , struct_typ ) ]
)
end
| exception Not_found ->
| ( Sil . Off_fld ( _ , _ ) ) :: _ , _ , _ ->
raise ( Exceptions . Missing_fld ( f , _ _ POS__ ) )
)
| None ->
raise ( Exceptions . Missing_fld ( f , _ _ POS__ ) )
)
| ( Off_fld _ ) :: _ , _ , _ ->
raise ( Exceptions . Bad_footprint _ _ POS__ )
raise ( Exceptions . Bad_footprint _ _ POS__ )
| ( Sil . Off_index _ ) :: _ , Sil . Eexp _ , Typ . Tint _
| ( Off_index _ ) :: _ , Sil . Eexp _ , ( Tint _ | Tfloat _ | Tvoid | Tfun _ | Tptr _ )
| ( Sil . Off_index _ ) :: _ , Sil . Eexp _ , Typ . Tfloat _
| ( Off_index _ ) :: _ , Sil . Estruct _ , Tstruct _ ->
| ( Sil . Off_index _ ) :: _ , Sil . Eexp _ , Typ . Tvoid
| ( Sil . Off_index _ ) :: _ , Sil . Eexp _ , Typ . Tfun _
| ( Sil . Off_index _ ) :: _ , Sil . Eexp _ , Typ . Tptr _
| ( Sil . Off_index _ ) :: _ , Sil . Estruct _ , Typ . Tstruct _ ->
(* L.d_strln_color Orange "turn into an array"; *)
(* L.d_strln_color Orange "turn into an array"; *)
let len = match se with
let len = match se with
| Sil . Eexp ( _ , Sil . Ialloc ) -> Exp . one (* if allocated explicitly, we know len is 1 *)
| Sil . Eexp ( _ , Sil . Ialloc ) -> Exp . one (* if allocated explicitly, we know len is 1 *)
@ -260,11 +261,10 @@ let rec _strexp_extend_values
let typ_new = Typ . Tarray ( typ , None ) in
let typ_new = Typ . Tarray ( typ , None ) in
_ strexp_extend_values
_ strexp_extend_values
pname tenv orig_prop footprint_part kind max_stamp se_new typ_new off inst
pname tenv orig_prop footprint_part kind max_stamp se_new typ_new off inst
| ( Sil . Off_index e ) :: off' , Sil . Earray ( len , esel , inst_arr ) , Typ . Tarray ( typ' , len_for_typ' ) ->
| ( Off_index e ) :: off' , Sil . Earray ( len , esel , inst_arr ) , Tarray ( typ' , len_for_typ' ) -> (
bounds_check tenv pname orig_prop len e ( State . get_loc () ) ;
bounds_check tenv pname orig_prop len e ( State . get_loc () ) ;
begin
match IList . find ( fun ( e' , _ ) -> Exp . equal e e' ) esel with
try
| _ , se' ->
let _ , se' = IList . find ( fun ( e' , _ ) -> Exp . equal e e' ) esel in
let atoms_se_typ_list' =
let atoms_se_typ_list' =
_ strexp_extend_values
_ strexp_extend_values
pname tenv orig_prop footprint_part kind max_stamp se' typ' off' inst in
pname tenv orig_prop footprint_part kind max_stamp se' typ' off' inst in
@ -279,13 +279,13 @@ let rec _strexp_extend_values
else
else
raise ( Exceptions . Bad_footprint _ _ POS__ ) in
raise ( Exceptions . Bad_footprint _ _ POS__ ) in
IList . fold_left replace [] atoms_se_typ_list'
IList . fold_left replace [] atoms_se_typ_list'
with Not_found ->
| exception Not_found ->
array_case_analysis_index pname tenv orig_prop
array_case_analysis_index pname tenv orig_prop
footprint_part kind max_stamp
footprint_part kind max_stamp
len esel
len esel
len_for_typ' typ'
len_for_typ' typ'
e off' inst_arr inst
e off' inst_arr inst
end
)
| _ , _ , _ ->
| _ , _ , _ ->
raise ( Exceptions . Bad_footprint _ _ POS__ )
raise ( Exceptions . Bad_footprint _ _ POS__ )
@ -614,7 +614,7 @@ let prop_iter_add_hpred_footprint_to_prop pname tenv prop (lexp, typ) inst =
(* * If [lexp] is an access to a field that is annotated with @GuardedBy, add constraints to [prop]
(* * If [lexp] is an access to a field that is annotated with @GuardedBy, add constraints to [prop]
expressing the safety conditions for the access . Complain if these conditions cannot be met . * )
expressing the safety conditions for the access . Complain if these conditions cannot be met . * )
let add_guarded_by_constraints tenv prop lexp pdesc =
let add_guarded_by_constraints tenv prop lexp pdesc =
let expand_ptr_type = Tenv . expand_ptr_type tenv in
let lookup = Tenv . lookup tenv in
let pname = Cfg . Procdesc . get_proc_name pdesc in
let pname = Cfg . Procdesc . get_proc_name pdesc in
let excluded_guardedby_string str =
let excluded_guardedby_string str =
(* nothing with a space in it can be a valid Java expression, shouldn't warn *)
(* nothing with a space in it can be a valid Java expression, shouldn't warn *)
@ -655,7 +655,7 @@ let add_guarded_by_constraints tenv prop lexp pdesc =
IList . find_map_opt annot_extract_guarded_by_str item_annot in
IList . find_map_opt annot_extract_guarded_by_str item_annot in
(* if [fld] is annotated with @GuardedBy ( "mLock" ) , return mLock *)
(* if [fld] is annotated with @GuardedBy ( "mLock" ) , return mLock *)
let get_guarded_by_fld_str fld typ =
let get_guarded_by_fld_str fld typ =
match Typ . get_field_type_and_annotation ~ expand_ptr_type fld typ with
match Typ . get_field_type_and_annotation ~ lookup fld typ with
| Some ( _ , item_annot ) ->
| Some ( _ , item_annot ) ->
begin
begin
match extract_guarded_by_str item_annot with
match extract_guarded_by_str item_annot with
@ -683,7 +683,7 @@ let add_guarded_by_constraints tenv prop lexp pdesc =
try
try
let fld , strexp = IList . find f flds in
let fld , strexp = IList . find f flds in
begin
begin
match Typ . get_field_type_and_annotation ~ expand_ptr_type fld typ with
match Typ . get_field_type_and_annotation ~ lookup fld typ with
| Some ( fld_typ , _ ) -> Some ( strexp , fld_typ )
| Some ( fld_typ , _ ) -> Some ( strexp , fld_typ )
| None -> None
| None -> None
end
end
@ -731,8 +731,7 @@ let add_guarded_by_constraints tenv prop lexp pdesc =
let rec is_read_write_lock typ =
let rec is_read_write_lock typ =
let str_is_read_write_lock str = string_is_suffix " ReadWriteUpdateLock " str in
let str_is_read_write_lock str = string_is_suffix " ReadWriteUpdateLock " str in
match typ with
match typ with
| Typ . Tvar name
| Typ . Tstruct name -> str_is_read_write_lock ( Typename . name name )
| Typ . Tstruct { name } -> str_is_read_write_lock ( Typename . name name )
| Typ . Tptr ( typ , _ ) -> is_read_write_lock typ
| Typ . Tptr ( typ , _ ) -> is_read_write_lock typ
| _ -> false in
| _ -> false in
let has_lock guarded_by_exp =
let has_lock guarded_by_exp =
@ -1029,17 +1028,20 @@ let iter_rearrange_pe_dllseg_last tenv recurse_on_iters default_case_iter iter p
(* * find the type at the offset from the given type expression, if any *)
(* * find the type at the offset from the given type expression, if any *)
let type_at_offset tenv texp off =
let type_at_offset tenv texp off =
let rec strip_offset off typ =
let rec strip_offset ( off : Sil . offset list ) ( typ : Typ . t ) =
match off , Tenv . expand_type tenv typ with
match off , typ with
| [] , _ -> Some typ
| [] , _ -> Some typ
| ( Sil . Off_fld ( f , _ ) ) :: off' , Tstruct { fields } ->
| ( Off_fld ( f , _ ) ) :: off' , Tstruct name -> (
( try
match Tenv . lookup tenv name with
let typ' =
| Some { fields } -> (
( fun ( _ , y , _ ) -> y )
match IList . find ( fun ( f' , _ , _ ) -> Ident . fieldname_equal f f' ) fields with
( IList . find ( fun ( f' , _ , _ ) -> Ident . fieldname_equal f f' ) fields ) in
| _ , typ' , _ -> strip_offset off' typ'
strip_offset off' typ'
| exception Not_found -> None
with Not_found -> None )
)
| ( Sil . Off_index _ ) :: off' , Typ . Tarray ( typ' , _ ) ->
| None ->
None
)
| ( Off_index _ ) :: off' , Tarray ( typ' , _ ) ->
strip_offset off' typ'
strip_offset off' typ'
| _ -> None in
| _ -> None in
match texp with
match texp with
@ -1083,7 +1085,7 @@ let rec iter_rearrange
inst : ( Sil . offset list ) Prop . prop_iter list =
inst : ( Sil . offset list ) Prop . prop_iter list =
let rec root_typ_of_offsets = function
let rec root_typ_of_offsets = function
| Sil . Off_fld ( f , fld_typ ) :: _ -> (
| Sil . Off_fld ( f , fld_typ ) :: _ -> (
match Tenv . expand_type tenv fld_typ with
match fld_typ with
| Tstruct _ as struct_typ ->
| Tstruct _ as struct_typ ->
(* access through field: get the struct type from the field *)
(* access through field: get the struct type from the field *)
if Config . trace_rearrange then begin
if Config . trace_rearrange then begin
@ -1195,7 +1197,7 @@ let is_weak_captured_var pdesc pvar =
(* * Check for dereference errors: dereferencing 0, a freed value, or an undefined value *)
(* * Check for dereference errors: dereferencing 0, a freed value, or an undefined value *)
let check_dereference_error tenv pdesc ( prop : Prop . normal Prop . t ) lexp loc =
let check_dereference_error tenv pdesc ( prop : Prop . normal Prop . t ) lexp loc =
let expand_ptr_type = Tenv . expand_ptr_type tenv in
let lookup = Tenv . lookup tenv in
let nullable_obj_str = ref None in
let nullable_obj_str = ref None in
let nullable_str_is_weak_captured_var = ref false in
let nullable_str_is_weak_captured_var = ref false in
(* return true if deref_exp is only pointed to by fields/params with @Nullable annotations *)
(* return true if deref_exp is only pointed to by fields/params with @Nullable annotations *)
@ -1227,7 +1229,7 @@ let check_dereference_error tenv pdesc (prop : Prop.normal Prop.t) lexp loc =
is_nullable | | Pvar . is_local pvar
is_nullable | | Pvar . is_local pvar
| Sil . Hpointsto ( _ , Sil . Estruct ( flds , _ ) , Exp . Sizeof ( typ , _ , _ ) ) ->
| Sil . Hpointsto ( _ , Sil . Estruct ( flds , _ ) , Exp . Sizeof ( typ , _ , _ ) ) ->
let fld_is_nullable fld =
let fld_is_nullable fld =
match Typ . get_field_type_and_annotation ~ expand_ptr_type fld typ with
match Typ . get_field_type_and_annotation ~ lookup fld typ with
| Some ( _ , annot ) -> Annotations . ia_is_nullable annot
| Some ( _ , annot ) -> Annotations . ia_is_nullable annot
| _ -> false in
| _ -> false in
let is_strexp_pt_by_nullable_fld ( fld , strexp ) =
let is_strexp_pt_by_nullable_fld ( fld , strexp ) =