|
|
@ -576,6 +576,12 @@ let rec expression context pc expr =
|
|
|
|
| Called p | Defined p -> p in
|
|
|
|
| Called p | Defined p -> p in
|
|
|
|
let field_type = (JTransType.get_class_type program tenv (JBasics.make_cn JConfig.string_cl)) in
|
|
|
|
let field_type = (JTransType.get_class_type program tenv (JBasics.make_cn JConfig.string_cl)) in
|
|
|
|
JTransStaticField.translate_instr_static_field context callee_procdesc fs field_type loc
|
|
|
|
JTransStaticField.translate_instr_static_field context callee_procdesc fs field_type loc
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
if JTransType.is_autogenerated_assert_field field_name
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
(* assume that reading from C.$assertionsDisabled always yields "false". this allows *)
|
|
|
|
|
|
|
|
(* Infer to understand the assert keyword in the expected way *)
|
|
|
|
|
|
|
|
(idl, instrs, Sil.exp_zero)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
let sil_expr = Sil.Lfield (sil_expr, field_name, sil_type) in
|
|
|
|
let sil_expr = Sil.Lfield (sil_expr, field_name, sil_type) in
|
|
|
|
let tmp_id = Ident.create_fresh Ident.knormal in
|
|
|
|
let tmp_id = Ident.create_fresh Ident.knormal in
|
|
|
|